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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["./src/app/animations/animate.ts","./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/core/core.module.ts","./src/app/custom-location-strategy.ts","./src/app/guards/auth-non-read-only-system-admin-financier.guard.ts","./src/app/guards/auth-system-admin-only.guard.ts","./src/app/guards/auth-system-admin-or-financier-only.guard.ts","./src/app/guards/auth-system-admin-or-supplier-only.guard.ts","./src/app/guards/auth-user-only.guard.ts","./src/app/guards/auth.guard.ts","./src/app/guards/user-logged-in.guard.ts","./src/app/interceptors/http-auhorization-error.interceptor.ts","./src/app/interceptors/http-nocache-headers-interceptor.ts","./src/app/models/User/mfa/mfa-setup/confirm-setup-mfa-otp-input.ts","./src/app/models/User/mfa/mfa-setup/setup-mfa-otp-input.ts","./src/app/models/User/register-user-input.ts","./src/app/models/User/user.ts","./src/app/models/broadcast/broadcast-message-type.ts","./src/app/models/broadcast/session-status-broadcast-message-payload.ts","./src/app/models/charts/vertical-bar-chart.ts","./src/app/models/commissions/commissions-search-criteria.ts","./src/app/models/common/init-file.model.ts","./src/app/models/common/pagination.ts","./src/app/models/common/search-filter.ts","./src/app/models/companies/company-search-criteria.ts","./src/app/models/companies/company.ts","./src/app/models/companies/public-company.ts","./src/app/models/contracts/confirming/confirming-connections-search-criteria.ts","./src/app/models/contracts/confirming/confirming-contracts-search-criteria.ts","./src/app/models/contracts/factoring/factoring-connections-search-criteria.ts","./src/app/models/contracts/factoring/factoring-contracts-search-criteria.ts","./src/app/models/document/document-export-detail-error.ts","./src/app/models/document/document-search-criteria.ts","./src/app/models/enums/Invitations/invitation-status.ts","./src/app/models/enums/company-card-type.ts","./src/app/models/enums/company-profile.ts","./src/app/models/enums/company-universe-search.ts","./src/app/models/enums/confirming/contract-automatic-funding-request-trigger.ts","./src/app/models/enums/confirming/contrat-automatic-funding-request-flow.ts","./src/app/models/enums/confirming/document-involvement-entity-type.ts","./src/app/models/enums/currency-code.ts","./src/app/models/enums/document-approval-state.ts","./src/app/models/enums/document-external-source.ts","./src/app/models/enums/document-payment-state.ts","./src/app/models/enums/document-upload-contract-type.ts","./src/app/models/enums/documentation/legal-document-type.ts","./src/app/models/enums/error-detail-code.ts","./src/app/models/enums/mfa-type.ts","./src/app/models/enums/product-type.ts","./src/app/models/enums/server-errors.ts","./src/app/models/enums/service-call-status.ts","./src/app/models/enums/user-role.ts","./src/app/models/invitations/public-invite-company-network-ticket.ts","./src/app/models/sepa/sepa-search-criteria.ts","./src/app/models/server-result/operation-error.ts","./src/app/models/server-result/operation-result.ts","./src/app/models/upload/documents/document-amount-currency-data.ts","./src/app/models/upload/documents/document-uploaded-record-validation-status.ts","./src/app/models/upload/globalization/management/delete/resource-delete-validation-status.ts","./src/app/models/upload/globalization/management/import/resource-validation-status.ts","./src/app/models/upload/suppliers/supplier-uploaded-record-validation-status.ts","./src/app/models/upload/upload-file-content-type.ts","./src/app/private/companies-lists/companies-lists.component.ts","./src/app/private/companies-lists/companies-lists.component.html","./src/app/private/companies/company-details/company-details.component.ts","./src/app/private/companies/company-details/company-details.component.html","./src/app/private/companies/edit-company/edit-company.component.ts","./src/app/private/companies/edit-company/edit-company.component.html","./src/app/private/companies/search-companies/search-companies.component.ts","./src/app/private/companies/search-companies/search-companies.component.html","./src/app/private/documents/search-documents/models/query-string-document-search-criteria.ts","./src/app/private/documents/search-documents/search-documents.component.ts","./src/app/private/documents/search-documents/search-documents.component.html","./src/app/private/files-upload/upload-routing.module.ts","./src/app/private/files-upload/upload.module.ts","./src/app/private/files-upload/upload/FactoringCreditAssignment/template/factoring-credit-assignment-template.component.ts","./src/app/private/files-upload/upload/FactoringCreditAssignment/template/factoring-credit-assignment-template.component.html","./src/app/private/files-upload/upload/documents/documents-upload-confirming-instructions/documents-upload-confirming-instructions.component.ts","./src/app/private/files-upload/upload/documents/documents-upload-confirming-instructions/documents-upload-confirming-instructions.component.html","./src/app/private/files-upload/upload/documents/documents-upload-factoring-instructions/documents-upload-factoring-instructions.component.ts","./src/app/private/files-upload/upload/documents/documents-upload-factoring-instructions/documents-upload-factoring-instructions.component.html","./src/app/private/files-upload/upload/documents/step1/documents-upload-step1.component.ts","./src/app/private/files-upload/upload/documents/step1/documents-upload-step1.component.html","./src/app/private/files-upload/upload/documents/step2/documents-upload-step2.component.ts","./src/app/private/files-upload/upload/documents/step2/documents-upload-step2.component.html","./src/app/private/files-upload/upload/documents/step3/documents-upload-step3.component.ts","./src/app/private/files-upload/upload/documents/step3/documents-upload-step3.component.html","./src/app/private/files-upload/upload/documents/step4/documents-upload-step4.component.ts","./src/app/private/files-upload/upload/documents/step4/documents-upload-step4.component.html","./src/app/private/files-upload/upload/files/upload-file.component.ts","./src/app/private/files-upload/upload/files/upload-file.component.html","./src/app/private/files-upload/upload/globalization/management/delete/step1/globalization-management-upload-delete-step1.component.ts","./src/app/private/files-upload/upload/globalization/management/delete/step1/globalization-management-upload-delete-step1.component.html","./src/app/private/files-upload/upload/globalization/management/delete/step2/globalization-management-upload-delete-step2.component.ts","./src/app/private/files-upload/upload/globalization/management/delete/step2/globalization-management-upload-delete-step2.component.html","./src/app/private/files-upload/upload/globalization/management/delete/step3/globalization-management-upload-delete-step3.component.ts","./src/app/private/files-upload/upload/globalization/management/delete/step3/globalization-management-upload-delete-step3.component.html","./src/app/private/files-upload/upload/globalization/management/delete/step4/globalization-management-upload-delete-step4.component.ts","./src/app/private/files-upload/upload/globalization/management/delete/step4/globalization-management-upload-delete-step4.component.html","./src/app/private/files-upload/upload/globalization/management/globalization-management-data-service.ts","./src/app/private/files-upload/upload/globalization/management/import/step1/globalization-management-upload-step1.component.ts","./src/app/private/files-upload/upload/globalization/management/import/step1/globalization-management-upload-step1.component.html","./src/app/private/files-upload/upload/globalization/management/import/step2/globalization-management-upload-step2.component.ts","./src/app/private/files-upload/upload/globalization/management/import/step2/globalization-management-upload-step2.component.html","./src/app/private/files-upload/upload/globalization/management/import/step3/globalization-management-upload-step3.component.ts","./src/app/private/files-upload/upload/globalization/management/import/step3/globalization-management-upload-step3.component.html","./src/app/private/files-upload/upload/globalization/management/import/step4/globalization-management-upload-step4.component.ts","./src/app/private/files-upload/upload/globalization/management/import/step4/globalization-management-upload-step4.component.html","./src/app/private/files-upload/upload/suppliers/step1/suppliers-upload-step1.component.ts","./src/app/private/files-upload/upload/suppliers/step1/suppliers-upload-step1.component.html","./src/app/private/files-upload/upload/suppliers/step2/suppliers-upload-step2.component.ts","./src/app/private/files-upload/upload/suppliers/step2/suppliers-upload-step2.component.html","./src/app/private/files-upload/upload/suppliers/step3/suppliers-upload-step3.component.ts","./src/app/private/files-upload/upload/suppliers/step3/suppliers-upload-step3.component.html","./src/app/private/files-upload/upload/suppliers/step4/suppliers-upload-step4.component.ts","./src/app/private/files-upload/upload/suppliers/step4/suppliers-upload-step4.component.html","./src/app/private/files-upload/upload/upload.component.ts","./src/app/private/files-upload/upload/upload.component.html","./src/app/private/financier-companies/financier-companies.component.ts","./src/app/private/financier-companies/financier-companies.component.html","./src/app/private/private-home/dashboard-administrator/dashboard-administrator.component.ts","./src/app/private/private-home/dashboard-administrator/dashboard-administrator.component.html","./src/app/private/private-home/dashboard-buyer/dashboard-buyer.component.ts","./src/app/private/private-home/dashboard-buyer/dashboard-buyer.component.html","./src/app/private/private-home/dashboard-financier/dashboard-financier.component.ts","./src/app/private/private-home/dashboard-financier/dashboard-financier.component.html","./src/app/private/private-home/dashboard-supplier/dashboard-supplier.component.ts","./src/app/private/private-home/dashboard-supplier/dashboard-supplier.component.html","./src/app/private/private-home/private-home.component.ts","./src/app/private/private-home/private-home.component.html","./src/app/private/private-routing.module.ts","./src/app/private/private.component-view-models/menu-entrances-view-model.ts","./src/app/private/private.component.ts","./src/app/private/private.component.html","./src/app/private/private.module.ts","./src/app/public/invitations/confirming/buyer-invitation-response/buyer-invitation-response.component.ts","./src/app/public/invitations/confirming/buyer-invitation-response/buyer-invitation-response.component.html","./src/app/public/invitations/confirming/supplier-invitation-response/supplier-confirming-invitation-response.component.ts","./src/app/public/invitations/confirming/supplier-invitation-response/supplier-confirming-invitation-response.component.html","./src/app/public/invitations/factoring/supplier-invitation-response/supplier-invitation-response.component.ts","./src/app/public/invitations/factoring/supplier-invitation-response/supplier-invitation-response.component.html","./src/app/public/invitations/user-invitation-response/user-invitation-response.component.ts","./src/app/public/invitations/user-invitation-response/user-invitation-response.component.html","./src/app/public/login/login.component.ts","./src/app/public/login/login.component.html","./src/app/public/mfa/mfa-select/mfa-select.component.ts","./src/app/public/mfa/mfa-select/mfa-select.component.html","./src/app/public/mfa/mfa-select/models/mfa-select-card-view-model.ts","./src/app/public/mfa/mfa-setup-otp-page/mfa-setup-otp-page.component.ts","./src/app/public/mfa/mfa-setup-otp-page/mfa-setup-otp-page.component.html","./src/app/public/mfa/mfa-verify/mfa-verify.component.ts","./src/app/public/mfa/mfa-verify/mfa-verify.component.html","./src/app/public/mfa/mfa-verify/models/mfa-verify-view-model.ts","./src/app/public/public-home/public-home.component.ts","./src/app/public/public-home/public-home.component.html","./src/app/public/public-routing.module.ts","./src/app/public/public.component.ts","./src/app/public/public.component.html","./src/app/public/public.module.ts","./src/app/public/recover-password/recover-password.component.ts","./src/app/public/recover-password/recover-password.component.html","./src/app/public/reset-logged-information/reset-logged-information.component.ts","./src/app/public/reset-logged-information/reset-logged-information.component.html","./src/app/public/reset-password/reset-password.component.ts","./src/app/public/reset-password/reset-password.component.html","./src/app/required-action/documentation/missing-accepted.component.ts","./src/app/required-action/documentation/missing-accepted.component.html","./src/app/required-action/required-action-routing.module.ts","./src/app/required-action/required-action.component.ts","./src/app/required-action/required-action.component.html","./src/app/required-action/required-action.module.ts","./src/app/required-action/users/user-login-role-selection/user-login-role-selection.component.ts","./src/app/required-action/users/user-login-role-selection/user-login-role-selection.component.html","./src/app/server-api/audit-api.service.ts","./src/app/server-api/globalization-api.service.ts","./src/app/server-api/login-api.service.ts","./src/app/server-api/mfa-api.service.ts","./src/app/server-api/server-api.service.ts","./src/app/services/app-context.service.ts","./src/app/services/authentication/login.service.ts","./src/app/services/authentication/mfa-login.service.ts","./src/app/services/authorization/session-expiration-timeout.service.ts","./src/app/services/authorization/session-status-broadcast.service.ts","./src/app/services/configurations/configurations.service.ts","./src/app/services/currency-formatter.pipe.ts","./src/app/services/currency-locale.pipe.ts","./src/app/services/date-locale.pipe.ts","./src/app/services/datetime-locale.pipe.ts","./src/app/services/google-analytics/google-analytics.service.ts","./src/app/services/guard/guard.service.ts","./src/app/services/interceptor-message-listener/interceptor-message-listener.component.ts","./src/app/services/interceptor-message/interceptor-message-type.ts","./src/app/services/interceptor-message/interceptor-message.service.ts","./src/app/services/interceptor-message/interceptor-message.ts","./src/app/services/log/log-publishers.service.ts","./src/app/services/log/log-publishers.ts","./src/app/services/log/log.service.ts","./src/app/services/logged-user-data-changed-notification/logged-user-data-changed-notification.service.ts","./src/app/services/notification-listener/notification-listener.component.ts","./src/app/services/notification-listener/notification-listener.component.html","./src/app/services/notification/notification-type.ts","./src/app/services/notification/notification.service.ts","./src/app/services/notification/notification.ts","./src/app/services/number-locale.pipe.ts","./src/app/services/percent-formatter.pipe.ts","./src/app/services/resources/resource-mapping-service.ts","./src/app/services/routing/route-processing.service.ts","./src/app/services/routing/routing.service.ts","./src/app/services/safe-html.pipe.ts","./src/app/services/screen-width-detector/screen-width-detector.service.ts","./src/app/services/screen-width-detector/screen-width-listener.service.ts","./src/app/services/translate/translate.module.ts","./src/app/services/translate/translate.service.ts","./src/app/services/utils/utilities.service.ts","./src/app/services/validations/common-validation.service.ts","./src/app/services/validations/execution-permission-validator.service.ts","./src/app/services/validations/form-validator.service.ts","./src/app/shared-components/child-component-request-indicator/child-component-request-indicator.component.ts","./src/app/shared-components/child-component-request-indicator/child-component-request-indicator.component.html","./src/app/shared-components/company-card-minimal/company-card-minimal.component.ts","./src/app/shared-components/company-card-minimal/company-card-minimal.component.html","./src/app/shared-components/company-card/company-card.component.ts","./src/app/shared-components/company-card/company-card.component.html","./src/app/shared-components/date-range-picker-internationalization/date-range-picker-internationalization-I18n.ts","./src/app/shared-components/date-range-picker/date-range-picker.component.ts","./src/app/shared-components/date-range-picker/date-range-picker.component.html","./src/app/shared-components/date-time-picker/date-time-picker.component.ts","./src/app/shared-components/date-time-picker/date-time-picker.component.html","./src/app/shared-components/date-time-range-picker/date-time-range-picker.component.ts","./src/app/shared-components/date-time-range-picker/date-time-range-picker.component.html","./src/app/shared-components/error-list/error-list.component.ts","./src/app/shared-components/error-list/error-list.component.html","./src/app/shared-components/mfa-setup/mfa-setup-otp/mfa-setup-otp.component.ts","./src/app/shared-components/mfa-setup/mfa-setup-otp/mfa-setup-otp.component.html","./src/app/shared-components/mfa-setup/mfa-setup-otp/models/mfa-setup-otp-view-model.ts","./src/app/shared-components/modals/confirm-dialog/confirm-dialog-modal.component.ts","./src/app/shared-components/modals/confirm-dialog/confirm-dialog-modal.component.html","./src/app/shared-components/modals/information/information-modal.component.ts","./src/app/shared-components/modals/information/information-modal.component.html","./src/app/shared-components/modals/legal-acceptance/legal-acceptance-modal.component.ts","./src/app/shared-components/modals/legal-acceptance/legal-acceptance-modal.component.html","./src/app/shared-components/modals/mfa-setup-otp-modal/mfa-setup-otp-modal.component.ts","./src/app/shared-components/modals/mfa-setup-otp-modal/mfa-setup-otp-modal.component.html","./src/app/shared-components/modals/ok-cancel/ok-cancel-modal.component.ts","./src/app/shared-components/modals/ok-cancel/ok-cancel-modal.component.html","./src/app/shared-components/modals/recalculate-commissions/models/recalculate-commissions-modal-form-view-model.ts","./src/app/shared-components/modals/recalculate-commissions/recalculate-commissions-modal.component.ts","./src/app/shared-components/modals/recalculate-commissions/recalculate-commissions-modal.component.html","./src/app/shared-components/modals/supplier-advance-payment-activation/supplier-advance-payment-activation.component.ts","./src/app/shared-components/modals/supplier-advance-payment-activation/supplier-advance-payment-activation.component.html","./src/app/shared-components/no-results/no-results.component.ts","./src/app/shared-components/no-results/no-results.component.html","./src/app/shared-components/non-sepa-to-approval/non-sepa-to-approval.component.ts","./src/app/shared-components/non-sepa-to-approval/non-sepa-to-approval.component.html","./src/app/shared-components/pagination/pagination.component.ts","./src/app/shared-components/pagination/pagination.component.html","./src/app/shared-components/request-indicator/request-indicator.component.ts","./src/app/shared-components/request-indicator/request-indicator.component.html","./src/app/shared-components/sucess-submission/sucess-submission.component.ts","./src/app/shared-components/sucess-submission/sucess-submission.component.html","./src/app/shared-components/upload-doc-amounts-per-currency/upload-doc-amounts-per-currency.component.ts","./src/app/shared-components/upload-doc-amounts-per-currency/upload-doc-amounts-per-currency.component.html","./src/app/shared-components/upload-doc-state-bar/upload-doc-state-bar.component.ts","./src/app/shared-components/upload-doc-state-bar/upload-doc-state-bar.component.html","./src/app/shared-components/upload-globalization-management-state-bar/upload-globalization-management-state-bar.component.ts","./src/app/shared-components/upload-globalization-management-state-bar/upload-globalization-management-state-bar.component.html","./src/app/shared-components/user-card-minimal/user-card-minimal.component.ts","./src/app/shared-components/user-card-minimal/user-card-minimal.component.html","./src/app/utils/md5.ts","./src/environments/environment.ts","./src/main.ts","./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import { animate, animation, keyframes, style, transition, trigger, useAnimation } from '@angular/animations';\r\n\r\nexport const expandDetailsTrigger = trigger('expandDetails', [\r\n\ttransition(':enter', [\r\n\t\tstyle({\r\n\t\t\theight: 0,\r\n\t\t\topacity: 0,\r\n\t\t}),\r\n\t\tanimate(\r\n\t\t\t'300ms ease-in',\r\n\t\t\tstyle({\r\n\t\t\t\theight: '*',\r\n\t\t\t})\r\n\t\t),\r\n\t\tanimate(\r\n\t\t\t'500ms ease-out',\r\n\t\t\tstyle({\r\n\t\t\t\topacity: 1,\r\n\t\t\t})\r\n\t\t),\r\n\t]),\r\n\ttransition(':leave', [\r\n\t\tstyle({\r\n\t\t\theight: '*',\r\n\t\t\topacity: 1,\r\n\t\t}),\r\n\t\tanimate(\r\n\t\t\t300,\r\n\t\t\tstyle({\r\n\t\t\t\topacity: 0,\r\n\t\t\t})\r\n\t\t),\r\n\t\tanimate(\r\n\t\t\t'350ms ease-out',\r\n\t\t\tstyle({\r\n\t\t\t\theight: 0,\r\n\t\t\t})\r\n\t\t),\r\n\t]),\r\n]);\r\n\r\nexport const fadingTrigger = trigger('isFade', [\r\n\ttransition('* => *', [animate(500, keyframes([style({ opacity: 0 }), style({ opacity: 0.5 }), style({ opacity: 1 })]))]),\r\n]);\r\n\r\nconst fadeAnimation = animation(\r\n\t[\r\n\t\tstyle({\r\n\t\t\topacity: '{{startOpacity}}',\r\n\t\t}),\r\n\t\tanimate('{{ duration }}'),\r\n\t],\r\n\t{ params: { startOpacity: 0, duration: '500ms' } }\r\n);\r\n\r\nexport const fadingReUsableTrigger = (params) =>\r\n\ttrigger('isFadeReUse', [transition('* => *', [useAnimation(fadeAnimation, { params: params })])]);\r\n\r\nexport const dropDownFX = trigger('dropDownFX', [\r\n\ttransition('void => *', [\r\n\t\tstyle({\r\n\t\t\ttransform: 'translateY(-20px)',\r\n\t\t\topacity: 0,\r\n\t\t}),\r\n\t\tanimate(\r\n\t\t\t'500ms ease',\r\n\t\t\tstyle({\r\n\t\t\t\ttransform: 'translateY(0)',\r\n\t\t\t\topacity: 1,\r\n\t\t\t})\r\n\t\t),\r\n\t]),\r\n\ttransition('* => void', [\r\n\t\tstyle({\r\n\t\t\topacity: 1,\r\n\t\t}),\r\n\t\tanimate(\r\n\t\t\t'500ms ease-out',\r\n\t\t\tstyle({\r\n\t\t\t\topacity: 0,\r\n\t\t\t})\r\n\t\t),\r\n\t]),\r\n]);\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nconst routes: Routes = [{ path: '', pathMatch: 'full', redirectTo: 'public/login' }];\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tRouterModule.forRoot(routes, {\r\n\t\t\tuseHash: true,\r\n\t\t}),\r\n\t],\r\n\texports: [RouterModule],\r\n})\r\nexport class AppRoutingModule {}\r\n","import { Component } from '@angular/core';\r\nimport { CurrencyPipe, DatePipe, DecimalPipe } from '@angular/common';\r\nimport { ServerApiService } from './server-api/server-api.service';\r\nimport { AppContextService } from './services/app-context.service';\r\nimport { Router, NavigationEnd } from '@angular/router';\r\nimport { GoogleAnalyticsService } from './services/google-analytics/google-analytics.service';\r\nimport { RoutingService } from './services/routing/routing.service';\r\n\r\n@Component({\r\n\tselector: 'app-root',\r\n\ttemplateUrl: './app.component.html',\r\n\tstyleUrls: ['./app.component.css'],\r\n\tproviders: [DecimalPipe, CurrencyPipe, DatePipe, GoogleAnalyticsService],\r\n})\r\nexport class AppComponent {\r\n\ttitle = 'EIF-Client';\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tpublic router: Router,\r\n\t\tpublic routingService: RoutingService,\r\n\t\tpublic googleAnalyticsService: GoogleAnalyticsService\r\n\t) {\r\n\t\tthis.router.events.subscribe((event) => {\r\n\t\t\tif (event instanceof NavigationEnd) {\r\n\t\t\t\tgoogleAnalyticsService.navigationEndEmitter(event.urlAfterRedirects);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n","\r\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { NgxChartsModule } from '@swimlane/ngx-charts';\r\nimport { AppComponent } from './app.component';\r\nimport { PublicModule } from './public/public.module';\r\nimport { PrivateModule } from './private/private.module';\r\nimport { ServerApiService } from './server-api/server-api.service';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport { APP_INITIALIZER, InjectionToken, NgModule } from '@angular/core';\r\nimport { TranslateService } from './services/translate/translate.service';\r\nimport { TranslateModule } from './services/translate/translate.module';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { registerLocaleData, APP_BASE_HREF, PlatformLocation, LocationStrategy } from '@angular/common';\r\nimport localePt from '@angular/common/locales/pt';\r\nimport localeEn from '@angular/common/locales/en';\r\nimport localeEs from '@angular/common/locales/es';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AuthInterceptor } from './interceptors/http-auhorization-error.interceptor';\r\nimport { NoCacheHttpInterceptor } from './interceptors/http-nocache-headers-interceptor';\r\nimport { SessionExpirationTimeoutService } from './services/authorization/session-expiration-timeout.service';\r\nimport { ConfigurationsService } from './services/configurations/configurations.service';\r\nimport { GoogleAnalyticsService } from './services/google-analytics/google-analytics.service';\r\nimport { RequiredActionModule } from './required-action/required-action.module';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { RoutingService } from './services/routing/routing.service';\r\nimport { CustomLocationStrategy } from './custom-location-strategy';\r\nimport { RouteProcessingService } from './services/routing/route-processing.service';\r\nimport { AllowUnsafeHtmlInSlider, NgxSliderModule } from '@angular-slider/ngx-slider';\r\nimport { AuditApiService } from './server-api/audit-api.service';\r\nimport { GlobalizationApiService } from './server-api/globalization-api.service';\r\nimport { MfaApiService } from './server-api/mfa-api.service';\r\nimport { LoginApiService } from './server-api/login-api.service';\r\nregisterLocaleData(localePt, 'pt');\r\nregisterLocaleData(localeEn, 'en');\r\nregisterLocaleData(localeEs, 'es');\r\n\r\n// Advanced initialization.\r\nexport function loadTranslationsAndInitialConfigurations(\r\n\ttranslationService: TranslateService,\r\n\tconfigurationsService: ConfigurationsService\r\n): Function {\r\n\treturn (): Promise => {\r\n\t\treturn configurationsService.initConfigurations();\r\n\t};\r\n}\r\n\r\nexport function getUrlUserIndex(url: string): string | null {\r\n\tlet expression = new RegExp(/\\/u\\/[0-9]{1,}\\//);\r\n\r\n\tlet result = url.match(expression);\r\n\r\n\tif (!!result) {\r\n\t\tlet replaceExp = new RegExp(/\\//, 'g');\r\n\r\n\t\tlet userSessionIndex = result[0].replace('u', '').replace(replaceExp, '');\r\n\t\treturn userSessionIndex;\r\n\t}\r\n\treturn null;\r\n}\r\n\r\nexport function getBaseHref(platformLocation: PlatformLocation): string {\r\n\tlet urlWithHash = platformLocation.hash;\r\n\r\n\tlet windowBaseRef = window['base-href'];\r\n\tlet defaultBaseRef = '/';\r\n\r\n\t//if window['base-href'] has content\r\n\tif (windowBaseRef != null || windowBaseRef != undefined) {\r\n\t\t//get information from path\r\n\t\tlet urlUserIndex = getUrlUserIndex(windowBaseRef);\r\n\r\n\t\tif (urlUserIndex != null || urlUserIndex != undefined) {\r\n\t\t\t//just in case, insure proper base ref\r\n\t\t\twindow['base-href'] = '/private/u/' + urlUserIndex.toString() + '/';\r\n\t\t}\r\n\t} //window['base-href'] does not have content see if possible to set it using url\r\n\telse {\r\n\t\tlet urlUserIndex = getUrlUserIndex(urlWithHash);\r\n\r\n\t\tif (urlUserIndex != null || urlUserIndex != undefined) {\r\n\t\t\t//just in case, insure proper base ref\r\n\t\t\twindow['base-href'] = '/private/u/' + urlUserIndex.toString() + '/';\r\n\t\t}\r\n\t}\r\n\r\n\treturn defaultBaseRef;\r\n}\r\n\r\n@NgModule({\r\n\tdeclarations: [AppComponent],\r\n\timports: [\r\n\t\tBrowserModule,\r\n\t\tBrowserAnimationsModule,\r\n\t\tNgxChartsModule,\r\n\t\tFormsModule,\r\n\t\tHttpClientModule,\r\n\t\tTranslateModule,\r\n\t\tPublicModule,\r\n\t\tRequiredActionModule,\r\n\t\tPrivateModule,\r\n\t\tAppRoutingModule,\r\n\t\tNgxSliderModule,\r\n\t],\r\n\texports: [HttpClientModule],\r\n\tproviders: [\r\n\t\tCookieService,\r\n\t\tSessionExpirationTimeoutService,\r\n\t\tLoginApiService,\r\n\t\tMfaApiService,\r\n\t\tAuditApiService,\r\n\t\tGlobalizationApiService,\r\n\t\tServerApiService,\r\n\t\t{\r\n\t\t\tprovide: HTTP_INTERCEPTORS,\r\n\t\t\tuseClass: AuthInterceptor,\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t\t{\r\n\t\t\tprovide: HTTP_INTERCEPTORS,\r\n\t\t\tuseClass: NoCacheHttpInterceptor,\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t\t{\r\n\t\t\t// Provider for APP_INITIALIZER\r\n\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\tuseFactory: loadTranslationsAndInitialConfigurations,\r\n\t\t\tdeps: [TranslateService, ConfigurationsService],\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t\tRoutingService,\r\n\t\tRouteProcessingService,\r\n\t\t{\r\n\t\t\tprovide: APP_BASE_HREF,\r\n\t\t\tuseFactory: getBaseHref,\r\n\t\t\tdeps: [PlatformLocation],\r\n\t\t},\r\n\t\t{ provide: LocationStrategy, useClass: CustomLocationStrategy },\r\n\t\t{\r\n\t\t\tprovide: AllowUnsafeHtmlInSlider,\r\n\t\t\tuseValue: true,\r\n\t\t},\r\n\t],\r\n\tbootstrap: [AppComponent],\r\n})\r\nexport class AppModule {\r\n\tconstructor(public googleAnalyticsService: GoogleAnalyticsService) {\r\n\t\t// Start Google Analytics page tracking\r\n\t\tgoogleAnalyticsService.startTracking();\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NotificationListenerComponent } from '../services/notification-listener/notification-listener.component';\r\nimport { NgbModule, NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap';\r\nimport { PaginationComponent } from '../shared-components/pagination/pagination.component';\r\nimport { TranslateService } from '../services/translate/translate.service';\r\nimport { TranslateModule } from '../services/translate/translate.module';\r\nimport { DateRangePickerComponent } from '../shared-components/date-range-picker/date-range-picker.component';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { CompanyCardComponent } from '../shared-components/company-card/company-card.component';\r\nimport { RouterModule } from '@angular/router';\r\nimport { ErrorListComponent } from '../shared-components/error-list/error-list.component';\r\nimport { LogService } from '../services/log/log.service';\r\nimport { LogPublishersService } from '../services/log/log-publishers.service';\r\nimport { NumberLocalePipe } from '../services/number-locale.pipe';\r\nimport { CurrencyLocalePipe } from '../services/currency-locale.pipe';\r\nimport { DateLocalePipe } from '../services/date-locale.pipe';\r\nimport { DateTimeLocalePipe } from '../services/datetime-locale.pipe';\r\nimport { RequestIndicatorComponent } from '../shared-components/request-indicator/request-indicator.component';\r\nimport { OkCancelModalComponent } from '../shared-components/modals/ok-cancel/ok-cancel-modal.component';\r\nimport { LegalAcceptanceModalComponent } from '../shared-components/modals/legal-acceptance/legal-acceptance-modal.component';\r\nimport { NoResultsComponent } from '../shared-components/no-results/no-results.component';\r\nimport { ConfirmDialogModalComponent } from '../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { SupplierAdvancePaymentActivationComponent } from '../shared-components/modals/supplier-advance-payment-activation/supplier-advance-payment-activation.component';\r\nimport { InformationModalComponent } from '../shared-components/modals/information/information-modal.component';\r\nimport { CurrencyFormatterPipe } from '../services/currency-formatter.pipe';\r\nimport { SucessSubmissionComponent } from '../shared-components/sucess-submission/sucess-submission.component';\r\nimport { InterceptorMessageListenerComponent } from '../services/interceptor-message-listener/interceptor-message-listener.component';\r\nimport { DateRangePickerInternationalizationI18n } from '../shared-components/date-range-picker-internationalization/date-range-picker-internationalization-I18n';\r\nimport { ConfigurationsService } from '../services/configurations/configurations.service';\r\nimport { AuthGuard } from '../guards/auth.guard';\r\nimport { UserLoggedInGuard } from '../guards/user-logged-in.guard';\r\nimport { AuthSystemAdminOnlyGuard } from '../guards/auth-system-admin-only.guard';\r\nimport { CommonValidationsService } from '../services/validations/common-validation.service';\r\nimport { ChildComponentRequestIndicatorComponent } from '../shared-components/child-component-request-indicator/child-component-request-indicator.component';\r\nimport { ResourceMappingService } from '../services/resources/resource-mapping-service';\r\nimport { SessionStatusBroadcastService } from '../services/authorization/session-status-broadcast.service';\r\nimport { AuthSystemAdminOrSupplierOnlyGuard } from '../guards/auth-system-admin-or-supplier-only.guard';\r\nimport { SafeHtmlPipe } from '../services/safe-html.pipe';\r\nimport { AuthGuardForUserOnly } from '../guards/auth-user-only.guard';\r\nimport { AuthNonReadOnlySystemAdminOrFinancierOnlyGuard } from '../guards/auth-non-read-only-system-admin-financier.guard';\r\nimport { DateTimePickerComponent } from '../shared-components/date-time-picker/date-time-picker.component';\r\nimport { RecalculateCommissionsModalComponent } from '../shared-components/modals/recalculate-commissions/recalculate-commissions-modal.component';\r\nimport { ScreenWidthDetectorService } from '../services/screen-width-detector/screen-width-detector.service';\r\nimport { ScreenWidthListenerService } from '../services/screen-width-detector/screen-width-listener.service';\r\nimport { FormValidatorService } from '../services/validations/form-validator.service';\r\nimport { FusionChartsModule } from 'angular-fusioncharts';\r\nimport * as FusionCharts from 'fusioncharts';\r\nimport * as charts from 'fusioncharts/fusioncharts.charts';\r\nimport * as FusionTheme from 'fusioncharts/themes/fusioncharts.theme.carbon';\r\nimport { MfaSetUpOtpComponent } from '../shared-components/mfa-setup/mfa-setup-otp/mfa-setup-otp.component';\r\nimport { MfaSetUpOtpModalComponent } from '../shared-components/modals/mfa-setup-otp-modal/mfa-setup-otp-modal.component';\r\nimport { QRCodeModule } from 'angularx-qrcode';\r\nimport { MfaLoginService } from '../services/authentication/mfa-login.service';\r\nimport { UploadDocStateBarComponent } from '../shared-components/upload-doc-state-bar/upload-doc-state-bar.component';\r\nimport { NgxSliderModule } from '@angular-slider/ngx-slider';\r\nimport { UploadDocAmountsPerCurrencyComponent } from '../shared-components/upload-doc-amounts-per-currency/upload-doc-amounts-per-currency.component';\r\nimport { ExecutionPermissionValidatorService } from '../services/validations/execution-permission-validator.service';\r\nimport { NonSepaToApprovalComponent } from '../shared-components/non-sepa-to-approval/non-sepa-to-approval.component';\r\nimport { UploadGlobalizationManagementStateBarComponent } from '../shared-components/upload-globalization-management-state-bar/upload-globalization-management-state-bar.component';\r\nimport { DateTimeRangePickerComponent } from '../shared-components/date-time-range-picker/date-time-range-picker.component';\r\nimport { CompanyCardMinimalComponent } from '../shared-components/company-card-minimal/company-card-minimal.component';\r\nimport { UserCardMinimalComponent } from '../shared-components/user-card-minimal/user-card-minimal.component';\r\nimport { PercentFormatterPipe } from '../services/percent-formatter.pipe';\r\nimport { LoginService } from '../services/authentication/login.service';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\nFusionChartsModule.fcRoot(FusionCharts, charts, FusionTheme);\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tTranslateModule,\r\n\t\tFormsModule,\r\n\t\tNgbModule,\r\n\t\tRouterModule,\r\n\t\tReactiveFormsModule,\r\n\t\tFusionChartsModule,\r\n\t\tQRCodeModule,\r\n\t\tNgxSliderModule,\r\n\t],\r\n\tproviders: [\r\n\t\tTranslateService,\r\n\t\tLogService,\r\n\t\tLogPublishersService,\r\n\t\tNumberLocalePipe,\r\n\t\tCurrencyLocalePipe,\r\n\t\tDateLocalePipe,\r\n\t\tAuthGuard,\r\n\t\tUserLoggedInGuard,\r\n\t\t{ provide: NgbDatepickerI18n, useClass: DateRangePickerInternationalizationI18n },\r\n\t\tConfigurationsService,\r\n\t\tAuthSystemAdminOnlyGuard,\r\n\t\tCommonValidationsService,\r\n\t\tResourceMappingService,\r\n\t\tSessionStatusBroadcastService,\r\n\t\tAuthSystemAdminOrSupplierOnlyGuard,\r\n\t\tAuthNonReadOnlySystemAdminOrFinancierOnlyGuard,\r\n\t\tAuthGuardForUserOnly,\r\n\t\tSafeHtmlPipe,\r\n\t\tScreenWidthDetectorService,\r\n\t\tScreenWidthListenerService,\r\n\t\tFormValidatorService,\r\n\t\tMfaLoginService,\r\n\t\tExecutionPermissionValidatorService,\r\n\t\tLoginService,\r\n\t\tGuardService,\r\n\t],\r\n\tdeclarations: [\r\n\t\tNotificationListenerComponent,\r\n\t\tInterceptorMessageListenerComponent,\r\n\t\tOkCancelModalComponent,\r\n\t\tConfirmDialogModalComponent,\r\n\t\tInformationModalComponent,\r\n\t\tLegalAcceptanceModalComponent,\r\n\t\tSupplierAdvancePaymentActivationComponent,\r\n\t\tPaginationComponent,\r\n\t\tErrorListComponent,\r\n\t\tDateRangePickerComponent,\r\n\t\tCompanyCardComponent,\r\n\t\tNoResultsComponent,\r\n\t\tRequestIndicatorComponent,\r\n\t\tChildComponentRequestIndicatorComponent,\r\n\t\tNumberLocalePipe,\r\n\t\tCurrencyLocalePipe,\r\n\t\tDateLocalePipe,\r\n\t\tDateTimeLocalePipe,\r\n\t\tCurrencyFormatterPipe,\r\n\t\tSucessSubmissionComponent,\r\n\t\tSafeHtmlPipe,\r\n\t\tDateTimePickerComponent,\r\n\t\tRecalculateCommissionsModalComponent,\r\n\t\tMfaSetUpOtpComponent,\r\n\t\tMfaSetUpOtpModalComponent,\r\n\t\tUploadDocStateBarComponent,\r\n\t\tUploadDocAmountsPerCurrencyComponent,\r\n\t\tNonSepaToApprovalComponent,\r\n\t\tUploadGlobalizationManagementStateBarComponent,\r\n\t\tDateTimeRangePickerComponent,\r\n\t\tCompanyCardMinimalComponent,\r\n\t\tUserCardMinimalComponent,\r\n\t\tPercentFormatterPipe\r\n\t],\r\n\texports: [\r\n\t\tFusionChartsModule,\r\n\t\tNotificationListenerComponent,\r\n\t\tInterceptorMessageListenerComponent,\r\n\t\tPaginationComponent,\r\n\t\tOkCancelModalComponent,\r\n\t\tConfirmDialogModalComponent,\r\n\t\tInformationModalComponent,\r\n\t\tLegalAcceptanceModalComponent,\r\n\t\tSupplierAdvancePaymentActivationComponent,\r\n\t\tDateRangePickerComponent,\r\n\t\tCompanyCardComponent,\r\n\t\tNoResultsComponent,\r\n\t\tRequestIndicatorComponent,\r\n\t\tChildComponentRequestIndicatorComponent,\r\n\t\tErrorListComponent,\r\n\t\tNumberLocalePipe,\r\n\t\tCurrencyLocalePipe,\r\n\t\tDateLocalePipe,\r\n\t\tDateTimeLocalePipe,\r\n\t\tCurrencyFormatterPipe,\r\n\t\tSucessSubmissionComponent,\r\n\t\tSafeHtmlPipe,\r\n\t\tDateTimePickerComponent,\r\n\t\tRecalculateCommissionsModalComponent,\r\n\t\tMfaSetUpOtpComponent,\r\n\t\tMfaSetUpOtpModalComponent,\r\n\t\tUploadDocStateBarComponent,\r\n\t\tUploadDocAmountsPerCurrencyComponent,\r\n\t\tNonSepaToApprovalComponent,\r\n\t\tUploadGlobalizationManagementStateBarComponent,\r\n\t\tDateTimeRangePickerComponent,\r\n\t\tCompanyCardMinimalComponent,\r\n\t\tUserCardMinimalComponent,\r\n\t\tPercentFormatterPipe\r\n\t],\r\n})\r\nexport class CoreModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport { HashLocationStrategy } from '@angular/common';\r\n\r\n@Injectable()\r\nexport class CustomLocationStrategy extends HashLocationStrategy {\r\n\tprepareExternalUrl(internal: string): string {\r\n\t\tlet baseUrl = window['base-href'];\r\n\r\n\t\tif (internal.indexOf('/private/u/') < 0) {\r\n\t\t\treturn this.getBaseHref() + '#' + internal.replace('/private/', baseUrl);\r\n\t\t}\r\n\t\treturn this.getBaseHref() + '#' + internal;\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class AuthNonReadOnlySystemAdminOrFinancierOnlyGuard {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthentication();\r\n\r\n\t\tif (\r\n\t\t\t!!loggedUser &&\r\n\t\t\t!loggedUser.IsReadOnlyUser &&\r\n\t\t\t(loggedUser.IsSystemAdmin || (!loggedUser.IsSystemAdmin && loggedUser.IsFinancier && loggedUser.IsCompanyAdmin))\r\n\t\t) {\r\n\t\t\treturn observableOf(true);\r\n\t\t} else if (!!loggedUser) {\r\n\t\t\tthis.router.navigateByUrl('/private/payment-request/list');\r\n\r\n\t\t\treturn observableOf(true);\r\n\t\t} else {\r\n\t\t\t// if user is undefined or token has expired\r\n\t\t\t// reset app context and redirect to login page\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\t\treturn observableOf(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class AuthSystemAdminOnlyGuard {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthentication();\r\n\r\n\t\tif (!!loggedUser && loggedUser.IsSystemAdmin) {\r\n\t\t\treturn observableOf(true);\r\n\t\t} else {\r\n\t\t\t// if user is undefined or token has expired\r\n\t\t\t// reset app context and redirect to login page\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\t\treturn observableOf(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class AuthSystemAdminOrFinancierOnlyGuard {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthentication();\r\n\r\n\t\tif (!!loggedUser && (loggedUser.IsSystemAdmin || (!loggedUser.IsSystemAdmin && loggedUser.IsFinancier))) {\r\n\t\t\treturn observableOf(true);\r\n\t\t} else if (!!loggedUser) {\r\n\t\t\tthis.router.navigateByUrl('/private/home');\r\n\r\n\t\t\treturn observableOf(true);\r\n\t\t} else {\r\n\t\t\t// if user is undefined or token has expired\r\n\t\t\t// reset app context and redirect to login page\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\t\treturn observableOf(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class AuthSystemAdminOrSupplierOnlyGuard {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthentication();\r\n\r\n\t\tif (!!loggedUser && (loggedUser.IsSystemAdmin || (!loggedUser.IsSystemAdmin && loggedUser.IsSupplier))) {\r\n\t\t\treturn observableOf(true);\r\n\t\t} else if (!!loggedUser) {\r\n\t\t\tthis.router.navigateByUrl('/private/documents');\r\n\r\n\t\t\treturn observableOf(true);\r\n\t\t} else {\r\n\t\t\t// if user is undefined or token has expired\r\n\t\t\t// reset app context and redirect to login page\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\t\treturn observableOf(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class AuthGuardForUserOnly {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthentication();\r\n\r\n\t\tif (!!loggedUser) {\r\n\t\t\tconst routeUsername = route.params['username'];\r\n\r\n\t\t\tif (loggedUser.IsSystemAdmin || loggedUser.Username === routeUsername) {\r\n\t\t\t\treturn observableOf(true);\r\n\t\t\t} else {\r\n\t\t\t\tthis.router.navigateByUrl('/private/home');\r\n\t\t\t\treturn observableOf(true);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// if user is undefined or token has expired\r\n\t\t\t// reset app context and redirect to login page\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\t\treturn observableOf(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { ServerApiService } from '../server-api/server-api.service';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { of as observableOf, Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { IsMissingAcceptanceOfDocumentsResponse } from '../models/documentation/is-missing-acceptance-of-documents-response';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable()\r\nexport class AuthGuard {\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate guardService: GuardService\r\n\t) {}\r\n\r\n\t//https://angular-2-training-book.rangle.io/routing/route_guards\r\n\t//https://stackoverflow.com/a/50277611\r\n\tcanActivate(\r\n\t\troute: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthenticationByUserSessionIndex(state.url);\r\n\r\n\t\tif (!!loggedUser) {\r\n\t\t\tconst isMissingAcceptanceOfDocumentsServiceAll = this.serverApiService.isMissingAcceptanceOfDocuments(loggedUser?.Username!);\r\n\r\n\t\t\treturn isMissingAcceptanceOfDocumentsServiceAll.pipe(\r\n\t\t\t\tmap((operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tif (!!operationResult.Data && !!operationResult.Data.MissingDocuments && operationResult.Data.MissingDocuments.length > 0) {\r\n\t\t\t\t\t\t\tthis.router.navigateByUrl('/required-action/documentation/acceptance');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t// if user is undefined or token has expired\r\n\t\t// reset app context and redirect to login page\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\treturn observableOf(false);\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { GuardService } from '../services/guard/guard.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class UserLoggedInGuard {\r\n\tconstructor(private router: Router, private appContext: AppContextService, private guardService: GuardService) {}\r\n\r\n\tcanActivate(\r\n\t\tnext: ActivatedRouteSnapshot,\r\n\t\tstate: RouterStateSnapshot\r\n\t): Observable | Promise | boolean | UrlTree {\r\n\t\tconst loggedUser = this.guardService.checkPrivateAuthenticationByUserSessionIndex(state.url);\r\n\r\n\t\tif (!!loggedUser) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// if user is undefined or token has expired\r\n\t\t// reset app context and redirect to login page\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigateByUrl('/public/login');\r\n\r\n\t\treturn false;\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse, HttpResponse, HttpHeaders } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { tap } from 'rxjs/operators';\r\nimport { Router } from '@angular/router';\r\nimport { TranslateService } from '../services/translate/translate.service';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { InterceptorMessageService } from '../services/interceptor-message/interceptor-message.service';\r\nimport { NotificationService } from '../services/notification/notification.service';\r\nimport { ServiceCallStatus } from '../models/enums/service-call-status';\r\n\r\n@Injectable()\r\nexport class AuthInterceptor implements HttpInterceptor {\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate interceptorMessageService: InterceptorMessageService\r\n\t) {}\r\n\r\n\tintercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n\t\tlet myHeaders = new HttpHeaders();\r\n\r\n\t\tif (req.headers != null && req.headers.keys() != null && req.headers.keys().includes('Authorization')) {\r\n\t\t\tmyHeaders = myHeaders.set('Authorization', req.headers.get('Authorization')!);\r\n\t\t} else {\r\n\t\t\tif (this.appContext !== null && this.appContext.getToken() !== null) {\r\n\t\t\t\tmyHeaders = myHeaders.set('Authorization', 'Bearer ' + this.appContext.getToken());\r\n\t\t\t\t// console.log('Adding Authorization to header', req);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (req.headers != null && req.headers.keys() != null && req.headers.keys().includes('Content-Type')) {\r\n\t\t\tmyHeaders = myHeaders.set('Content-Type', req.headers.get('Content-Type')!);\r\n\t\t} else {\r\n\t\t\tmyHeaders = myHeaders.set('Content-Type', 'application/json');\r\n\t\t\t// console.log('Adding Content-Type to header', req);\r\n\t\t}\r\n\r\n\t\tif (req.headers != null && req.headers.keys() != null && req.headers.keys().includes('GoogleReCaptcha')) {\r\n\t\t\tmyHeaders = myHeaders.set('GoogleReCaptcha', req.headers.get('GoogleReCaptcha')!);\r\n\t\t}\r\n\r\n\t\tconst authReq = req.clone({\r\n\t\t\theaders: myHeaders,\r\n\t\t});\r\n\t\treturn next.handle(authReq).pipe(\r\n\t\t\ttap({\r\n\t\t\t\tnext: (event: HttpEvent) => {\r\n\t\t\t\t\tif (event instanceof HttpResponse) {\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (err: any) => {\r\n\t\t\t\t\tif (err instanceof HttpErrorResponse) {\r\n\t\t\t\t\t\tif (err.status === 403) {\r\n\t\t\t\t\t\t\tif (!!this.router.url && !this.router.url.startsWith('/public/login')) {\r\n\t\t\t\t\t\t\t\tthis.appContext.removeSession();\r\n\t\t\t\t\t\t\t\tthis.router.navigate(['/public/login'], {\r\n\t\t\t\t\t\t\t\t\tfragment: ServiceCallStatus.Forbidden,\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\tconst msgCouldNotLogin = this.translateService.translate('service.call.forbidden');\r\n\t\t\t\t\t\t\t\tthis.notificationService.addDanger(msgCouldNotLogin);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else if (err.status === 401) {\r\n\t\t\t\t\t\t\tlet confirmAction = () => {\r\n\t\t\t\t\t\t\t\tthis.appContext.removeSession();\r\n\t\t\t\t\t\t\t\tthis.router.navigate(['/public/login']);\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tlet cancelAction = () => {\r\n\t\t\t\t\t\t\t\tthis.appContext.removeSession();\r\n\t\t\t\t\t\t\t\tthis.router.navigate(['/public/login']);\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tlet warningAddedToInterceptor = this.interceptorMessageService.addWarning(\r\n\t\t\t\t\t\t\t\tthis.translateService.translate('http-auhorization-error.modalInformationTitle', 'client'),\r\n\t\t\t\t\t\t\t\tthis.translateService.translate('http-auhorization-error.modalSucessInformationContent', 'client'),\r\n\t\t\t\t\t\t\t\terr.status.toString(),\r\n\t\t\t\t\t\t\t\tthis.translateService.translate('http-auhorization-error.modalInformationConfirmActionText', 'client'),\r\n\t\t\t\t\t\t\t\t'',\r\n\t\t\t\t\t\t\t\tconfirmAction,\r\n\t\t\t\t\t\t\t\tcancelAction\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t// PR: If no observer is registered, use the notification service to alert about unauthorized access.\r\n\t\t\t\t\t\t\tif (!warningAddedToInterceptor) {\r\n\t\t\t\t\t\t\t\tlet unauthorizedMsg = this.translateService.translate('http-auhorization-error.modalSucessInformationContent', 'client');\r\n\t\t\t\t\t\t\t\tthis.appContext.removeSession();\r\n\t\t\t\t\t\t\t\tthis.router.navigate(['/public/login']);\r\n\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(unauthorizedMsg);\r\n\t\t\t\t\t\t\t\t}, 500);\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 {\r\n\tHttpHandler,\r\n\tHttpProgressEvent,\r\n\tHttpInterceptor,\r\n\tHttpSentEvent,\r\n\tHttpHeaderResponse,\r\n\tHttpUserEvent,\r\n\tHttpRequest,\r\n\tHttpResponse,\r\n} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class NoCacheHttpInterceptor implements HttpInterceptor {\r\n\tintercept(\r\n\t\treq: HttpRequest,\r\n\t\tnext: HttpHandler\r\n\t): Observable | HttpUserEvent> {\r\n\t\tconst nextReq = req.clone({\r\n\t\t\theaders: req.headers.set('Cache-Control', 'no-cache').set('Pragma', 'no-cache').set('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT'),\r\n\t\t});\r\n\r\n\t\treturn next.handle(nextReq);\r\n\t}\r\n}\r\n","export class ConfirmSetUpMfaOtpInput {\r\n public MfaToken: string;\r\n public OtpVerificationCode: string;\r\n public MfaDeviceName: string;\r\n}","export class SetUpMfaOtpInput {\r\n public MfaToken: string;\r\n}","export class RegisterUserInput {\r\n\tpublic Token: string;\r\n\tpublic TokenRelatedEmail: string;\r\n\tpublic Username: string;\r\n\tpublic UserCompanyId: string;\r\n\tpublic InvitingCompanyId: string;\r\n\tpublic Pawd: string;\r\n\tpublic RepeatePawd: string;\r\n\tpublic Email: string;\r\n\tpublic Name: string;\r\n\tpublic Telephone: string;\r\n\tpublic LanguageCode: string;\r\n\tpublic TimeZone: string;\r\n\tpublic TermsAndConditionsDocumentId: string;\r\n\tpublic TermsAndConditionsDocumentAcceptanceHash: string;\r\n\tpublic PersonalDataConsentDocumentAcceptanceHash: string;\r\n\tpublic PersonalDataConsentDocumentId: string;\r\n\tpublic InvitationLanguageCode: string;\r\n}\r\n","import { Company } from '../companies/company';\r\nimport { CompanyProfile } from '../enums/company-profile';\r\nimport { ProductType } from '../enums/product-type';\r\nimport { UserRole } from '../enums/user-role';\r\n\r\nexport class User {\r\n\tpublic Username?: string;\r\n\tpublic Email: string;\r\n\tpublic Name: string;\r\n\tpublic Telephone: string;\r\n\tpublic LanguageCode: string;\r\n\tpublic TimeZone: string;\r\n\tpublic CreationDate: string;\r\n\tpublic IsSystemAdmin: boolean;\r\n\tpublic IsCompanyAdmin: boolean;\r\n\tpublic IsApiIntegrationUser: boolean;\r\n\tpublic IsReadOnlyUser: boolean;\r\n\tpublic IsSupplier: boolean;\r\n\tpublic IsBuyer: boolean;\r\n\tpublic IsFinancier: boolean;\r\n\tpublic IsBuyerApprover: boolean;\r\n\r\n\tpublic Companies: Company[] = [];\r\n\tpublic CompanyProfiles: string[] = [];\r\n\r\n\tpublic HasActiveMfa?: boolean;\r\n\tpublic LastLoginDate?: string;\r\n\tpublic CreatedBy?: string;\r\n\r\n\t//https://stackoverflow.com/questions/42899570/method-in-typescript-class-give-error-is-not-a-function\r\n\t//https://stackoverflow.com/questions/12702548/constructor-overload-in-typescript\r\n\tconstructor(jsonSerializedUser?: any) {\r\n\t\tif (jsonSerializedUser) {\r\n\t\t\tlet userFromJson: User = JSON.parse(jsonSerializedUser) as User;\r\n\r\n\t\t\tif (userFromJson) {\r\n\t\t\t\tthis.Username = userFromJson.Username;\r\n\t\t\t\tthis.Email = userFromJson.Email;\r\n\t\t\t\tthis.Name = userFromJson.Name;\r\n\t\t\t\tthis.Telephone = userFromJson.Telephone;\r\n\t\t\t\tthis.LanguageCode = userFromJson.LanguageCode;\r\n\t\t\t\tthis.TimeZone = userFromJson.TimeZone;\r\n\t\t\t\tthis.CreationDate = userFromJson.CreationDate;\r\n\t\t\t\tthis.IsSystemAdmin = userFromJson.IsSystemAdmin;\r\n\t\t\t\tthis.IsCompanyAdmin = userFromJson.IsCompanyAdmin;\r\n\t\t\t\tthis.IsReadOnlyUser = userFromJson.IsReadOnlyUser;\r\n\t\t\t\tthis.IsApiIntegrationUser = userFromJson.IsApiIntegrationUser;\r\n\t\t\t\tthis.IsSupplier = userFromJson.IsSupplier;\r\n\t\t\t\tthis.IsBuyer = userFromJson.IsBuyer;\r\n\t\t\t\tthis.IsFinancier = userFromJson.IsFinancier;\r\n\t\t\t\tthis.IsBuyerApprover = userFromJson.IsBuyerApprover;\r\n\t\t\t\tthis.Companies = userFromJson.Companies;\r\n\t\t\t\tthis.CompanyProfiles = userFromJson.CompanyProfiles;\r\n\t\t\t\tthis.HasActiveMfa = userFromJson.HasActiveMfa;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic isInCompany(companyId: string): boolean {\r\n\t\tif (this.Companies) {\r\n\t\t\treturn !!this.Companies.find((c) => c.Id === companyId);\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsFactoringSupplier(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Supplier + ProductType.Factoring) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsFactoringBuyer(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Buyer + ProductType.Factoring) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsConfirmingSupplier(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Supplier + ProductType.Confirming) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsFactoringFinancier(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Financier + ProductType.Factoring) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsConfirmingFinancier(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Financier + ProductType.Confirming) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic get IsConfirmingBuyer(): boolean {\r\n\t\tif (this.CompanyProfiles) {\r\n\t\t\treturn this.CompanyProfiles.indexOf(CompanyProfile.Buyer + ProductType.Confirming) > -1;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic canSeeFactoringOptions(): boolean {\r\n\t\treturn (\r\n\t\t\t!!this && (this.IsSystemAdmin || (this.IsFactoringFinancier && this.IsFinancier) || (this.IsFactoringSupplier && this.IsSupplier))\r\n\t\t);\r\n\t}\r\n\r\n\tpublic canRequestFactoringAdvances(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || (this.IsFactoringSupplier && this.IsSupplier));\r\n\t}\r\n\r\n\tpublic canSeeConfirmingOptions(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || this.IsConfirmingFinancier || this.IsConfirmingBuyer || this.IsConfirmingSupplier);\r\n\t}\r\n\r\n\tpublic canRequestConfirmingFunding(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || this.IsConfirmingFinancier || this.IsConfirmingSupplier);\r\n\t}\r\n\r\n\tpublic canSeeContractsOptions(): boolean {\r\n\t\treturn (\r\n\t\t\t!!this &&\r\n\t\t\t(this.IsSystemAdmin || this.IsFinancier || (this.IsConfirmingBuyer && this.IsBuyer) || (this.IsFactoringSupplier && this.IsSupplier))\r\n\t\t);\r\n\t}\r\n\r\n\tpublic canSeeFactoringContractsData(): boolean {\r\n\t\treturn (\r\n\t\t\t!!this && (this.IsSystemAdmin || (this.IsFactoringFinancier && this.IsFinancier) || (this.IsFactoringSupplier && this.IsSupplier))\r\n\t\t);\r\n\t}\r\n\r\n\tpublic canSeeConfirmingContractsData(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || (this.IsConfirmingFinancier && this.IsFinancier) || (this.IsConfirmingBuyer && this.IsBuyer));\r\n\t}\r\n\r\n\tpublic canSeeReportingOption(): boolean {\r\n\t\treturn !!this && this.IsSystemAdmin;\r\n\t}\r\n\r\n\tpublic canSeeNetworkOptions(): boolean {\r\n\t\treturn !!this;\r\n\t}\r\n\r\n\tpublic canSeeAdminOptions(): boolean {\r\n\t\treturn !!this && this.IsSystemAdmin;\r\n\t}\r\n\r\n\tpublic canSeeFinancierMenuOption(): boolean {\r\n\t\treturn !!this && (this.IsBuyer || this.IsSystemAdmin);\r\n\t}\r\n\r\n\tpublic canSeeDocumentsMenuOption(): boolean {\r\n\t\treturn !!this && (this.IsSupplier || this.IsBuyer || this.IsFinancier || this.IsSystemAdmin);\r\n\t}\r\n\r\n\tpublic canSeeUploadsMenuOption(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || this.IsBuyer);\r\n\t}\r\n\r\n\tpublic canSeeMonitorMenuEntranceOption(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || this.IsFinancier);\r\n\t}\r\n\r\n\tpublic canSeeNonReadOnlyAdminOptions(): boolean {\r\n\t\treturn this.canSeeAdminOptions() && !this.IsReadOnlyUser;\r\n\t}\r\n\r\n\tpublic canUploadDocumentsForConfirming(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || (this.IsBuyer && this.IsCompanyAdmin));\r\n\t}\r\n\r\n\tpublic canUploadDocumentsForFactoring(): boolean {\r\n\t\treturn !!this && (this.IsSystemAdmin || (this.IsSupplier && this.IsCompanyAdmin && this.IsFactoringSupplier));\r\n\t}\r\n\r\n\tpublic rolesAsCodes(): string[] {\r\n\t\tlet roles: string[] = [];\r\n\r\n\t\tif (this.IsSystemAdmin) roles.push(UserRole.SystemAdmin);\r\n\r\n\t\tif (this.IsCompanyAdmin) roles.push(UserRole.CompanyAdmin);\r\n\r\n\t\tif (this.IsFinancier) roles.push(UserRole.Financier);\r\n\r\n\t\tif (this.IsBuyer) roles.push(UserRole.Buyer);\r\n\r\n\t\tif (this.IsSupplier) roles.push(UserRole.Supplier);\r\n\r\n\t\tif (this.IsApiIntegrationUser) roles.push(UserRole.ApiIntegrationUser);\r\n\r\n\t\tif (this.IsReadOnlyUser) roles.push(UserRole.ReadOnlyUser);\r\n\r\n\t\tif (this.IsBuyerApprover) roles.push(UserRole.BuyerApprover);\r\n\r\n\t\treturn roles;\r\n\t}\r\n}\r\n","export enum BroadcastMessageType {\r\n\tSessionTimmerExtended = 'SessionTimmerExtended',\r\n\tSessionTimmerExpired = 'SessionTimmerExpired',\r\n\tSessionTimmerNotExtended = 'SessionTimmerNotExtended',\r\n\tSessionTimmerNotExtendedDueTokenRefreshError = 'SessionTimmerNotExtendedDueTokenRefreshError',\r\n\tSessionKilled = 'SessionKilled',\r\n\tSessionProfileSwitched = 'SessionProfileSwitched',\r\n}\r\n","export class SessionStatusBroadcastMessagePayload {\r\n\tpublic Username: string;\r\n\r\n\tconstructor(username: string) {\r\n\t\tthis.Username = username;\r\n\t}\r\n\r\n\tpublic AsJson(): string {\r\n\t\tconst messagePayload = { Username: this.Username };\r\n\t\tconst messagePayloadInJson = JSON.stringify(messagePayload);\r\n\r\n\t\treturn messagePayloadInJson;\r\n\t}\r\n}\r\n","export class VerticalBarChart {\r\n\tpublic View: any[];\r\n\tpublic ShowLabels: boolean;\r\n\tpublic ShowLegend: boolean;\r\n\tpublic LegendTitle: string;\r\n\tpublic ShowDataLabel: boolean;\r\n\tpublic ShowYAxis: boolean;\r\n\tpublic ShowXAxis: boolean;\r\n\tpublic ShowXAxisLabel: boolean;\r\n\tpublic ShowYAxisLabel: boolean;\r\n\tpublic XAxisLabel: string;\r\n\tpublic YAxisLabel: string;\r\n\tpublic Doughnut: boolean;\r\n\tpublic ColorScheme: object;\r\n\tpublic Results: object[];\r\n}\r\n","import { SearchFilter } from \"../common/search-filter\";\r\n\r\nexport class CommissionsSearchCriteria extends SearchFilter {\r\n\tpublic BuyerIdList: string[];\r\n\tpublic SupplierIdList: string[];\r\n\tpublic DocumentNumber: string;\r\n\tpublic ContractNumber: string;\r\n\tpublic CommissionTypesList: string[];\r\n\tpublic OperationTypesList: string[];\r\n\tpublic CreatedOnDateStart: Date | null;\r\n\tpublic CreatedOnDateEnd: Date | null;\r\n\tpublic CommissionDueDateStart: Date | null;\r\n\tpublic CommissionDueDateEnd: Date | null;\r\n\tpublic RequestNumber: string | null;\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Environment } from './environment';\r\nimport { GoogleAnalytics } from './google-analytics';\r\n\r\nexport class InitFileModel {\r\n\tproduction: boolean;\r\n\tshowLableId: boolean;\r\n\tgoogleAnalytics: GoogleAnalytics;\r\n\tstartupApiEnvironment: Environment;\r\n}\r\n\r\nexport let APP_CONFIG = new InjectionToken('APP_CONFIG');\r\n","export class Pagination {\r\n\tpublic numberOfRecordsFound: number = -1;\r\n\tpublic currentPageInClient = 1;\r\n\tpublic previousPageInClient = -1;\r\n\tpublic numberOfRecordsPerPage = 20; // default\r\n\tpublic numberOfRecordsInClient = 0;\r\n\r\n\tconstructor() {}\r\n\r\n\tget canShowNavigateFirst(): boolean {\r\n\t\treturn this.startRecord > 1;\r\n\t}\r\n\tget canShowNavigatePrevious(): boolean {\r\n\t\treturn this.startRecord > 1;\r\n\t}\r\n\tget canShowNavigateNext(): boolean {\r\n\t\treturn this.endRecord < this.numberOfRecordsFound;\r\n\t}\r\n\tget canShowNavigateLast(): boolean {\r\n\t\treturn this.endRecord < this.numberOfRecordsFound;\r\n\t}\r\n\tget canShowPaginationLabelsFromToOf(): boolean {\r\n\t\treturn this.numberOfRecordsFound > this.numberOfRecordsInClient;\r\n\t}\r\n\tget moreThenOneRecordFound(): boolean {\r\n\t\treturn this.numberOfRecordsFound > 1;\r\n\t}\r\n\tget oneRecordFound(): boolean {\r\n\t\treturn this.numberOfRecordsFound === 1;\r\n\t}\r\n\tget startRecord(): number {\r\n\t\tlet startRecord = (this.currentPageInClient - 1) * this.numberOfRecordsPerPage + 1;\r\n\t\t//console.log('startRecord: ' + startRecord+ ', numberOfRecordsPerPage: ', this.numberOfRecordsPerPage);\r\n\t\treturn startRecord;\r\n\t}\r\n\tget endRecord(): number {\r\n\t\tlet endRecord = this.startRecord + this.numberOfRecordsInClient - 1;\r\n\t\t//console.log('endRecord: ' + endRecord+ ', numberOfRecordsInClient: ', this.numberOfRecordsInClient);\r\n\t\treturn endRecord;\r\n\t}\r\n\tget lastPage(): number {\r\n\t\tlet lastPage = Math.ceil(this.numberOfRecordsFound / this.numberOfRecordsPerPage);\r\n\t\t//console.log('lastPage: ' + lastPage + ', numberOfRecordsFound: ', this.numberOfRecordsFound);\r\n\t\treturn lastPage;\r\n\t}\r\n\r\n\tsetNumberOfRecordsPerPage(numberOfRecordsPerPage: number) {\r\n\t\tthis.numberOfRecordsPerPage = numberOfRecordsPerPage;\r\n\t}\r\n\r\n\tsetNumberOfRecordsReceived(numberOfRecordsReceived: number) {\r\n\t\tthis.numberOfRecordsInClient = numberOfRecordsReceived;\r\n\t}\r\n\tsetNumberOfTotalCountRecords(totalRecords: number) {\r\n\t\tthis.numberOfRecordsFound = totalRecords;\r\n\t}\r\n\tsetPageNumber(pageNumber: number) {\r\n\t\tthis.currentPageInClient = pageNumber;\r\n\t}\r\n}\r\n","export class SearchFilter {\r\n\tpublic RestrictionCriteria: any;\r\n\tpublic OrderBy: string;\r\n\tpublic OrderDescending: boolean = true;\r\n\tpublic PageNumber: number;\r\n\tpublic RowsPerPage: number;\r\n}\r\n","import { SearchFilter } from '../common/search-filter';\r\nimport { CompanyUniverseSearch } from '../enums/company-universe-search';\r\n\r\nexport class CompanySearchCriteria extends SearchFilter {\r\n\tpublic Name: string;\r\n\tpublic VatNumber: string;\r\n\tpublic CountryCode: string;\r\n\tpublic OnlyFinanciers: boolean;\r\n\tpublic CompanyUniverseSearch: CompanyUniverseSearch;\r\n}\r\n","import { CompanyLogo } from './company-logo';\r\nimport { ConfirmingContract } from '../contracts/confirming/confirming-contract';\r\nimport { PublicCompany } from './public-company';\r\n\r\nexport class Company {\r\n\tpublic Id: string | null;\r\n\tpublic Name: string;\r\n\tpublic VatNumber: string;\r\n\tpublic CountryCode: string;\r\n\tpublic LanguageCode: string;\r\n\tpublic TimeZone: string;\r\n\tpublic AddressLine1: string;\r\n\tpublic AddressLine2: string;\r\n\tpublic AddressLine3: string;\r\n\tpublic ZipCode: string;\r\n\tpublic City: string;\r\n\tpublic ActivityCodeList: string;\r\n\tpublic ActivityCode: string;\r\n\tpublic DateOfBirth: Date;\r\n\tpublic IsFinancier: boolean;\r\n\tpublic ShareCapital: number;\r\n\r\n\tpublic CompanyLogo: CompanyLogo;\r\n\tpublic ConfirmingContracts: ConfirmingContract[] = [];\r\n\r\n\tstatic FromPublicCompany(publicCompany: PublicCompany): Company {\r\n\t\tif (!publicCompany) {\r\n\t\t\tthrow new Error('PublicCompany is required.');\r\n\t\t}\r\n\t\tconst company: Company = new Company();\r\n\t\tcompany.Id = publicCompany.Id;\r\n\t\tcompany.Name = publicCompany.Name;\r\n\t\tcompany.CountryCode = publicCompany.CountryCode;\r\n\t\tcompany.VatNumber = publicCompany.VatNumber;\r\n\t\tcompany.LanguageCode = publicCompany.LanguageCode;\r\n\t\tcompany.TimeZone = publicCompany.TimeZone;\r\n\r\n\t\treturn company;\r\n\t}\r\n}\r\n","export class PublicCompany {\r\n\tpublic Id: string;\r\n\tpublic Name: string;\r\n\tpublic VatNumber: string;\r\n\tpublic CountryCode: string;\r\n\tpublic LanguageCode: string;\r\n\tpublic TimeZone: string;\r\n}\r\n","import { SearchFilter } from \"../../common/search-filter\";\r\n\r\nexport class ConfirmingConnectionsSearchCriteria extends SearchFilter {\r\n\tpublic ExternalId: string;\r\n\tpublic SupplierIdList: string[];\r\n\tpublic ContractIdList: string[];\r\n\tpublic FinancierVatNumber: string;\r\n\tpublic SupplierVatNumber: string;\r\n\tpublic FinancierName: string;\r\n\tpublic SupplierName: string;\r\n\tpublic ConnectionStateList: string[];\r\n\tpublic ContractStateList: string[];\r\n\tpublic Currency: string;\r\n}\r\n","import { SearchFilter } from \"../../common/search-filter\";\r\n\r\nexport class ConfirmingContractsSearchCriteria extends SearchFilter {\r\n\tpublic StartDateStart: Date | null;\r\n\tpublic StartDateEnd: Date | null;\r\n\tpublic ProductCodeList: string[];\r\n\tpublic ExternalId: string;\r\n\tpublic BuyerIdList: string[];\r\n\tpublic FinancierIdList: string[];\r\n\tpublic FinancierVatNumber: string;\r\n\tpublic BuyerVatNumber: string;\r\n\tpublic FinancierName: string;\r\n\tpublic BuyerName: string;\r\n\tpublic EndDateStart: Date | null;\r\n\tpublic EndDateEnd: Date | null;\r\n\tpublic ContractStateList: string[];\r\n\tpublic Currency: string;\r\n}\r\n","import { SearchFilter } from \"../../common/search-filter\";\r\n\r\nexport class FactoringConnectionsSearchCriteria extends SearchFilter {\r\n\tpublic ExternalId: string;\r\n\tpublic BuyerIdList: string[];\r\n\tpublic ContractIdList: string[];\r\n\tpublic FinancierVatNumber: string;\r\n\tpublic BuyerVatNumber: string;\r\n\tpublic FinancierName: string;\r\n\tpublic BuyerName: string;\r\n\tpublic ConnectionStateList: string[];\r\n\tpublic ContractStateList: string[];\r\n}\r\n","import { SearchFilter } from \"../../common/search-filter\";\r\n\r\nexport class FactoringContractsSearchCriteria extends SearchFilter {\r\n\tpublic StartDateStart: Date | null;\r\n\tpublic StartDateEnd: Date | null;\r\n\tpublic ProductCodeList: string[];\r\n\tpublic ExternalId: string;\r\n\tpublic SupplierIdList: string[];\r\n\tpublic FinancierIdList: string[];\r\n\tpublic FinancierVatNumber: string;\r\n\tpublic SupplierVatNumber: string;\r\n\tpublic FinancierName: string;\r\n\tpublic SupplierName: string;\r\n\tpublic EndDateStart: Date | null;\r\n\tpublic EndDateEnd: Date | null;\r\n\tpublic ContractStateList: string[];\r\n}\r\n","export enum DocumentExportDetailError {\r\n\tROW_COUNT = 'ROW_COUNT',\r\n\tALLOWED_LIMIT = 'ALLOWED_LIMIT',\r\n}\r\n","import { SearchFilter } from \"../common/search-filter\";\r\n\r\nexport class DocumentSearchCriteria extends SearchFilter {\r\n\tpublic CreationDateStart: Date | null;\r\n\tpublic CreationDateEnd: Date | null;\r\n\tpublic TypeList: string[];\r\n\tpublic Number: string;\r\n\tpublic TotalAmountStart: number;\r\n\tpublic TotalAmountEnd: number;\r\n\tpublic CurrencyList: string[];\r\n\tpublic IssueDateStart: Date;\r\n\tpublic IssueDateEnd: Date;\r\n\tpublic DueDateStart: Date;\r\n\tpublic DueDateEnd: Date;\r\n\tpublic BuyerIdList: string[];\r\n\tpublic SupplierIdList: string[];\r\n\tpublic VisibleCompanies: string[];\r\n\tpublic BuyerPaymentDateStart: Date | null;\r\n\tpublic BuyerPaymentDateEnd: Date | null;\r\n\tpublic ApprovalStateList: string[];\r\n\tpublic PaymentDateStart: Date;\r\n\tpublic PaymentDateEnd: Date;\r\n\tpublic PaymentStateList: string[];\r\n\tpublic UpdatedSince: Date;\r\n\tpublic AdvancedState: string[];\r\n\tpublic FileId: string | null;\r\n}\r\n","export enum InvitationStatus {\r\n\tProcessed = 'Processed',\r\n\tAccepted = 'Accepted',\r\n\tRefused = 'Refused',\r\n\tExpired = 'Expired',\r\n}\r\n","export enum CompanyCardType {\r\n\tConnectedCompanyCard = 'ConnectedCompanyCard',\r\n\tNetworkCompanyCard = 'NetworkCompanyCard',\r\n\tMyCompanyCard = 'MyCompanyCard',\r\n}\r\n","export enum CompanyProfile {\r\n\tBuyer = 'Buyer',\r\n\tSupplier = 'Supplier',\r\n\tFinancier = 'Financier',\r\n}\r\n","export enum CompanyUniverseSearch {\r\n\tMyConnections = 'MyConnections',\r\n\tNetwork = 'Network',\r\n\tMyCompanies = 'MyCompanies',\r\n}\r\n","export enum AutomaticFundingRequestTrigger {\r\n\tBuyerRequest = 'BuyerRequest',\r\n\tAutomatic = 'Automatic',\r\n}\r\n","export enum AutomaticFundingRequestFlow {\r\n\tRequireSupplierAuthorization = 'RequireSupplierAuthorization',\r\n\tMandatoryByTheBuyer = 'MandatoryByTheBuyer',\r\n}\r\n","export enum DocumentInvolvedEntityType {\r\n\tFunding = 'Funding',\r\n\tPayment = 'Payment',\r\n\tCreditAssignment = 'CreditAssignment',\r\n}\r\n","/**\r\n * Represents a currency using the ISO 4217 currency code (e.g. 'EUR' for Euro).\r\n */\r\nexport enum CurrencyCode {\r\n\tEuro = 'EUR',\r\n}\r\n","export enum DocumentApprovalState {\r\n\tPendingBuyerApproval = 'PendingBuyerApproval',\r\n\tNotApprove = 'NotApprove',\r\n\tApproved = 'Approved',\r\n\tRejected = 'Rejected',\r\n\tRegistered = 'Registered',\r\n}\r\n","export enum DocumentExternalSource {\r\n\tSAPHETY_DOCSERVER_EIF = 'SAPHETY.DOCSERVER.EIF',\r\n\tSAPHETY_EBP_EIF = 'SAPHETY.EBP.EIF',\r\n\tFILE_UPLOAD = 'FILE_UPLOAD',\r\n\tAPI_EXTERNAL_FILE = 'API_EXTERNAL_FILE',\r\n\tAPI_EXTERNAL_SOURCE = 'API_EXTERNAL_SOURCE',\r\n\tEXTERNAL_ETL_FILE_INTEGRATION = 'EXTERNAL_ETL_FILE_INTEGRATION',\r\n\tSAPHETY_DOC_ARCHIVE_EIF = 'SAPHETY.DOC_ARCHIVE.EIF',\r\n}\r\n","export enum DocumentPaymentState {\r\n\tPaid = 'Paid',\r\n\tUnpaid = 'Unpaid',\r\n\tPaymentPending = 'PaymentPending',\r\n\tFundingPending = 'FundingPending',\r\n\tLockForTransaction = 'LockForTransaction',\r\n\tPaidExternally = 'PaidExternally',\r\n\tProcessedExternally = 'ProcessedExternally',\r\n\tPaymentOrdered = 'PaymentOrdered',\r\n\tAdvanced = 'Advanced',\r\n}\r\n","export enum DocumentUploadContractType {\r\n Confirming = 'Confirming',\r\n Factoring = 'Factoring'\r\n}\r\n\r\nexport class DocumentUploadContractTypeExtensions {\r\n static ToRouteParam(enumValue: DocumentUploadContractType): string {\r\n switch (enumValue) {\r\n case DocumentUploadContractType.Confirming: return 'c';\r\n case DocumentUploadContractType.Factoring: return 'f';\r\n default: return '';\r\n }\r\n }\r\n static FromRouteParam(routeParam: string): DocumentUploadContractType | null {\r\n switch (routeParam) {\r\n case 'c': return DocumentUploadContractType.Confirming;\r\n case 'f': return DocumentUploadContractType.Factoring;\r\n default: return null;\r\n }\r\n }\r\n}","export enum LegalDocumentType {\r\n\tPersonalDataConsent = 'PersonalDataConsent',\r\n\tCompanyTermsConditions = 'CompanyTermsConditions',\r\n}\r\n","export enum ErrorDetailCode {\r\n\tCOMPANY_ID = 'COMPANY_ID',\r\n\tCOMPANY_VAT_NUMBER = 'COMPANY_VAT_NUMBER',\r\n\tCOMPANY_VAT_COUNTRYCODE = 'COMPANY_VAT_COUNTRYCODE',\r\n\tCONFIRMING_CONTRACT_ID = 'CONFIRMING_CONTRACT_ID',\r\n\tCONFIRMING_CONTRACT_NUMBER = 'CONFIRMING_CONTRACT_NUMBER',\r\n\tFACTORING_CONTRACT_ID = 'FACTORING_CONTRACT_ID',\r\n\tFACTORING_CONTRACT_NUMBER = 'FACTORING_CONTRACT_NUMBER',\r\n\tBUYER_ID = 'BUYER_ID',\r\n\tBUYER_VAT_NUMBER = 'BUYER_VAT_NUMBER',\r\n\tBUYER_VAT_COUNTRYCODE = 'BUYER_VAT_COUNTRYCODE',\r\n\tSUPPLIER_ID = 'SUPPLIER_ID',\r\n\tSUPPLIER_VAT_NUMBER = 'SUPPLIER_VAT_NUMBER',\r\n\tSUPPLIER_VAT_COUNTRYCODE = 'SUPPLIER_VAT_COUNTRYCODE',\r\n\tUNAUTHORIZED = 'UNAUTHORIZED',\r\n\tFACTORING_CONNECTION_STATE = 'FACTORING_CONNECTION_STATE',\r\n\tCONFIRMING_CONNECTION_STATE = 'CONFIRMING_CONNECTION_STATE',\r\n\tFACTORING_CONTRACT_STATE = 'FACTORING_CONTRACT_STATE',\r\n\tCONFIRMING_CONTRACT_STATE = 'CONFIRMING_CONTRACT_STATE',\r\n\tNUMBER_OF_DAYS = 'NUMBER_OF_DAYS',\r\n\tDOCUMENT_ID = 'DOCUMENT_ID',\r\n\tDOCUMENT_NUMBER = 'DOCUMENT_NUMBER',\r\n\tBUYER = 'BUYER',\r\n\tSUPPLIER = 'SUPPLIER',\r\n\tINVALID_OR_EXPIRED_OTP_VERIFICATION_CODE = 'INVALID_OR_EXPIRED_OTP_VERIFICATION_CODE',\r\n\tREQUIRES_AT_LEAST_ONE_MFA_AUTHENTICATOR = 'REQUIRES_AT_LEAST_ONE_MFA_AUTHENTICATOR',\r\n\tMFA_LOGIN_REQUIRED = 'MFA_LOGIN_REQUIRED',\r\n\tINVALID_TOKEN = 'INVALID_TOKEN',\r\n}\r\n","export enum MfaType {\r\n OTP = 'Otp',\r\n EMAIL = 'Email',\r\n}","export enum ProductType {\r\n\tFactoring = 'Factoring',\r\n\tConfirming = 'Confirming',\r\n}\r\n","export enum ServerErrors {\r\n\tNotFound = 'NOT_FOUND',\r\n\tCompanyNotFound = 'COMPANY_NOT_FOUND',\r\n\tConnectionNotFound = 'CONNECTION_NOT_FOUND',\r\n\tBuyerSupplierRelationNotFound = 'BUYER_SUPPLIER_RELATION_NOT_FOUND',\r\n\tUnableRemoveUserRoleCompanyAdminRemainingCompanyWithoutOne = 'UNABLE_REMOVE_USER_COMPANYADMIN_ROLE_REMAING_COMPANY_WITHOUT_ONE',\r\n\tFieldIsRequired = 'FIELD_IS_REQUIRED',\r\n\tUnauthorized = 'UNAUTHORIZED',\r\n\tInvalidEmail = 'INVALID_EMAIL',\r\n\tPropertyMapping = 'PROPERTY_MAPPING',\r\n\tParsingError = 'PARSING_ERROR',\r\n\tInvalidCode = 'INVALID_CODE',\r\n\tUnableToValidateDocumentAmountFormatCurrencyNotFound = 'UNABLE_TO_VALIDATE_DOCUMENT_AMOUNT_FORMAT_CURRENCY_NOT_FOUND',\r\n\tInvalidDocumentNumber = 'INVALID_DOCUMENT_NUMBER',\r\n\tInvalidIban = 'INVALID_IBAN',\r\n\tInvalidVatFormat = 'INVALID_VAT_FORMAT',\r\n\tInvalidVat = 'INVALID_VAT',\r\n\tRecordAlreadyCreated = 'RECORD_ALREADY_CREATED',\r\n\tParsingGenericError = 'PARSING_GENERIC_ERROR',\r\n\r\n\tUnableToProcessData = 'UNABLE_TO_PROCESS_DATA',\r\n\tUnableToValidateData = 'UNABLE_TO_VALIDATE_DATA',\r\n\tInvalidDataInFile = 'INVALID_DATA_IN_FILE',\r\n\tInvalidUploadBase64ConversionError = 'INVALID_UPLOAD_BASE64_CONVERSION_ERROR',\r\n\tInvalidFileColumnCount = 'INVALID_FILE_COLUMN_COUNT',\r\n\tFileLineReadingError = 'FILE_LINE_READING_ERROR',\r\n\tFileEmptyOrInvalidContent = 'FILE_EMPTY_OR_INVALID_CONTENT',\r\n\tFileInvalidContent = 'FILE_INVALID_CONTENT',\r\n\r\n\tValueToAdvanceExceedsAvailableConnectionAmount = 'VALUE_TO_ADVANCE_EXCEEDS_AVAILABLE_CONNECTION_AMOUNT',\r\n\tValueToAdvanceExceedsAvailableConnectionAmountSupplier = 'VALUE_TO_ADVANCE_EXCEEDS_AVAILABLE_CONNECTION_AMOUNT_SUPPLIER',\r\n\tValueToAdvanceExceedsAvailableContractAmount = 'VALUE_TO_ADVANCE_EXCEEDS_AVAILABLE_CONTRACT_AMOUNT',\r\n\tValueToAdvanceExceedsAvailableContractAmountSupplier = 'VALUE_TO_ADVANCE_EXCEEDS_AVAILABLE_CONTRACT_AMOUNT_SUPPLIER',\r\n\tValueToPayExceedsAvailableContractAmount = 'VALUE_TO_PAY_EXCEEDS_AVAILABLE_CONTRACT_AMOUNT',\r\n\tValueToPayExceedsAvailableContractAmountSupplier = 'VALUE_TO_PAY_EXCEEDS_AVAILABLE_CONTRACT_AMOUNT_SUPPLIER',\r\n\tValueToAdvanceResultsInInvalidCaptiveAmount = 'VALUE_TO_ADVANCE_RESULTS_IN_INVALID_CAPTIVE_AMOUNT',\r\n\tValueToAdvanceResultsInInvalidCaptiveAmountSupplier = 'VALUE_TO_ADVANCE_RESULTS_IN_INVALID_CAPTIVE_AMOUNT_SUPPLIER',\r\n\tValueToPayResultsInInvalidCaptiveAmount = 'VALUE_TO_PAY_RESULTS_IN_INVALID_CAPTIVE_AMOUNT',\r\n\tValueToPayResultsInInvalidCaptiveAmountSupplier = 'VALUE_TO_PAY_RESULTS_IN_INVALID_CAPTIVE_AMOUNT_SUPPLIER',\r\n\tInternalError = 'INTERNAL_ERROR',\r\n\tConnectionExistsWithAcceptedInvitation = 'CONNECTION_EXISTS_WITH_ACCEPTED_INVITATION',\r\n\r\n\tCurrencyNotAccepted = 'CURRENCY_NOT_ACCEPTED',\r\n\tInvalidDateTime = 'INVALID_DATE_TIME',\r\n\tFutureDateTimeNotAllowed = 'FUTURE_DATE_TIME_NOT_ALLOWED',\r\n\tUploadNotAllowedForBuyerSupplierRelation = 'UPLOAD_NOT_ALLOWED_FOR_BUYER_SUPPLIER_RELATION',\r\n\tUsernameCannotRegisterDocument = 'USERNAME_CANNOT_REGISTER_DOCUMENT',\r\n\tDocumentBuyerPaymentDateLessThanIssueDate = 'DOCUMENT_BUYER_PAYMENT_DATE_LESS_THAN_ISSUE_DATE',\r\n\tDocumentDueDateLessThanIssueDate = 'DOCUMENT_DUE_DATE_LESS_THAN_ISSUE_DATE',\r\n\tCreditNoteIssuedByBuyerNotAllowed = 'CREDIT_NOTE_ISSUED_BY_BUYER_NOT_ALLOWED',\r\n\tInvoiceIssuedByBuyerNotAllowed = 'INVOICE_ISSUED_BY_BUYER_NOT_ALLOWED',\r\n\tConnectionNotFoundForCurrencyError = 'CONNECTION_NOT_FOUND_FOR_CURRENCY',\r\n\tInvalidVatCountry = 'INVALID_VAT_COUNTRY',\r\n\r\n\tFinancierSystemErrorUnableUpdateIbanSwift = 'FINANCIER_SYSTEM_ERROR_UNABLE_UPDATE_IBAN_SWIFT',\r\n\tFinancierSystemErrorUnableConfirmUpdateIbanSwift = 'FINANCIER_SYSTEM_ERROR_UNABLE_CONFIRM_UPDATE_IBAN_SWIFT',\r\n\tContractNotFound = 'CONTRACT_NOT_FOUND',\r\n\tConnectionStatePreventsIbanSwiftUpdate = 'CONNECTION_STATE_PREVENTS_IBAN_SWIFT_UPDATE',\r\n\tInvalidValue = 'INVALID_VALUE',\r\n\tInvalidAmount = 'INVALID_AMOUNT',\r\n\tRepeatedValue = 'REPEATED_VALUE',\r\n\tExceededDocsExportAllowedMaxRow = 'EXCEEDED_DOCS_EXPORT_ALLOWED_MAX_ROWS',\r\n\tInvalidAmountFormatDecimalPlacesNumber = 'INVALID_AMOUNT_FORMAT_DECIMAL_PLACES_NUMBER',\r\n\tNotFoundCompanyManagers = 'NOT_FOUND_COMPANY_MANAGERS',\r\n\tNotFoundCompanyManager = 'NOT_FOUND_COMPANY_MANAGER',\r\n\tMaxStringLenError = 'MAX_STRING_LEN_ERROR',\r\n\tDocumentNumberMaxStringLenError = 'DOCUMENT_NUMBER_MAX_LEN_ERROR',\r\n\tMinStringLenError = 'MIN_STRING_LEN_ERROR',\r\n\tNonPositiveAmount = 'NON_POSITIVE_AMOUNT',\r\n\tNotAllowedCountryCode = 'NOT_ALLOWED_COUNTRY_CODE',\r\n\tunsuccessfulDocumentLocking = 'UNSUCCESSFUL_DOCUMENT_LOCKING',\r\n\tupdateConnectionInvitationNotSentForEmail = 'UPDATE_CONNECTION_INVITATION_NOT_SENT_FOR_EMAIL',\r\n\tConnectionNotFoundForCurrency = 'CONNECTION_NOT_FOUND_FOR_CURRENCY',\r\n}\r\n","export enum ServiceCallStatus {\r\n Forbidden = 'forbidden'\r\n}","export enum UserRole {\r\n\tBuyer = 'Buyer',\r\n\tSupplier = 'Supplier',\r\n\tFinancier = 'Financier',\r\n\tSystemAdmin = 'SystemAdmin',\r\n\tCompanyAdmin = 'CompanyAdmin',\r\n\tBuyerApprover = 'BuyerApprover',\r\n\tApprover = 'Approver',\r\n\tApiIntegrationUser = 'ApiIntegrationUser',\r\n\tReadOnlyUser = 'ReadOnlyUser',\r\n}\r\n","import { PublicCompany } from '../companies/public-company';\r\n\r\nexport class PublicInviteCompanyForNetworkTicket {\r\n\tpublic Id: string;\r\n\tpublic IsExpired: boolean;\r\n\tpublic InvitationId: string;\r\n\tpublic Token: string;\r\n\tpublic InvitingCompanyId: string;\r\n\tpublic ExpirationDate: Date;\r\n\tpublic TokenUsed: boolean;\r\n\tpublic CompanyInviteType: string;\r\n\tpublic CreatedOn: Date;\r\n\tpublic CreatedBy: string;\r\n\tpublic InvitedCompanyName: string;\r\n\tpublic InvitedCompanyVatNumber: string;\r\n\tpublic InvitedCompanyCountryCode: string;\r\n\tpublic InvitedCompanyLanguageCode: string;\r\n\tpublic InvitedCompanyTimeZone: string;\r\n\tpublic InvitedEmail: string;\r\n\tpublic InvitedUserName?: string;\r\n\tpublic InvitedUserRole: string;\r\n\tpublic InvitingUsername?: string;\r\n\tpublic InvolvedContractId: string;\r\n\tpublic InvitedCompanyIBAN: string;\r\n\tpublic InvitedCompanySWIFT: string;\r\n\tpublic InvitingCompany: PublicCompany;\r\n\tpublic InvitationStatus: string;\r\n}\r\n","export class SepaSearchCriteria {\r\n\tCountryCode: string;\r\n\tIsSepa: boolean;\r\n}\r\n","import { ValueDetail } from './value-detail';\r\n\r\nexport class OperationError {\r\n\tpublic Code: string;\r\n\tpublic Field?: string | null;\r\n\tpublic Values: string[];\r\n\tpublic Details: ValueDetail[];\r\n\r\n\tconstructor() {\r\n\t\tthis.Values = [];\r\n\t\tthis.Details = [];\r\n\t}\r\n}\r\n","import { OperationError } from './operation-error';\r\n\r\nexport class OperationResult {\r\n\tpublic IsValid: boolean;\r\n\tpublic CorrelationId: string;\r\n\tpublic Errors: OperationError[];\r\n\tpublic Data: T;\r\n}\r\n","import { DocumentRecordValidation } from \"./document-record-validation-result\";\r\n\r\nexport class DocumentAmountCurrencyData {\r\n public Currency: string;\r\n public SumAmount: number;\r\n\r\n public static sumDocumentAmountsByCurrency(documents: DocumentRecordValidation[]): DocumentAmountCurrencyData[] {\r\n const grouped: any = {};\r\n documents.forEach((document) => {\r\n grouped[document.Currency] = (grouped[document.Currency] || 0) + (document.TotalAmountValueForDocumentType || 0);\r\n });\r\n\r\n\t\treturn Object.keys(grouped).map((key) => {\r\n\t\t\treturn {\r\n\t\t\t\tCurrency: key,\r\n\t\t\t\tSumAmount: grouped[key],\r\n\t\t\t};\r\n\t\t});\r\n }\r\n}","export enum DocumentUploadedRecordValidationStatus {\r\n\tValid = 'Valid',\r\n\tInvalid = 'Invalid',\r\n}","export enum ResourceDeleteValidationStatus{\r\n Valid = \"Valid\",\r\n Invalid = \"Invalid\"\r\n}","export enum ResourceValidationStatus{\r\n New = \"New\",\r\n Updated = \"Updated\",\r\n NotModified = \"NotModified\",\r\n Invalid = \"Invalid\"\r\n}","export enum SupplierUploadedRecordValidationStatus {\r\n\tValid = 'Valid',\r\n\tInvalid = 'Invalid',\r\n}\r\n","export enum UploadFileContentType {\r\n\tConfirmingDocuments_Type1_XLSX = 'ConfirmingDocuments_Type1_XLSX',\r\n\tConfirmingDocuments_Type2_CSV = 'ConfirmingDocuments_Type2_CSV',\r\n\tConfirmingSuppliers_Type1_XLSX = 'ConfirmingSuppliers_Type1_XLSX',\r\n\tFactoringCreditAssignmentDates = 'FactoringCreditAssignmentDates',\r\n\tFactoringDocuments_Type1_XLSX = 'FactoringDocuments_Type1_XLSX',\r\n}\r\n","import { Component, ViewChild, AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';\r\nimport { SearchCompaniesComponent } from '../companies/search-companies/search-companies.component';\r\nimport { CompanyUniverseSearch } from '../../models/enums/company-universe-search';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { User } from '../../models/User/user';\r\n\r\n@Component({\r\n\tselector: 'app-companies-lists',\r\n\ttemplateUrl: './companies-lists.component.html',\r\n\tstyleUrls: ['./companies-lists.component.css'],\r\n})\r\nexport class CompaniesListsComponent implements OnInit, AfterViewInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic isPerformingRequest: boolean = false;\r\n\r\n\tconstructor(private appContext: AppContextService, private cdRef: ChangeDetectorRef) {}\r\n\tngOnInit(): void {\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tthis.isResourceLoaded = false;\r\n\t\t\tif (!!this.loggedUser) {\r\n\t\t\t\tif (this.loggedUser.IsSystemAdmin) {\r\n\t\t\t\t\tthis.myNet = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.myComp = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.isResourceLoaded = true;\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n\r\n\tpublic myCompanyUniverseSearch: CompanyUniverseSearch = CompanyUniverseSearch.MyCompanies;\r\n\tpublic myConnectionsUniverseSearch: CompanyUniverseSearch = CompanyUniverseSearch.MyConnections;\r\n\tpublic networkUniverseSearch: CompanyUniverseSearch = CompanyUniverseSearch.Network;\r\n\tpublic isResourceLoaded: boolean;\r\n\tpublic myComp: boolean;\r\n\tpublic myCon: boolean;\r\n\tpublic myNet: boolean;\r\n\r\n\t@ViewChild('searchMyCompaniesComponent', { static: true }) searchMyCompaniesComponent: SearchCompaniesComponent;\r\n\t@ViewChild('searchConnectedCompaniesComponent', { static: true }) searchConnectedCompaniesComponent: SearchCompaniesComponent;\r\n\t@ViewChild('searchNetworkCompaniesComponent', { static: true }) searchNetworkCompaniesComponent: SearchCompaniesComponent;\r\n\r\n\tngAfterViewInit(): void {\r\n\t\tthis.cdRef.detectChanges();\r\n\t}\r\n\r\n\tpublic performSearchOnMyCompanies(page: number) {\r\n\t\tthis.isResourceLoaded = false;\r\n\t\tthis.searchMyCompaniesComponent.performSearch(page);\r\n\t\tthis.isResourceLoaded = true;\r\n\t\tthis.myComp = true;\r\n\t\tthis.myCon = false;\r\n\t\tthis.myNet = false;\r\n\t}\r\n\r\n\tpublic performSearchOnMyConnections(page: number) {\r\n\t\tthis.isResourceLoaded = false;\r\n\t\tthis.searchConnectedCompaniesComponent.performSearch(page);\r\n\t\tthis.isResourceLoaded = true;\r\n\t\tthis.myComp = false;\r\n\t\tthis.myCon = true;\r\n\t\tthis.myNet = false;\r\n\t}\r\n\r\n\tpublic performSearchOnNetwork(page: number) {\r\n\t\tthis.isResourceLoaded = false;\r\n\t\tthis.searchNetworkCompaniesComponent.performSearch(page);\r\n\t\tthis.isResourceLoaded = true;\r\n\t\tthis.myComp = false;\r\n\t\tthis.myCon = false;\r\n\t\tthis.myNet = true;\r\n\t}\r\n}\r\n","\r\n\r\n
\r\n\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
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{{ 'search-companies.pageTitle' | translate }}

\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
\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\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t
\r\n\t\t\r\n\t\t\t\r\n\t\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Company } from '../../../models/companies/company';\r\nimport { CompanyLogo } from '../../../models/companies/company-logo';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { User } from '../../../models/User/user';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { CodeDecodeValue } from '../../../models/common/code-decode-value';\r\nimport { TimeZoneValue } from '../../../models/common/time-zone-value';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { asyncScheduler, forkJoin, scheduled } from 'rxjs';\r\n\r\n@Component({\r\n\tselector: 'eif-company-details',\r\n\ttemplateUrl: './company-details.component.html',\r\n\tstyleUrls: ['./company-details.component.css'],\r\n})\r\nexport class CompanyDetailsComponent implements OnInit {\r\n\tpublic company: Company;\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tpublic appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate sanitizer: DomSanitizer,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst companyId = params['companyId'];\r\n\t\t\tif (companyId) {\r\n\t\t\t\tthis.getCompanyDetails(companyId);\r\n\t\t\t} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get companyId from route...');\r\n\t\t\t}\r\n\r\n\t\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tpublic get inThisCompany(): boolean {\r\n\t\tif (this.loggedUser?.Companies) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === this.company.Id);\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate getCompanyLogo(companyId: string) {\r\n\t\tconst serviceCall = this.serverApiService.getCompanyLogo(companyId);\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.company.CompanyLogo = operationResult.Data;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic sanitize(url: string) {\r\n\t\treturn this.sanitizer.bypassSecurityTrustUrl(url);\r\n\t}\r\n\r\n\tprivate getCompanyDetails(companyId: string) {\r\n\t\tconst serviceCallGetCompany = this.serverApiService.getCompany(companyId);\r\n\t\tconst serviceCallGetCompanyLogo = this.serverApiService.getCompanyLogo(companyId);\r\n\t\tconst observables = [scheduled(serviceCallGetCompany, asyncScheduler), scheduled(serviceCallGetCompanyLogo, asyncScheduler)];\r\n\t\tconst getAllRequests = forkJoin(observables);\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconst getCompanyOperationResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst getCompanyLogoOperationResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!getCompanyOperationResult.IsValid) this.processInvalidGetCompany(getCompanyOperationResult);\r\n\r\n\t\t\t\tif (!getCompanyLogoOperationResult.IsValid) this.processInvalidGetCompanyLogo(getCompanyLogoOperationResult);\r\n\r\n\t\t\t\tif (getCompanyOperationResult.IsValid && getCompanyLogoOperationResult.IsValid) {\r\n\t\t\t\t\tthis.company = getCompanyOperationResult.Data;\r\n\t\t\t\t\tthis.company.CompanyLogo = getCompanyLogoOperationResult.Data;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tconst serviceCallGetTimeZones = this.serverApiService.getTimeZones();\r\n\t\tconst serviceCallLanguageCodes = this.serverApiService.getLanguageCodes();\r\n\t\tconst serviceCallCountryCodes = this.serverApiService.getCountryCodes();\r\n\r\n\t\tserviceCallCountryCodes.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidCountryCodesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processinValidCountryCodesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getCountryCodes] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getCountryCodes] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tserviceCallLanguageCodes.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidLanguageCodesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processinValidLanguageCodesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getLanguageCodes] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getLanguageCodes] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tserviceCallGetTimeZones.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidTimeZonesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidTimeZonesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getTimeZones] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getTimeZones] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processinValidCountryCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve country codes...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading country codes Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processinValidLanguageCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve language codes...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading language codes Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidTimeZonesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve time zones...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading time zones Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidCountryCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.countryCodes = operationResult.Data;\r\n\t}\r\n\r\n\tprivate processValidLanguageCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.languageCodes = operationResult.Data;\r\n\t}\r\n\r\n\tprivate processValidTimeZonesResult(operationResult: OperationResult): void {\r\n\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(operationResult.Data, false);\r\n\t}\r\n\r\n\tprivate processInvalidGetCompany(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('Could not retrieve company...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading company Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidGetCompanyLogo(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('Could not retrieve company logo...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading company logo Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tpublic userCanEditCompanyInformation(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin && !this.loggedUser?.IsReadOnlyUser) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.IsReadOnlyUser) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (this.loggedUser?.Companies && !!this.company) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === this.company.Id) && this.loggedUser.IsCompanyAdmin;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n}\r\n","\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\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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 { HttpErrorResponse } from '@angular/common/http';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Company } from '../../../models/companies/company';\r\nimport { CompanyLogo } from '../../../models/companies/company-logo';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { User } from '../../../models/User/user';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { forkJoin } from 'rxjs';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { CodeDecodeValue } from '../../../models/common/code-decode-value';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { TimeZoneValue } from '../../../models/common/time-zone-value';\r\n\r\n@Component({\r\n\tselector: 'eif-edit-company',\r\n\ttemplateUrl: './edit-company.component.html',\r\n\tstyleUrls: ['./edit-company.component.css'],\r\n})\r\nexport class EditCompanyComponent implements OnInit {\r\n\tpublic company: Company;\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tpublic appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate router: Router,\r\n\t\tprivate sanitizer: DomSanitizer,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst companyId = params['companyId'];\r\n\t\t\tif (companyId) {\r\n\t\t\t\tthis.getCompanyDetails(companyId);\r\n\t\t\t} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get companyId from route...');\r\n\t\t\t}\r\n\r\n\t\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tpublic get inThisCompany(): boolean {\r\n\t\tif (this.loggedUser?.Companies) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === this.company.Id);\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate getCompanyLogo(companyId: string) {\r\n\t\tconst serviceCall = this.serverApiService.getCompanyLogo(companyId);\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.company.CompanyLogo = operationResult.Data;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic sanitize(url: string) {\r\n\t\treturn this.sanitizer.bypassSecurityTrustUrl(url);\r\n\t}\r\n\r\n\tprivate getCompanyDetails(companyId: string) {\r\n\t\tconst serviceCallGetCommpany = this.serverApiService.getCompany(companyId);\r\n\t\tconst serviceCallGetCompanyLogo = this.serverApiService.getCompanyLogo(companyId);\r\n\r\n\t\tconst getAllRequests = forkJoin(serviceCallGetCommpany, serviceCallGetCompanyLogo);\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tconst getCompanyOperationResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst getCompanyLogoOperationResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!getCompanyOperationResult.IsValid) this.processInvalidGetCompany(getCompanyOperationResult);\r\n\r\n\t\t\t\tif (!getCompanyLogoOperationResult.IsValid) this.processInvalidGetCompanyLogo(getCompanyLogoOperationResult);\r\n\r\n\t\t\t\tif (getCompanyOperationResult.IsValid && getCompanyLogoOperationResult.IsValid) {\r\n\t\t\t\t\tthis.company = getCompanyOperationResult.Data;\r\n\t\t\t\t\tthis.company.CompanyLogo = getCompanyLogoOperationResult.Data;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tconst serviceCallGetTimeZones = this.serverApiService.getTimeZones();\r\n\t\tconst serviceCallLanguageCodes = this.serverApiService.getLanguageCodes();\r\n\t\tconst serviceCallCountryCodes = this.serverApiService.getCountryCodes();\r\n\r\n\t\tserviceCallCountryCodes.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidCountryCodesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processinValidCountryCodesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getCountryCodes] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getCountryCodes] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tserviceCallLanguageCodes.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidLanguageCodesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processinValidLanguageCodesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getLanguageCodes] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getLanguageCodes] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tserviceCallGetTimeZones.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidTimeZonesResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidTimeZonesResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[EditCompanyComponent::getTimeZones] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[EditCompanyComponent::getTimeZones] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processinValidCountryCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve country codes...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading country codes Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processinValidLanguageCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve language codes...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading language codes Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidTimeZonesResult(operationResult: OperationResult): any {\r\n\t\tthis.notificationService.addDanger('Could not retrieve time zones...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading time zones Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidCountryCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.countryCodes = operationResult.Data;\r\n\t}\r\n\r\n\tprivate processValidLanguageCodesResult(operationResult: OperationResult): any {\r\n\t\tthis.languageCodes = operationResult.Data;\r\n\t}\r\n\r\n\tprivate processValidTimeZonesResult(operationResult: OperationResult): void {\r\n\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(operationResult.Data, false);\r\n\t}\r\n\r\n\tprivate processInvalidGetCompany(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('Could not retrieve company...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading company Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidGetCompanyLogo(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('Could not retrieve company logo...(result=false)');\r\n\t\toperationResult.Errors?.forEach((element) => {\r\n\t\t\tthis.logger.error('Loading company logo Error:' + element.Code, element.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate formValidation(): boolean {\r\n\t\tthis.validationErrors = [];\r\n\t\tif (!this.company) {\r\n\t\t\tconst validationError = new OperationError();\r\n\t\t\tvalidationError.Code = 'COMPANY_REQUIRED';\r\n\t\t\tvalidationError.Field = 'Company';\r\n\t\t\tthis.validationErrors.push(validationError);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tpublic updateCompanyData() {\r\n\t\tif (this.formValidation()) {\r\n\t\t\tthis.sendUpdateToserver(this.company);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate sendUpdateToserver(company: Company): void {\r\n\t\tthis.company.ActivityCodeList = 'CAE';\r\n\t\tconst updateCompanyRequest = this.serverApiService.updateCompany(company);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tupdateCompanyRequest.subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (opResult.IsValid) {\r\n\t\t\t\t\tthis.router.navigate(['/private/company/details', company.Id]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.validationErrors = opResult.Errors;\r\n\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t'[EditCompanyComponent::updateCompanyRequest] Invalid result from updateCompany for company.Id: ',\r\n\t\t\t\t\t\tcompany.Id,\r\n\t\t\t\t\t\topResult\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[EditCompanyComponent::updateCompanyRequest] HttpError result from updateCompany for company.Id: ',\r\n\t\t\t\t\tcompany.Id,\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic validateOnlyNumbers(e) {\r\n\t\treturn this.utilitiesService.validateOnlyNumbers(e);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n
\r\n\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\t
\r\n\t\t\t\t\t\t

{{ 'edit-company.pageTitle' | translate }}

\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
\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
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\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\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
\r\n\t\t\t\t\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
{{ company.Name }}
\r\n\t\t\t\t\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\t\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{{ countryCode.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t-\r\n\t\t\t\t\t\t\t\t\t\t\t{{ countryCode.Code | translate: 'CountryCode' }}\r\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{{ 'edit-company.CountryCode' | translate\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'field.required' | translate\r\n\t\t\t\t\t\t\t\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{{ 'edit-company.vatNumber' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t{{ 'field.required' | translate }}\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{{ 'edit-company.Name' | translate\r\n\t\t\t\t\t\t\t\t\t\t}}{{ 'field.required' | translate }}\r\n\t\t\t\t\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{{ 'edit-company.AddressLine1' | translate\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'field.required' | translate\r\n\t\t\t\t\t\t\t\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\r\n\t\t\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\r\n\t\t\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{{ 'edit-company.ZipCode' | translate\r\n\t\t\t\t\t\t\t\t\t\t}}{{ 'field.required' | translate }}\r\n\t\t\t\t\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{{ 'edit-company.City' | translate\r\n\t\t\t\t\t\t\t\t\t\t}}{{ 'field.required' | translate }}\r\n\t\t\t\t\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{{ 'edit-company.ActivityCode' | translate\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'field.required' | translate\r\n\t\t\t\t\t\t\t\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\t\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{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ 'edit-company.TimeZone' | translate\r\n\t\t\t\t\t\t\t\t\t\t}}{{ 'field.required' | translate }}\r\n\t\t\t\t\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\t{{ languageCode.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t-\r\n\t\t\t\t\t\t\t\t\t\t\t{{ languageCode.Decode }}\r\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{{ 'edit-company.LanguageCode' | translate\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'field.required' | translate\r\n\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t
\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{{ 'edit-connection.cancel' | translate }}\r\n\t\t\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{{ 'edit-connection.submit' | translate }}\r\n\t\t\t\t\t\t\t\t\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 { Component, OnInit, Input } from '@angular/core';\r\nimport { Company } from '../../../models/companies/company';\r\nimport { Router } from '@angular/router';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { CompanySearchCriteria } from '../../../models/companies/company-search-criteria';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { Pagination } from '../../../models/common/pagination';\r\nimport { CompanyUniverseSearch } from '../../../models/enums/company-universe-search';\r\nimport { CompanyCardDetails } from '../../../models/companies/company-card-details';\r\nimport { CompanyCard } from '../../../models/companies/company-card';\r\nimport { Observable, of, forkJoin } from 'rxjs';\r\nimport { User } from '../../../models/User/user';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { CompanyCardType } from '../../../models/enums/company-card-type';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { Report } from '../../../models/reports/Report';\r\n\r\n@Component({\r\n\tselector: 'app-search-companies',\r\n\ttemplateUrl: './search-companies.component.html',\r\n\tstyleUrls: ['./search-companies.component.css'],\r\n})\r\nexport class SearchCompaniesComponent implements OnInit {\r\n\t@Input() companyUniverseSearch: CompanyUniverseSearch;\r\n\t@Input() searchOnInit: boolean = true;\r\n\t@Input() onlyFinanciers: boolean = false;\r\n\r\n\tisCollapsed: boolean;\r\n\tpublic companiesCards: CompanyCard[] = [];\r\n\tpublic pagination: Pagination = new Pagination();\r\n\tpublic companySearchCriteria: CompanySearchCriteria = new CompanySearchCriteria();\r\n\tpublic isResourceLoaded: boolean;\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic isPerformingRequest: boolean = false;\r\n\tpublic requestErrors: OperationError[];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pagination.numberOfRecordsPerPage = this.appContext.getNumberOfRecordsPerPage();\r\n\t\tthis.pagination.currentPageInClient = 1;\r\n\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\t\r\n\t\t\tthis.companySearchCriteria.OnlyFinanciers = this.onlyFinanciers;\r\n\r\n\t\t\tif (this.searchOnInit) {\r\n\t\t\t\t// PR: Avoid parallel calls which will result in duplicate elements on the page.\r\n\t\t\t\t// An external component may required additional validations before calling performSearch.\r\n\t\t\t\t// If so, then the parent component will call performSearch explicitly afterwards.\r\n\t\t\t\tthis.performSearch(1);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic performSearch(page: number) {\r\n\t\tthis.pagination.setPageNumber(page);\r\n\r\n\t\tconst criteria = new CompanySearchCriteria();\r\n\t\tcriteria.OrderBy = 'Name';\r\n\t\tcriteria.OrderDescending = false;\r\n\t\tcriteria.PageNumber = page;\r\n\t\tcriteria.RowsPerPage = 24; //each line shows 4 companies, searching 24 will prevent a since company in the end\r\n\t\tcriteria.RestrictionCriteria = this.companySearchCriteria;\r\n\t\tcriteria.RestrictionCriteria.CompanyUniverseSearch = this.companyUniverseSearch;\r\n\r\n\t\tthis.pagination.setNumberOfRecordsPerPage(criteria.RowsPerPage);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.searchCompanies(criteria));\r\n\t\tservicesCallsToMake.push(this.serverApiService.countSearchCompanies(criteria.RestrictionCriteria));\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tlet searchCompaniesResult = opResults[0] as OperationResult;\r\n\t\t\t\tlet countSearchCompaniesResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!searchCompaniesResult.IsValid) {\r\n\t\t\t\t\tthis.processInValidSearchCompaniesResult(searchCompaniesResult);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!countSearchCompaniesResult.IsValid) {\r\n\t\t\t\t\tthis.processInValidCountSearchCompaniesResult(countSearchCompaniesResult);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.processValidSearchCompaniesResult(searchCompaniesResult);\r\n\t\t\t\tthis.processValidCountSearchCompaniesResult(countSearchCompaniesResult, criteria);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidSearchCompaniesResult(searchCompaniesOperationResult: OperationResult) {\r\n\t\tlet companies: Company[] = searchCompaniesOperationResult.Data;\r\n\r\n\t\tthis.pagination.setNumberOfRecordsReceived(searchCompaniesOperationResult.Data.length);\r\n\r\n\t\tthis.companiesCards = [];\r\n\r\n\t\tif (!!this.companyUniverseSearch) {\r\n\t\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\t\tfor (let index = 0; index < companies.length; index++) {\r\n\t\t\t\tlet company = companies[index];\r\n\r\n\t\t\t\tif (company?.Id) servicesCallsToMake.push(this.getCompanyCardDetailsServiceCall(company.Id!));\r\n\t\t\t}\r\n\r\n\t\t\tif (servicesCallsToMake.length == 0) {\r\n\t\t\t\tthis.isResourceLoaded = true;\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tgetAllRequests.subscribe({\r\n\t\t\t\tnext: (opResults) => {\r\n\t\t\t\t\tfor (let index = 0; index < servicesCallsToMake.length; index++) {\r\n\t\t\t\t\t\tlet getCompanyCardDetails = opResults[index] as OperationResult;\r\n\r\n\t\t\t\t\t\tif (!getCompanyCardDetails.IsValid) this.requestErrors = getCompanyCardDetails.Errors;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (!!getCompanyCardDetails.Data) {\r\n\t\t\t\t\t\t\t\tlet connectedCompanyCard: CompanyCard = {\r\n\t\t\t\t\t\t\t\t\tCompany: companies.find((c) => c.Id === getCompanyCardDetails.Data.CardCompanyId),\r\n\t\t\t\t\t\t\t\t\tCompanyCardDetails: getCompanyCardDetails.Data,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tif (this.companyUniverseSearch == CompanyUniverseSearch.Network && !this.loggedUser?.IsSystemAdmin) {\r\n\t\t\t\t\t\t\t\t\tif (!!connectedCompanyCard && !!connectedCompanyCard.CompanyCardDetails)\r\n\t\t\t\t\t\t\t\t\t\tconnectedCompanyCard.CompanyCardDetails.IsFinancier = false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.companiesCards.push(connectedCompanyCard);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.processInvalidConnectedCompanyCardDetailsResult(getCompanyCardDetails);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tthis.isResourceLoaded = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tcompanies.forEach((company: Company) => {\r\n\t\t\t\tlet companyCard: CompanyCard = {\r\n\t\t\t\t\tCompany: company,\r\n\t\t\t\t\tCompanyCardDetails: null,\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.companiesCards.push(companyCard);\r\n\t\t\t});\r\n\r\n\t\t\tthis.isResourceLoaded = true;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate getCompanyCardDetailsServiceCall(companyId: string): Observable> {\r\n\t\tlet loggedUserCompanies = this.loggedUser?.Companies.map((c) => c.Id!) ?? [];\r\n\r\n\t\tif (this.companyUniverseSearch == CompanyUniverseSearch.MyConnections)\r\n\t\t\treturn this.serverApiService.getConnectedCompanyCardDetails(companyId, loggedUserCompanies);\r\n\t\telse if (this.companyUniverseSearch == CompanyUniverseSearch.MyCompanies)\r\n\t\t\treturn this.serverApiService.getMyCompanyCardDetails(companyId);\r\n\t\telse if (this.companyUniverseSearch == CompanyUniverseSearch.Network)\r\n\t\t\treturn this.serverApiService.getNetworkCompanyCardDetails(companyId, loggedUserCompanies);\r\n\r\n\t\treturn of>(new OperationResult());\r\n\t}\r\n\r\n\tprivate processInvalidConnectedCompanyCardDetailsResult(\r\n\t\tgetConnectedCompanyCardDetailsOperationResult: OperationResult\r\n\t): any {\r\n\t\tthis.notificationService.addDanger('Invalid result from server companies....');\r\n\t}\r\n\r\n\tprivate processInValidSearchCompaniesResult(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('Invalid result from server companies....');\r\n\t}\r\n\r\n\tprivate processValidCountSearchCompaniesResult(operationResult: OperationResult, criteria: CompanySearchCriteria) {\r\n\t\tthis.pagination.setNumberOfTotalCountRecords(operationResult.Data);\r\n\t}\r\n\r\n\t// TODO: JT 2018-07 Must create a generis service/class... to iterate server errors (IsValid=false)\r\n\t// and display then int the notification listener\r\n\tprivate processInValidCountSearchCompaniesResult(operationResult: OperationResult) {\r\n\t\tthis.notificationService.addDanger('errors returnd when calling count companies (result=false)');\r\n\t}\r\n\r\n\tpublic navigateTo(page: number) {\r\n\t\tthis.performSearch(page);\r\n\t}\r\n\r\n\tpublic gotoCompanyContracts(company: Company) {\r\n\t\t// check if company is Buyer / Supplier / Financier\r\n\t\tif (company.IsFinancier) {\r\n\t\t\tthis.router.navigate(['public/login']);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic userCanInviteOtherExistingCompanyAsSupplier(companyCard: CompanyCard): boolean {\r\n\t\tlet userIsBuyer = this.loggedUser?.IsBuyer;\r\n\t\tlet userIsSupplier = this.loggedUser?.IsSupplier;\r\n\t\tlet userIsFinancier = this.loggedUser?.IsFinancier;\r\n\t\tlet userIsCompanyAdmin = this.loggedUser?.IsCompanyAdmin;\r\n\t\tlet userIsSystemAdmin = this.loggedUser?.IsSystemAdmin;\r\n\t\tlet companyCardMyCompanies = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.MyCompanyCard;\r\n\t\tlet companyCardMyConections = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.ConnectedCompanyCard;\r\n\t\tlet companyCardNetwork = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.NetworkCompanyCard;\r\n\t\tlet companyIsFinancier = companyCard.Company.IsFinancier;\r\n\t\tlet cardCompanyNotRelatedToAllOfMyCompanies = companyCard.CompanyCardDetails?.IsRelatedToAllOfOtherCompanies;\r\n\r\n\t\tif (userIsSystemAdmin) return false;\r\n\r\n\t\t//if company already in my connections or my company no point in inviting them\r\n\t\tif (!userIsCompanyAdmin || !companyCardNetwork) return false;\r\n\r\n\t\tif (companyIsFinancier || userIsSupplier) return false;\r\n\r\n\t\tif (userIsBuyer && !cardCompanyNotRelatedToAllOfMyCompanies) return true;\r\n\r\n\t\t// if(userIsFinancier && companyCard.CompanyCardDetails.IsBuyer)\r\n\t\t// return true;\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanInviteOtherExistingCompanyAsBuyer(companyCard: CompanyCard): boolean {\r\n\t\tlet userIsBuyer = this.loggedUser?.IsBuyer;\r\n\t\tlet userIsSupplier = this.loggedUser?.IsSupplier;\r\n\t\tlet userIsFinancier = this.loggedUser?.IsFinancier;\r\n\t\tlet userIsCompanyAdmin = this.loggedUser?.IsCompanyAdmin;\r\n\t\tlet userIsSystemAdmin = this.loggedUser?.IsSystemAdmin;\r\n\t\tlet companyCardMyCompanies = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.MyCompanyCard;\r\n\t\tlet companyCardMyConections = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.ConnectedCompanyCard;\r\n\t\tlet companyCardNetwork = companyCard.CompanyCardDetails?.CompanyCardType == CompanyCardType.NetworkCompanyCard;\r\n\t\tlet companyIsFinancier = companyCard.Company.IsFinancier;\r\n\t\tlet cardCompanyNotRelatedToAllOfMyCompanies = companyCard.CompanyCardDetails?.IsRelatedToAllOfOtherCompanies;\r\n\r\n\t\tif (userIsSystemAdmin) return true;\r\n\r\n\t\t//if company already in my connections or my company no point in inviting them\r\n\t\tif (!userIsCompanyAdmin || !companyCardNetwork) return false;\r\n\r\n\t\tif (companyIsFinancier || userIsSupplier || userIsBuyer) return false;\r\n\r\n\t\tif (userIsFinancier) return false;\r\n\r\n\t\tif (userIsFinancier && !cardCompanyNotRelatedToAllOfMyCompanies) return true;\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic redirectToExistingSupplierInvitationStep1(companyCard: CompanyCard): void {\r\n\t\tlet invitationContext = btoa('invitedCompanyId:' + companyCard.Company.Id);\r\n\t\tthis.router.navigate(['/private/invitation/confirming/company/new/supplier/step1', invitationContext]);\r\n\t}\r\n\r\n\tprivate inThisCompany(companyId): boolean {\r\n\t\tif (this.loggedUser?.Companies) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === companyId);\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanViewCompanyInformation(companyCard: CompanyCard): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) return true;\r\n\r\n\t\tif (this.loggedUser?.Companies) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === companyCard.Company.Id);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanSeeCompanyUsers(companyCard: CompanyCard): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) return true;\r\n\r\n\t\tif (this.loggedUser?.Companies && !!this.loggedUser.Companies.find((c) => c.Id === companyCard.Company.Id)) return true;\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanInviteInexistingSupplierCompanies(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) return false;\r\n\r\n\t\tif (this.loggedUser?.IsFinancier || this.loggedUser?.IsSupplier) return false;\r\n\r\n\t\tif (this.loggedUser?.Companies && this.loggedUser.IsCompanyAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanInviteInexistingBuyerCompanies(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin || (this.loggedUser?.IsFinancier && this.loggedUser.IsCompanyAdmin)) return true;\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanBeInvitedAsSupplier(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin || this.loggedUser?.IsSupplier) return true;\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic userCanSeeCompanyRelations(companyCard: CompanyCard): boolean {\r\n\t\tlet isBuyer = this.loggedUser?.IsBuyer;\r\n\t\tlet isSupplier = this.loggedUser?.IsSupplier;\r\n\t\tlet isInCompany = this.inThisCompany(companyCard.Company.Id);\r\n\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t} else if ((isBuyer || isSupplier) && isInCompany) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.IsFinancier && companyCard.CompanyCardDetails?.IsBuyer) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic gotoContractAddBuyerRequest(): void {\r\n\t\tthis.router.navigate(['/private/contracts/factoring/add/buyer/step1']);\r\n\t}\r\n\r\n\tpublic canExportSearchResults(): boolean {\r\n\t\treturn this.pagination.numberOfRecordsFound > 0;\r\n\t}\r\n\r\n\tpublic exportNetwork() {\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tconst serviceCallExport = this.serverApiService.exportCompaniesNetwork(this.companySearchCriteria);\r\n\r\n\t\tserviceCallExport.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\toperationResult.IsValid\r\n\t\t\t\t\t? this.processValidReport(operationResult.Data)\r\n\t\t\t\t\t: this.notificationService.addDanger('Invalid result from server export companies network');\r\n\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidReport(report: Report) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(report.Content, report.ContentType);\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(blob, report.ContentName);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n\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\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{{ 'search-companies.newContract' | translate }}\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{{ 'search-companies.newConfirmingContract' | translate }}\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{{ 'search-companies.newFactoringContract' | translate }}\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\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{{ 'search-companies.inviteInexistingCompanyAsSupplier' | translate }}\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{{ 'search-companies.inviteNewSupplier' | translate }}\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{{ 'search-companies.massiveSupplierUpload' | translate }}\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'search-companies.gotoContractAddBuyerRequest' | translate }}\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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{{ 'search-companies.pendingInvites' | translate }}\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\r\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\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ companyCard?.Company?.Name }}\r\n\t\t\t\t\t\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{{ companyCard?.Company?.CountryCode }} {{ companyCard?.Company?.VatNumber }}\r\n\t\t\t\t\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
\r\n\t\t\t\t\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{{ 'search-companies.list.IsFinancier' | translate }}\r\n\t\t\t\t\t\t\t\t\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\t{{ 'search-companies.list.IsBuyer' | translate }}\r\n\t\t\t\t\t\t\t\t\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\t{{ 'search-companies.list.IsSupplier' | translate }}\r\n\t\t\t\t\t\t\t\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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\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\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\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n","export class QueryStringDocumentSearchCriteria {\r\n\tpublic ApprovalStateList: string[];\r\n\tpublic PaymentStateList: string[];\r\n\r\n\tconstructor(other: QueryStringDocumentSearchCriteria) {\r\n\t\tif (!!other) {\r\n\t\t\tthis.ApprovalStateList = other.ApprovalStateList;\r\n\t\t\tthis.PaymentStateList = other.PaymentStateList;\r\n\t\t}\r\n\t}\r\n}\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { Document } from '../../../models/document/document';\r\nimport { DocumentSearchCriteria } from '../../../models/document/document-search-criteria';\r\nimport { CodeList } from '../../../models/common/code-list';\r\nimport { Pagination } from '../../../models/common/pagination';\r\nimport { User } from '../../../models/User/user';\r\nimport { DocumentPaymentState } from '../../../models/enums/document-payment-state';\r\nimport { Report } from '../../../models/reports/Report';\r\nimport { DateRangePickerComponent } from '../../../shared-components/date-range-picker/date-range-picker.component';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ConfirmDialogModalComponent } from '../../../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { FileIntegration } from '../../../models/file-integrations/file-integration';\r\nimport { DocumentApprovalState } from '../../../models/enums/document-approval-state';\r\nimport { QueryStringDocumentSearchCriteria } from './models/query-string-document-search-criteria';\r\nimport * as moment from 'moment-timezone';\r\nimport { DocumentInvolvement } from '../../../models/document/document-involvement';\r\nimport { DocumentViewModel } from './models/document-view-model';\r\nimport { SearchDocumentInvolvementInput } from '../../../models/document/search-document-involvement-input';\r\nimport { DocumentInvolvedEntityType } from '../../../models/enums/confirming/document-involvement-entity-type';\r\nimport { PublicCompany } from '../../../models/companies/public-company';\r\nimport { finalize, forkJoin, Observable } from 'rxjs';\r\nimport { DocumentExternalSource } from '../../../models/enums/document-external-source';\r\nimport { ServerErrors } from '../../../models/enums/server-errors';\r\nimport { ValueDetail } from '../../../models/server-result/value-detail';\r\nimport { DocumentExportDetailError } from '../../../models/document/document-export-detail-error';\r\nimport { InformationModalComponent } from '../../../shared-components/modals/information/information-modal.component';\r\nimport { ExecutionPermissionValidatorService } from '../../../services/validations/execution-permission-validator.service';\r\nimport { DocumentUploadContractType, DocumentUploadContractTypeExtensions } from '../../../models/enums/document-upload-contract-type';\r\n\r\n@Component({\r\n\tselector: 'app-search-documents',\r\n\ttemplateUrl: './search-documents.component.html',\r\n\tstyleUrls: ['./search-documents.component.css'],\r\n})\r\nexport class SearchDocumentsComponent implements OnInit {\r\n\t@ViewChild('buyerPaymentDateRange')\r\n\tbuyerPaymentDateRange: DateRangePickerComponent;\r\n\t@ViewChild('creationDateRange') creationDateRange: DateRangePickerComponent;\r\n\r\n\tpublic pagination: Pagination = new Pagination();\r\n\tpublic documents: DocumentViewModel[] = [];\r\n\tpublic DocumentSearchCriteria: DocumentSearchCriteria = new DocumentSearchCriteria();\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tpublic docTypes: string[] = [];\r\n\tpublic approvalStates: string[] = [];\r\n\tpublic documentAdvancedStates: string[] = [];\r\n\tpublic paymentStates: string[] = [];\r\n\tpublic possibleSuppliers: PublicCompany[] = [];\r\n\tpublic possibleBuyers: PublicCompany[] = [];\r\n\r\n\tpublic isCollapsed: boolean;\r\n\tpublic isResourceLoaded: boolean;\r\n\tpublic isPerformingRequest: boolean = false;\r\n\tpublic showSelectAllCheckBox: boolean = false;\r\n\r\n\tpublic loggedUser: User | null = null;\r\n\tprivate filtersHaveBeenReseted = false;\r\n\r\n\tprivate selectAll: boolean = false;\r\n\tpublic selectedDocumentsCount: number = 0;\r\n\r\n\tprivate fileId: string | null = null;\r\n\tpublic fileIntegrationDetail: FileIntegration | null = null;\r\n\tprivate queryStringDocumentSearchCriteria: QueryStringDocumentSearchCriteria | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tpublic appContext: AppContextService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprivate router: Router,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService,\r\n\t) {}\r\n\r\n\t//https://stackoverflow.com/questions/37663158/set-initially-selected-item-in-select-list-in-angular2\r\n\t//https://medium.com/@kastepanyan24/how-to-set-selected-option-dynamically-in-angular-6-85c99958cca5\r\n\tpublic compareFn(c1: string[], c2: string[]): boolean {\r\n\t\treturn c1 && c2 ? c1[0] === c2[0] : c1 === c2;\r\n\t}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pagination.numberOfRecordsPerPage = this.appContext.getNumberOfRecordsPerPage();\r\n\t\tthis.pagination.currentPageInClient = 1;\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tthis.route.params.subscribe((params) => {\r\n\t\t\t\tconst fileId: string = params['fileId'];\r\n\t\t\t\tthis.fileId = fileId;\r\n\r\n\t\t\t\tif (!!this.fileId) this.GetEtlFileDetails(this.fileId);\r\n\r\n\t\t\t\tconst searchCriteria: string = params['searchCriteria'];\r\n\t\t\t\tif (!!searchCriteria) this.ProcessSearchCriteria(searchCriteria);\r\n\t\t\t});\r\n\r\n\t\t\tthis.loadListsForFilters();\r\n\t\t});\r\n\t}\r\n\r\n\tngAfterViewInit() {\r\n\t\tthis.performNewSearch();\r\n\t}\r\n\r\n\tProcessSearchCriteria(searchCriteriaBase64: string) {\r\n\t\t//base64 to string\r\n\t\tlet searchCriteria = atob(searchCriteriaBase64);\r\n\r\n\t\tif (!!searchCriteria) {\r\n\t\t\tthis.queryStringDocumentSearchCriteria = new QueryStringDocumentSearchCriteria(JSON.parse(searchCriteria));\r\n\t\t\tthis.DocumentSearchCriteria.ApprovalStateList = this.queryStringDocumentSearchCriteria.ApprovalStateList;\r\n\t\t\tthis.DocumentSearchCriteria.PaymentStateList = this.queryStringDocumentSearchCriteria.PaymentStateList;\r\n\t\t}\r\n\t}\r\n\r\n\tpublic buyerPaymentDateRangeSelected($event) {\r\n\t\tif ($event) {\r\n\t\t\tthis.DocumentSearchCriteria.BuyerPaymentDateStart = null;\r\n\t\t\tthis.DocumentSearchCriteria.BuyerPaymentDateEnd = null;\r\n\r\n\t\t\tthis.DocumentSearchCriteria.BuyerPaymentDateStart = moment.utc([$event[0].year, $event[0].month - 1, $event[0].day]).toDate();\r\n\t\t\tthis.DocumentSearchCriteria.BuyerPaymentDateEnd = moment.utc([$event[1].year, $event[1].month - 1, $event[1].day]).toDate();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic creationDateRangeSelected($event) {\r\n\t\tif ($event) {\r\n\t\t\tthis.DocumentSearchCriteria.CreationDateStart = null;\r\n\t\t\tthis.DocumentSearchCriteria.CreationDateEnd = null;\r\n\r\n\t\t\tthis.DocumentSearchCriteria.CreationDateStart = moment.utc([$event[0].year, $event[0].month - 1, $event[0].day]).toDate();\r\n\t\t\tthis.DocumentSearchCriteria.CreationDateEnd = moment.utc([$event[1].year, $event[1].month - 1, $event[1].day]).toDate();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic performSearch(pageNumber: number) {\r\n\t\tthis.pagination.setPageNumber(pageNumber);\r\n\r\n\t\tthis.showSelectAllCheckBox = false;\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tconst criteria = new DocumentSearchCriteria();\r\n\t\tcriteria.OrderBy = 'CreationDate';\r\n\t\tcriteria.PageNumber = pageNumber;\r\n\r\n\t\tcriteria.RowsPerPage = this.pagination.numberOfRecordsPerPage;\r\n\t\tcriteria.RestrictionCriteria = this.DocumentSearchCriteria;\r\n\t\tcriteria.RestrictionCriteria.FileId = this.fileId;\r\n\t\tcriteria.OrderDescending = true;\r\n\r\n\t\tthis.serverApiService.searchDocuments(criteria).pipe(\r\n\t\t\tfinalize(() => {\r\n\t\t\t\tthis.isResourceLoaded = true;\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t})\r\n\t\t ).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.documents = operationResult.Data.map(\r\n\t\t\t\t\t\t(d) =>\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\tCreationDate: moment.utc(d.CreationDate).tz(this.loggedUser?.TimeZone!).format('YYYY-MM-DD HH:mm'),\r\n\t\t\t\t\t\t\t\tExternalSource: d.ExternalSource,\r\n\t\t\t\t\t\t\t\tExternalId: d.ExternalId,\r\n\t\t\t\t\t\t\t\tType: d.Type,\r\n\t\t\t\t\t\t\t\tNumber: d.Number,\r\n\t\t\t\t\t\t\t\tTotalAmount: d.TotalAmount,\r\n\t\t\t\t\t\t\t\tCurrency: d.Currency,\r\n\t\t\t\t\t\t\t\tIssuedDate: d.IssuedDate,\r\n\t\t\t\t\t\t\t\tDueDate: d.DueDate,\r\n\t\t\t\t\t\t\t\tBuyer: d.Buyer,\r\n\t\t\t\t\t\t\t\tSupplier: d.Supplier,\r\n\t\t\t\t\t\t\t\tBuyerPaymentDate: d.BuyerPaymentDate,\r\n\t\t\t\t\t\t\t\tApprovalState: d.ApprovalState,\r\n\t\t\t\t\t\t\t\tPaymentDate: d.PaymentDate,\r\n\t\t\t\t\t\t\t\tPaymentState: d.PaymentState,\r\n\t\t\t\t\t\t\t\tFileId: d.FileId,\r\n\t\t\t\t\t\t\t\tRowVersion: d.RowVersion,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tthis.pagination.setNumberOfRecordsReceived(operationResult.Data.length);\r\n\t\t\t\t\tthis.setSelectedDocuments();\r\n\t\t\t\t\tthis.getSelectedDocumentsCount();\r\n\r\n\t\t\t\t\tlet servicesCallsToMake: Array> | Observable>> = [];\r\n\r\n\t\t\t\t\tlet searchDocumentsInvolvementServiceCall = this.serverApiService.searchDocumentsInvolvement(\r\n\t\t\t\t\t\tthis.documents.map(\r\n\t\t\t\t\t\t\t(d) =>\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tDocumentId: d.Id,\r\n\t\t\t\t\t\t\t\t\tDocumentPaymentState: d.PaymentState,\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\r\n\t\t\t\t\tlet countSearchDocumentsServiceCall = this.serverApiService.countSearchDocuments(criteria.RestrictionCriteria);\r\n\r\n\t\t\t\t\tservicesCallsToMake.push(searchDocumentsInvolvementServiceCall);\r\n\t\t\t\t\tservicesCallsToMake.push(countSearchDocumentsServiceCall);\r\n\r\n\t\t\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\t\t\t\tlet searchDocumentsInvolvementResult = opResults[0] as OperationResult;\r\n\t\t\t\t\t\tlet countSearchDocumentsResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\t\t\tif (!searchDocumentsInvolvementResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.requestErrors = this.requestErrors.concat(searchDocumentsInvolvementResult.Errors ?? []);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!countSearchDocumentsResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.requestErrors = this.requestErrors.concat(countSearchDocumentsResult.Errors ?? []);\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\tif (searchDocumentsInvolvementResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.documents.forEach((doc: DocumentViewModel) => {\r\n\t\t\t\t\t\t\t\tlet docInvolvement: DocumentInvolvement | undefined = searchDocumentsInvolvementResult.Data.find(\r\n\t\t\t\t\t\t\t\t\t(d) => d.DocumentId == doc.Id\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\tif (!!docInvolvement && !!doc) {\r\n\t\t\t\t\t\t\t\t\tif (!!docInvolvement) {\r\n\t\t\t\t\t\t\t\t\t\tif (docInvolvement.InvolvedEntityType === DocumentInvolvedEntityType.Funding) {\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrl = '/private/funding-request/detail/' + docInvolvement.InvolvedEntityId;\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrlIcon = 'fal fa-hand-holding-usd fa-w-18 fa-fw';\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navigationUrlText = 'search-docs.link.funding';\r\n\t\t\t\t\t\t\t\t\t\t} else if (docInvolvement.InvolvedEntityType === DocumentInvolvedEntityType.Payment) {\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrl = '/private/payment-request/detail/' + docInvolvement.InvolvedEntityId;\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrlIcon = 'fal fa-usd-circle fa-w-16 fa-fw';\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navigationUrlText = 'search-docs.link.payment';\r\n\t\t\t\t\t\t\t\t\t\t} else if (docInvolvement.InvolvedEntityType === DocumentInvolvedEntityType.CreditAssignment) {\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrl = '/private/credit-assignment/detail/' + docInvolvement.InvolvedEntityId;\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navitationUrlIcon = 'fal fa-hands-usd fa-w-20 fa-fw';\r\n\t\t\t\t\t\t\t\t\t\t\tdoc.navigationUrlText = 'search-docs.link.creditAssignment';\r\n\t\t\t\t\t\t\t\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\tif (countSearchDocumentsResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.pagination.setNumberOfTotalCountRecords(countSearchDocumentsResult.Data);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.showSelectAllCheckBox = true;\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('Invalid result from server search.');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic navigateTo(page: number) {\r\n\t\tthis.performSearch(page);\r\n\t\tthis.appContext.testChange('Page changed from documents search ' + page);\r\n\t}\r\n\r\n\tpublic performNewSearch() {\r\n\t\tthis.appContext.resetSelectedDocumentsInClient();\r\n\t\tthis.filtersHaveBeenReseted = false;\r\n\t\tthis.performSearch(1);\r\n\t}\r\n\r\n\tpublic clearSearchFilters(): void {\r\n\t\tthis.DocumentSearchCriteria = new DocumentSearchCriteria();\r\n\t\tthis.buyerPaymentDateRange.resetDates();\r\n\t\tthis.creationDateRange.resetDates();\r\n\t\tthis.filtersHaveBeenReseted = true;\r\n\t}\r\n\r\n\tprivate loadListsForFilters(): void {\r\n\t\tthis.serverApiService.getCodeListApprovalState().subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\toperationResult.IsValid\r\n\t\t\t\t\t? (this.approvalStates = this.filterApprovalStatesByRole(this.loggedUser, operationResult.Data))\r\n\t\t\t\t\t: this.notificationService.addDanger('Invalid result from server approvalStates code list.');\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tthis.serverApiService.getCodeListDocumentAdvanceState().subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\toperationResult.IsValid\r\n\t\t\t\t\t? (this.documentAdvancedStates = operationResult.Data.Codes)\r\n\t\t\t\t\t: this.notificationService.addDanger('Invalid result from server document advance states code list.');\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tthis.serverApiService.getCodeListDocumentType().subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\toperationResult.IsValid\r\n\t\t\t\t\t? (this.docTypes = operationResult.Data.Codes)\r\n\t\t\t\t\t: this.notificationService.addDanger('Invalid result from server document types code list.');\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tthis.serverApiService.getCodeListPaymentState().subscribe((operationResult: OperationResult) => {\r\n\t\t\toperationResult.IsValid\r\n\t\t\t\t? (this.paymentStates = operationResult.Data.Codes)\r\n\t\t\t\t: this.notificationService.addDanger('Invalid result from server payment state code list.');\r\n\t\t});\r\n\r\n\t\tif (this.loggedUser?.IsSystemAdmin) this.getBuyersAndSuppliersForSystemAdmin();\r\n\t\telse if (this.loggedUser?.IsBuyer) this.getBuyersAndSuppliersForBuyer();\r\n\t\telse if (this.loggedUser?.IsSupplier) this.getBuyersAndSuppliersForSupplier();\r\n\t\telse if (this.loggedUser?.IsFinancier) this.getBuyersAndSuppliersForFinancier();\r\n\t}\r\n\r\n\tprivate filterApprovalStatesByRole(loggedUser: User | null, states: CodeList) {\r\n\t\tif (loggedUser?.IsSystemAdmin || loggedUser?.IsFinancier) {\r\n\t\t\treturn states.Codes;\r\n\t\t} else if (!loggedUser?.IsSystemAdmin && loggedUser?.IsSupplier) {\r\n\t\t\treturn states.Codes.filter((code) => code == DocumentApprovalState.Approved || code == DocumentApprovalState.Registered);\r\n\t\t} else {\r\n\t\t\treturn states.Codes.filter((code) => !code.includes(DocumentApprovalState.Registered));\r\n\t\t}\r\n\t}\r\n\r\n\tprivate getBuyersAndSuppliersForSystemAdmin(): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleBuyersForUser());\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleBuyersForUser());\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet getAllConfirmingAccessibleSuppliersForUserResult = opResults[0] as OperationResult;\r\n\t\t\tlet getAllConfirmingAccessibleBuyersForUserResult = opResults[1] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleSuppliersForUserResult = opResults[2] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleBuyersForUserResult = opResults[3] as OperationResult;\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tlet supliersDistinctCompaniesList: PublicCompany[] = [];\r\n\t\t\tlet buyersDistinctCompaniesList: PublicCompany[] = [];\r\n\r\n\t\t\tif (\r\n\t\t\t\tgetAllConfirmingAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleBuyersForUserResult.IsValid\r\n\t\t\t) {\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet supliersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllFactoringAccessibleSuppliersForUserResult.Data\r\n\t\t\t\t).concat(getAllConfirmingAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet buyersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t).concat(getAllFactoringAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\tsupliersDistinctCompaniesList = this.utilitiesService.GetDistinct(\r\n\t\t\t\t\tsupliersCompaniesList,\r\n\t\t\t\t\t(e1, e2) => e1.Id === e2.Id\r\n\t\t\t\t);\r\n\t\t\t\tbuyersDistinctCompaniesList = this.utilitiesService.GetDistinct(buyersCompaniesList, (e1, e2) => e1.Id === e2.Id);\r\n\t\t\t}\r\n\r\n\t\t\tthis.possibleSuppliers = supliersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.possibleBuyers = buyersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getBuyersAndSuppliersForSupplier(): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleBuyersForUser());\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleBuyersForUser());\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet getAllConfirmingAccessibleSuppliersForUserResult = opResults[0] as OperationResult;\r\n\t\t\tlet getAllConfirmingAccessibleBuyersForUserResult = opResults[1] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleSuppliersForUserResult = opResults[2] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleBuyersForUserResult = opResults[3] as OperationResult;\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tlet supliersDistinctCompaniesList: PublicCompany[] = [];\r\n\t\t\tlet buyersDistinctCompaniesList: PublicCompany[] = [];\r\n\r\n\t\t\tif (\r\n\t\t\t\tgetAllConfirmingAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleBuyersForUserResult.IsValid\r\n\t\t\t) {\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet supliersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllFactoringAccessibleSuppliersForUserResult.Data\r\n\t\t\t\t).concat(getAllConfirmingAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet buyersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t).concat(getAllFactoringAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\tsupliersDistinctCompaniesList = this.utilitiesService.GetDistinct(\r\n\t\t\t\t\tsupliersCompaniesList,\r\n\t\t\t\t\t(e1, e2) => e1.Id === e2.Id\r\n\t\t\t\t);\r\n\t\t\t\tbuyersDistinctCompaniesList = this.utilitiesService.GetDistinct(buyersCompaniesList, (e1, e2) => e1.Id === e2.Id);\r\n\t\t\t}\r\n\r\n\t\t\tthis.possibleSuppliers = supliersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.possibleBuyers = buyersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getBuyersAndSuppliersForBuyer(): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleBuyersForUser());\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet getAllConfirmingAccessibleSuppliersForUserResult = opResults[0] as OperationResult;\r\n\t\t\tlet getAllConfirmingAccessibleBuyersForUserResult = opResults[1] as OperationResult;\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tlet supliersDistinctCompaniesList: PublicCompany[] = [];\r\n\t\t\tlet buyersDistinctCompaniesList: PublicCompany[] = [];\r\n\r\n\t\t\tif (getAllConfirmingAccessibleSuppliersForUserResult.IsValid && getAllConfirmingAccessibleBuyersForUserResult.IsValid) {\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet supliersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t);\r\n\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet buyersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t);\r\n\r\n\t\t\t\tsupliersDistinctCompaniesList = this.utilitiesService.GetDistinct(\r\n\t\t\t\t\tsupliersCompaniesList,\r\n\t\t\t\t\t(e1, e2) => e1.Id === e2.Id\r\n\t\t\t\t);\r\n\t\t\t\tbuyersDistinctCompaniesList = this.utilitiesService.GetDistinct(buyersCompaniesList, (e1, e2) => e1.Id === e2.Id);\r\n\t\t\t}\r\n\r\n\t\t\tthis.possibleSuppliers = supliersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.possibleBuyers = buyersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getBuyersAndSuppliersForFinancier(): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllConfirmingAccessibleBuyersForUser());\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleSuppliersForUser());\r\n\t\tservicesCallsToMake.push(this.serverApiService.getAllFactoringAccessibleBuyersForUser());\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet getAllConfirmingAccessibleSuppliersForUserResult = opResults[0] as OperationResult;\r\n\t\t\tlet getAllConfirmingAccessibleBuyersForUserResult = opResults[1] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleSuppliersForUserResult = opResults[2] as OperationResult;\r\n\t\t\tlet getAllFactoringAccessibleBuyersForUserResult = opResults[3] as OperationResult;\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllConfirmingAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllConfirmingAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleSuppliersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleSuppliersForUserResult.Errors ?? []);\r\n\r\n\t\t\tif (!getAllFactoringAccessibleBuyersForUserResult.IsValid)\r\n\t\t\t\tthis.requestErrors = this.requestErrors.concat(getAllFactoringAccessibleBuyersForUserResult.Errors ?? []);\r\n\r\n\t\t\tlet supliersDistinctCompaniesList: PublicCompany[] = [];\r\n\t\t\tlet buyersDistinctCompaniesList: PublicCompany[] = [];\r\n\r\n\t\t\tif (\r\n\t\t\t\tgetAllConfirmingAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleSuppliersForUserResult.IsValid &&\r\n\t\t\t\tgetAllFactoringAccessibleBuyersForUserResult.IsValid\r\n\t\t\t) {\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet supliersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t)\r\n\t\t\t\t\t.concat(getAllFactoringAccessibleSuppliersForUserResult.Data)\r\n\t\t\t\t\t.concat(getAllFactoringAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\t//list are joined because documents can have inverse flow direction\r\n\t\t\t\tlet buyersCompaniesList: PublicCompany[] = getAllConfirmingAccessibleSuppliersForUserResult.Data.concat(\r\n\t\t\t\t\tgetAllConfirmingAccessibleBuyersForUserResult.Data\r\n\t\t\t\t)\r\n\t\t\t\t\t.concat(getAllFactoringAccessibleSuppliersForUserResult.Data)\r\n\t\t\t\t\t.concat(getAllFactoringAccessibleBuyersForUserResult.Data);\r\n\r\n\t\t\t\tsupliersDistinctCompaniesList = this.utilitiesService.GetDistinct(\r\n\t\t\t\t\tsupliersCompaniesList,\r\n\t\t\t\t\t(e1, e2) => e1.Id === e2.Id\r\n\t\t\t\t);\r\n\t\t\t\tbuyersDistinctCompaniesList = this.utilitiesService.GetDistinct(buyersCompaniesList, (e1, e2) => e1.Id === e2.Id);\r\n\t\t\t}\r\n\r\n\t\t\tthis.possibleSuppliers = supliersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.possibleBuyers = buyersDistinctCompaniesList.sort(function (company1: PublicCompany, company2: PublicCompany) {\r\n\t\t\t\tvar companyName1 = company1.Name.toUpperCase();\r\n\t\t\t\tvar companyName2 = company2.Name.toUpperCase();\r\n\t\t\t\treturn companyName1 < companyName2 ? -1 : companyName1 > companyName2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n\r\n\tpublic exportDocuments() {\r\n\t\tconst criteria = new DocumentSearchCriteria();\r\n\t\tcriteria.OrderBy = 'CreationDate';\r\n\t\tcriteria.RowsPerPage = this.pagination.numberOfRecordsPerPage;\r\n\t\tcriteria.RestrictionCriteria = this.DocumentSearchCriteria;\r\n\t\tcriteria.RestrictionCriteria.FileId = this.fileId;\r\n\t\tcriteria.OrderDescending = true;\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tthis.serverApiService.exportDocuments(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\toperationResult.IsValid ? this.processValidReport(operationResult.Data) : this.processInvalidReport(operationResult);\r\n\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic canExportSearchResults(): boolean {\r\n\t\treturn this.pagination.numberOfRecordsFound > 0 && !this.filtersHaveBeenReseted;\r\n\t}\r\n\r\n\tpublic gotoDocumentsUploadConfirming(): void {\r\n\t\tthis.router.navigate([\r\n\t\t\t'/private/files-upload/upload/documents/step1',\r\n\t\t\tDocumentUploadContractTypeExtensions.ToRouteParam(DocumentUploadContractType.Confirming)\r\n\t\t]);\r\n\t}\r\n\r\n\tpublic gotoDocumentsUploadFactoring(): void {\r\n\t\tthis.router.navigate([\r\n\t\t\t'/private/files-upload/upload/documents/step1',\r\n\t\t\tDocumentUploadContractTypeExtensions.ToRouteParam(DocumentUploadContractType.Factoring)\r\n\t\t]);\r\n\t}\r\n\r\n\tprivate processValidReport(report: Report) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(report.Content, report.ContentType);\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(blob, report.ContentName);\r\n\t}\r\n\r\n\tprivate processInvalidReport(operationResult: OperationResult) {\r\n\t\tif (operationResult.Errors?.some((e) => e.Code == ServerErrors.ExceededDocsExportAllowedMaxRow)) {\r\n\t\t\tconst infoModalRef = this.modalService.open(InformationModalComponent, {\r\n\t\t\t\tsize: 'lg',\r\n\t\t\t});\r\n\r\n\t\t\tlet error = operationResult.Errors?.find((e) => e.Code == ServerErrors.ExceededDocsExportAllowedMaxRow);\r\n\r\n\t\t\tif (!!error) {\r\n\t\t\t\tinfoModalRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t\t'search-docs.exportLimitError.modalInformationTitle',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\t\t\t\tinfoModalRef.componentInstance.content = this.getErrorDetailFormated(error);\r\n\t\t\t\tinfoModalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t\t'search-docs.exportLimitError.modalInformationConfirmActionText',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\r\n\t\t\t\tinfoModalRef.result\r\n\t\t\t\t\t.then(\r\n\t\t\t\t\t\t(confirmAction) => {},\r\n\t\t\t\t\t\t(cancelData) => {}\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t\t} else this.notificationService.addDanger('Invalid result from server export documents');\r\n\t\t} else this.notificationService.addDanger('Invalid result from server export documents');\r\n\t}\r\n\r\n\tprivate getErrorDetailFormated(error: OperationError): string {\r\n\t\tlet errorTranslation = this.translatedRemapedListErrorCodesForPage(error.Code);\r\n\r\n\t\tif (error.Details?.length > 0) {\r\n\t\t\terrorTranslation = this.formatExceededDocsExportAllowedMaxRowErrorDetails(errorTranslation, error.Details);\r\n\t\t}\r\n\r\n\t\treturn errorTranslation;\r\n\t}\r\n\r\n\tprivate translatedRemapedListErrorCodesForPage(resourceCode: string): string {\r\n\t\tlet pageSpecificTranslation = this.translateService.translate('search-docs.' + resourceCode);\r\n\r\n\t\tif (pageSpecificTranslation.endsWith(resourceCode.toLocaleLowerCase())) {\r\n\t\t\t//no specific translation found because returned error code\r\n\t\t\treturn this.translateService.translate(resourceCode, 'list-errorCodes');\r\n\t\t} else return pageSpecificTranslation;\r\n\t}\r\n\r\n\tprivate formatExceededDocsExportAllowedMaxRowErrorDetails(decodedError: string, details: ValueDetail[]): string {\r\n\t\tlet amount: string = details.find((d) => d.Code == DocumentExportDetailError.ROW_COUNT)?.Value ?? '';\r\n\t\tlet allowedLimi: string = details.find((d) => d.Code == DocumentExportDetailError.ALLOWED_LIMIT)?.Value ?? '';\r\n\r\n\t\treturn decodedError.replace(/\\[ROW_COUNT\\]/g, amount).replace(/\\[ALLOWED_LIMIT\\]/g, allowedLimi);\r\n\t}\r\n\r\n\tpublic canDeleteDocument(document: Document): boolean {\r\n\t\tconst documentUploadedViaSftpOrApi =\r\n\t\t\tdocument.ExternalSource === DocumentExternalSource.EXTERNAL_ETL_FILE_INTEGRATION ||\r\n\t\t\tdocument.ExternalSource === DocumentExternalSource.API_EXTERNAL_FILE;\r\n\r\n\t\tlet canDeleteDoc = false;\r\n\r\n\t\tif (this.loggedUser?.IsBuyer && this.loggedUser?.IsCompanyAdmin) {\r\n\t\t\tif (documentUploadedViaSftpOrApi) {\r\n\t\t\t\tcanDeleteDoc = document.PaymentState === DocumentPaymentState.Unpaid && document.ApprovalState === DocumentApprovalState.Approved;\r\n\t\t\t} else {\r\n\t\t\t\tcanDeleteDoc = document.PaymentState === DocumentPaymentState.Unpaid && document.ApprovalState !== DocumentApprovalState.Registered;\r\n\t\t\t}\r\n\t\t} else if (this.loggedUser?.IsFinancier) {\r\n\t\t\tcanDeleteDoc = document.PaymentState === DocumentPaymentState.Unpaid && document.ApprovalState === DocumentApprovalState.Approved;\r\n\t\t}\r\n\r\n\t\treturn canDeleteDoc;\r\n\t}\r\n\r\n\tprivate GetEtlFileDetails(fileId: string): void {\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tthis.serverApiService.getFileIntegrationById(fileId).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.fileIntegrationDetail = operationResult.Data;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('Invalid result from server search etl file id.');\r\n\t\t\t\t}\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic doSelectAll(): void {\r\n\t\tconst documentsToSelect = this.documents.filter((document) => this.canDeleteDocument(document));\r\n\t\tdocumentsToSelect.forEach((document) => (document.Selected = this.selectAll));\r\n\r\n\t\tthis.getSelectedDocumentsCount();\r\n\t}\r\n\r\n\tpublic getSelectedDocumentsCount(): void {\r\n\t\tconst selectedDocuments = this.documents.filter((document) => document.Selected);\r\n\t\tthis.appContext.setSelectedDocumentsInClient(selectedDocuments, this.pagination.currentPageInClient);\r\n\t\tthis.selectedDocumentsCount = this.appContext.getSelectedDocumentsInClient().length;\r\n\t}\r\n\r\n\tprivate setSelectedDocuments() {\r\n\t\tconst allDocsSelectedInClient: Document[] = this.appContext.getSelectedDocumentsInClient();\r\n\r\n\t\tthis.documents.forEach((document: DocumentViewModel) => {\r\n\t\t\tconst existsInSelectedDocuments =\r\n\t\t\t\tallDocsSelectedInClient.filter((d: Document) => {\r\n\t\t\t\t\treturn d.Id === document.Id;\r\n\t\t\t\t}).length > 0;\r\n\r\n\t\t\tif (existsInSelectedDocuments) {\r\n\t\t\t\tdocument.Selected = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tconst selectedDocument = this.documents.filter((document) => document.Selected);\r\n\t\tthis.selectAll = selectedDocument.length == this.pagination.numberOfRecordsPerPage;\r\n\t}\r\n\r\n\tpublic confirmDocumentsDeletions(): void {\r\n\t\tconst allDocsSelectedInClient: Document[] = this.appContext.getSelectedDocumentsInClient();\r\n\t\tconst allDocsSelectedIdsInClient: string[] = allDocsSelectedInClient.map((d) => d.Id);\r\n\t\tconst allDocsSelectdInClientCount: number = allDocsSelectedInClient.length;\r\n\r\n\t\tconst modalRef = this.modalService.open(ConfirmDialogModalComponent, {\r\n\t\t\tsize: 'lg',\r\n\t\t});\r\n\r\n\t\tlet regex = /\\[SelectedDocumentCount\\]/gi;\r\n\r\n\t\tmodalRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t'search-docs-selectedDocumentApprovalRevoked.modalConfirmDialogSubmitTitle',\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tmodalRef.componentInstance.content = this.translateService\r\n\t\t\t.translate('search-docs-selectedDocumentApprovalRevoked.modalConfirmDialogSubmitContent', 'client')\r\n\t\t\t.replace(regex, allDocsSelectdInClientCount.toString());\r\n\t\tmodalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t'search-docs-selectedDocumentApprovalRevoked.modalConfirmDialogSubmitConfirmActionText',\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tmodalRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t'search-docs-selectedDocumentApprovalRevoked.modalConfirmDialogSubmitDenyActionText',\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tmodalRef.result\r\n\t\t\t.then(\r\n\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t\t\t\t(loggedUser: User) => {\r\n\t\t\t\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tconst deleteDocServiceCall = this.serverApiService.deleteDocumentsByIds(allDocsSelectedIdsInClient);\r\n\r\n\t\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\t\tdeleteDocServiceCall.subscribe({\r\n\t\t\t\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\tlet sucessMessage = this.translateService\r\n\t\t\t\t\t\t\t\t\t\t\t.translate('search-docs-selectedDocumentApprovalRevoked.sucess', 'client')\r\n\t\t\t\t\t\t\t\t\t\t\t.replace(regex, allDocsSelectdInClientCount.toString());\r\n\r\n\t\t\t\t\t\t\t\t\t\tthis.performNewSearch();\r\n\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\tthis.notificationService.addSuccess(sucessMessage);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tthis.requestErrors = this.utilitiesService.GetDistinctOperationErrors(operationResult.Errors);\r\n\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = 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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\tthis.logger.error('[SearchDocumentsComponent::deleteDocumentsByIds] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t\t'[SearchDocumentsComponent::deleteDocumentsByIds] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\t},\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(cancelData) => {}\r\n\t\t\t)\r\n\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t}\r\n\r\n\tprotected canSeeRequestFundingOptions(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.IsSupplier && this.loggedUser?.IsCompanyAdmin) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.IsFinancier && this.loggedUser?.IsCompanyAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprotected gotoConfirmingFundingRequestCreate(): void {\r\n\t\tthis.router.navigateByUrl('/private/funding-request/create');\r\n\t}\r\n\r\n\tprotected gotoFactoringAdvancePaymentCreate(): void {\r\n\t\tthis.router.navigateByUrl('/private/advance-request/create');\r\n\t}\r\n\r\n\tprotected canSeeUploadDocumentsOptions(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.canUploadDocumentsForConfirming()) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.canUploadDocumentsForFactoring()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\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
\r\n
\r\n

{{'search-docs.pageTitle' | translate}}

\r\n

\r\n {{'search-docs.pageTitleWithFilesIntegrationFileName' | translate}}

\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
0 && ((loggedUser?.IsFinancier || loggedUser?.IsBuyer) && loggedUser?.IsCompanyAdmin)\" class=\"mr-sm-3\">\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
0\" class=\"pt-3 pb-0 px-3\">\r\n
\r\n {{ selectedDocumentsCount }}\r\n {{'search-docs.selectedDocsCountText' | translate}}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n 0\">\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
{{'search-docs.doc' | translate}}{{'search-docs.supplier' | translate}}{{'search-docs.buyer'| translate}}{{'search-docs.docAmount'| translate}}{{'search-docs.creationDate' |translate}}\r\n
\r\n
\r\n {{'search-docs.confirmedPaymentDate' |translate}}\r\n
\r\n\r\n
\r\n {{'search-docs.confirmedPaymentDate.tooltip' | translate}}
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n
{{'search-docs.approvalState'| translate}}{{'search-docs.paymentState'| translate}}
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n

{{document.Type | translate:'list-docType'}}

\r\n \r\n

{{document.Number}}

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

{{document.Supplier.Name}}

\r\n {{document.Supplier.CountryCode}}{{document.Supplier.VatNumber}}\r\n
\r\n
\r\n
\r\n

{{document.Buyer.Name}}

\r\n {{document.Buyer.CountryCode}}{{document.Buyer.VatNumber}}\r\n
\r\n
{{document.TotalAmount | currencyLocale:document.Currency }}\r\n {{document.CreationDate}}\r\n \r\n {{document.BuyerPaymentDate | dateLocale }}\r\n \r\n \r\n {{document.ApprovalState | translate:'list-approvalState'}}\r\n \r\n \r\n \r\n {{document.PaymentState |translate:'list-paymentState'}}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n {{'search-docs.simulationTermsAndConditions' | translate}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{'search-docs.doc' | translate}}
\r\n
\r\n

{{document.Type | translate:'list-docType'}}

\r\n

{{document.Number}}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{'search-docs.supplier' | translate}}
\r\n
\r\n

{{document.Supplier.Name}}

\r\n {{document.Supplier.CountryCode}}{{document.Supplier.VatNumber}}\r\n
\r\n
\r\n
\r\n
{{'search-docs.buyer'| translate}}
\r\n
\r\n

{{document.Buyer.Name}}

\r\n {{document.Buyer.CountryCode}}{{document.Buyer.VatNumber}}\r\n
\r\n
\r\n
\r\n
{{'search-docs.docAmount'| translate}}
\r\n
\r\n \r\n {{document.TotalAmount | currencyLocale:document.Currency }}\r\n \r\n
\r\n
\r\n
\r\n
{{'search-docs.creationDate' |translate}}
\r\n
\r\n {{document.CreationDate}}\r\n
\r\n
\r\n
\r\n
{{'search-docs.confirmedPaymentDate' |translate}}
\r\n
\r\n {{document.BuyerPaymentDate | dateLocale }}\r\n
\r\n
\r\n
\r\n
{{'search-docs.approvalState'| translate}}
\r\n
\r\n \r\n {{document.ApprovalState | translate:'list-approvalState'}}\r\n \r\n
\r\n
\r\n
\r\n
{{'search-docs.paymentState'| translate}}
\r\n
\r\n \r\n {{document.PaymentState |translate:'list-paymentState'}}\r\n \r\n
\r\n
\r\n
\r\n
\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 { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { UploadComponent } from './upload/upload.component';\r\nimport { DocumentsUploadStep1Component } from './upload/documents/step1/documents-upload-step1.component';\r\nimport { DocumentsUploadStep2Component } from './upload/documents/step2/documents-upload-step2.component';\r\nimport { DocumentsUploadStep3Component } from './upload/documents/step3/documents-upload-step3.component';\r\nimport { DocumentsUploadStep4Component } from './upload/documents/step4/documents-upload-step4.component';\r\nimport { AuthGuard } from '../../guards/auth.guard';\r\nimport { SuppliersUploadStep1Component } from './upload/suppliers/step1/suppliers-upload-step1.component';\r\nimport { SuppliersUploadStep2Component } from './upload/suppliers/step2/suppliers-upload-step2.component';\r\nimport { SuppliersUploadStep3Component } from './upload/suppliers/step3/suppliers-upload-step3.component';\r\nimport { SuppliersUploadStep4Component } from './upload/suppliers/step4/suppliers-upload-step4.component';\r\nimport { FactoringCreditAssignmentTemplateComponent } from './upload/FactoringCreditAssignment/template/factoring-credit-assignment-template.component';\r\nimport { UploadFileComponent } from './upload/files/upload-file.component';\r\nimport { GlobalizationManagementUploadStep1Component } from './upload/globalization/management/import/step1/globalization-management-upload-step1.component';\r\nimport { GlobalizationManagementUploadStep2Component } from './upload/globalization/management/import/step2/globalization-management-upload-step2.component';\r\nimport { GlobalizationManagementUploadStep3Component } from './upload/globalization/management/import/step3/globalization-management-upload-step3.component';\r\nimport { GlobalizationManagementUploadStep4Component } from './upload/globalization/management/import/step4/globalization-management-upload-step4.component';\r\nimport { AuthSystemAdminOnlyGuard } from '../../guards/auth-system-admin-only.guard';\r\nimport { GlobalizationManagementUploadDeleteStep1Component } from './upload/globalization/management/delete/step1/globalization-management-upload-delete-step1.component';\r\nimport { GlobalizationManagementUploadDeleteStep2Component } from './upload/globalization/management/delete/step2/globalization-management-upload-delete-step2.component';\r\nimport { GlobalizationManagementUploadDeleteStep3Component } from './upload/globalization/management/delete/step3/globalization-management-upload-delete-step3.component';\r\nimport { GlobalizationManagementUploadDeleteStep4Component } from './upload/globalization/management/delete/step4/globalization-management-upload-delete-step4.component';\r\n\r\nconst routes: Routes = [\r\n\t{\r\n\t\tpath: 'upload',\r\n\t\tcomponent: UploadComponent,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/documents/step1/:uploadContractType',\r\n\t\tcomponent: DocumentsUploadStep1Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/documents/step2/:uploadContractType',\r\n\t\tcomponent: DocumentsUploadStep2Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/documents/step3/:uploadId/:uploadContractType',\r\n\t\tcomponent: DocumentsUploadStep3Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/documents/step4/:uploadId/:uploadContractType',\r\n\t\tcomponent: DocumentsUploadStep4Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/suppliers/step1',\r\n\t\tcomponent: SuppliersUploadStep1Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/suppliers/step2',\r\n\t\tcomponent: SuppliersUploadStep2Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/suppliers/step3/:uploadId',\r\n\t\tcomponent: SuppliersUploadStep3Component,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/suppliers/step4/:uploadId',\r\n\t\tcomponent: SuppliersUploadStep4Component,\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/factoringcreditassignment/template',\r\n\t\tcomponent: FactoringCreditAssignmentTemplateComponent,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/files',\r\n\t\tcomponent: UploadFileComponent,\r\n\t\tcanActivate: [AuthGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/import/step1',\r\n\t\tcomponent: GlobalizationManagementUploadStep1Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/import/step2',\r\n\t\tcomponent: GlobalizationManagementUploadStep2Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/import/step3',\r\n\t\tcomponent: GlobalizationManagementUploadStep3Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/import/step4',\r\n\t\tcomponent: GlobalizationManagementUploadStep4Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard]\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/delete/step1',\r\n\t\tcomponent: GlobalizationManagementUploadDeleteStep1Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/delete/step2',\r\n\t\tcomponent: GlobalizationManagementUploadDeleteStep2Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/delete/step3',\r\n\t\tcomponent: GlobalizationManagementUploadDeleteStep3Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t},\r\n\t{\r\n\t\tpath: 'upload/globalization/management/delete/step4',\r\n\t\tcomponent: GlobalizationManagementUploadDeleteStep4Component,\r\n\t\tcanActivate: [AuthSystemAdminOnlyGuard]\r\n\t},\r\n];\r\n\r\n@NgModule({\r\n\timports: [RouterModule.forChild(routes)],\r\n\texports: [RouterModule],\r\n})\r\nexport class UploadRoutingModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { DocumentsUploadStep1Component } from './upload/documents/step1/documents-upload-step1.component';\r\nimport { UploadComponent } from './upload/upload.component';\r\nimport { UploadRoutingModule } from './upload-routing.module';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { CoreModule } from '../../core/core.module';\r\nimport { TranslateModule } from '../../services/translate/translate.module';\r\nimport { DocumentsUploadStep2Component } from './upload/documents/step2/documents-upload-step2.component';\r\nimport { UtilitiesService } from '../../services/utils/utilities.service';\r\nimport { DocumentsUploadStep3Component } from './upload/documents/step3/documents-upload-step3.component';\r\nimport { DocumentsUploadStep4Component } from './upload/documents/step4/documents-upload-step4.component';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { SuppliersUploadStep1Component } from './upload/suppliers/step1/suppliers-upload-step1.component';\r\nimport { SuppliersUploadStep2Component } from './upload/suppliers/step2/suppliers-upload-step2.component';\r\nimport { SuppliersUploadStep3Component } from './upload/suppliers/step3/suppliers-upload-step3.component';\r\nimport { SuppliersUploadStep4Component } from './upload/suppliers/step4/suppliers-upload-step4.component';\r\nimport { FactoringCreditAssignmentTemplateComponent } from './upload/FactoringCreditAssignment/template/factoring-credit-assignment-template.component';\r\nimport { UploadFileComponent } from './upload/files/upload-file.component';\r\nimport { DocumentsUploadConfirmingInstructionsComponent } from './upload/documents/documents-upload-confirming-instructions/documents-upload-confirming-instructions.component';\r\nimport { DocumentsUploadFactoringInstructionsComponent } from './upload/documents/documents-upload-factoring-instructions/documents-upload-factoring-instructions.component';\r\nimport { GlobalizationManagementUploadStep1Component } from './upload/globalization/management/import/step1/globalization-management-upload-step1.component';\r\nimport { GlobalizationManagementUploadStep2Component } from './upload/globalization/management/import/step2/globalization-management-upload-step2.component';\r\nimport { GlobalizationManagementUploadStep3Component } from './upload/globalization/management/import/step3/globalization-management-upload-step3.component';\r\nimport { GlobalizationManagementUploadStep4Component } from './upload/globalization/management/import/step4/globalization-management-upload-step4.component';\r\nimport { GlobalizationManagementDataService } from './upload/globalization/management/globalization-management-data-service';\r\nimport { GlobalizationManagementUploadDeleteStep1Component } from './upload/globalization/management/delete/step1/globalization-management-upload-delete-step1.component';\r\nimport { GlobalizationManagementUploadDeleteStep2Component } from './upload/globalization/management/delete/step2/globalization-management-upload-delete-step2.component';\r\nimport { GlobalizationManagementUploadDeleteStep3Component } from './upload/globalization/management/delete/step3/globalization-management-upload-delete-step3.component';\r\nimport { GlobalizationManagementUploadDeleteStep4Component } from './upload/globalization/management/delete/step4/globalization-management-upload-delete-step4.component';\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tCommonModule, \r\n\t\tFormsModule, \r\n\t\tCoreModule, \r\n\t\tTranslateModule, \r\n\t\tUploadRoutingModule, \r\n\t\tNgbModule\r\n\t],\r\n\tdeclarations: [\r\n\t\tUploadComponent,\r\n\t\tDocumentsUploadStep1Component,\r\n\t\tDocumentsUploadStep2Component,\r\n\t\tDocumentsUploadStep3Component,\r\n\t\tDocumentsUploadStep4Component,\r\n\t\tSuppliersUploadStep1Component,\r\n\t\tSuppliersUploadStep2Component,\r\n\t\tSuppliersUploadStep3Component,\r\n\t\tSuppliersUploadStep4Component,\r\n\t\tFactoringCreditAssignmentTemplateComponent,\r\n\t\tUploadFileComponent,\r\n\t\tDocumentsUploadConfirmingInstructionsComponent,\r\n\t\tDocumentsUploadFactoringInstructionsComponent,\r\n\t\tGlobalizationManagementUploadStep1Component,\r\n\t\tGlobalizationManagementUploadStep2Component,\r\n\t\tGlobalizationManagementUploadStep3Component,\r\n\t\tGlobalizationManagementUploadStep4Component,\r\n\t\tGlobalizationManagementUploadDeleteStep1Component,\r\n\t\tGlobalizationManagementUploadDeleteStep2Component,\r\n\t\tGlobalizationManagementUploadDeleteStep3Component,\r\n\t\tGlobalizationManagementUploadDeleteStep4Component\r\n\t],\r\n\tproviders: [\r\n\t\tUtilitiesService, \r\n\t\tGlobalizationManagementDataService\r\n\t],\r\n})\r\nexport class UploadModule {}\r\n","import { Component } from '@angular/core';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../../../services/app-context.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { UtilitiesService } from '../../../../../services/utils/utilities.service';\r\nimport { FactoringCreditAssignmentRecordsUploadTemplateResult } from '../../../../../models/upload/factoring-credit-assignment/factoring-credit-assignment-records-upload-template-result';\r\n\r\n@Component({\r\n\tselector: 'app-factoring-credit-assignment-template',\r\n\ttemplateUrl: './factoring-credit-assignment-template.component.html',\r\n\tstyleUrls: ['./factoring-credit-assignment-template.component.css'],\r\n})\r\nexport class FactoringCreditAssignmentTemplateComponent {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tpublic downloadTemplate() {\r\n\t\tconst serviceCall = this.serverApiService.generateFactoringCreditAssignmentRecordsUploadTemplate();\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidFactoringCreditAssignmentRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidFactoringCreditAssignmentRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[FactoringCreditAssignmentUploadStep1Component::generateFactoringCreditAssignmentRecordsUploadTemplate] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[FactoringCreditAssignmentUploadStep1Component::generateFactoringCreditAssignmentRecordsUploadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInValidFactoringCreditAssignmentRecordsUploadTemplateResult(\r\n\t\toperationResult: OperationResult\r\n\t) {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processValidFactoringCreditAssignmentRecordsUploadTemplateResult(\r\n\t\toperationResult: OperationResult\r\n\t) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(operationResult.Data.Content, operationResult.Data.ContentType);\r\n\r\n\t\t//strategy from https://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link\r\n\t\tconst element = document.createElement('a');\r\n\t\telement.href = URL.createObjectURL(blob);\r\n\t\telement.download = operationResult.Data.ContentName;\r\n\t\tdocument.body.appendChild(element);\r\n\t\telement.click();\r\n\t}\r\n\r\n\tpublic clickGotoUploadStep(): void {}\r\n}\r\n","\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'factoring-credit-assignment-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'factoring-credit-assignment.Step1Label' | translate }}\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{{ 'factoring-credit-assignment.Step2Label' | translate }}\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{{ 'factoring-credit-assignment.Step1Label' | translate }}\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\t
\r\n\t\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
\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInfoText' | translate }}\r\n\t\t\t\t\t\t\t\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplate' | translate }}\r\n\t\t\t\t\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\r\n\t\t\t\t\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText1' | translate }}\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText2' | translate }}\r\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText3' | translate }}\r\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText4' | translate }}\r\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText5' | translate }}\r\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{{ 'factoring-credit-assignment-step1.FactoringCreditAssignmentTemplateInstructionsInfoText6' | translate }}\r\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\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{{ 'factoring-credit-assignment-step1.goToUploadStep' | translate }}\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 { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'eif-documents-upload-confirming-instructions',\r\n templateUrl: './documents-upload-confirming-instructions.component.html',\r\n styleUrls: ['./documents-upload-confirming-instructions.component.css']\r\n})\r\nexport class DocumentsUploadConfirmingInstructionsComponent {\r\n\r\n}\r\n","
    \r\n
  • \r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoText1' | translate }}\r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoText2' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoText3' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoText4' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoText5' | translate }}\r\n \r\n
  • \r\n\r\n
      \r\n
    • \r\n {{ 'DocumentRecordsColumnTypeCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoType' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnNumberCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoNumber' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnTotalCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoTotal' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnCurrencyCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoCurrency' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnIssueDateCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoIssueDate' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnDueDateCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoDueDate' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnBuyerPaymentDateCode' | translate: 'DocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoBuyerPaymentDate' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnBuyerCountryCodeCode' | translate: 'DocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoBuyerCountryCode' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnBuyerVatNumberCode' | translate: 'DocumentRecordsUploadExcelTemplate' }} \r\n - {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoBuyerVatNumber' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnSupplierCountryCodeCode' | translate: 'DocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoSupplierCountryCode' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnSupplierVatNumberCode' | translate: 'DocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-confirming-instructions.DocumentTemplateInstructionsInfoSupplierVatNumber' | translate }}\r\n
    • \r\n
    \r\n
","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'eif-documents-upload-factoring-instructions',\r\n templateUrl: './documents-upload-factoring-instructions.component.html',\r\n styleUrls: ['./documents-upload-factoring-instructions.component.css']\r\n})\r\nexport class DocumentsUploadFactoringInstructionsComponent {\r\n\r\n}\r\n","
    \r\n
  • \r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoText1' | translate }}\r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoText2' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoText3' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoText4' | translate }}\r\n \r\n
  • \r\n
  • \r\n \r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoText5' | translate }}\r\n \r\n
  • \r\n\r\n
      \r\n
    • \r\n {{ 'DocumentRecordsColumnTypeCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoType' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnNumberCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoNumber' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnTotalCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoTotal' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnCurrencyCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoCurrency' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnIssueDateCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoIssueDate' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnDueDateCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} -\r\n {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoDueDate' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnBuyerCountryCodeCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoBuyerCountryCode' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnBuyerVatNumberCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }} \r\n - {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoBuyerVatNumber' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnSupplierCountryCodeCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoSupplierCountryCode' | translate }}\r\n
    • \r\n
    • \r\n {{ 'DocumentRecordsColumnSupplierVatNumberCode' | translate: 'FactoringDocumentRecordsUploadExcelTemplate' }}\r\n \r\n - {{ 'document-upload-factoring-instructions.DocumentTemplateInstructionsInfoSupplierVatNumber' | translate }}\r\n
    • \r\n
    \r\n
","\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { DocumentRecordsUploadTemplateResult } from '../../../../../models/upload/documents/document-records-upload-template-result';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { UtilitiesService } from '../../../../../services/utils/utilities.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { DocumentUploadContractType, DocumentUploadContractTypeExtensions } from '../../../../../models/enums/document-upload-contract-type';\r\n\r\n@Component({\r\n\tselector: 'app-documents-upload-step1',\r\n\ttemplateUrl: './documents-upload-step1.component.html',\r\n\tstyleUrls: ['./documents-upload-step1.component.css'],\r\n})\r\nexport class DocumentsUploadStep1Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tprivate uploadContractType: DocumentUploadContractType | null = null;\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate route: ActivatedRoute\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst uploadContractTypeParam = params['uploadContractType'];\r\n\t\t\tif (!!uploadContractTypeParam) {\r\n\t\t\t\tthis.uploadContractType = DocumentUploadContractTypeExtensions.FromRouteParam(uploadContractTypeParam);\r\n\t\t\t}\r\n\r\n\t\t\tif (!this.uploadContractType) {\r\n\t\t\t\tthis.logger.error('Missing uploadContractType on documents upload step1.');\r\n\t\t\t\tthis.notificationService.addDanger('Missing uploadContractType on documents upload step1.');\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tthis.uploadContractTypeRouteParam = uploadContractTypeParam;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic downloadTemplate() {\r\n\t\tconst serviceCall = this.serverApiService.generateDocumentRecordsUploadTemplate(this.uploadContractType!);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidDocumentRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidDocumentRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[DocumentsUploadStep1Component::generateDocumentRecordsUploadTemplate] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[DocumentsUploadStep1Component::generateDocumentRecordsUploadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInValidDocumentRecordsUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processValidDocumentRecordsUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(operationResult.Data.Content, operationResult.Data.ContentType);\r\n\r\n\t\t//strategy from https://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link\r\n\t\tconst element = document.createElement('a');\r\n\t\telement.href = URL.createObjectURL(blob);\r\n\t\telement.download = operationResult.Data.ContentName;\r\n\t\tdocument.body.appendChild(element);\r\n\t\telement.click();\r\n\t}\r\n\r\n\tprotected showConfirmingUploadInstructions(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Confirming;\r\n\t}\r\n\r\n\tprotected showFactoringUploadInstructions(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Factoring;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'document-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'document-upload.Step1Label' | translate }}\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{{ 'document-upload.Step2Label' | translate }}\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{{ 'document-upload.Step3Label' | translate }}\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{{ 'document-upload.Step4Label' | translate }}\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{{ 'document-upload.Step1Label' | translate }}\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\t
\r\n\t\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
\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{{ 'document-upload-step1.DocumentTemplateTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'document-upload-step1.DocumentTemplateInfoText' | translate }}\r\n\t\t\t\t\t\t\t\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{{ 'document-upload-step1.DocumentTemplate' | translate }}\r\n\t\t\t\t\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\r\n\t\t\t\t\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{{ 'document-upload-step1.DocumentTemplateInstructionsTitle' | translate }}\r\n\t\t\t\t\t\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
\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
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'document-upload-step1.goToUploadStep' | translate }}\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 { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { ReceiveUploadedFileRequest } from '../../../../../models/upload/receive-uploaded-file-request';\r\nimport { ReceiveUploadedFileResult } from '../../../../../models/upload/receive-uploaded-file-result';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { UploadFileContentType } from '../../../../../models/upload/upload-file-content-type';\r\nimport { ExecutionPermissionValidatorService } from '../../../../../services/validations/execution-permission-validator.service';\r\nimport { User } from '../../../../../models/User/user';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { DocumentUploadContractType, DocumentUploadContractTypeExtensions } from '../../../../../models/enums/document-upload-contract-type';\r\n\r\n@Component({\r\n\tselector: 'app-documents-upload-step2',\r\n\ttemplateUrl: './documents-upload-step2.component.html',\r\n\tstyleUrls: ['./documents-upload-step2.component.css'],\r\n})\r\nexport class DocumentsUploadStep2Component implements OnInit {\r\n\t@ViewChild('fileInput') private fileInput: ElementRef;\r\n\t\r\n\tpublic fileName: string;\r\n\tprivate fileType: string;\r\n\tprivate fileContent: string;\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tprivate uploadContractType: DocumentUploadContractType | null = null;\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService,\r\n\t\tprivate router: Router,\r\n\t\tprivate route: ActivatedRoute\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.fileName = this.translateService.translate('document-upload-step2.DocumentUploadNoSelectedFile', 'client');\r\n\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst uploadContractTypeParam = params['uploadContractType'];\r\n\t\t\tif (!!uploadContractTypeParam) {\r\n\t\t\t\tthis.uploadContractType = DocumentUploadContractTypeExtensions.FromRouteParam(uploadContractTypeParam);\r\n\t\t\t}\r\n\r\n\t\t\tif (!this.uploadContractType) {\r\n\t\t\t\tthis.logger.error('Missing uploadContractType on documents upload step2.');\r\n\t\t\t\tthis.notificationService.addDanger('Missing uploadContractType on documents upload step2.');\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tthis.uploadContractTypeRouteParam = uploadContractTypeParam;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic processUploadedDocument(): void {\r\n\t\tconst uploadFileContentType = this.getUploadFileContentType();\r\n\t\tif (!uploadFileContentType) {\r\n\t\t\tthis.logger.error(`Invalid or unexpected document upload contract type = ${this.uploadContractType}`);\r\n\t\t\tthis.notificationService.addDanger(`Invalid or unexpected document upload contract type = ${this.uploadContractType}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst receiveUploadedFileRequest: ReceiveUploadedFileRequest = {\r\n\t\t\tFileContent: this.fileContent,\r\n\t\t\tFileName: this.fileName,\r\n\t\t\tUploadFileContentType: uploadFileContentType!,\r\n\t\t\tFileType: this.fileType,\r\n\t\t};\r\n\r\n\t\tconst serviceCall = this.serverApiService.receiveUploadedFile(receiveUploadedFileRequest);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[DocumentsUploadStep2Component::receiveUploadedFileRequest] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[DocumentsUploadStep2Component::receiveUploadedFileRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.router.navigate([\r\n\t\t\t'/private/files-upload/upload/documents/step3',\r\n\t\t\toperationResult.Data.FileId,\r\n\t\t\tthis.uploadContractTypeRouteParam\r\n\t\t]);\r\n\t}\r\n\r\n\tprivate processInValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tpublic showNextStep(): boolean {\r\n\t\treturn !!this.fileContent && this.validationErrors.length === 0;\r\n\t}\r\n\r\n\tpublic onFileChange(event): void {\r\n\t\tlet reader = new FileReader();\r\n\t\tif (event.target.files && event.target.files.length > 0) {\r\n\t\t\tlet file = event.target.files[0];\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t\treader.onload = () => {\r\n\t\t\t\tthis.fileName = file.name.length > 30 \r\n\t\t\t\t? file.name.substring(0, 30) + \"...\" \r\n\t\t\t\t: file.name;\r\n\r\n\t\t\t\tthis.fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';\r\n\t\t\t};\r\n\t\t\treader.onloadend = (e) => {\r\n\t\t\t\tif (reader.result !== null && reader.result !== undefined && reader.result.toString() !== null) {\r\n\t\t\t\t\tvar base64result = (reader.result as string).split(',')[1];\r\n\t\t\t\t\tthis.fileContent = base64result;\r\n\t\t\t\t\tthis.validationErrors = [];\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tprotected selectFile(): void {\r\n\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t(loggedUser: User) => {\r\n\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.fileInput?.nativeElement?.click();\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tprivate getUploadFileContentType(): UploadFileContentType | null {\r\n\t\tif (this.uploadContractType === DocumentUploadContractType.Confirming) {\r\n\t\t\treturn UploadFileContentType.ConfirmingDocuments_Type1_XLSX;\r\n\t\t} else if (this.uploadContractType === DocumentUploadContractType.Factoring) {\r\n\t\t\treturn UploadFileContentType.FactoringDocuments_Type1_XLSX;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'document-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\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
\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{{ 'document-upload.Step1Label' | translate }}\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{{ 'document-upload.Step2Label' | translate }}\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{{ 'document-upload.Step3Label' | translate }}\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{{ 'document-upload.Step4Label' | translate }}\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{{ 'document-upload.Step2Label' | translate }}\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\t
\r\n\t\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
\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{{ 'document-upload-step2.DocumentUploadInfoText' | translate }}\r\n\t\t\t\t\t\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{{ fileName }}\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{{ 'document-upload-step2.DocumentUploadBrowseFile' | translate }}\r\n\t\t\t\t\t\t\t\t\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
\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
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'document-upload-step2.goToPreviousStep' | translate }}\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{{ 'document-upload-step2.goToValidationStep' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { ValidateFileContentByUploadIdRequest } from '../../../../../models/upload/validate-file-content-by-upload-id-request';\r\nimport { ValidateFileContentByUploadIdResult } from '../../../../../models/upload/validate-file-content-by-upload-id-result';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { DocumentRecordValidation } from '../../../../../models/upload/documents/document-record-validation-result';\r\nimport { ProcessFileContentByUploadIdRequest } from '../../../../../models/upload/process-file-content-by-upload-id-request';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ConfirmDialogModalComponent } from '../../../../../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { ServerErrors } from '../../../../../models/enums/server-errors';\r\nimport { DocumentUploadedRecordValidationStatus } from '../../../../../models/upload/documents/document-uploaded-record-validation-status';\r\nimport { DocumentAmountCurrencyData } from '../../../../../models/upload/documents/document-amount-currency-data';\r\nimport { ScreenWidthListenerService } from '../../../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { DocumentUploadContractType, DocumentUploadContractTypeExtensions } from '../../../../../models/enums/document-upload-contract-type';\r\n\r\n@Component({\r\n\tselector: 'app-documents-upload-step3',\r\n\ttemplateUrl: './documents-upload-step3.component.html',\r\n\tstyleUrls: ['./documents-upload-step3.component.css'],\r\n})\r\nexport class DocumentsUploadStep3Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tpublic contentValidationData: DocumentRecordValidation[] = [];\r\n\tpublic uploadId: string;\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\r\n\tprotected loadedRecordsCounts: Promise;\r\n\tprotected validSumAmountPerCurrency: DocumentAmountCurrencyData[];\r\n\tprotected invalidSumAmountPerCurrency: DocumentAmountCurrencyData[];\r\n\tprivate uploadContractType: DocumentUploadContractType | null = null;\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\tpublic showValidationResults: boolean;\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst uploadContractTypeParam = params['uploadContractType'];\r\n\t\t\tif (!!uploadContractTypeParam) {\r\n\t\t\t\tthis.uploadContractType = DocumentUploadContractTypeExtensions.FromRouteParam(uploadContractTypeParam);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!this.uploadContractType) {\r\n\t\t\t\tthis.logger.error('Missing uploadContractType on documents upload step3.');\r\n\t\t\t\tthis.notificationService.addDanger('Missing uploadContractType on documents upload step3.');\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tthis.uploadContractTypeRouteParam = uploadContractTypeParam;\r\n\t\t\t}\r\n\r\n\t\t\tthis.uploadId = params['uploadId'];\r\n\r\n\t\t\tif (this.uploadId) {\r\n\t\t\t\tconst validateFileContentByUploadIdRequest: ValidateFileContentByUploadIdRequest = {\r\n\t\t\t\t\tUploadId: this.uploadId,\r\n\t\t\t\t\tDocumentUploadContractType: this.uploadContractType\r\n\t\t\t\t};\r\n\r\n\t\t\t\tconst serviceCall = this.serverApiService.validateDocumentRecordsExcelFileContent(validateFileContentByUploadIdRequest);\r\n\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.processValidValidateFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.processInValidValidateFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t'[DocumentsUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t'[DocumentsUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.message\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} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get uploadId from route...');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidValidateFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.showValidationResults = true\r\n\t\tthis.contentValidationData = operationResult.Data.ContentValidationData;\r\n\t\tthis.contentValidationData.map((validationData) => {\r\n\t\t\tif (\r\n\t\t\t\tvalidationData.ValidationErrors.some((validationErrors) => validationErrors.Code === ServerErrors.DocumentNumberMaxStringLenError)\r\n\t\t\t) {\r\n\t\t\t\tvalidationData.ValidationErrors.map((validationErrors) => {\r\n\t\t\t\t\tif (validationErrors.Code === ServerErrors.DocumentNumberMaxStringLenError) {\r\n\t\t\t\t\t\tvalidationErrors.Code = validationErrors.Values[0];\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\tthis.totalValidRecords = operationResult.Data.TotalValidRecords;\r\n\t\tthis.totalInvalidRecords = operationResult.Data.TotalInvalidRecords;\r\n\t\t\r\n\t\tthis.validSumAmountPerCurrency = DocumentAmountCurrencyData.sumDocumentAmountsByCurrency(\r\n\t\t\tthis.contentValidationData.filter((data) => data.ValidationStatus === DocumentUploadedRecordValidationStatus.Valid)\r\n\t\t);\r\n\r\n\t\tthis.invalidSumAmountPerCurrency = DocumentAmountCurrencyData.sumDocumentAmountsByCurrency(\r\n\t\t\tthis.contentValidationData.filter((data) => data.ValidationStatus === DocumentUploadedRecordValidationStatus.Invalid)\r\n\t\t);\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tprivate processInValidValidateFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = this.changeErrorCodes(operationResult.Errors);\r\n\r\n\t\tthis.showValidationResults = true\r\n\t\tthis.totalInvalidRecords = 1;\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tpublic backToUploadStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/documents/step2', this.uploadContractTypeRouteParam]);\r\n\t}\r\n\r\n\tpublic goToResumeStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/documents/step4', this.uploadId, this.uploadContractTypeRouteParam]);\r\n\t}\r\n\r\n\tpublic submitRecords() {\r\n\t\tif (this.totalValidRecords === 0) this.goToResumeStep();\r\n\t\telse {\r\n\t\t\tconst processFileContentByUploadIdRequest: ProcessFileContentByUploadIdRequest = {\r\n\t\t\t\tUploadId: this.uploadId,\r\n\t\t\t\tDocumentUploadContractType: this.uploadContractType\r\n\t\t\t};\r\n\r\n\t\t\tconst modalRef = this.modalService.open(ConfirmDialogModalComponent, {\r\n\t\t\t\tsize: 'lg',\r\n\t\t\t});\r\n\r\n\t\t\tmodalRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t'document-upload-step3.modalConfirmDialogConfirmSubmissionTitle',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\t\t\tmodalRef.componentInstance.content = this.translateService\r\n\t\t\t\t.translate('document-upload-step3.modalConfirmDialogConfirmSubmissionContent', 'client')\r\n\t\t\t\t.replace('[numberOfValidDocs]', this.totalValidRecords.toString())\r\n\t\t\t\t.replace('[totalNumberOfDocs]', (this.totalValidRecords + this.totalInvalidRecords).toString());\r\n\t\t\tmodalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t'document-upload-step3.modalConfirmDialogConfirmSubmissionActionText',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\t\t\tmodalRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t\t'document-upload-step3.modalConfirmDialogConfirmSubmissionDenyActionText',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.result\r\n\t\t\t\t.then(\r\n\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\tconst serviceCall = this.serverApiService.processDocumentRecordsExcelFileContentByUploadId(processFileContentByUploadIdRequest);\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\tthis.processValidProcessFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.processInvalidProcessFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t'[DocumentsUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t'[DocumentsUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\t);\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(cancelData) => {\r\n\t\t\t\t\t\tconsole.log('cancel from modal:' + cancelData);\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t}\r\n\t}\r\n\r\n\tpublic processValidProcessFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.goToResumeStep();\r\n\t}\r\n\r\n\tpublic processInvalidProcessFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = this.changeErrorCodes(operationResult.Errors);\r\n\t}\r\n\r\n\tpublic changeErrorCodes(errors: OperationError[]): OperationError[] {\r\n\t\tif (errors?.length > 0) {\r\n\t\t\tfor (let index = 0; index < errors.length; index++) {\r\n\t\t\t\terrors[index].Code = this.remapListErrorCodesForUser(errors[index].Code);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn errors ?? [];\r\n\t}\r\n\r\n\tprivate remapListErrorCodesForUser(resourceCode: string): string {\r\n\t\tif (resourceCode === ServerErrors.InternalError) {\r\n\t\t\treturn this.translateService.translate('document-upload-step3.' + ServerErrors.InternalError);\r\n\t\t} else return resourceCode;\r\n\t}\r\n\r\n\tprotected showValidationResultsForConfirming(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Confirming;\r\n\t}\r\n\r\n\tprotected showValidationResultsForFactoring(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Factoring;\r\n\t}\r\n\r\n\tprotected translateValidationError(validationError: OperationError): string {\r\n\t\tif (validationError.Code === ServerErrors.ConnectionNotFoundForCurrency) {\r\n\t\t\treturn validationError.Values[0];\r\n\t\t} else {\r\n\t\t\treturn this.translateService.translate(validationError.Code, 'list-errorCodes');\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'document-upload-step1.pageTitle' | translate }}\r\n\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\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{{ 'document-upload.Step1Label' | translate }}\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{{ 'document-upload.Step2Label' | translate }}\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{{ 'document-upload.Step3Label' | translate }}\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{{ 'document-upload.Step4Label' | translate }}\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{{ 'document-upload.Step3Label' | translate }}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\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load-step3.DocumentRecordsRow' | translate }}{{ 'document-upload-step3.DocumentRecordsDocType' | translate }}{{ 'document-upload-step3.DocumentRecordsNumber' | translate }}{{ 'document-upload-step3.DocumentRecordsTotalAmount' | translate }}{{ 'document-upload-step3.DocumentRecordsCurrency' | translate }}{{ 'document-upload-step3.DocumentRecordsIssueDate' | translate }}{{ 'document-upload-step3.DocumentRecordsDueDate' | translate }}{{ 'document-upload-step3.DocumentRecordsBuyerPaymentDate' | translate }}{{ 'document-upload-step3.DocumentRecordsBuyerVat' | translate }}{{ 'document-upload-step3.DocumentRecordsSupplierVat' | translate }}{{ 'document-upload-step3.DocumentRecordsValidationErrors' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}{{ contentValidationData.Type }}{{ contentValidationData.Number }}{{ contentValidationData.TotalAmount }}{{ contentValidationData.Currency }}{{ contentValidationData.IssuedDate }}{{ contentValidationData.DueDate }}{{ contentValidationData.BuyerPaymentDate }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerVat }}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierVat }}\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{{ lineError?.Values[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
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\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\t{{ 'globalization-management.upload.step3.file-without-content' | translate }}\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\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\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\r\n\t\t\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\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\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
{{ 'document-upload-step3.ValidationStatus' | translate }}{{ 'document-upload-step3.DocumentRecordsRow' | translate }}{{ 'document-upload-step3.DocumentRecordsDocType' | translate }}{{ 'document-upload-step3.DocumentRecordsNumber' | translate }}{{ 'document-upload-step3.DocumentRecordsTotalAmount' | translate }}{{ 'document-upload-step3.DocumentRecordsCurrency' | translate }}{{ 'document-upload-step3.DocumentRecordsIssueDate' | translate }}{{ 'document-upload-step3.DocumentRecordsDueDate' | translate }}{{ 'document-upload-step3.DocumentRecordsBuyerVat' | translate }}{{ 'document-upload-step3.DocumentRecordsSupplierVat' | translate }}{{ 'document-upload-step3.DocumentRecordsValidationErrors' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}{{ contentValidationData.Type }}{{ contentValidationData.Number }}{{ contentValidationData.TotalAmount }}{{ contentValidationData.Currency }}{{ contentValidationData.IssuedDate }}{{ contentValidationData.DueDate }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerVat }}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierVat }}\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{{ lineError?.Values[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
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\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\t{{ 'globalization-management.upload.step3.file-without-content' | translate }}\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\t
\r\n\t\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
{{ 'document-upload-step3.ValidationStatus' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\n\t\t\t\t\t\t\t\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
{{ 'document-upload-step3.DocumentRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}\r\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
{{ 'document-upload-step3.DocumentRecordsDocType' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Type }}\r\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
{{ 'document-upload-step3.DocumentRecordsNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Number }}\r\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
{{ 'document-upload-step3.DocumentRecordsTotalAmount' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.TotalAmount }}\r\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
{{ 'document-upload-step3.DocumentRecordsCurrency' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Currency }}\r\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
{{ 'document-upload-step3.DocumentRecordsIssueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.IssuedDate }}\r\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
{{ 'document-upload-step3.DocumentRecordsDueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.DueDate }}\r\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
{{ 'document-upload-step3.DocumentRecordsBuyerPaymentDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerPaymentDate }}\r\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
{{ 'document-upload-step3.DocumentRecordsBuyerVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerCountryCode }}{{ contentValidationData.BuyerVat }}\r\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
{{ 'document-upload-step3.DocumentRecordsSupplierVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierCountryCode }}{{ contentValidationData.SupplierVat }}\r\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
{{ 'document-upload-step3.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\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\t
\r\n\t\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
{{ 'document-upload-step3.ValidationStatus' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\n\t\t\t\t\t\t\t\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
{{ 'document-upload-step3.DocumentRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}\r\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
{{ 'document-upload-step3.DocumentRecordsDocType' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Type }}\r\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
{{ 'document-upload-step3.DocumentRecordsNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Number }}\r\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
{{ 'document-upload-step3.DocumentRecordsTotalAmount' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.TotalAmount }}\r\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
{{ 'document-upload-step3.DocumentRecordsCurrency' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Currency }}\r\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
{{ 'document-upload-step3.DocumentRecordsIssueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.IssuedDate }}\r\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
{{ 'document-upload-step3.DocumentRecordsDueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.DueDate }}\r\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
{{ 'document-upload-step3.DocumentRecordsBuyerVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerCountryCode }}{{ contentValidationData.BuyerVat }}\r\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
{{ 'document-upload-step3.DocumentRecordsSupplierVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierCountryCode }}{{ contentValidationData.SupplierVat }}\r\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
{{ 'document-upload-step3.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\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\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{{ 'document-upload-step3.backToUploadStep' | translate }}\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{{ 'document-upload-step3.goToResumeStep' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { DocumentRecordValidation } from '../../../../../models/upload/documents/document-record-validation-result';\r\nimport { DocumentUploadedRecordValidationStatus } from '../../../../../models/upload/documents/document-uploaded-record-validation-status';\r\nimport { DocumentUploadContractType, DocumentUploadContractTypeExtensions } from '../../../../../models/enums/document-upload-contract-type';\r\n\r\n@Component({\r\n\tselector: 'app-documents-upload-step4',\r\n\ttemplateUrl: './documents-upload-step4.component.html',\r\n\tstyleUrls: ['./documents-upload-step4.component.css'],\r\n})\r\nexport class DocumentsUploadStep4Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic showSubmitResult = false;\r\n\tpublic processedRecordsValidationErrors: OperationError[] = [];\r\n\tpublic uploadId: string;\r\n\tpublic invalidDocumentRecords: DocumentRecordValidation[] = [];\r\n\tpublic validDocumentRecords: DocumentRecordValidation[] = [];\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tprivate uploadContractType: DocumentUploadContractType | null = null;\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate route: ActivatedRoute\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tconst uploadContractTypeParam = params['uploadContractType'];\r\n\t\t\tif (!!uploadContractTypeParam) {\r\n\t\t\t\tthis.uploadContractType = DocumentUploadContractTypeExtensions.FromRouteParam(uploadContractTypeParam);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!this.uploadContractType) {\r\n\t\t\t\tthis.logger.error('Missing uploadContractType on documents upload step4.');\r\n\t\t\t\tthis.notificationService.addDanger('Missing uploadContractType on documents upload step4.');\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tthis.uploadContractTypeRouteParam = uploadContractTypeParam;\r\n\t\t\t}\r\n\r\n\t\t\tthis.uploadId = params['uploadId'];\r\n\r\n\t\t\tif (this.uploadId) {\r\n\t\t\t\tconst serviceCall = this.serverApiService.getDocumentRecordsByUploadId(this.uploadId);\r\n\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.processValidGetRecordsByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.processInvalidGetRecordsByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tthis.logger.error('[DocumentsUploadStep4Component::getValidRecordsByUploadId] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t'[DocumentsUploadStep4Component::getValidRecordsByUploadId] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.message\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} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get uploadId from route...');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tprocessInvalidGetRecordsByUploadIdResult(operationResult: OperationResult): void {\r\n\t\tthis.processedRecordsValidationErrors = operationResult.Errors;\r\n\t}\r\n\tprocessValidGetRecordsByUploadIdResult(operationResult: OperationResult): void {\r\n\t\tthis.invalidDocumentRecords = operationResult.Data.filter((r) => r.ValidationStatus == DocumentUploadedRecordValidationStatus.Invalid);\r\n\t\tthis.validDocumentRecords = operationResult.Data.filter((r) => r.ValidationStatus == DocumentUploadedRecordValidationStatus.Valid);\r\n\r\n\t\tthis.totalInvalidRecords = this.invalidDocumentRecords.length;\r\n\t\tthis.totalValidRecords = this.validDocumentRecords.length;\r\n\t}\r\n\r\n\tpublic goToDocuments(): void {\r\n\t\tthis.router.navigate(['/private/documents']);\r\n\t}\r\n\r\n\tprotected showValidationResultsForConfirming(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Confirming;\r\n\t}\r\n\r\n\tprotected showValidationResultsForFactoring(): boolean {\r\n\t\treturn this.uploadContractType === DocumentUploadContractType.Factoring;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'document-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'document-upload.Step1Label' | translate }}\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{{ 'document-upload.Step2Label' | translate }}\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{{ 'document-upload.Step3Label' | translate }}\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{{ 'document-upload.Step4Label' | translate }}\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{{ 'document-upload.Step4Label' | translate }}\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\t
\r\n\t\t\t\t\t\t 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\t\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{{ 'document-upload-step4.FinalDocumentOutcomeText1' | translate }}\r\n\t\t\t\t\t\t\t\t\t 0\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"tag is-success mx-2 font-weight-bold\"\r\n\t\t\t\t\t\t\t\t\t\tdata-e2e-file-upload-step4-valid-total>{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'document-upload-step4.FinalDocumentOutcomeText2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'document-upload-step4.FinalDocumentOutcomeText3' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\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{{ 'document-upload-step4.FinalDocumentOutcomeText1' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'document-upload-step4.FinalDocumentOutcomeText2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'document-upload-step4.FinalDocumentOutcomeText3' | translate }}\r\n\t\t\t\t\t\t\t\t
\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
0\">\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
{{ 'document-upload-step4.InvalidDocumentsList' | translate }}
\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 \r\n \r\n \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\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\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\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
{{ 'document-upload-step4.ValidationStatus' | translate }}{{ 'document-upload-step4.DocumentRecordsRow' | translate }}{{ 'document-upload-step4.DocumentRecordsDocType' | translate }}{{ 'document-upload-step4.DocumentRecordsNumber' | translate }}{{ 'document-upload-step4.DocumentRecordsTotalAmount' | translate }}{{ 'document-upload-step4.DocumentRecordsCurrency' | translate }}{{ 'document-upload-step4.DocumentRecordsIssueDate' | translate }}{{ 'document-upload-step4.DocumentRecordsDueDate' | translate }}{{ 'document-upload-step4.DocumentRecordsBuyerPaymentDate' | translate }}{{ 'document-upload-step4.DocumentRecordsBuyerVat' | translate }}{{ 'document-upload-step4.DocumentRecordsSupplierVat' | translate }}{{ 'document-upload-step4.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalidDocumentRecord.ValidationStatus | translate: 'list-uploadedDocumentRecordState'\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.RowNumber }}{{ invalidDocumentRecord.Type }}{{ invalidDocumentRecord.Number }}{{ invalidDocumentRecord.TotalAmount }}{{ invalidDocumentRecord.Currency }}{{ invalidDocumentRecord.IssuedDate }}{{ invalidDocumentRecord.DueDate }}{{ invalidDocumentRecord.BuyerPaymentDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerVat }}\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{{ invalidDocumentRecord.SupplierCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.SupplierVat }}\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{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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
\r\n\t\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 \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\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\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\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
{{ 'document-upload-step4.ValidationStatus' | translate }}{{ 'document-upload-step4.DocumentRecordsRow' | translate }}{{ 'document-upload-step4.DocumentRecordsDocType' | translate }}{{ 'document-upload-step4.DocumentRecordsNumber' | translate }}{{ 'document-upload-step4.DocumentRecordsTotalAmount' | translate }}{{ 'document-upload-step4.DocumentRecordsCurrency' | translate }}{{ 'document-upload-step4.DocumentRecordsIssueDate' | translate }}{{ 'document-upload-step4.DocumentRecordsDueDate' | translate }}{{ 'document-upload-step4.DocumentRecordsBuyerVat' | translate }}{{ 'document-upload-step4.DocumentRecordsSupplierVat' | translate }}{{ 'document-upload-step4.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalidDocumentRecord.ValidationStatus | translate: 'list-uploadedDocumentRecordState'\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.RowNumber }}{{ invalidDocumentRecord.Type }}{{ invalidDocumentRecord.Number }}{{ invalidDocumentRecord.TotalAmount }}{{ invalidDocumentRecord.Currency }}{{ invalidDocumentRecord.IssuedDate }}{{ invalidDocumentRecord.DueDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerVat }}\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{{ invalidDocumentRecord.SupplierCountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.SupplierVat }}\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{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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
\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
{{ 'document-upload-step4.ValidationStatus' | translate }}
\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{{ invalidDocumentRecord.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\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
{{ 'document-upload-step4.DocumentRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.RowNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsDocType' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Type }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Number }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsTotalAmount' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.TotalAmount }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsCurrency' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Currency }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsIssueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.IssuedDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsDueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.DueDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsBuyerPaymentDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerPaymentDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsBuyerVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerCountryCode }}{{ invalidDocumentRecord.BuyerVat }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsSupplierVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.SupplierCountryCode }}{{ invalidDocumentRecord.SupplierVat }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\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{{ lineError?.Values[0] | translate : 'list-errorCodes' }}\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
\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
{{ 'document-upload-step4.ValidationStatus' | translate }}
\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{{ invalidDocumentRecord.ValidationStatus | translate : 'list-uploadedDocumentRecordState' }}\r\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
{{ 'document-upload-step4.DocumentRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.RowNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsDocType' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Type }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Number }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsTotalAmount' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.TotalAmount }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsCurrency' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.Currency }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsIssueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.IssuedDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsDueDate' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.DueDate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsBuyerVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.BuyerCountryCode }}{{ invalidDocumentRecord.BuyerVat }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsSupplierVat' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidDocumentRecord.SupplierCountryCode }}{{ invalidDocumentRecord.SupplierVat }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'document-upload-step4.DocumentRecordsValidationErrors' | translate }}
\r\n\t\t\t\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{{ lineError?.Values[0] | translate : 'list-errorCodes' }}\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
\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\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'document-upload-step4.backToUploadStep' | translate }}\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{{ 'document-upload-step4.goToDocuments' | translate }}\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 { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { TranslateService } from '../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../server-api/server-api.service';\r\nimport { ReceiveUploadedFileResult } from '../../../../models/upload/receive-uploaded-file-result';\r\nimport { OperationError } from '../../../../models/server-result/operation-error';\r\nimport { AppContextService } from '../../../../services/app-context.service';\r\nimport { LogService } from '../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../services/notification/notification.service';\r\nimport { OperationResult } from '../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { Router } from '@angular/router';\r\nimport { CodeList } from '../../../../models/common/code-list';\r\nimport { User } from '../../../../models/User/user';\r\nimport { CompanyFileIntegrations } from '../../../../models/companies/company-file-integrations';\r\nimport { PublicCompany } from '../../../../models/companies/public-company';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { ReceiveUploadedFileRequest } from '../../../../models/upload/receive-uploaded-file-request';\r\nimport { RegisterFileForProcessing } from '../../../../models/upload/register-file-for-processing';\r\nimport { RegisterFileForProcessingOutput } from '../../../../models/upload/register-file-for-processing-output';\r\nimport { UtilitiesService } from '../../../../services/utils/utilities.service';\r\nimport { DocumentExternalSource } from '../../../../models/enums/document-external-source';\r\nimport { FileUploadContentTypeViewModel } from './models/file-upload-content-type-view-model';\r\nimport { ExecutionPermissionValidatorService } from '../../../../services/validations/execution-permission-validator.service';\r\n\r\n@Component({\r\n\tselector: 'app-upload-file',\r\n\ttemplateUrl: './upload-file.component.html',\r\n\tstyleUrls: ['./upload-file.component.css'],\r\n})\r\nexport class UploadFileComponent implements OnInit {\r\n\t@ViewChild('fileInput') private fileInput: ElementRef;\r\n\t\r\n\tpublic fileName: string;\r\n\tprivate fileContent: string;\r\n\tpublic isPerformingRequest = false;\r\n\r\n\tpublic fileUploadContentTypeError: string | null;\r\n\tpublic fileUploadContentType: FileUploadContentTypeViewModel | null;\r\n\tpublic fileUploadContentTypes: FileUploadContentTypeViewModel[] = [];\r\n\r\n\tpublic companyFileIntegrationsTypes: { [companyId: string]: string[] } = {};\r\n\tpublic companyWithFileIntegrations: PublicCompany[] = [];\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate router: Router,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.fileName = this.translateService.translate('upload-file.UploadNoSelectedFile', 'client');\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tthis.loadData();\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadData(): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\t\tservicesCallsToMake.push(this.serverApiService.getFileTypes());\r\n\r\n\t\tif (this.loggedUser?.IsSystemAdmin) servicesCallsToMake.push(this.serverApiService.companyFileIntegration([]));\r\n\t\telse servicesCallsToMake.push(this.serverApiService.companyFileIntegration(this.loggedUser?.Companies?.map((c) => c.Id!) ?? []));\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet getFileTypesResult = opResults[0] as OperationResult;\r\n\t\t\tlet companyFileIntegrationResult = opResults[1] as OperationResult;\r\n\r\n\t\t\tif (!getFileTypesResult.IsValid) {\r\n\t\t\t\tthis.processInvalidResult(getFileTypesResult);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (!companyFileIntegrationResult.IsValid) {\r\n\t\t\t\tthis.processInvalidResult(companyFileIntegrationResult);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (getFileTypesResult.IsValid && companyFileIntegrationResult.IsValid) {\r\n\t\t\t\tlet companyFileIntegrationsTypesDict: { [companyId: string]: string[] } = {};\r\n\r\n\t\t\t\tfor (let index = 0; index < companyFileIntegrationResult.Data.length; index++) {\r\n\t\t\t\t\tlet companyFileIntegrations: CompanyFileIntegrations = companyFileIntegrationResult.Data[index];\r\n\r\n\t\t\t\t\tif (!!companyFileIntegrations && !!companyFileIntegrations?.Company?.Id) {\r\n\t\t\t\t\t\tcompanyFileIntegrationsTypesDict[companyFileIntegrations?.Company?.Id] = [];\r\n\r\n\t\t\t\t\t\tfor (\r\n\t\t\t\t\t\t\tlet uploadFileContentTypesCodesIndx = 0;\r\n\t\t\t\t\t\t\tuploadFileContentTypesCodesIndx < getFileTypesResult.Data.Codes.length;\r\n\t\t\t\t\t\t\tuploadFileContentTypesCodesIndx++\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tconst uploadFileContentTypeCode = getFileTypesResult.Data.Codes[uploadFileContentTypesCodesIndx];\r\n\r\n\t\t\t\t\t\t\tif (!!uploadFileContentTypeCode) {\r\n\t\t\t\t\t\t\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\t\t\t\t\t\t\tif (companyFileIntegrations.CompanyFileSourceFileTypes.findIndex((t) => uploadFileContentTypeCode == t.FileType) >= 0) {\r\n\t\t\t\t\t\t\t\t\t\tcompanyFileIntegrationsTypesDict[companyFileIntegrations?.Company?.Id].push(uploadFileContentTypeCode);\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\tif (\r\n\t\t\t\t\t\t\t\t\t\tcompanyFileIntegrations.CompanyFileSourceFileTypes.filter(\r\n\t\t\t\t\t\t\t\t\t\t\t(t) => t.FileSource == DocumentExternalSource.FILE_UPLOAD\r\n\t\t\t\t\t\t\t\t\t\t).findIndex((t) => uploadFileContentTypeCode == t.FileType) >= 0\r\n\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\tcompanyFileIntegrationsTypesDict[companyFileIntegrations?.Company?.Id].push(uploadFileContentTypeCode);\r\n\t\t\t\t\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\t\t\t\tthis.companyFileIntegrationsTypes = Object.keys(companyFileIntegrationsTypesDict).reduce(function (filtered, key) {\r\n\t\t\t\t\tif (companyFileIntegrationsTypesDict[key].length > 0) filtered[key] = companyFileIntegrationsTypesDict[key];\r\n\t\t\t\t\treturn filtered;\r\n\t\t\t\t}, {});\r\n\r\n\t\t\t\tthis.companyWithFileIntegrations = companyFileIntegrationResult.Data.filter(\r\n\t\t\t\t\t(c) => Object.keys(this.companyFileIntegrationsTypes).findIndex((k) => k === c.Company.Id) >= 0\r\n\t\t\t\t).map((c) => c.Company);\r\n\r\n\t\t\t\tlet allFileTypes = Object.values(this.companyFileIntegrationsTypes).reduce(function (result, items) {\r\n\t\t\t\t\tfor (let index = 0; index < items.length; index++) {\r\n\t\t\t\t\t\tconst element = items[index];\r\n\t\t\t\t\t\tif (result.indexOf(element) < 0) result.push(element);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t}, new Array());\r\n\r\n\t\t\t\tlet distinctFileUploadContentTypes = this.utilitiesService.getDistinctValues(allFileTypes);\r\n\t\t\t\tlet fileUploadContentTypeViewModels: FileUploadContentTypeViewModel[] = distinctFileUploadContentTypes.map(\r\n\t\t\t\t\t(t) =>\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tType: t,\r\n\t\t\t\t\t\t\tTranslatedType: this.loggedUser?.IsSystemAdmin\r\n\t\t\t\t\t\t\t\t? this.translateService.translate(t, 'list-integrationFileType') + ' (' + t + ')'\r\n\t\t\t\t\t\t\t\t: this.translateService.translate(t, 'list-integrationFileType'),\r\n\t\t\t\t\t\t}\r\n\t\t\t\t);\r\n\r\n\t\t\t\tthis.fileUploadContentTypes = fileUploadContentTypeViewModels;\r\n\r\n\t\t\t\tif (this.fileUploadContentTypes.length == 1) this.fileUploadContentType = this.fileUploadContentTypes[0];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate formIsValid(): boolean {\r\n\t\tthis.fileUploadContentTypeError = !this.fileUploadContentType ? 'REQUIRED' : null;\r\n\r\n\t\tlet validData = !this.fileUploadContentTypeError;\r\n\t\treturn validData;\r\n\t}\r\n\r\n\tpublic registerFileForProcessing(): void {\r\n\t\tif (this.formIsValid()) {\r\n\t\t\tconst registerFileForProcessing: RegisterFileForProcessing = {\r\n\t\t\t\tFileContent: this.fileContent,\r\n\t\t\t\tFileName: this.fileName,\r\n\t\t\t\tFileType: this.fileUploadContentType?.Type,\r\n\t\t\t};\r\n\r\n\t\t\tconst serviceCall = this.serverApiService.registerFileForProcessing(registerFileForProcessing);\r\n\t\t\tthis.isPerformingRequest = true;\r\n\t\t\tserviceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tthis.processValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.processInValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tthis.logger.error('[UploadFileComponent::receiveUploadedFileRequest] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t'[UploadFileComponent::receiveUploadedFileRequest] HttpErrorResponse: ' + httpErrorResponse.error + httpErrorResponse.message\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\tprivate processValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.router.navigate(['/private/files-integration/search']);\r\n\t}\r\n\r\n\tprivate processInValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tpublic showNextStep(): boolean {\r\n\t\treturn !!this.fileContent && this.requestErrors.length === 0;\r\n\t}\r\n\r\n\tpublic onFileChange(event): void {\r\n\t\tlet reader = new FileReader();\r\n\t\tif (event.target.files && event.target.files.length > 0) {\r\n\t\t\tlet file = event.target.files[0];\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t\treader.onload = () => {\r\n\t\t\t\tthis.fileName = file.name;\r\n\t\t\t};\r\n\t\t\treader.onloadend = (e) => {\r\n\t\t\t\tif (reader.result !== null && reader.result !== undefined && reader.result.toString() !== null) {\r\n\t\t\t\t\tvar base64result = (reader.result as string).split(',')[1];\r\n\t\t\t\t\tthis.fileContent = base64result;\r\n\r\n\t\t\t\t\tif (!this.fileContent)\r\n\t\t\t\t\t\tthis.notificationService.addDanger(this.translateService.translate('upload-file.emptyOrInvalidFileContent', 'client'));\r\n\r\n\t\t\t\t\tthis.requestErrors = [];\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tpublic onChangeFileUploadContentType(value): void {\r\n\t\tif (!this.fileUploadContentType) {\r\n\t\t\tthis.fileUploadContentTypeError = 'FILE_CONTENT_TYPE_REQUIRED';\r\n\t\t} else {\r\n\t\t\tthis.fileUploadContentTypeError = null;\r\n\t\t}\r\n\t}\r\n\r\n\tprotected selectFile(): void {\r\n\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t(loggedUser: User) => {\r\n\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.fileInput?.nativeElement?.click();\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\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'upload-file.pageTitle' | translate }}\r\n\t\t\t
\r\n\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\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 1\">\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ fileUploadContentType.TranslatedType }}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'upload-file.FileUploadContentTypes' | translate\r\n\t\t\t\t\t\t\t\t}}{{ 'field.required' | translate }}\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{{ fileName }}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{{ 'upload-file.UploadBrowseFile' | translate }}\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\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{{ 'upload-file.goToPreviousStep' | translate }}\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{{ 'upload-file.Submit' | translate }}\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 { Component } from '@angular/core';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../../../models/server-result/operation-result';\r\nimport { GlobalizationApiService } from '../../../../../../../server-api/globalization-api.service';\r\nimport { LogService } from '../../../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../../../services/notification/notification.service';\r\nimport { UtilitiesService } from '../../../../../../../services/utils/utilities.service';\r\nimport { GlobalizationUploadDeleteTemplateResult } from '../../../../../../../models/upload/globalization/management/delete/globalization-upload-delete-template-result';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-delete-step1',\r\n\ttemplateUrl: './globalization-management-upload-delete-step1.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-delete-step1.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadDeleteStep1Component {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\r\n\tconstructor(\r\n\t\tprivate globalizationApiService: GlobalizationApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tpublic downloadTemplate() {\r\n\t\tconst serviceCall = this.globalizationApiService.generateGlobalizationUploadDeleteTemplate();\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidGlobalizationUploadDeleteTemplateResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidGlobalizationUploadDeleteTemplateResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[GlobalizationManagementUploadDeleteStep1Component::downloadTemplate] HttpErrorResponse: ', httpErrorResponse);\r\n\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[GlobalizationManagementUploadDeleteStep1Component::downloadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidGlobalizationUploadDeleteTemplateResult(operationResult: OperationResult) {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processValidGlobalizationUploadDeleteTemplateResult(operationResult: OperationResult) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(operationResult.Data.Content, operationResult.Data.ContentType);\r\n\t\tconst element = document.createElement('a');\r\n\t\telement.href = URL.createObjectURL(blob);\r\n\t\telement.download = operationResult.Data.ContentName;\r\n\t\tdocument.body.appendChild(element);\r\n\t\telement.click();\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.delete.step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'globalization-management.upload.delete.step1' | translate }}\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{{ 'globalization-management.upload.delete.step2' | translate }}\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{{ 'globalization-management.upload.delete.step3' | translate }}\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{{ 'globalization-management.upload.delete.step4' | translate }}\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{{ 'globalization-management.upload.delete.step1' | translate }}\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\t
\r\n\t\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
\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{{ 'globalization-management.upload.delete.step1.templateTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'globalization-management.upload.delete.step1.templateInfoText' | translate }}\r\n\t\t\t\t\t\t\t\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{{ 'globalization-management.upload.delete.step1.download.btn' | translate }}\r\n\t\t\t\t\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\r\n\t\t\t\t\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{{ 'globalization-management.upload.delete.step1.templateInstructionsTitle' | translate }}\r\n\t\t\t\t\t\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 {{ 'globalization-management.upload.delete.step1.instructions.text1' | translate }}\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 {{ 'globalization-management.upload.delete.step1.instructions.text2' | translate }}\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 {{ 'globalization-management.upload.delete.step1.instructions.text3' | translate }}\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 {{ 'globalization-management.upload.delete.step1.resource-type' | translate }} -\r\n\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.delete.step1.resource-type.description' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step1.code' | translate }} -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.delete.step1.code.description' | translate }}\r\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\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t\r\n\r\n","import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { User } from '../../../../../../../models/User/user';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\nimport { ExecutionPermissionValidatorService } from '../../../../../../../services/validations/execution-permission-validator.service';\r\n\r\nconst fileUploadGlobalizationDeleteTemplate = 'FILE_UPLOAD_GLOBALIZATION_DELETE_TEMPLATE'\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-delete-step2',\r\n\ttemplateUrl: './globalization-management-upload-delete-step2.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-delete-step2.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadDeleteStep2Component implements OnInit {\r\n\t@ViewChild('fileInput') private fileInput: ElementRef;\r\n\t\r\n\tpublic fileName: string;\r\n\tprivate fileContent: string;\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.fileName = this.translateService.translate('globalization-management.upload.delete.step2.no-selected-file', 'client');\r\n\t}\r\n\r\n\tpublic showNextStep(): boolean {\r\n\t\treturn !!this.fileContent && this.validationErrors.length === 0;\r\n\t}\r\n\r\n\tpublic onFileChange(event): void {\r\n\t\tsessionStorage.removeItem(fileUploadGlobalizationDeleteTemplate)\r\n\t\tlet reader = new FileReader();\r\n\t\tif (event.target.files && event.target.files.length > 0) {\r\n\t\t\tlet file = event.target.files[0];\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t\treader.onload = () => {\r\n\t\t\t\tthis.fileName = file.name;\r\n\t\t\t};\r\n\t\t\treader.onloadend = () => {\r\n\t\t\t\tif (reader.result !== null && reader.result !== undefined && reader.result.toString() !== null) {\r\n\t\t\t\t\tvar base64result = (reader.result as string).split(',')[1];\r\n\t\t\t\t\tthis.fileContent = base64result;\r\n\t\t\t\t\tthis.validationErrors = [];\r\n\t\t\t\t\tsessionStorage.setItem(fileUploadGlobalizationDeleteTemplate, this.fileContent)\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tprotected selectFile(): void {\r\n\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t(loggedUser: User) => {\r\n\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.fileInput?.nativeElement?.click();\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\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.delete.step2.pageTitle' | translate }}\r\n\t\t\t
\r\n\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
\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{{ 'globalization-management.upload.delete.step1' | translate }}\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{{ 'globalization-management.upload.delete.step2' | translate }}\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{{ 'globalization-management.upload.delete.step3' | translate }}\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{{ 'globalization-management.upload.delete.step4' | translate }}\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{{ 'globalization-management.upload.delete.step2' | translate }}\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\t
\r\n\t\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
\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{{ 'globalization-management.upload.delete.step2.description' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{{ fileName }}\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{{ 'globalization-management.upload.delete.step2.browse-file.btn' | translate }}\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\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 { Component, OnInit } from '@angular/core';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { Router } from '@angular/router';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ServerErrors } from '../../../../../../../models/enums/server-errors';\r\nimport { GlobalizationUploadTemplateValidationRequest } from '../../../../../../../models/upload/globalization/management/globalization-upload-template-validation-request';\r\nimport { ResourceValidationStatus } from '../../../../../../../models/upload/globalization/management/import/resource-validation-status';\r\nimport { ResourceTemplateOutputDto } from '../../../../../../../models/upload/globalization/management/resource-template-output-dto';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../../../models/server-result/operation-result';\r\nimport { GlobalizationApiService } from '../../../../../../../server-api/globalization-api.service';\r\nimport { AppContextService } from '../../../../../../../services/app-context.service';\r\nimport { LogService } from '../../../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../../../services/notification/notification.service';\r\nimport { ScreenWidthListenerService } from '../../../../../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\nimport { ConfirmDialogModalComponent } from '../../../../../../../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { GlobalizationManagementDataService } from '../../globalization-management-data-service';\r\nimport { GlobalizationUploadDeleteTemplateValidationResult } from '../../../../../../../models/upload/globalization/management/delete/globalization-upload-delete-template-validation-result';\r\nimport { ResourceDeleteValidationStatus } from '../../../../../../../models/upload/globalization/management/delete/resource-delete-validation-status';\r\nimport { User } from '../../../../../../../models/User/user';\r\n\r\nconst fileUploadGlobalizationDeleteTemplate = 'FILE_UPLOAD_GLOBALIZATION_DELETE_TEMPLATE';\r\nconst resourceTemplateValidation = 'ResourceTemplateValidation';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-delete-step3',\r\n\ttemplateUrl: './globalization-management-upload-delete-step3.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-delete-step3.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadDeleteStep3Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tpublic contentValidationData: ResourceTemplateOutputDto[] = [];\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic showValidationResults: boolean;\r\n\tpublic loggedUser: User | null = null;\r\n\r\n\tprotected loadedRecordsCounts: Promise;\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate globalizationApiService: GlobalizationApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate router: Router,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprivate globalizationManagementDataService: GlobalizationManagementDataService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t});\r\n\r\n\t\tthis.processTemplateValidation();\r\n\t}\r\n\r\n\tpublic processTemplateValidation(): void {\r\n\t\tvar fileContent = sessionStorage.getItem(fileUploadGlobalizationDeleteTemplate);\r\n\r\n\t\tconst globalizationUploadTemplateValidation: GlobalizationUploadTemplateValidationRequest = <\r\n\t\t\tGlobalizationUploadTemplateValidationRequest\r\n\t\t>{\r\n\t\t\tFileContent: fileContent,\r\n\t\t};\r\n\r\n\t\tconst serviceCall = this.globalizationApiService.validateGlobalizationUploadDeleteTemplate(globalizationUploadTemplateValidation);\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidFileContentResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidFileContentResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[GlobalizationManagementUploadDeleteStep3Component::validateGlobalizationUploadDeleteTemplate] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[GlobalizationManagementUploadDeleteStep3Component::validateGlobalizationUploadDeleteTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic getKeys(translations: Record): string[] {\r\n\t\tif (translations == undefined || translations == null) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\treturn Object.keys(translations);\r\n\t}\r\n\r\n\tpublic submitRecords() {\r\n\t\tthis.globalizationManagementDataService.setContentValidationData(this.contentValidationData);\r\n\r\n\t\tif (this.totalValidRecords === 0) {\r\n\t\t\tthis.goToResumeStep();\r\n\t\t} else {\r\n\t\t\tconst modalRef = this.modalService.open(ConfirmDialogModalComponent, {\r\n\t\t\t\tsize: 'lg',\r\n\t\t\t});\r\n\r\n\t\t\tmodalRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t'globalization-management.upload.delete.step3.modalTitle',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.componentInstance.content = this.translateService\r\n\t\t\t\t.translate('globalization-management.upload.delete.step3.modalMessage', 'client')\r\n\t\t\t\t.replace('[totalValidResources]', this.totalValidRecords.toString())\r\n\t\t\t\t.replace('[totalResources]', (this.totalValidRecords + this.totalInvalidRecords).toString());\r\n\r\n\t\t\tmodalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t'globalization-management.upload.delete.step3.modal.confirm.btn',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t\t'globalization-management.upload.delete.step3.modal.cancel.btn',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.result\r\n\t\t\t\t.then(\r\n\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\tvar validResources = this.contentValidationData.filter((item) => item.ValidationStatus == ResourceDeleteValidationStatus.Valid);\r\n\r\n\t\t\t\t\t\tconst serviceCall = this.globalizationApiService.processGlobalizationUploadDeleteTemplateValidResources(\r\n\t\t\t\t\t\t\tvalidResources,\r\n\t\t\t\t\t\t\tthis.loggedUser?.Email\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\tthis.processValidProcessGlobalizationUploadTemplateValidResourcesResult();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.processInvalidProcessGlobalizationUploadTemplateValidResourcesResult(operationResult);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t'[GlobalizationManagementUploadDeleteStep3Component::processGlobalizationUploadDeleteTemplateValidResources] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t'[GlobalizationManagementUploadDeleteStep3Component::processGlobalizationUploadDeleteTemplateValidResources] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\t);\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(cancelData) => {\r\n\t\t\t\t\t\tconsole.log('cancel from modal:' + cancelData);\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processValidFileContentResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.showValidationResults = true;\r\n\t\tthis.contentValidationData = operationResult.Data.ContentValidationData.filter(\r\n\t\t\t(item) => item.ValidationStatus !== ResourceValidationStatus.NotModified\r\n\t\t);\r\n\r\n\t\tthis.totalValidRecords = operationResult.Data.TotalValidRecords;\r\n\t\tthis.totalInvalidRecords = operationResult.Data.TotalInvalidRecords;\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tprivate processInvalidFileContentResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = this.changeErrorCodes(operationResult.Errors);\r\n\r\n\t\tthis.showValidationResults = true;\r\n\t\tthis.totalInvalidRecords = 1;\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tpublic processValidProcessGlobalizationUploadTemplateValidResourcesResult(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/globalization/management/delete/step4']);\r\n\t}\r\n\r\n\tpublic processInvalidProcessGlobalizationUploadTemplateValidResourcesResult(operationResult: OperationResult): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate goToResumeStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/globalization/management/delete/step4']);\r\n\t}\r\n\r\n\tprivate changeErrorCodes(errors: OperationError[]): OperationError[] {\r\n\t\tif (errors?.length > 0) {\r\n\t\t\tfor (let index = 0; index < errors.length; index++) {\r\n\t\t\t\terrors[index].Code = this.remapListErrorCodesForUser(errors[index].Code);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn errors ?? [];\r\n\t}\r\n\r\n\tprivate remapListErrorCodesForUser(resourceCode: string): string {\r\n\t\tif (resourceCode === ServerErrors.InternalError) {\r\n\t\t\treturn this.translateService.translate('globalization-management.upload.delete.step3.' + ServerErrors.InternalError);\r\n\t\t}\r\n\r\n\t\treturn this.translateService.translate(resourceCode, resourceTemplateValidation);\r\n\t}\r\n\r\n\tprotected translateValidationError(validationError: OperationError): string {\r\n\t\treturn this.translateService.translate(validationError.Code, resourceTemplateValidation);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.delete.step3.pageTitle' | translate }}\r\n\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\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{{ 'globalization-management.upload.delete.step1' | translate }}\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{{ 'globalization-management.upload.delete.step2' | translate }}\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{{ 'globalization-management.upload.delete.step3' | translate }}\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{{ 'globalization-management.upload.delete.step4' | translate }}\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{{ 'globalization-management.upload.delete.step3' | translate }}\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\t
\r\n\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\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\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\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step3.status' | translate }}{{ 'globalization-management.upload.delete.step3.row-number' | translate }}{{ 'globalization-management.upload.delete.step3.resource-type' | translate }}{{ 'globalization-management.upload.delete.step3.code' | translate }}{{ 'globalization-management.upload.delete.step3.translations' | translate }}{{ 'globalization-management.upload.delete.step3.records-validation-errors' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceDeleteValidationStatus' }}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}{{ contentValidationData.ResourceType }}{{ contentValidationData.Code }}\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\n\t\t\t\t\t\t\t\t\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{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\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
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step3.file-without-content' | translate }}\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\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step3.status' | translate }}
\r\n\t\t\t\t\t\t\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceDeleteValidationStatus' }}\r\n\t\t\t\t\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
{{ 'globalization-management.upload.delete.step3.row-number' | translate }}
\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{{ contentValidationData.RowNumber }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.delete.step3.resource-type' | translate }}
\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{{ contentValidationData.ResourceType }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.delete.step3.code' | translate }}
\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{{ contentValidationData.Code }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.delete.step3.translations' | translate }}
\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\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
{{ 'globalization-management.upload.delete.step3.records-validation-errors' | translate }}
\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{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step3.next.btn' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ResourceTemplateOutputDto } from '../../../../../../../models/upload/globalization/management/resource-template-output-dto';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\nimport { GlobalizationManagementDataService } from '../../globalization-management-data-service';\r\nimport { ResourceDeleteValidationStatus } from '../../../../../../../models/upload/globalization/management/delete/resource-delete-validation-status';\r\n\r\nconst resourceTemplateValidation = 'ResourceTemplateValidation';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-delete-step4',\r\n\ttemplateUrl: './globalization-management-upload-delete-step4.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-delete-step4.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadDeleteStep4Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic invalidRecords: ResourceTemplateOutputDto[] = [];\r\n\tpublic validRecords: ResourceTemplateOutputDto[] = [];\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic contentValidationData: ResourceTemplateOutputDto[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate globalizationManagementDataService: GlobalizationManagementDataService,\r\n\t\tprivate translateService: TranslateService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.contentValidationData = this.globalizationManagementDataService.getContentValidationData();\r\n\t\tif (this.contentValidationData) {\r\n\t\t this.showResults();\r\n\t\t}\t\t\r\n\t}\r\n\r\n\tprivate showResults(): void {\r\n\t\tthis.invalidRecords = this.contentValidationData.filter(\r\n\t\t\t(r) => r.ValidationStatus == ResourceDeleteValidationStatus.Invalid);\r\n\r\n\t\tthis.validRecords = this.contentValidationData.filter(\r\n\t\t\t(r) => r.ValidationStatus == ResourceDeleteValidationStatus.Valid);\r\n\r\n\t\tthis.totalInvalidRecords = this.invalidRecords.length;\r\n\t\tthis.totalValidRecords = this.validRecords.length;\r\n\t}\r\n\r\n\tpublic getKeys(translations: Record): string[] {\r\n\t\tif(translations == undefined || translations == null){\r\n\t\t\treturn []\r\n\t\t}\r\n\r\n\t\treturn Object.keys(translations);\r\n\t}\r\n\r\n\tprotected translateValidationError(validationError: OperationError): string {\r\n\t\treturn this.translateService.translate(validationError.Code, resourceTemplateValidation);\r\n\t}\r\n\r\n\tpublic goToGlobalizationManagement(): void {\r\n\t\tthis.router.navigate(['/private/administration/globalization/management']);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.delete.step4.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'globalization-management.upload.delete.step1' | translate }}\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{{ 'globalization-management.upload.delete.step2' | translate }}\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{{ 'globalization-management.upload.delete.step3' | translate }}\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{{ 'globalization-management.upload.delete.step4' | translate }}\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{{ 'globalization-management.upload.delete.step4' | translate }}\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\t
\r\n\t\t\t\t\t\t 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\t\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{{ 'globalization-management.upload.delete.step4.result1' | translate }}\r\n\t\t\t\t\t\t\t\t\t 0\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"tag is-success mx-2 font-weight-bold\"\r\n\t\t\t\t\t\t\t\t\t\tdata-e2e-file-upload-step4-valid-total>{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step4.result2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step4.result3' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\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{{ 'globalization-management.upload.delete.step4.result1' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step4.result2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.delete.step4.result3' | translate }}\r\n\t\t\t\t\t\t\t\t
\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
0\">\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
{{ 'globalization-management.upload.delete.step4' | translate }}
\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\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\r\n\t\t\t\t\t\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\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
{{ 'globalization-management.upload.delete.step4.status' | translate }}{{ 'globalization-management.upload.delete.step4.row-number' | translate }}{{ 'globalization-management.upload.delete.step4.resource-type' | translate }}{{ 'globalization-management.upload.delete.step4.code' | translate }}{{ 'globalization-management.upload.delete.step4.translations' | translate }}{{ 'globalization-management.upload.delete.step4.records-validation-errors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidRecords.ValidationStatus | translate : 'list-ResourceDeleteValidationStatus' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{{ invalidRecords.RowNumber }}{{ invalidRecords.ResourceType }}{{ invalidRecords.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ key }}: {{ invalidRecords.Translations[key] }}
\r\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
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
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\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step4.status' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceDeleteValidationStatus' }}\r\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
{{ 'globalization-management.upload.delete.step4.row-number' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step4.resource-type' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ResourceType }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step4.code' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step4.translations' | translate }}
\r\n\t\t\t\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.delete.step4.records-validation-errors' | translate }}
\r\n\t\t\t\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{{ translateValidationError(lineError) }}\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
\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\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{{ 'globalization-management.upload.delete.step4.go-to-globalization.btn' | translate }}\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 { Injectable } from \"@angular/core\";\r\nimport { ResourceTemplateOutputDto } from \"../../../../../models/upload/globalization/management/resource-template-output-dto\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n }) \r\nexport class GlobalizationManagementDataService{\r\n private contentValidationData: ResourceTemplateOutputDto[] = [];\r\n\r\n public setContentValidationData(data: any): void {\r\n this.contentValidationData = data;\r\n }\r\n \r\n public getContentValidationData(): any {\r\n return this.contentValidationData;\r\n }\r\n}","import { Component } from '@angular/core';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../../../models/server-result/operation-result';\r\nimport { LogService } from '../../../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../../../services/notification/notification.service';\r\nimport { UtilitiesService } from '../../../../../../../services/utils/utilities.service';\r\nimport { GlobalizationApiService } from '../../../../../../../server-api/globalization-api.service';\r\nimport { GlobalizationUploadTemplateResult } from '../../../../../../../models/upload/globalization/management/import/globalization-upload-template-result';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-step1',\r\n\ttemplateUrl: './globalization-management-upload-step1.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-step1.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadStep1Component {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tprotected uploadContractTypeRouteParam: string = '';\r\n\r\n\tconstructor(\r\n\t\tprivate globalizationApiService: GlobalizationApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tpublic downloadTemplate() {\r\n\t\tconst serviceCall = this.globalizationApiService.generateGlobalizationUploadTemplate();\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidGlobalizationUploadTemplateResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidGlobalizationUploadTemplateResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[GlobalizationManagementUploadStep1Component::downloadTemplate] HttpErrorResponse: ', httpErrorResponse);\r\n\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[GlobalizationManagementUploadStep1Component::downloadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInValidGlobalizationUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processValidGlobalizationUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(operationResult.Data.Content, operationResult.Data.ContentType);\r\n\t\tconst element = document.createElement('a');\r\n\t\telement.href = URL.createObjectURL(blob);\r\n\t\telement.download = operationResult.Data.ContentName;\r\n\t\tdocument.body.appendChild(element);\r\n\t\telement.click();\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'globalization-management.upload.step1' | translate }}\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{{ 'globalization-management.upload.step2' | translate }}\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{{ 'globalization-management.upload.step3' | translate }}\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{{ 'globalization-management.upload.step4' | translate }}\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{{ 'globalization-management.upload.step1' | translate }}\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\t
\r\n\t\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
\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{{ 'globalization-management.upload.step1.templateTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'globalization-management.upload.step1.templateInfoText' | translate }}\r\n\t\t\t\t\t\t\t\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{{ 'globalization-management.upload.step1.download.btn' | translate }}\r\n\t\t\t\t\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\r\n\t\t\t\t\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{{ 'globalization-management.upload.step1.templateInstructionsTitle' | translate }}\r\n\t\t\t\t\t\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 {{ 'globalization-management.upload.step1.instructions.text1' | translate }}\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 {{ 'globalization-management.upload.step1.instructions.text2' | translate }}\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 {{ 'globalization-management.upload.step1.instructions.text3' | translate }}\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 {{ 'globalization-management.upload.step1.resource-type' | translate }} -\r\n\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.step1.resource-type.description' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step1.code' | translate }} -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.step1.code.description' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\tPT -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.step1.pt.description' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\tEN -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.step1.en.description' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\tES -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'globalization-management.upload.step1.es.description' | translate }}\r\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\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{{ 'globalization-management.upload.step1.next.btn' | translate }}\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 { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { User } from '../../../../../../../models/User/user';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\nimport { ExecutionPermissionValidatorService } from '../../../../../../../services/validations/execution-permission-validator.service';\r\n\r\nconst fileUploadGlobalization = 'FILE_UPLOAD_GLOBALIZATION'\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-step2',\r\n\ttemplateUrl: './globalization-management-upload-step2.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-step2.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadStep2Component implements OnInit {\r\n\t@ViewChild('fileInput') private fileInput: ElementRef;\r\n\t\r\n\tpublic fileName: string;\r\n\tprivate fileContent: string;\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.fileName = this.translateService.translate('globalization-management.upload.step2.no-selected-file', 'client');\r\n\t}\r\n\r\n\tpublic showNextStep(): boolean {\r\n\t\treturn !!this.fileContent && this.validationErrors.length === 0;\r\n\t}\r\n\r\n\tpublic onFileChange(event): void {\r\n\t\tsessionStorage.removeItem(fileUploadGlobalization)\r\n\t\tlet reader = new FileReader();\r\n\t\tif (event.target.files && event.target.files.length > 0) {\r\n\t\t\tlet file = event.target.files[0];\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t\treader.onload = () => {\r\n\t\t\t\tthis.fileName = file.name.length > 30 \r\n\t\t\t\t? file.name.substring(0, 30) + \"...\" \r\n\t\t\t\t: file.name;\r\n\t\t\t};\r\n\t\t\treader.onloadend = () => {\r\n\t\t\t\tif (reader.result !== null && reader.result !== undefined && reader.result.toString() !== null) {\r\n\t\t\t\t\tvar base64result = (reader.result as string).split(',')[1];\r\n\t\t\t\t\tthis.fileContent = base64result;\r\n\t\t\t\t\tthis.validationErrors = [];\r\n\t\t\t\t\tsessionStorage.setItem(fileUploadGlobalization, this.fileContent)\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tprotected selectFile(): void {\r\n\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t(loggedUser: User) => {\r\n\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.fileInput?.nativeElement?.click();\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\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.step2.pageTitle' | translate }}\r\n\t\t\t
\r\n\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
\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{{ 'globalization-management.upload.step1' | translate }}\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{{ 'globalization-management.upload.step2' | translate }}\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{{ 'globalization-management.upload.step3' | translate }}\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{{ 'globalization-management.upload.step4' | translate }}\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{{ 'globalization-management.upload.step2' | translate }}\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\t
\r\n\t\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
\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{{ 'globalization-management.upload.step2.description' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{{ fileName }}\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{{ 'globalization-management.upload.step2.browse-file.btn' | translate }}\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\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{{ 'globalization-management.upload.step2.return.btn' | translate }}\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{{ 'globalization-management.upload.step2.next.btn' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ServerErrors } from '../../../../../../../models/enums/server-errors';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../../../models/server-result/operation-result';\r\nimport { LogService } from '../../../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../../../services/notification/notification.service';\r\nimport { ScreenWidthListenerService } from '../../../../../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\nimport { GlobalizationUploadTemplateValidationRequest } from '../../../../../../../models/upload/globalization/management/globalization-upload-template-validation-request';\r\nimport { AppContextService } from '../../../../../../../services/app-context.service';\r\nimport { GlobalizationApiService } from '../../../../../../../server-api/globalization-api.service';\r\nimport { GlobalizationUploadTemplateValidationResult } from '../../../../../../../models/upload/globalization/management/import/globalization-upload-template-validation-result';\r\nimport { ResourceTemplateOutputDto } from '../../../../../../../models/upload/globalization/management/resource-template-output-dto';\r\nimport { Router } from '@angular/router';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ConfirmDialogModalComponent } from '../../../../../../../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { ResourceValidationStatus } from '../../../../../../../models/upload/globalization/management/import/resource-validation-status';\r\nimport { GlobalizationManagementDataService } from '../../globalization-management-data-service';\r\nimport { User } from '../../../../../../../models/User/user';\r\n\r\nconst fileUploadGlobalization = 'FILE_UPLOAD_GLOBALIZATION';\r\nconst resourceTemplateValidation = 'ResourceTemplateValidation';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-step3',\r\n\ttemplateUrl: './globalization-management-upload-step3.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-step3.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadStep3Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tpublic contentValidationData: ResourceTemplateOutputDto[] = [];\r\n\tpublic totalNewRecords: number = 0;\r\n\tpublic totalUpdatedRecords: number = 0;\r\n\tpublic totalNotModifiedRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic showValidationResults: boolean;\r\n\tpublic loggedUser: User | null = null;\r\n\r\n\tprotected loadedRecordsCounts: Promise;\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate globalizationApiService: GlobalizationApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate router: Router,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprivate globalizationManagementDataService: GlobalizationManagementDataService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t});\r\n\r\n\t\tthis.processTemplateValidation();\r\n\t}\r\n\r\n\tpublic processTemplateValidation(): void {\r\n\t\tvar fileContent = sessionStorage.getItem(fileUploadGlobalization);\r\n\r\n\t\tconst globalizationUploadTemplateValidation: GlobalizationUploadTemplateValidationRequest = <\r\n\t\t\tGlobalizationUploadTemplateValidationRequest\r\n\t\t>{\r\n\t\t\tFileContent: fileContent,\r\n\t\t};\r\n\r\n\t\tconst serviceCall = this.globalizationApiService.validateGlobalizationUploadTemplate(globalizationUploadTemplateValidation);\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidFileContentResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidFileContentResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[GlobalizationManagementUploadStep3Component::validateGlobalizationUploadTemplate] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[GlobalizationManagementUploadStep3Component::validateGlobalizationUploadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic getKeys(translations: Record): string[] {\r\n\t\tif (translations == undefined || translations == null) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\treturn Object.keys(translations);\r\n\t}\r\n\r\n\tpublic submitRecords() {\r\n\t\tthis.globalizationManagementDataService.setContentValidationData(this.contentValidationData);\r\n\r\n\t\tif (this.totalNewRecords === 0 && this.totalUpdatedRecords === 0) {\r\n\t\t\tthis.goToResumeStep();\r\n\t\t} else {\r\n\t\t\tconst modalRef = this.modalService.open(ConfirmDialogModalComponent, {\r\n\t\t\t\tsize: 'lg',\r\n\t\t\t});\r\n\r\n\t\t\tmodalRef.componentInstance.title = this.translateService.translate('globalization-management.upload.step3.modalTitle', 'client');\r\n\r\n\t\t\tmodalRef.componentInstance.content = this.translateService\r\n\t\t\t\t.translate('globalization-management.upload.step3.modalMessage', 'client')\r\n\t\t\t\t.replace('[totalValidResources]', (this.totalNewRecords + this.totalUpdatedRecords).toString())\r\n\t\t\t\t.replace(\r\n\t\t\t\t\t'[totalResources]',\r\n\t\t\t\t\t(this.totalNewRecords + this.totalUpdatedRecords + this.totalNotModifiedRecords + this.totalInvalidRecords).toString()\r\n\t\t\t\t);\r\n\r\n\t\t\tmodalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t'globalization-management.upload.step3.modal.confirm.btn',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t\t'globalization-management.upload.step3.modal.cancel.btn',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.result\r\n\t\t\t\t.then(\r\n\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\tvar validResources = this.contentValidationData.filter(\r\n\t\t\t\t\t\t\t(item) => item.ValidationStatus == ResourceValidationStatus.New || item.ValidationStatus == ResourceValidationStatus.Updated\r\n\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\tconst serviceCall = this.globalizationApiService.processGlobalizationUploadTemplateValidResources(\r\n\t\t\t\t\t\t\tvalidResources,\r\n\t\t\t\t\t\t\tthis.loggedUser?.Email\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\tthis.processValidProcessGlobalizationUploadTemplateValidResourcesResult();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.processInvalidProcessGlobalizationUploadTemplateValidResourcesResult(operationResult);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t'[GlobalizationManagementUploadStep3Component::processGlobalizationUploadTemplateValidResources] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t'[GlobalizationManagementUploadStep3Component::processGlobalizationUploadTemplateValidResources] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\t);\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(cancelData) => {\r\n\t\t\t\t\t\tconsole.log('cancel from modal:' + cancelData);\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processValidFileContentResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.showValidationResults = true;\r\n\t\tthis.contentValidationData = operationResult.Data.ContentValidationData.filter(\r\n\t\t\t(item) => item.ValidationStatus !== ResourceValidationStatus.NotModified\r\n\t\t);\r\n\r\n\t\tthis.totalNewRecords = operationResult.Data.TotalNewRecords;\r\n\t\tthis.totalUpdatedRecords = operationResult.Data.TotalUpdatedRecords;\r\n\t\tthis.totalNotModifiedRecords = operationResult.Data.TotalNotModifiedRecords;\r\n\t\tthis.totalInvalidRecords = operationResult.Data.TotalInvalidRecords;\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tprivate processInvalidFileContentResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = this.changeErrorCodes(operationResult.Errors);\r\n\r\n\t\tthis.showValidationResults = true;\r\n\t\tthis.totalInvalidRecords = 1;\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tpublic processValidProcessGlobalizationUploadTemplateValidResourcesResult(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/globalization/management/import/step4']);\r\n\t}\r\n\r\n\tpublic processInvalidProcessGlobalizationUploadTemplateValidResourcesResult(operationResult: OperationResult): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate goToResumeStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/globalization/management/import/step4']);\r\n\t}\r\n\r\n\tprivate changeErrorCodes(errors: OperationError[]): OperationError[] {\r\n\t\tif (errors?.length > 0) {\r\n\t\t\tfor (let index = 0; index < errors.length; index++) {\r\n\t\t\t\terrors[index].Code = this.remapListErrorCodesForUser(errors[index].Code);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn errors ?? [];\r\n\t}\r\n\r\n\tprivate remapListErrorCodesForUser(resourceCode: string): string {\r\n\t\tif (resourceCode === ServerErrors.InternalError) {\r\n\t\t\treturn this.translateService.translate('globalization-management.upload.step3.' + ServerErrors.InternalError);\r\n\t\t}\r\n\r\n\t\treturn this.translateService.translate(resourceCode, resourceTemplateValidation);\r\n\t}\r\n\r\n\tprotected translateValidationError(validationError: OperationError): string {\r\n\t\treturn this.translateService.translate(validationError.Code, resourceTemplateValidation);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.step3.pageTitle' | translate }}\r\n\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\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{{ 'globalization-management.upload.step1' | translate }}\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{{ 'globalization-management.upload.step2' | translate }}\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{{ 'globalization-management.upload.step3' | translate }}\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{{ 'globalization-management.upload.step4' | translate }}\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{{ 'globalization-management.upload.step3' | translate }}\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\t
\r\n\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\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\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\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
{{ 'globalization-management.upload.step3.status' | translate }}{{ 'globalization-management.upload.step3.row-number' | translate }}{{ 'globalization-management.upload.step3.resource-type' | translate }}{{ 'globalization-management.upload.step3.code' | translate }}{{ 'globalization-management.upload.step3.translations' | translate }}{{ 'globalization-management.upload.step3.records-validation-errors' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceValidationStatus' }}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}{{ contentValidationData.ResourceType }}{{ contentValidationData.Code }}\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\n\t\t\t\t\t\t\t\t\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{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\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
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'globalization-management.upload.step3.file-without-content' | translate }}\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\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step3.status' | translate }}
\r\n\t\t\t\t\t\t\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceValidationStatus' }}\r\n\t\t\t\t\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
{{ 'globalization-management.upload.step3.row-number' | translate }}
\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{{ contentValidationData.RowNumber }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.step3.resource-type' | translate }}
\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{{ contentValidationData.ResourceType }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.step3.code' | translate }}
\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{{ contentValidationData.Code }}\r\n\t\t\t\t\t\t\t\t\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
{{ 'globalization-management.upload.step3.translations' | translate }}
\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\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
{{ 'globalization-management.upload.step3.records-validation-errors' | translate }}
\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{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step3.next.btn' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ResourceTemplateOutputDto } from '../../../../../../../models/upload/globalization/management/resource-template-output-dto';\r\nimport { ResourceValidationStatus } from '../../../../../../../models/upload/globalization/management/import/resource-validation-status';\r\nimport { GlobalizationManagementDataService } from '../../globalization-management-data-service';\r\nimport { OperationError } from '../../../../../../../models/server-result/operation-error';\r\nimport { TranslateService } from '../../../../../../../services/translate/translate.service';\r\n\r\nconst resourceTemplateValidation = 'ResourceTemplateValidation';\r\n\r\n@Component({\r\n\tselector: 'app-globalization-management-upload-step4',\r\n\ttemplateUrl: './globalization-management-upload-step4.component.html',\r\n\tstyleUrls: ['./globalization-management-upload-step4.component.css'],\r\n})\r\nexport class GlobalizationManagementUploadStep4Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic invalidRecords: ResourceTemplateOutputDto[] = [];\r\n\tpublic validRecords: ResourceTemplateOutputDto[] = [];\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic contentValidationData: ResourceTemplateOutputDto[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate globalizationManagementDataService: GlobalizationManagementDataService,\r\n\t\tprivate translateService: TranslateService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.contentValidationData = this.globalizationManagementDataService.getContentValidationData();\r\n\t\tif (this.contentValidationData) {\r\n\t\t this.showResults();\r\n\t\t}\t\t\r\n\t}\r\n\r\n\tprivate showResults(): void {\r\n\t\tthis.invalidRecords = this.contentValidationData.filter(\r\n\t\t\t(r) => r.ValidationStatus == ResourceValidationStatus.Invalid);\r\n\r\n\t\tthis.validRecords = this.contentValidationData.filter(\r\n\t\t\t(r) => r.ValidationStatus == ResourceValidationStatus.New || \r\n\t\t\t\tr.ValidationStatus == ResourceValidationStatus.Updated);\r\n\r\n\t\tthis.totalInvalidRecords = this.invalidRecords.length;\r\n\t\tthis.totalValidRecords = this.validRecords.length;\r\n\t}\r\n\r\n\tpublic getKeys(translations: Record): string[] {\r\n\t\tif(translations == undefined || translations == null){\r\n\t\t\treturn []\r\n\t\t}\r\n\r\n\t\treturn Object.keys(translations);\r\n\t}\r\n\r\n\tprotected translateValidationError(validationError: OperationError): string {\r\n\t\treturn this.translateService.translate(validationError.Code, resourceTemplateValidation);\r\n\t}\r\n\r\n\tpublic goToGlobalizationManagement(): void {\r\n\t\tthis.router.navigate(['/private/administration/globalization/management']);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'globalization-management.upload.step4.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'globalization-management.upload.step1' | translate }}\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{{ 'globalization-management.upload.step2' | translate }}\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{{ 'globalization-management.upload.step3' | translate }}\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{{ 'globalization-management.upload.step4' | translate }}\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{{ 'globalization-management.upload.step4' | translate }}\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\t
\r\n\t\t\t\t\t\t 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\t\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{{ 'globalization-management.upload.step4.result1' | translate }}\r\n\t\t\t\t\t\t\t\t\t 0\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"tag is-success mx-2 font-weight-bold\"\r\n\t\t\t\t\t\t\t\t\t\tdata-e2e-file-upload-step4-valid-total>{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step4.result2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step4.result3' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\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{{ 'globalization-management.upload.step4.result1' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step4.result2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'globalization-management.upload.step4.result3' | translate }}\r\n\t\t\t\t\t\t\t\t
\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
0\">\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
{{ 'globalization-management.upload.step4' | translate }}
\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\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\r\n\t\t\t\t\t\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\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
{{ 'globalization-management.upload.step4.status' | translate }}{{ 'globalization-management.upload.step4.row-number' | translate }}{{ 'globalization-management.upload.step4.resource-type' | translate }}{{ 'globalization-management.upload.step4.code' | translate }}{{ 'globalization-management.upload.step4.translations' | translate }}{{ 'globalization-management.upload.step4.records-validation-errors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidRecords.ValidationStatus | translate : 'list-ResourceValidationStatus' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{{ invalidRecords.RowNumber }}{{ invalidRecords.ResourceType }}{{ invalidRecords.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ key }}: {{ invalidRecords.Translations[key] }}
\r\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
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ translateValidationError(lineError) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
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\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step4.status' | translate }}
\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{{ contentValidationData.ValidationStatus | translate : 'list-ResourceValidationStatus' }}\r\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
{{ 'globalization-management.upload.step4.row-number' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step4.resource-type' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ResourceType }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step4.code' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.Code }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step4.translations' | translate }}
\r\n\t\t\t\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
{{ key }}: {{ contentValidationData.Translations[key] }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'globalization-management.upload.step4.records-validation-errors' | translate }}
\r\n\t\t\t\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{{ translateValidationError(lineError) }}\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
\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\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{{ 'globalization-management.upload.step4.go-to-globalization.btn' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../../../services/app-context.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { UtilitiesService } from '../../../../../services/utils/utilities.service';\r\nimport { SupplierRecordsUploadTemplateResult } from '../../../../../models/upload/suppliers/supplier-records-upload-template-result';\r\nimport { User } from '../../../../../models/User/user';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { ConfirmingContract } from '../../../../../models/contracts/confirming/confirming-contract';\r\nimport { AutomaticFundingRequestFlow } from '../../../../../models/enums/confirming/contrat-automatic-funding-request-flow';\r\nimport { AutomaticFundingRequestTrigger } from '../../../../../models/enums/confirming/contract-automatic-funding-request-trigger';\r\n\r\n@Component({\r\n\tselector: 'app-suppliers-upload-step1',\r\n\ttemplateUrl: './suppliers-upload-step1.component.html',\r\n\tstyleUrls: ['./suppliers-upload-step1.component.css'],\r\n})\r\nexport class SuppliersUploadStep1Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tpublic loggedUser: User | null = null;\r\n\tpublic showActiveAutomaticFundingRequestInfo: boolean = false;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tthis.determineIfActiveAutomaticFundingRequestInfoIsShown();\r\n\t\t});\r\n\t}\r\n\r\n\tpublic downloadTemplate() {\r\n\t\tconst serviceCall = this.serverApiService.generateSupplierRecordsUploadTemplate();\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidSupplierRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidSupplierRecordsUploadTemplateResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[SuppliersUploadStep1Component::generateSupplierRecordsUploadTemplate] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[SuppliersUploadStep1Component::generateSupplierRecordsUploadTemplate] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInValidSupplierRecordsUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processValidSupplierRecordsUploadTemplateResult(operationResult: OperationResult) {\r\n\t\tconst blob = this.utilitiesService.base64ToBlob(operationResult.Data.Content, operationResult.Data.ContentType);\r\n\r\n\t\t//strategy from https://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link\r\n\t\tconst element = document.createElement('a');\r\n\t\telement.href = URL.createObjectURL(blob);\r\n\t\telement.download = operationResult.Data.ContentName;\r\n\t\tdocument.body.appendChild(element);\r\n\t\telement.click();\r\n\t}\r\n\r\n\tpublic clickGotoUploadStep(): void {}\r\n\r\n\tprivate determineIfActiveAutomaticFundingRequestInfoIsShown(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t} else if (this.loggedUser?.IsBuyer && this.loggedUser?.IsCompanyAdmin) {\r\n\t\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\t\tfor (let index = 0; index < this.loggedUser.Companies.length; index++) {\r\n\t\t\t\tlet buyerCompany = this.loggedUser.Companies[index];\r\n\r\n\t\t\t\tif (!!buyerCompany?.Id) {\r\n\t\t\t\t\tservicesCallsToMake.push(this.serverApiService.getContractsForBuyer(buyerCompany.Id));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\t\tfor (let index = 0; index < servicesCallsToMake.length; index++) {\r\n\t\t\t\t\tlet getConfirmingContracts = opResults[index] as OperationResult;\r\n\r\n\t\t\t\t\tif (!getConfirmingContracts.IsValid) this.requestErrors = getConfirmingContracts.Errors;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\t\t\tfor (let index = 0; index < getConfirmingContracts.Data.length; index++) {\r\n\t\t\t\t\t\t\t\tconst contract = getConfirmingContracts.Data[index];\r\n\r\n\t\t\t\t\t\t\t\tif (this.canActivateAutomaticFundindRequest(contract)) {\r\n\t\t\t\t\t\t\t\t\tthis.showActiveAutomaticFundingRequestInfo = true;\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\t\t\t\t\t\tbreak;\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\tif (this.showActiveAutomaticFundingRequestInfo) break;\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\tthis.isPerformingRequest = false;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate canActivateAutomaticFundindRequest(confirmingContract: ConfirmingContract): boolean {\r\n\t\tif (\r\n\t\t\tconfirmingContract?.AutomaticFundingRequestAuthorizationFlow == AutomaticFundingRequestFlow.RequireSupplierAuthorization ||\r\n\t\t\tconfirmingContract?.AutomaticFundingRequestTrigger == AutomaticFundingRequestTrigger.BuyerRequest\r\n\t\t)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'supplier-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\t\t
\r\n\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\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{{ 'supplier-upload.Step1Label' | translate }}\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{{ 'supplier-upload.Step2Label' | translate }}\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{{ 'supplier-upload.Step3Label' | translate }}\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{{ 'supplier-upload.Step4Label' | translate }}\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{{ 'supplier-upload.Step1Label' | translate }}\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\t
\r\n\t\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
\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{{ 'supplier-upload-step1.SupplierTemplateTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'supplier-upload-step1.SupplierTemplateInfoText' | translate }}\r\n\t\t\t\t\t\t\t\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{{ 'supplier-upload-step1.SupplierTemplate' | translate }}\r\n\t\t\t\t\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\r\n\t\t\t\t\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsTitle' | translate }}\r\n\t\t\t\t\t\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoText1' | translate }}\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoText2' | translate }}\r\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoText3' | translate }}\r\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoText4' | translate }}\r\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{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoText5' | translate }}\r\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\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnBuyerCountryCodeCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoBuyerCountryCode' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnBuyerVatNumberCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoBuyerVatNumber' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'SupplierRecordsColumnBuyerManagerUsernameCode' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoBuyerManagerUsername' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierCountryCodeCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierCountryCode' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierVatNumberCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierVatNumber' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierNameCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierName' | translate }}\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{{ 'SupplierRecordsColumnSupplierAddressLine1Code' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'SupplierRecordsColumnSupplierAddressLine2Code' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'SupplierRecordsColumnSupplierAddressLine3Code' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierZipCodeCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierCityCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierAddressLine' | translate }}\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{{ 'SupplierRecordsColumnSupplierPhoneNumberCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierPhoneNumber' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'SupplierRecordsColumnSupplierLanguageCodeCode' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierLanguageCode' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierUserNameCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierUserName' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnSupplierUserEmailCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierUserEmail' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'SupplierRecordsColumnContractNumberCode' | translate: 'SupplierRecordsUploadExcelTemplate' }} -\r\n\t\t\t\t\t\t\t\t\t\t\t\t {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoContractNumber' | translate }}\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{{ 'SupplierRecordsColumnSupplierIbanCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierIban' | translate }}\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{{ 'SupplierRecordsColumnSupplierSwiftCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierSwift' | translate }}\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{{ 'SupplierRecordsColumnSupplierBankCountryCodeCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'MandatoryColumnMarker' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierBankCountryCode' | translate }}\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{{ 'SupplierRecordsColumnSupplierBankNameCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierBankName' | translate }}\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{{ 'SupplierRecordsColumnSupplierBankAddressCode' | translate: 'SupplierRecordsUploadExcelTemplate' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoSupplierBankAddress' | translate }}\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\t'SupplierRecordsColumnActivePaymentRequestCode' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t- {{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoActivePaymentRequest' | translate }}\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\t'SupplierRecordsColumnActiveAutomaticFundingRequestCode' | translate: 'SupplierRecordsUploadExcelTemplate'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t-\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step1.SupplierTemplateInstructionsInfoActiveAutomaticFundingRequest' | translate }}\r\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\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{{ 'supplier-upload-step1.goToUploadStep' | translate }}\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 { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { UtilitiesService } from '../../../../../services/utils/utilities.service';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { ReceiveUploadedFileRequest } from '../../../../../models/upload/receive-uploaded-file-request';\r\nimport { ReceiveUploadedFileResult } from '../../../../../models/upload/receive-uploaded-file-result';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { AppContextService } from '../../../../../services/app-context.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { UploadFileContentType } from '../../../../../models/upload/upload-file-content-type';\r\nimport { Router } from '@angular/router';\r\nimport { ExecutionPermissionValidatorService } from '../../../../../services/validations/execution-permission-validator.service';\r\nimport { User } from '../../../../../models/User/user';\r\n\r\n@Component({\r\n\tselector: 'app-suppliers-upload-step2',\r\n\ttemplateUrl: './suppliers-upload-step2.component.html',\r\n\tstyleUrls: ['./suppliers-upload-step2.component.css'],\r\n})\r\nexport class SuppliersUploadStep2Component implements OnInit {\r\n\t@ViewChild('fileInput') private fileInput: ElementRef;\r\n\r\n\tpublic fileName: string;\r\n\tprivate fileType: string;\r\n\tprivate fileContent: string;\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate permissionValidatorService: ExecutionPermissionValidatorService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.fileName = this.translateService.translate('supplier-upload-step2.SupplierUploadNoSelectedFile', 'client');\r\n\t}\r\n\r\n\tpublic processUploadedSupplier(): void {\r\n\t\tconst receiveUploadedFileRequest: ReceiveUploadedFileRequest = {\r\n\t\t\tFileContent: this.fileContent,\r\n\t\t\tFileName: this.fileName,\r\n\t\t\tUploadFileContentType: UploadFileContentType.ConfirmingSuppliers_Type1_XLSX,\r\n\t\t\tFileType: this.fileType,\r\n\t\t};\r\n\r\n\t\tconst serviceCall = this.serverApiService.receiveUploadedFile(receiveUploadedFileRequest);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInValidReceiveUploadedFileResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[SuppliersUploadStep2Component::receiveUploadedFileRequest] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[SuppliersUploadStep2Component::receiveUploadedFileRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/suppliers/step3', operationResult.Data.FileId]);\r\n\t}\r\n\r\n\tprivate processInValidReceiveUploadedFileResult(operationResult: OperationResult): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tpublic showNextStep(): boolean {\r\n\t\treturn !!this.fileContent && this.validationErrors?.length === 0;\r\n\t}\r\n\r\n\tpublic onFileChange(event): void {\r\n\t\tlet reader = new FileReader();\r\n\t\tif (event.target.files && event.target.files.length > 0) {\r\n\t\t\tlet file = event.target.files[0];\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t\treader.onload = () => {\r\n\t\t\t\tthis.fileName = file.name.length > 30 \r\n\t\t\t\t? file.name.substring(0, 30) + \"...\" \r\n\t\t\t\t: file.name;\r\n\t\t\t\t\r\n\t\t\t\tthis.fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';\r\n\t\t\t};\r\n\t\t\treader.onloadend = (e) => {\r\n\t\t\t\tif (reader.result !== null && reader.result !== undefined && reader.result.toString() !== null) {\r\n\t\t\t\t\tvar base64result = (reader.result as string).split(',')[1];\r\n\t\t\t\t\tthis.fileContent = base64result;\r\n\t\t\t\t\tthis.validationErrors = [];\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tprotected selectFile(): void {\r\n\t\tthis.permissionValidatorService.executeIfAllowed(\r\n\t\t\t(loggedUser: User) => {\r\n\t\t\t\treturn !loggedUser.IsReadOnlyUser;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.fileInput?.nativeElement?.click();\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\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'supplier-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\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
\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{{ 'supplier-upload.Step2Label' | translate }}\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\t
\r\n\t\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
\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{{ 'supplier-upload-step2.SupplierUploadInfoText' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{{ fileName }}\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{{ 'supplier-upload-step2.SupplierUploadBrowseFile' | translate }}\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
\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
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'supplier-upload-step2.goToPreviousStep' | translate }}\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{{ 'supplier-upload-step2.goToValidationStep' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { ValidateFileContentByUploadIdRequest } from '../../../../../models/upload/validate-file-content-by-upload-id-request';\r\nimport { ValidateFileContentByUploadIdResult } from '../../../../../models/upload/validate-file-content-by-upload-id-result';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { SupplierRecordValidation } from '../../../../../models/upload/suppliers/supplier-record-validation-result';\r\nimport { ProcessFileContentByUploadIdRequest } from '../../../../../models/upload/process-file-content-by-upload-id-request';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ConfirmDialogModalComponent } from '../../../../../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { ConfirmingContract } from '../../../../../models/contracts/confirming/confirming-contract';\r\nimport { PublicContract } from '../../../../../models/contracts/confirming/public-contract';\r\nimport { AutomaticFundingRequestFlow } from '../../../../../models/enums/confirming/contrat-automatic-funding-request-flow';\r\nimport { AutomaticFundingRequestTrigger } from '../../../../../models/enums/confirming/contract-automatic-funding-request-trigger';\r\nimport { ScreenWidthListenerService } from '../../../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { SepaSearchCriteria } from '../../../../../models/sepa/sepa-search-criteria';\r\nimport { Sepa } from '../../../../../models/sepa/sepa';\r\n\r\n@Component({\r\n\tselector: 'app-suppliers-upload-step3',\r\n\ttemplateUrl: './suppliers-upload-step3.component.html',\r\n\tstyleUrls: ['./suppliers-upload-step3.component.css'],\r\n})\r\nexport class SuppliersUploadStep3Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic validationErrors: OperationError[] = [];\r\n\tpublic contentValidationData: SupplierRecordValidation[] = [];\r\n\tpublic uploadId: string;\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic showColumnActiveAutomaticFundingRequest: boolean = false;\r\n\tpublic showValidationResults: boolean;\r\n\tprotected loadedRecordsCounts: Promise;\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tthis.uploadId = params['uploadId'];\r\n\r\n\t\t\tif (this.uploadId) {\r\n\t\t\t\tconst validateFileContentByUploadIdRequest: ValidateFileContentByUploadIdRequest = {\r\n\t\t\t\t\tUploadId: this.uploadId,\r\n\t\t\t\t};\r\n\r\n\t\t\t\tconst serviceCall = this.serverApiService.validateSupplierRecordsExcelFileContent(validateFileContentByUploadIdRequest);\r\n\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.processValidValidateFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.processInValidValidateFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t'[SuppliersUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t'[SuppliersUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.message\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} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get uploadId from route...');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidValidateFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.showValidationResults = true\r\n\t\tthis.contentValidationData = operationResult.Data.ContentValidationData;\r\n\r\n\t\tthis.totalValidRecords = operationResult.Data.TotalValidRecords;\r\n\t\tthis.totalInvalidRecords = operationResult.Data.TotalInvalidRecords;\r\n\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\r\n\t\tconst contractsIds: string[] = [];\r\n\r\n\t\toperationResult.Data.ContentValidationData.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\tif (!!contentData.ConfirmingContractId && !contractsIds.find((c) => c == contentData.ConfirmingContractId))\r\n\t\t\t\tcontractsIds.push(contentData.ConfirmingContractId);\r\n\t\t});\r\n\r\n\t\tif (!!contractsIds && contractsIds.length > 0) {\r\n\t\t\tconst getContractsByIdsServiceCall = this.serverApiService.getConfirmingContractsByIds(contractsIds);\r\n\r\n\t\t\tgetContractsByIdsServiceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t// get contracts for each payment request\r\n\t\t\t\t\t\tthis.contentValidationData.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\t\t\t\t\tcontentData.ConfirmingContract = operationResult.Data.find((c) => c.Id === contentData.ConfirmingContractId) || null;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.isAutomaticFundingRequestColumnVisible(this.contentValidationData);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.warn('Error retrieving contract information using getConfirmingContractsByIds... IsValid=false');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (operationResult.Data.ContentValidationData.some((contentData: SupplierRecordValidation) => !!contentData.BankCountryCode)) {\r\n\t\t\tconst sepaSearchCriteria: SepaSearchCriteria = new SepaSearchCriteria();\r\n\t\t\tconst getSepaConfigurations = this.serverApiService.getSepaConfigurations(sepaSearchCriteria);\r\n\r\n\t\t\tgetSepaConfigurations.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t// PR: Get the country name for each bank country code.\r\n\t\t\t\t\t\tthis.contentValidationData.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\t\t\t\t\tif (!!contentData.BankCountryCode) {\r\n\t\t\t\t\t\t\t\tcontentData.BankCountry = operationResult.Data.find((c) => c.CountryCode === contentData.BankCountryCode)?.CountryName || '';\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\tconsole.warn('Error retrieving SEPA configuration information using getSepaConfigurations... IsValid=false');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processInValidValidateFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\r\n\t\tthis.showValidationResults = true\r\n\t\tthis.totalInvalidRecords = 1;\r\n\t\tthis.loadedRecordsCounts = Promise.resolve(true);\r\n\t}\r\n\r\n\tpublic backToUploadStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/suppliers/step2']);\r\n\t}\r\n\r\n\tpublic goToResumeStep(): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/suppliers/step4', this.uploadId]);\r\n\t}\r\n\r\n\tpublic submitRecords() {\r\n\t\tif (this.totalValidRecords === 0) this.router.navigate(['/private/files-upload/upload/suppliers/step4', this.uploadId]);\r\n\t\telse {\r\n\t\t\tconst processFileContentByUploadIdRequest: ProcessFileContentByUploadIdRequest = {\r\n\t\t\t\tUploadId: this.uploadId,\r\n\t\t\t};\r\n\r\n\t\t\tconst modalRef = this.modalService.open(ConfirmDialogModalComponent, { size: 'lg' });\r\n\r\n\t\t\tmodalRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t'supplier-upload-step3.modalConfirmDialogConfirmSubmissionTitle',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\t\t\tmodalRef.componentInstance.content = this.translateService\r\n\t\t\t\t.translate('supplier-upload-step3.modalConfirmDialogConfirmSubmissionContent', 'client')\r\n\t\t\t\t.replace('[numberOfValidSuppliers]', this.totalValidRecords.toString())\r\n\t\t\t\t.replace('[totalNumberOfSuppliers]', (this.totalValidRecords + this.totalInvalidRecords).toString());\r\n\t\t\tmodalRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t'supplier-upload-step3.modalConfirmDialogConfirmSubmissionActionText',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\t\t\tmodalRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t\t'supplier-upload-step3.modalConfirmDialogConfirmSubmissionDenyActionText',\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\t\tmodalRef.result\r\n\t\t\t\t.then(\r\n\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\tconst serviceCall = this.serverApiService.processSupplierRecordsExcelFileContentByUploadId(processFileContentByUploadIdRequest);\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\t\t\tnext: (operationResult: OperationResult>) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\tthis.processValidProcessFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.processInvalidProcessFileContentByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t'[SuppliersUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t'[SuppliersUploadStep3Component::ValidateFileContentByUploadIdRequest] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\t);\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(cancelData) => {\r\n\t\t\t\t\t\tconsole.log('cancel from modal:' + cancelData);\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t}\r\n\t}\r\n\r\n\tpublic processValidProcessFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.router.navigate(['/private/files-upload/upload/suppliers/step4', this.uploadId]);\r\n\t}\r\n\r\n\tpublic processInvalidProcessFileContentByUploadIdResult(\r\n\t\toperationResult: OperationResult>\r\n\t): void {\r\n\t\tthis.validationErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate isAutomaticFundingRequestColumnVisible(contentValidationData: SupplierRecordValidation[]): void {\r\n\t\tthis.showColumnActiveAutomaticFundingRequest = contentValidationData.some((t) =>\r\n\t\t\tthis.canActivateAutomaticFundindRequest(t.ConfirmingContract as PublicContract)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate canActivateAutomaticFundindRequest(contract: PublicContract): boolean {\r\n\t\tif (!!contract) {\r\n\t\t\tif (\r\n\t\t\t\tcontract.AutomaticFundingRequestAuthorizationFlow === AutomaticFundingRequestFlow.RequireSupplierAuthorization ||\r\n\t\t\t\tcontract.AutomaticFundingRequestTrigger == AutomaticFundingRequestTrigger.BuyerRequest\r\n\t\t\t) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'supplier-upload-step1.pageTitle' | translate }}\r\n\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\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{{ 'supplier-upload.Step3Label' | translate }}\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\t
\r\n\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\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\r\n\t\t\t\t\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\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\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\r\n\t\t\t\t\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
{{ 'supplier-upload-step3.ValidationStatus' | translate }}{{ 'supplier-upload-step3.SupplierRecordsBuyerVatNumber' | translate }}{{ 'supplier-upload-step3.SupplierRecordsConfirmingContract' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplier' | translate }}{{ 'supplier-upload-step3.SupplierRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ValidationStatus | translate: 'list-uploadedSupplierRecordState' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BuyerCountryCode }}{{ contentValidationData.BuyerVatNumber }}{{ contentValidationData.ContractNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step3.SupplierRecordsActiveAutomaticFundingRequest' | translate }}\r\n\t\t\t\t\t\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\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\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\r\n\t\t\t\t\t\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
{{ 'supplier-upload-step3.SupplierRecordsBuyerVatNumber' | translate }}{{ 'supplier-upload-step3.SupplierRecordsBuyerManagerName' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplier' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplierLanguageCode' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplierUserName' | translate }}{{ 'supplier-upload-step3.SupplierRecordsConfirmingContract' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplierBankCountryCode' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplierIbanSwift' | translate }}{{ 'supplier-upload-step3.SupplierRecordsSupplierBankNameAddress' | translate }}{{ 'supplier-upload-step3.SupplierRecordsActivePaymentRequest' | translate }}
{{ contentValidationData.BuyerCountryCode }}{{ contentValidationData.BuyerVatNumber }}\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

{{ contentValidationData.BuyerManagerName }}

\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

{{ contentValidationData.BuyerManagerUsername }}

\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

{{ contentValidationData.SupplierName }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ contentValidationData.SupplierCountryCode }}{{ contentValidationData.SupplierVatNumber }}
\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
{{ contentValidationData.SupplierLanguageCode | uppercase }}\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

{{ contentValidationData.SupplierUserName }}

\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

{{ contentValidationData.SupplierUserEmail }}

\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
{{ contentValidationData.ContractNumber }}{{ contentValidationData.BankCountry }}\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

{{ contentValidationData.SupplierIban }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ contentValidationData.SupplierSwift }}
\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

{{ contentValidationData.BankName }}

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

{{ contentValidationData.BankAddress }}

\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
{{ contentValidationData.ActivePaymentRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ActiveAutomaticFundingRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\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
\r\n\t\t\t\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\t{{ 'globalization-management.upload.step3.file-without-content' | translate }}\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\t
\r\n\t\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{{ 'supplier-upload-step3.ValidationStatus' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ValidationStatus | translate: 'list-uploadedSupplierRecordState' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\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
\r\n\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step3.SupplierRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.RowNumber }}\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsBuyerVatNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ contentValidationData.BuyerCountryCode }}{{ contentValidationData.BuyerVatNumber }}
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsBuyerManagerName' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ contentValidationData.BuyerManagerName }}

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

{{ contentValidationData.BuyerManagerUsername }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplier' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ contentValidationData.SupplierName }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ contentValidationData.SupplierCountryCode }}{{ contentValidationData.SupplierVatNumber }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplierLanguageCode' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.SupplierLanguageCode | uppercase }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplierUserName' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ contentValidationData.SupplierUserName }}

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

{{ contentValidationData.SupplierUserEmail }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsConfirmingContract' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ContractNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplierBankCountryCode' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.BankCountry }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplierIbanSwift' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ contentValidationData.SupplierIban }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ contentValidationData.SupplierSwift }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsSupplierBankNameAddress' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ contentValidationData.BankName }}

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

{{ contentValidationData.BankAddress }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsActivePaymentRequest' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ActivePaymentRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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\t{{ 'supplier-upload-step3.SupplierRecordsActiveAutomaticFundingRequest' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ contentValidationData.ActiveAutomaticFundingRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\r\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\t
{{ 'supplier-upload-step3.SupplierRecordsValidationErrors' | translate }}
\r\n\t\t\t\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{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\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\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{{ 'supplier-upload-step3.backToUploadStep' | translate }}\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{{ 'supplier-upload-step3.goToResumeStep' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { OperationError } from '../../../../../models/server-result/operation-error';\r\nimport { TranslateService } from '../../../../../services/translate/translate.service';\r\nimport { ServerApiService } from '../../../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../../../services/app-context.service';\r\nimport { LogService } from '../../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../../services/notification/notification.service';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { OperationResult } from '../../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { SupplierRecordValidation } from '../../../../../models/upload/suppliers/supplier-record-validation-result';\r\nimport { ValidateFileContentByUploadIdResult } from '../../../../../models/upload/validate-file-content-by-upload-id-result';\r\nimport { SupplierUploadedRecordValidationStatus } from '../../../../../models/upload/suppliers/supplier-uploaded-record-validation-status';\r\nimport { PublicContract } from '../../../../../models/contracts/confirming/public-contract';\r\nimport { AutomaticFundingRequestFlow } from '../../../../../models/enums/confirming/contrat-automatic-funding-request-flow';\r\nimport { AutomaticFundingRequestTrigger } from '../../../../../models/enums/confirming/contract-automatic-funding-request-trigger';\r\nimport { ConfirmingContract } from '../../../../../models/contracts/confirming/confirming-contract';\r\nimport { SepaSearchCriteria } from '../../../../../models/sepa/sepa-search-criteria';\r\nimport { Sepa } from '../../../../../models/sepa/sepa';\r\n\r\n@Component({\r\n\tselector: 'app-suppliers-upload-step4',\r\n\ttemplateUrl: './suppliers-upload-step4.component.html',\r\n\tstyleUrls: ['./suppliers-upload-step4.component.css'],\r\n})\r\nexport class SuppliersUploadStep4Component implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic showSubmitResult = false;\r\n\tpublic processedRecordsValidationErrors: OperationError[] = [];\r\n\tpublic uploadId: string;\r\n\tpublic invalidSupplierRecords: SupplierRecordValidation[] = [];\r\n\tpublic validSupplierRecords: SupplierRecordValidation[] = [];\r\n\tpublic totalValidRecords: number = 0;\r\n\tpublic totalInvalidRecords: number = 0;\r\n\tpublic showColumnActiveAutomaticFundingRequest: boolean = false;\r\n\r\n\tconstructor(\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate router: Router,\r\n\t\tprivate route: ActivatedRoute\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tthis.uploadId = params['uploadId'];\r\n\r\n\t\t\tif (this.uploadId) {\r\n\t\t\t\tconst serviceCall = this.serverApiService.getSupplierRecordsByUploadId(this.uploadId);\r\n\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.processValidGetRecordsByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.processInvalidGetRecordsByUploadIdResult(operationResult);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\tthis.logger.error('[SuppliersUploadStep4Component::getValidRecordsByUploadId] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t'[SuppliersUploadStep4Component::getValidRecordsByUploadId] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\thttpErrorResponse.message\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} else {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get uploadId from route...');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tprocessInvalidGetRecordsByUploadIdResult(operationResult: OperationResult): void {\r\n\t\tthis.processedRecordsValidationErrors = operationResult.Errors;\r\n\t}\r\n\tprocessValidGetRecordsByUploadIdResult(operationResult: OperationResult): void {\r\n\t\tthis.invalidSupplierRecords = operationResult.Data.filter((r) => r.ValidationStatus == SupplierUploadedRecordValidationStatus.Invalid);\r\n\t\tthis.validSupplierRecords = operationResult.Data.filter((r) => r.ValidationStatus == SupplierUploadedRecordValidationStatus.Valid);\r\n\r\n\t\tthis.totalInvalidRecords = this.invalidSupplierRecords.length;\r\n\t\tthis.totalValidRecords = this.validSupplierRecords.length;\r\n\r\n\t\tconst contractsIds: string[] = [];\r\n\r\n\t\tthis.invalidSupplierRecords.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\tif (!!contentData.ConfirmingContractId && !contractsIds.find((c) => c == contentData.ConfirmingContractId))\r\n\t\t\t\tcontractsIds.push(contentData.ConfirmingContractId);\r\n\t\t});\r\n\r\n\t\tif (!!contractsIds && contractsIds.length > 0) {\r\n\t\t\tconst getContractsByIdsServiceCall = this.serverApiService.getConfirmingContractsByIds(contractsIds);\r\n\r\n\t\t\tgetContractsByIdsServiceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t// get contracts for each payment request\r\n\t\t\t\t\t\tthis.invalidSupplierRecords.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\t\t\t\t\tcontentData.ConfirmingContract = operationResult.Data.find((c) => c.Id === contentData.ConfirmingContractId) || null;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.isAutomaticFundingRequestColumnVisible(this.invalidSupplierRecords);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.warn('Error retrieving contract information using getConfirmingContractsByIds... IsValid=false');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (this.invalidSupplierRecords.some((contentData: SupplierRecordValidation) => !!contentData.BankCountryCode)) {\r\n\t\t\tconst sepaSearchCriteria: SepaSearchCriteria = new SepaSearchCriteria();\r\n\t\t\tconst getSepaConfigurations = this.serverApiService.getSepaConfigurations(sepaSearchCriteria);\r\n\r\n\t\t\tgetSepaConfigurations.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t// PR: Get the country name for each bank country code.\r\n\t\t\t\t\t\tthis.invalidSupplierRecords.forEach((contentData: SupplierRecordValidation) => {\r\n\t\t\t\t\t\t\tif (!!contentData.BankCountryCode) {\r\n\t\t\t\t\t\t\t\tcontentData.BankCountry = operationResult.Data.find((c) => c.CountryCode === contentData.BankCountryCode)?.CountryName || '';\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\tconsole.warn('Error retrieving SEPA configuration information using getSepaConfigurations... IsValid=false');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tpublic goToInvitationsSearch(): void {\r\n\t\tthis.router.navigate(['/private/invitation/company/search']);\r\n\t}\r\n\r\n\tprivate isAutomaticFundingRequestColumnVisible(contentValidationData: SupplierRecordValidation[]): void {\r\n\t\tthis.showColumnActiveAutomaticFundingRequest = contentValidationData.some((t) =>\r\n\t\t\tthis.canActivateAutomaticFundindRequest(t.ConfirmingContract as PublicContract)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate canActivateAutomaticFundindRequest(contract: PublicContract): boolean {\r\n\t\tif (!!contract) {\r\n\t\t\tif (\r\n\t\t\t\tcontract.AutomaticFundingRequestAuthorizationFlow === AutomaticFundingRequestFlow.RequireSupplierAuthorization ||\r\n\t\t\t\tcontract.AutomaticFundingRequestTrigger == AutomaticFundingRequestTrigger.BuyerRequest\r\n\t\t\t) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{{ 'supplier-upload-step1.pageTitle' | translate }}\r\n\t\t\t
\r\n\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\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{{ 'supplier-upload.Step1Label' | translate }}\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{{ 'supplier-upload.Step2Label' | translate }}\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{{ 'supplier-upload.Step3Label' | translate }}\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{{ 'supplier-upload.Step4Label' | translate }}\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{{ 'supplier-upload.Step4Label' | translate }}\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\t
\r\n\t\t\t\t\t\t 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\t\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{{ 'supplier-upload-step4.FinalSupplierOutcomeText1' | translate }}\r\n\t\t\t\t\t\t\t\t\t 0\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"tag is-success mx-2 font-weight-bold\"\r\n data-e2e-suppliers-upload-step4-valid-total\r\n\t\t\t\t\t\t\t\t\t\t>{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.FinalSupplierOutcomeText2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.FinalSupplierOutcomeText3' | translate }}\r\n\t\t\t\t\t\t\t\t
\r\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
\r\n\t\t\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{{ 'supplier-upload-step4.FinalSupplierOutcomeText1' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.FinalSupplierOutcomeText2' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ totalValidRecords + totalInvalidRecords }}\r\n\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.FinalSupplierOutcomeText3' | translate }}\r\n\t\t\t\t\t\t\t\t
\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
0\">\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
{{ 'supplier-upload-step4.InvalidSuppliersList' | translate }}
\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\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\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\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.ValidationStatus' | translate }}{{ 'supplier-upload-step4.SupplierRecordsBuyerVatNumber' | translate }}{{ 'supplier-upload-step4.SupplierRecordsConfirmingContract' | translate }}{{ 'supplier-upload-step4.SupplierRecordsSupplier' | translate }}{{ 'supplier-upload-step4.SupplierRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalidSupplierRecord.ValidationStatus | translate: 'list-uploadedSupplierRecordState'\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t{{ invalidSupplierRecord.BuyerCountryCode }}{{ invalidSupplierRecord.BuyerVatNumber }}{{ invalidSupplierRecord.ContractNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{{ invalidSupplierRecord.SupplierName }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.SupplierCountryCode }}{{ invalidSupplierRecord.SupplierVatNumber }}
\r\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
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
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ lineError?.Values[0] }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\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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\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\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\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsBuyerVatNumber' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.SupplierRecordsBuyerManagerName' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.SupplierRecordsSupplier' | translate }}{{ 'supplier-upload-step4.SupplierRecordsSupplierLanguageCode' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.SupplierRecordsSupplierUserName' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'supplier-upload-step4.SupplierRecordsConfirmingContract' | translate }}{{ 'supplier-upload-step4.SupplierRecordsSupplierIbanSwift' | translate }}{{ 'supplier-upload-step4.SupplierRecordsSupplierBankCountryCode' | translate }}{{ 'supplier-upload-step4.SupplierRecordsActivePaymentRequest' | translate }}
{{ invalidSupplierRecord.BuyerCountryCode }}{{ invalidSupplierRecord.BuyerVatNumber }}\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

{{ invalidSupplierRecord.BuyerManagerName }}

\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

{{ invalidSupplierRecord.BuyerManagerUsername }}

\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

{{ invalidSupplierRecord.SupplierName }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.SupplierCountryCode }}{{ invalidSupplierRecord.SupplierVatNumber }}
\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
{{ invalidSupplierRecord.SupplierLanguageCode | uppercase }}\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

{{ invalidSupplierRecord.SupplierUserName }}

\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

{{ invalidSupplierRecord.SupplierUserEmail }}

\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
{{ invalidSupplierRecord.ContractNumber }}\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

{{ invalidSupplierRecord.SupplierIban }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.SupplierSwift }}
\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
{{ invalidSupplierRecord.BankCountry }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidSupplierRecord.ActivePaymentRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\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{{ invalidSupplierRecord.ActiveAutomaticFundingRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\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
\r\n\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
\r\n\t\t\t\t\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{{ 'supplier-upload-step4.ValidationStatus' | translate }}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tinvalidSupplierRecord.ValidationStatus | translate: 'list-uploadedSupplierRecordState'\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\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\t
{{ 'supplier-upload-step4.SupplierRecordsRow' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidSupplierRecord.RowNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsBuyerVatNumber' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.BuyerCountryCode }}{{ invalidSupplierRecord.BuyerVatNumber }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsBuyerManagerName' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ invalidSupplierRecord.BuyerManagerName }}

\r\n\t\t\t\t\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

{{ invalidSupplierRecord.BuyerManagerUsername }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsSupplier' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ invalidSupplierRecord.SupplierName }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.SupplierCountryCode }}{{ invalidSupplierRecord.SupplierVatNumber }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{{ 'supplier-upload-step4.SupplierRecordsSupplierLanguageCode' | translate }}\r\n\t\t\t\t\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{{ invalidSupplierRecord.SupplierLanguageCode | uppercase }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsSupplierUserName' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ invalidSupplierRecord.SupplierUserName }}

\r\n\t\t\t\t\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

{{ invalidSupplierRecord.SupplierUserEmail }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsConfirmingContract' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ invalidSupplierRecord.ContractNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsSupplierIbanSwift' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{{ invalidSupplierRecord.SupplierIban }}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.SupplierSwift }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step4.SupplierRecordsSupplierBankCountryCode' | translate }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ invalidSupplierRecord.BankCountry }}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{{ 'supplier-upload-step4.SupplierRecordsActivePaymentRequest' | translate }}\r\n\t\t\t\t\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{{ invalidSupplierRecord.ActivePaymentRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{{ 'supplier-upload-step4.SupplierRecordsActiveAutomaticFundingRequest' | translate }}\r\n\t\t\t\t\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{{ invalidSupplierRecord.ActiveAutomaticFundingRequest | uppercase | translate: 'list-uploadedSupplierYesNo' }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{{ 'supplier-upload-step3.SupplierRecordsValidationErrors' | translate }}
\r\n\t\t\t\t\t\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{{ lineError?.Values[0] }}\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\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\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'supplier-upload-step3.backToUploadStep' | translate }}\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{{ 'supplier-upload-step4.goToInvitationsSearch' | translate }}\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 { Component } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'app-upload',\r\n\ttemplateUrl: './upload.component.html',\r\n\tstyleUrls: ['./upload.component.css'],\r\n})\r\nexport class UploadComponent {\r\n\tconstructor() {}\r\n}\r\n","\r\n\r\n
\r\n\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\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

{{ 'upload-component.Upload' | translate }}

\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
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\t\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'upload-component.Documents' | translate }}\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
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'upload-component.DocumentsContextualization' | translate }}\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'upload-component.DocumentsUploadStep1' | translate }}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { User } from '../../models/User/user';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { ServerErrors } from '../../models/enums/server-errors';\r\nimport { NotificationService } from '../../services/notification/notification.service';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\n\r\n@Component({\r\n\tselector: 'app-financier-companies',\r\n\ttemplateUrl: './financier-companies.component.html',\r\n\tstyleUrls: ['./financier-companies.component.css'],\r\n})\r\nexport class FinancierCompaniesComponent implements OnInit {\r\n\tprivate loggedUser: User | null = new User();\r\n\tprotected isPerformingRequest: boolean = false;\r\n\tprotected isResourceLoaded: boolean;\r\n\tprotected showFinanciersSearch: boolean;\r\n\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate translateService: TranslateService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tthis.isResourceLoaded = false;\r\n\t\t\tif (!!this.loggedUser) {\r\n\t\t\t\tthis.showFinanciersSearch = true;\r\n\t\t\t} else {\r\n\t\t\t\tthis.notificationService.addDanger(this.translateService.translate(ServerErrors.Unauthorized, 'list-errorCodes'));\r\n\t\t\t}\r\n\t\t\tthis.isResourceLoaded = true;\r\n\t\t\tthis.isPerformingRequest = false;\r\n\t\t});\r\n\t}\r\n}\r\n","\r\n\r\n
\r\n\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
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{{ 'financier-companies.pageTitle' | translate }}

\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\t\t\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n\r\n","import { Component, OnInit, SecurityContext } from '@angular/core';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { DateLocalePipe } from '../../../services/date-locale.pipe';\r\nimport { User } from '../../../models/User/user';\r\nimport { ConfirmingContract } from '../../../models/contracts/confirming/confirming-contract';\r\nimport { SearchFilter } from '../../../models/common/search-filter';\r\nimport { ConfirmingContractsSearchCriteria } from '../../../models/contracts/confirming/confirming-contracts-search-criteria';\r\nimport { ConfirmingConnectionsSearchCriteria } from '../../../models/contracts/confirming/confirming-connections-search-criteria';\r\nimport { ConfirmingConnection } from '../../../models/contracts/confirming/confirming-connection';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { FactoringContractsSearchCriteria } from '../../../models/contracts/factoring/factoring-contracts-search-criteria';\r\nimport { FactoringConnectionsSearchCriteria } from '../../../models/contracts/factoring/factoring-connections-search-criteria';\r\nimport { FactoringConnection } from '../../../models/contracts/factoring/factoring-connection';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { FactoringContract } from '../../../models/contracts/factoring/factoring-contract';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { CommissionsSearchCriteria } from '../../../models/commissions/commissions-search-criteria';\r\nimport * as moment from 'moment-timezone';\r\nimport { CommissionsSumValues } from '../../../models/commissions/commissions-sum-values';\r\nimport { CurrencyCode } from '../../../models/enums/currency-code';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\ntype CurrencyViewModel = {\r\n\tCurrency: string;\r\n\tSelected: boolean;\r\n};\r\n\r\n@Component({\r\n\tselector: 'app-dashboard-administrator',\r\n\ttemplateUrl: './dashboard-administrator.component.html',\r\n\tstyleUrls: ['./dashboard-administrator.component.css'],\r\n})\r\nexport class DashboardAdministratorComponent implements OnInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tpublic confirmingApprovedRequestFunds: number = 0;\r\n\tpublic confirmingNotPaidDocuments: number = 0;\r\n\tpublic confirmingBuyersWithActiveContractsCompaniesCount: number = 0;\r\n\tpublic confirmingSuppliersWithActiveConnectionsCompaniesCount: number = 0;\r\n\tpublic confirmingContractedAmount: number = 0;\r\n\tpublic confirmingContractsAvailableAmount: number = 0;\r\n\tpublic CurrentMonth: Date;\r\n\r\n\tpublic confirmingAverageMonthFundingRequestDays: number = 0;\r\n\tpublic confirmingCurrentFundingRequestsAmount: number = 0;\r\n\tpublic confirmingMonthlyAutomaticPayments: number = 0;\r\n\tpublic saphetyComission: number = 0;\r\n\tpublic confirmingSuppliersActiveConnections: number = 0;\r\n\tpublic confirmingContractsAvailableAmountRatio: number = 0;\r\n\r\n\tprivate month: number = new Date().getMonth() + 1;\r\n\tprivate year: number = new Date().getFullYear();\r\n\r\n\tpublic factoringApprovedCreditAssignments: number = 0;\r\n\tpublic factoringCurrentCreditAssignmentsAmount: number = 0;\r\n\tpublic factoringApprovedAdvances: number = 0;\r\n\tpublic factoringContractedAmount: number = 0;\r\n\tpublic factoringContractDocumentPortfolioAmount: number = 0;\r\n\tpublic factoringContractAdvanceableAmount: number = 0;\r\n\tpublic factoringSuppliersWithActiveContractsCompaniesCount: number = 0;\r\n\tpublic factoringBuyersWithActiveConnectionsCompaniesCount: number = 0;\r\n\tpublic factoringBuyersActiveConnections: number = 0;\r\n\r\n\tpublic totalBuyersWithActiveConfirmingContractsAndActiveFactoringConnections: number = 0;\r\n\tpublic totalSuppliersWithActiveConfirmingConnectionsAndActiveFactoringContracts: number = 0;\r\n\tpublic totalActiveConnections: number = 0;\r\n\r\n\tpublic selectedCurrency: string;\r\n\tpublic orderedCurrencies: CurrencyViewModel[] = [];\r\n\r\n\tpublic confirmingTabVisible: boolean = false;\r\n\tpublic factoringTabVisible: boolean = false;\r\n\tpublic confirmingTabSelected: boolean = false;\r\n\tpublic factoringTabSelected: boolean = false;\r\n\r\n\t// PR: This reference is necessary in order to access the enum from the template HTML file.\r\n\tprotected CurrencyCode = CurrencyCode;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate dateLocale: DateLocalePipe,\r\n\t\tprivate domSanitizer: DomSanitizer\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\r\n\t\t\tthis.CurrentMonth = this.dateLocale.transform(new Date(), 'MM/yyyy');\r\n\r\n\t\t\t//global cards\r\n\t\t\tthis.getSaphetyComission();\r\n\t\t\tthis.getTotalCompaniesCount();\r\n\r\n\t\t\t//confirming cards\r\n\t\t\tthis.loadConfirmingCards();\r\n\r\n\t\t\t//factoring cards\r\n\t\t\tthis.loadFactoringCards();\r\n\r\n\t\t\tthis.confirmingTabVisible = true;\r\n\t\t\tthis.confirmingTabSelected = true;\r\n\t\t\tthis.factoringTabVisible = true;\r\n\t\t\tthis.factoringTabSelected = !this.confirmingTabSelected;\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingSuppliersActiveConnections(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingSuppliersActiveConnections(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingSuppliersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getConfirmingSuppliersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingSuppliersActiveConnections()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getSaphetyComission(): void {\r\n\t\tvar date = new Date();\r\n\t\tvar lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);\r\n\r\n\t\tconst criteria = new CommissionsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'CreatedOn';\r\n\t\tcriteria.PageNumber = 1;\r\n\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = {\r\n\t\t\tCommissionDueDateEnd: moment.utc([lastDay.getFullYear(), lastDay.getMonth(), lastDay.getDate()]).toDate(),\r\n\t\t\tCommissionDueDateStart: moment.utc([date.getFullYear(), date.getMonth(), 1]).toDate(),\r\n\t\t};\r\n\r\n\t\tthis.serverApiService.getCommissionsSumValues(criteria.RestrictionCriteria).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? this.processValidgetCommissionsSumValues(opResult)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getCommissionsSumValues()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardAdminitratorComponent] Invalid result from getCommissionsSumValues()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingMonthlyAutomaticPayments(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingMonthlyAutomaticPayments(this.month, this.year, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingMonthlyAutomaticPayments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getConfirmingMonthlyAutomaticPayments()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingMonthlyAutomaticPayments()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingAverageMonthFundingRequestDays(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingAverageMonthFundingRequestDays(this.month, this.year, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingAverageMonthFundingRequestDays = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingAverageMonthFundingRequestDays()',\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingAverageMonthFundingRequestDays()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingCurrentFundingRequestsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingCurrentFundingRequestsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingCurrentFundingRequestsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getConfirmingCurrentFundingRequestsAmount()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingCurrentFundingRequestsAmount()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getNotPaidDocumentsSum(currency: string): void {\r\n\t\tthis.serverApiService.getNotPaidDocumentsSum(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingNotPaidDocuments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getNotPaidDocumentsSum()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardAdminitratorComponent] Invalid result from getNotPaidDocumentsSum()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingApprovedRequestFunds(currency: string) {\r\n\t\tconst fundingRequestDocumentStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getConfirmingFundingRequestsTotalAdvancedAmount(fundingRequestDocumentStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingApprovedRequestFunds = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getConfirmingFundingRequestsTotalAdvancedAmount',\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] HttpError result from getConfirmingFundingRequestsTotalAdvancedAmount',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate refreshConfirmingContractDataForCurrency(currency: string) {\r\n\t\tconst criteria: ConfirmingContractsSearchCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'EndDate';\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.Currency = currency;\r\n\r\n\t\tthis.serverApiService.searchConfirmingContracts(criteria).subscribe((getConfirmingContracts) => {\r\n\t\t\tif (!getConfirmingContracts.IsValid) this.requestErrors = getConfirmingContracts.Errors;\r\n\t\t\telse {\r\n\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\tthis.confirmingContractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\t\tthis.confirmingContractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\t\tthis.confirmingContractsAvailableAmountRatio =\r\n\t\t\t\t\t\t\tthis.confirmingContractedAmount > 0 ? 100.0 * (this.confirmingContractsAvailableAmount / this.confirmingContractedAmount) : 0;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.confirmingBuyersWithActiveContractsCompaniesCount = getConfirmingContracts.Data.map((c) => c.Buyer.Id).filter(\r\n\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t).length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingActiveContracts() {\r\n\t\tthis.resetValues();\r\n\r\n\t\tlet currencies: CurrencyViewModel[] = [];\r\n\t\tlet retrievedConfirmingContracts: ConfirmingContract[] = [];\r\n\r\n\t\tconst criteria: ConfirmingContractsSearchCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'EndDate';\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tthis.serverApiService.searchConfirmingContracts(criteria).subscribe({\r\n\t\t\tnext: (getConfirmingContracts: OperationResult) => {\r\n\t\t\t\tif (getConfirmingContracts.IsValid) {\r\n\t\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\t\tretrievedConfirmingContracts.push(contract);\r\n\r\n\t\t\t\t\t\t\tif (currencies.findIndex((c) => c.Currency == contract.Currency) == -1)\r\n\t\t\t\t\t\t\t\tcurrencies.push({\r\n\t\t\t\t\t\t\t\t\tCurrency: contract.Currency,\r\n\t\t\t\t\t\t\t\t\tSelected: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.orderedCurrencies = currencies.sort(function (c1: CurrencyViewModel, c2: CurrencyViewModel) {\r\n\t\t\t\t\t\t\tvar currency1 = c1.Currency.toUpperCase();\r\n\t\t\t\t\t\t\tvar currency2 = c2.Currency.toUpperCase();\r\n\t\t\t\t\t\t\treturn currency1 < currency2 ? -1 : currency1 > currency2 ? 1 : 0;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (!!this.orderedCurrencies && this.orderedCurrencies.length > 0) {\r\n\t\t\t\t\t\t\tlet initialCurrencytoProcess = this.orderedCurrencies[0].Currency;\r\n\t\t\t\t\t\t\tthis.orderedCurrencies[0].Selected = true;\r\n\r\n\t\t\t\t\t\t\tlet contractsOfInitialCurrency: ConfirmingContract[] = retrievedConfirmingContracts.filter(\r\n\t\t\t\t\t\t\t\t(c) => c.Currency == initialCurrencytoProcess\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tcontractsOfInitialCurrency.forEach((contract) => {\r\n\t\t\t\t\t\t\t\tthis.confirmingContractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\t\t\t\tthis.confirmingContractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\t\t\t\tthis.confirmingContractsAvailableAmountRatio =\r\n\t\t\t\t\t\t\t\t\tthis.confirmingContractedAmount > 0\r\n\t\t\t\t\t\t\t\t\t\t? 100.0 * (this.confirmingContractsAvailableAmount / this.confirmingContractedAmount)\r\n\t\t\t\t\t\t\t\t\t\t: 0;\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tthis.confirmingBuyersWithActiveContractsCompaniesCount = contractsOfInitialCurrency\r\n\t\t\t\t\t\t\t\t.map((c) => c.Buyer.Id)\r\n\t\t\t\t\t\t\t\t.filter((x, i, a) => a.indexOf(x) == i).length;\r\n\r\n\t\t\t\t\t\t\t//get other information for this currency\r\n\t\t\t\t\t\t\tthis.selectedCurrency = initialCurrencytoProcess;\r\n\r\n\t\t\t\t\t\t\tthis.getConfirmingActiveConnections(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getConfirmingSuppliersActiveConnections(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getNotPaidDocumentsSum(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getConfirmingApprovedRequestFunds(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getConfirmingAverageMonthFundingRequestDays(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getConfirmingCurrentFundingRequestsAmount(this.selectedCurrency);\r\n\t\t\t\t\t\t\tthis.getConfirmingMonthlyAutomaticPayments(this.selectedCurrency);\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\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingActiveConnections(currency: string) {\r\n\t\tconst criteria: ConfirmingConnectionsSearchCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.Currency = currency;\r\n\r\n\t\tthis.serverApiService.searchConfirmingConnections(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data) {\r\n\t\t\t\t\t\tif (operationResult.Data.length > 0)\r\n\t\t\t\t\t\t\tthis.confirmingSuppliersWithActiveConnectionsCompaniesCount = operationResult.Data.map((c) => c.Supplier.Id).filter(\r\n\t\t\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t\t\t).length;\r\n\t\t\t\t\t\telse this.confirmingSuppliersWithActiveConnectionsCompaniesCount = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic clickedCurrency(currency: string): void {\r\n\t\tthis.resetValues();\r\n\r\n\t\tthis.selectedCurrency = currency;\r\n\r\n\t\tthis.orderedCurrencies.forEach((orderedCurrency) => {\r\n\t\t\torderedCurrency.Selected = orderedCurrency.Currency == currency;\r\n\t\t});\r\n\r\n\t\tthis.refreshConfirmingContractDataForCurrency(this.selectedCurrency);\r\n\t\tthis.getConfirmingActiveConnections(this.selectedCurrency);\r\n\t\tthis.getConfirmingSuppliersActiveConnections(this.selectedCurrency);\r\n\t\tthis.getNotPaidDocumentsSum(this.selectedCurrency);\r\n\t\tthis.getConfirmingApprovedRequestFunds(this.selectedCurrency);\r\n\t\tthis.getConfirmingAverageMonthFundingRequestDays(this.selectedCurrency);\r\n\t\tthis.getConfirmingCurrentFundingRequestsAmount(this.selectedCurrency);\r\n\t\tthis.getConfirmingMonthlyAutomaticPayments(this.selectedCurrency);\r\n\t}\r\n\r\n\tprivate resetValues() {\r\n\t\tthis.confirmingContractsAvailableAmount = 0;\r\n\t\tthis.confirmingContractsAvailableAmountRatio = 0;\r\n\t\tthis.confirmingContractedAmount = 0;\r\n\t\tthis.confirmingCurrentFundingRequestsAmount = 0;\r\n\t\tthis.confirmingNotPaidDocuments = 0;\r\n\t\tthis.confirmingSuppliersActiveConnections = 0;\r\n\t}\r\n\r\n\tpublic notMultipleCurrencies(currencies: CurrencyViewModel[]): boolean {\r\n\t\treturn currencies?.length <= 1;\r\n\t}\r\n\r\n\t//based in active contracts and connections\r\n\tprivate getTotalCompaniesCount(): void {\r\n\t\tconst confirmingContractsSearchCriteria: ConfirmingContractsSearchCriteria =\r\n\t\t\tnew ConfirmingContractsSearchCriteria();\r\n\t\tconfirmingContractsSearchCriteria.PageNumber = 1;\r\n\t\tconfirmingContractsSearchCriteria.OrderDescending = true;\r\n\t\tconfirmingContractsSearchCriteria.RowsPerPage = 2147483647;\r\n\t\tconfirmingContractsSearchCriteria.RestrictionCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tconfirmingContractsSearchCriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tconst confirmingConnectionsSearchCriteria: ConfirmingConnectionsSearchCriteria =\r\n\t\t\tnew ConfirmingConnectionsSearchCriteria();\r\n\t\tconfirmingConnectionsSearchCriteria.PageNumber = 1;\r\n\t\tconfirmingConnectionsSearchCriteria.RowsPerPage = 2147483647;\r\n\t\tconfirmingConnectionsSearchCriteria.RestrictionCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tconfirmingConnectionsSearchCriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tconfirmingConnectionsSearchCriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tconst factoringContractsSearchCriteria: FactoringContractsSearchCriteria =\r\n\t\t\tnew FactoringContractsSearchCriteria();\r\n\t\tfactoringContractsSearchCriteria.PageNumber = 1;\r\n\t\tfactoringContractsSearchCriteria.OrderDescending = true;\r\n\t\tfactoringContractsSearchCriteria.RowsPerPage = 2147483647;\r\n\t\tfactoringContractsSearchCriteria.RestrictionCriteria = new FactoringContractsSearchCriteria();\r\n\t\tfactoringContractsSearchCriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tconst factoringConnectionsSearchCriteria: FactoringConnectionsSearchCriteria =\r\n\t\t\tnew FactoringConnectionsSearchCriteria();\r\n\t\tfactoringConnectionsSearchCriteria.PageNumber = 1;\r\n\t\tfactoringConnectionsSearchCriteria.RowsPerPage = 2147483647;\r\n\t\tfactoringConnectionsSearchCriteria.RestrictionCriteria = new FactoringConnectionsSearchCriteria();\r\n\t\tfactoringConnectionsSearchCriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tfactoringConnectionsSearchCriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tlet servicesCallsToMake: Array<\r\n\t\t\tObservable>\r\n\t\t> = [];\r\n\r\n\t\tservicesCallsToMake.push(this.serverApiService.searchConfirmingContracts(confirmingContractsSearchCriteria));\r\n\t\tservicesCallsToMake.push(this.serverApiService.searchConfirmingConnections(confirmingConnectionsSearchCriteria));\r\n\t\tservicesCallsToMake.push(this.serverApiService.searchFactoringContracts(factoringContractsSearchCriteria));\r\n\t\tservicesCallsToMake.push(this.serverApiService.searchFactoringConnections(factoringConnectionsSearchCriteria));\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet confirmingContractsSearchResult = opResults[0] as OperationResult;\r\n\t\t\tlet confirmingConnectionsSearchResult = opResults[1] as OperationResult;\r\n\t\t\tlet factoringContractsSearchResult = opResults[2] as OperationResult;\r\n\t\t\tlet factoringConnectionsSearchResult = opResults[3] as OperationResult;\r\n\r\n\t\t\tif (\r\n\t\t\t\tconfirmingContractsSearchResult.IsValid &&\r\n\t\t\t\tconfirmingConnectionsSearchResult.IsValid &&\r\n\t\t\t\tfactoringContractsSearchResult.IsValid &&\r\n\t\t\t\tfactoringConnectionsSearchResult.IsValid\r\n\t\t\t) {\r\n\t\t\t\tlet confirmingBuyersIds = confirmingContractsSearchResult.Data?.map((c) => c.Buyer.Id).filter(this.utilitiesService.notEmpty);\r\n\t\t\t\tlet confirmingBuyersWithActiveContracts = this.utilitiesService.getDistinctValues(confirmingBuyersIds);\r\n\r\n\t\t\t\tlet confirmingSuppliersIds = confirmingConnectionsSearchResult.Data?.map((c) => c.Supplier.Id).filter(\r\n\t\t\t\t\tthis.utilitiesService.notEmpty\r\n\t\t\t\t);\r\n\t\t\t\tlet confirmingSuppliersWithActiveConnections = this.utilitiesService.getDistinctValues(confirmingSuppliersIds);\r\n\r\n\t\t\t\tlet factoringSuppliersIds = factoringContractsSearchResult.Data?.map((c) => c.Supplier.Id).filter(this.utilitiesService.notEmpty);\r\n\t\t\t\tlet confirmingSuppliersWithActiveContracts = this.utilitiesService.getDistinctValues(factoringSuppliersIds);\r\n\r\n\t\t\t\tlet factoringBuyersIds = factoringConnectionsSearchResult.Data?.map((c) => c.Buyer.Id).filter(this.utilitiesService.notEmpty);\r\n\t\t\t\tlet factoringBuyersWithActiveConnections = this.utilitiesService.getDistinctValues(factoringBuyersIds);\r\n\r\n\t\t\t\tthis.totalBuyersWithActiveConfirmingContractsAndActiveFactoringConnections =\r\n\t\t\t\t\tthis.utilitiesService.getDistinctValues(confirmingBuyersIds.concat(factoringBuyersIds))?.length || 0;\r\n\t\t\t\tthis.totalSuppliersWithActiveConfirmingConnectionsAndActiveFactoringContracts =\r\n\t\t\t\t\tthis.utilitiesService.getDistinctValues(confirmingSuppliersIds.concat(factoringSuppliersIds))?.length || 0;\r\n\r\n\t\t\t\t//sum of connections because they are already filtered considering active connections with active contracts, therefore active connections\r\n\t\t\t\tthis.totalActiveConnections = confirmingConnectionsSearchResult.Data.length + factoringConnectionsSearchResult.Data.length;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t//confirming cards\r\n\tprivate loadConfirmingCards(): void {\r\n\t\tthis.getConfirmingActiveContracts();\r\n\t}\r\n\r\n\tprivate getFactoringApprovedCreditAssignments(currency: string): void {\r\n\t\tconst creditAssignmentsDocumentStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getFactoringApprovedCreditAssignments(creditAssignmentsDocumentStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringApprovedCreditAssignments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getFactoringApprovedCreditAssignments', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] HttpError result from getFactoringApprovedCreditAssignments',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringCurrentCreditAssignmentsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getFactoringCurrentCreditAssignmentsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringCurrentCreditAssignmentsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getFactoringCurrentCreditAssignmentsAmount()',\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardAdminitratorComponent] Invalid result from getFactoringCurrentCreditAssignmentsAmount()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringApprovedAdvances(currency: string): void {\r\n\t\tconst advancesStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getFactoringApprovedAdvances(advancesStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringApprovedAdvances = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getFactoringApprovedAdvances', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardAdminitratorComponent] HttpError result from getFactoringApprovedAdvances', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringSuppliersWithActiveContractsCompaniesCount(): void {\r\n\t\tconst criteria: FactoringContractsSearchCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tthis.serverApiService.searchFactoringContracts(criteria).subscribe((getFactoringContracts) => {\r\n\t\t\tif (!getFactoringContracts.IsValid) this.requestErrors = getFactoringContracts.Errors;\r\n\t\t\telse {\r\n\t\t\t\tif (!!getFactoringContracts.Data && getFactoringContracts.Data.length > 0) {\r\n\t\t\t\t\tgetFactoringContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\tthis.factoringContractedAmount += contract.ContractAmount;\r\n\t\t\t\t\t\tthis.factoringContractAdvanceableAmount += contract.AdvanceableAmount;\r\n\t\t\t\t\t\tthis.factoringContractDocumentPortfolioAmount += contract.DocumentPortfolioAmount;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.factoringSuppliersWithActiveContractsCompaniesCount = getFactoringContracts.Data.map((c) => c.Supplier.Id).filter(\r\n\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t).length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringBuyersWithActiveConnectionsCompaniesCount(currency: string) {\r\n\t\tconst criteria: FactoringConnectionsSearchCriteria = new FactoringConnectionsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new FactoringConnectionsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tthis.serverApiService.searchFactoringConnections(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data && operationResult.Data.length > 0) {\r\n\t\t\t\t\t\tthis.factoringBuyersWithActiveConnectionsCompaniesCount = operationResult.Data.map((c) => c.Buyer.Id).filter(\r\n\t\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t\t).length;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringBuyersActiveConnections() {\r\n\t\tthis.serverApiService.getFactoringBuyersActiveConnections().subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringBuyersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardAdminitratorComponent] Invalid result from getFactoringBuyersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardAdminitratorComponent] Invalid result from getFactoringBuyersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\t//factoring cards\r\n\tprivate loadFactoringCards(): void {\r\n\t\tthis.getFactoringApprovedCreditAssignments(CurrencyCode.Euro);\r\n\t\tthis.getFactoringCurrentCreditAssignmentsAmount(CurrencyCode.Euro);\r\n\t\tthis.getFactoringApprovedAdvances(CurrencyCode.Euro);\r\n\t\tthis.getFactoringSuppliersWithActiveContractsCompaniesCount();\r\n\t\tthis.getFactoringBuyersWithActiveConnectionsCompaniesCount(CurrencyCode.Euro);\r\n\t\tthis.getFactoringBuyersActiveConnections();\r\n\t}\r\n\r\n\tpublic clickedConfirmingTab(): void {\r\n\t\tthis.confirmingTabSelected = true;\r\n\t\tthis.factoringTabSelected = false;\r\n\r\n\t\tthis.getConfirmingActiveContracts();\r\n\t}\r\n\r\n\tpublic clickedFactoringTab(): void {\r\n\t\tthis.confirmingTabSelected = false;\r\n\t\tthis.factoringTabSelected = true;\r\n\t\tthis.selectedCurrency = CurrencyCode.Euro;\r\n\r\n\t\tthis.resetValues();\r\n\t}\r\n\r\n\tprivate processValidgetCommissionsSumValues(operationResult: OperationResult): void {\r\n\t\tlet commissionsSumValues = operationResult.Data.filter((c) => c.ConversionCurrency == CurrencyCode.Euro);\r\n\r\n\t\tconst reducer = (accumulator, currentValue) => accumulator + currentValue;\r\n\t\tthis.saphetyComission = commissionsSumValues?.map((v) => v.Sum)?.reduce(reducer, 0) ?? 0;\r\n\t}\r\n}\r\n","\r\n\r\n
\r\n\t\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ totalBuyersWithActiveConfirmingContractsAndActiveFactoringConnections }}\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'dashboard-administrator.totalBuyersWithActiveConfirmingContractsAndActiveFactoringConnections' | translate }}\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
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ totalSuppliersWithActiveConfirmingConnectionsAndActiveFactoringContracts }}\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'dashboard-administrator.totalSuppliersWithActiveConfirmingConnectionsAndActiveFactoringContracts' | translate }}\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
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
{{ totalActiveConnections }}
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'dashboard-administrator.totalActiveConnections' | translate }}\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
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n
\r\n\r\n\r\n\t\r\n\t\t
\r\n\t\t\t\r\n\t\t\t 1\"\r\n\t\t\t\tclass=\"currency-wrap\">\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{{ orderedCurrency.Currency }}\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
    \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{{ confirmingApprovedRequestFunds | currencyLocale: selectedCurrency }}\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{{ 'dashboard-administrator.approvedRequestFunds' | translate }}\r\n\t\t\t\t\t\t\t\t({{ CurrentMonth }})\r\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
    \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{{ confirmingCurrentFundingRequestsAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-administrator.currentFundingRequestsAmount' | translate }}\r\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
    \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{{ confirmingAverageMonthFundingRequestDays }}\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{{ 'dashboard-administrator.averageMonthFundingRequestDays' | translate }}\r\n\t\t\t\t\t\t\t\t({{ CurrentMonth }})\r\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
    \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{{ confirmingMonthlyAutomaticPayments | currencyLocale: selectedCurrency }}\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{{ 'dashboard-administrator.monthlyAutomaticPayments' | translate }}\r\n\t\t\t\t\t\t\t\t({{ CurrentMonth }})\r\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
    \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{{ confirmingNotPaidDocuments | currencyLocale: selectedCurrency }}\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{{ 'dashboard-administrator.notPaidDocuments' | translate }}\r\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
    \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{{ confirmingContractedAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-administrator.contractedAmount' | translate }}\r\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
    \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\t{{ confirmingContractsAvailableAmount | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    {{ confirmingContractsAvailableAmountRatio | numberLocale: '1.2-2' }}%
    \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{{ 'dashboard-administrator.contractsAvailableAmount' | translate }}\r\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
    \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{{ confirmingBuyersWithActiveContractsCompaniesCount }}\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{{ 'dashboard-administrator.buyersCompaniesCount' | translate }}\r\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
    \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{{ confirmingSuppliersWithActiveConnectionsCompaniesCount }}\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{{ 'dashboard-administrator.suppliersCompaniesCount' | translate }}\r\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
    \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{{ confirmingSuppliersActiveConnections }}\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{{ 'dashboard-administrator.suppliersActiveConnections' | translate }}\r\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
    \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\t\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{{ factoringApprovedCreditAssignments | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringApprovedCreditAssignments' | translate }}\r\n\t\t\t\t\t\t\t({{ CurrentMonth }})\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
    \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{{ factoringCurrentCreditAssignmentsAmount | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringCurrentCreditAssignmentsAmount' | translate }}\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
    \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{{ factoringApprovedAdvances | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringApprovedAdvances' | translate }}\r\n\t\t\t\t\t\t\t({{ CurrentMonth }})\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
    \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{{ factoringContractedAmount | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringContractedAmount' | translate }}\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
    \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{{ factoringContractDocumentPortfolioAmount | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringContractDocumentPortfolioAmount' | translate }}\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
    \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{{ factoringContractAdvanceableAmount | currencyLocale: CurrencyCode.Euro }}\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{{ 'dashboard-administrator.factoringContractAdvanceableAmount' | translate }}\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
    \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{{ factoringSuppliersWithActiveContractsCompaniesCount }}\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{{ 'dashboard-administrator.factoringSuppliersWithActiveContractsCompaniesCount' | translate }}\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
    \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{{ factoringBuyersWithActiveConnectionsCompaniesCount }}\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{{ 'dashboard-administrator.factoringBuyersWithActiveConnectionsCompaniesCount' | translate }}\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
    \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{{ factoringBuyersActiveConnections }}\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{{ 'dashboard-administrator.factoringBuyersActiveConnections' | translate }}\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 { Component, OnInit, SecurityContext } from '@angular/core';\r\nimport { User } from '../../../models/User/user';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { DocumentForecast } from '../../../models/dashboard/document-forecast';\r\nimport { VerticalBarChart } from '../../../models/charts/vertical-bar-chart';\r\nimport { PieChart } from '../../../models/charts/pie-chart';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { DateLocalePipe } from '../../../services/date-locale.pipe';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { DocumentPaymentStateByTotalAmount } from '../../../models/dashboard/document-payment-state-by-total-amount';\r\nimport { ConfirmingContract } from '../../../models/contracts/confirming/confirming-contract';\r\nimport { SearchFilter } from '../../../models/common/search-filter';\r\nimport { ConfirmingContractsSearchCriteria } from '../../../models/contracts/confirming/confirming-contracts-search-criteria';\r\nimport { DocumentForecastByState } from '../../../models/dashboard/document-forecast-by-paymentstate';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\ntype DocumentForecastSeriesData = {\r\n\tPaymentState: string;\r\n\tTotalAmount: string;\r\n};\r\n\r\ntype SeriesDetail = {\r\n\tname: string;\r\n\tvalue: string;\r\n};\r\n\r\ntype SeriesData = {\r\n\tname: string;\r\n\tseries: SeriesDetail[];\r\n};\r\n\r\ntype CurrencyViewModel = {\r\n\tCurrency: string;\r\n\tSelected: boolean;\r\n};\r\n\r\n@Component({\r\n\tselector: 'app-dashboard-buyer',\r\n\ttemplateUrl: './dashboard-buyer.component.html',\r\n\tstyleUrls: ['./dashboard-buyer.component.css'],\r\n})\r\nexport class DashboardBuyerComponent implements OnInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tpublic CurrentMonth: Date;\r\n\tpublic documentForecast: DocumentForecast[] = [];\r\n\tpublic contractsCount: number = 0;\r\n\tpublic contractsAvailableAmount: number = 0;\r\n\tpublic contractedAmount: number = 0;\r\n\tpublic suppliersActiveConnections: number = 0;\r\n\tpublic contractsAvailableAmountRatio: number = 0;\r\n\tpublic notPaidDocuments: number = 0;\r\n\tpublic currentFundingRequestsAmount: number = 0;\r\n\r\n\tpublic documentForecastChart: VerticalBarChart = new VerticalBarChart();\r\n\r\n\tpublic selectedCurrency: string = '';\r\n\tpublic orderedCurrencies: CurrencyViewModel[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate dateLocale: DateLocalePipe,\r\n\t\tprivate domSanitizer: DomSanitizer\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\r\n\t\t\tthis.getContracts();\r\n\r\n\t\t\tthis.CurrentMonth = this.dateLocale.transform(new Date(), 'MM/yyyy');\r\n\r\n\t\t\t//https://stackblitz.com/edit/swimlane-stacked-vertical-bar-chart-bfhqph?embed=1&file=app/app.component.ts\r\n\t\t\t//https://swimlane.gitbook.io/ngx-charts/examples/bar-charts/stacked-vertical-bar-chart\r\n\t\t\t// documentForecast Vertical Stacked Bar Chart Init\r\n\t\t\tthis.documentForecastChart.View = [];\r\n\t\t\tthis.documentForecastChart.ShowXAxis = true;\r\n\t\t\tthis.documentForecastChart.ShowLegend = false;\r\n\t\t\tthis.documentForecastChart.LegendTitle = this.translateService.translate('dashboard-supplier.chart.seriesLegend');\r\n\t\t\tthis.documentForecastChart.ShowYAxis = true;\r\n\t\t\tthis.documentForecastChart.ShowXAxisLabel = true;\r\n\t\t\tthis.documentForecastChart.XAxisLabel = this.translateService.translate('dashboard-buyer.chart.buyerConfirmedPaymentDate');\r\n\t\t\tthis.documentForecastChart.ShowYAxisLabel = true;\r\n\t\t\tthis.documentForecastChart.YAxisLabel = this.selectedCurrency;\r\n\t\t\tthis.documentForecastChart.ColorScheme = {\r\n\t\t\t\tdomain: ['#3949ab', '#ff6d6e', '#40c9c5', '#f6c951', '#48aeff', '#6E47C0', '#88D4FF', '#C392FF'],\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getNotPaidDocumentsSum(currency: string): void {\r\n\t\tthis.serverApiService.getNotPaidDocumentsSum(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.notPaidDocuments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardBuyerComponent] Invalid result from getNotPaidDocumentsSum()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardBuyerComponent] Invalid result from getNotPaidDocumentsSum()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getCurrentFundingRequestsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingCurrentFundingRequestsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.currentFundingRequestsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardBuyerComponent] Invalid result from getCurrentFundingRequestsAmount()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardBuyerComponent] Invalid result from getCurrentFundingRequestsAmount()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getSuppliersActiveConnections(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingSuppliersActiveConnections(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.suppliersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardBuyerComponent] Invalid result from getSuppliersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardBuyerComponent] Invalid result from getSuppliersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getDocumentForecast(currency: string) {\r\n\t\tthis.serverApiService.getDailyDocumentForecast(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\tthis.documentForecastChart.Results = [];\r\n\t\t\t\tif (opResult.IsValid) {\r\n\t\t\t\t\tlet documentForecastByPaymentDate: { [paymentDate: string]: DocumentForecastSeriesData[] } = {};\r\n\r\n\t\t\t\t\tthis.documentForecastChart.ShowLegend = opResult.Data.some((d) => !!d.DocumentPaymentState);\r\n\r\n\t\t\t\t\tfor (let index = 0; index < opResult.Data.length; index++) {\r\n\t\t\t\t\t\tconst element = opResult.Data[index];\r\n\r\n\t\t\t\t\t\tlet key = this.dateLocale.transform(element.BuyerPaymentDate);\r\n\t\t\t\t\t\tlet dictBuyerPaymentDate = documentForecastByPaymentDate[key];\r\n\r\n\t\t\t\t\t\tif (!dictBuyerPaymentDate) {\r\n\t\t\t\t\t\t\tdictBuyerPaymentDate = [];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar stateToDecode = element.DocumentPaymentState;\r\n\t\t\t\t\t\tvar dicPaymentStateEntry = !!stateToDecode ? this.translateService.translate(stateToDecode, 'list-paymentState') : null;\r\n\r\n\t\t\t\t\t\tif (!!stateToDecode && !!dicPaymentStateEntry) {\r\n\t\t\t\t\t\t\tdictBuyerPaymentDate.push({\r\n\t\t\t\t\t\t\t\tPaymentState: dicPaymentStateEntry,\r\n\t\t\t\t\t\t\t\tTotalAmount: element.TotalAmount,\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\tdocumentForecastByPaymentDate[key] = dictBuyerPaymentDate;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tlet results: SeriesData[] = [];\r\n\r\n\t\t\t\t\tObject.keys(documentForecastByPaymentDate).forEach(function (key) {\r\n\t\t\t\t\t\tresults.push({\r\n\t\t\t\t\t\t\tname: key,\r\n\t\t\t\t\t\t\tseries: documentForecastByPaymentDate[key].map(\r\n\t\t\t\t\t\t\t\t(r) =>\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tname: r.PaymentState,\r\n\t\t\t\t\t\t\t\t\t\tvalue: r.TotalAmount,\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\r\n\t\t\t\t\tthis.documentForecastChart.Results = results;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.logger.error('[DashboardBuyerComponent] Invalid result from getDocumentForecast', opResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardBuyerComponent] HttpError result from getDocumentForecast', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getContracts() {\r\n\t\tthis.resetValues();\r\n\r\n\t\tlet currencies: CurrencyViewModel[] = [];\r\n\t\tlet retrievedConfirmingContracts: ConfirmingContract[] = [];\r\n\r\n\t\tconst criteria: ConfirmingContractsSearchCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'EndDate';\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.BuyerIdList = this.loggedUser?.Companies.map((c) => c.Id!) ?? [];\r\n\r\n\t\tthis.serverApiService.searchConfirmingContracts(criteria).subscribe({\r\n\t\t\tnext: (getConfirmingContracts: OperationResult) => {\r\n\t\t\t\tif (getConfirmingContracts.IsValid) {\r\n\t\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\t\tretrievedConfirmingContracts.push(contract);\r\n\r\n\t\t\t\t\t\t\tif (currencies.findIndex((c) => c.Currency == contract.Currency) == -1)\r\n\t\t\t\t\t\t\t\tcurrencies.push({\r\n\t\t\t\t\t\t\t\t\tCurrency: contract.Currency,\r\n\t\t\t\t\t\t\t\t\tSelected: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.orderedCurrencies = currencies.sort(function (c1: CurrencyViewModel, c2: CurrencyViewModel) {\r\n\t\t\t\t\t\t\tvar currency1 = c1.Currency.toUpperCase();\r\n\t\t\t\t\t\t\tvar currency2 = c2.Currency.toUpperCase();\r\n\t\t\t\t\t\t\treturn currency1 < currency2 ? -1 : currency1 > currency2 ? 1 : 0;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (!!this.orderedCurrencies && this.orderedCurrencies.length > 0) {\r\n\t\t\t\t\t\t\tlet initialCurrencytoProcess = this.orderedCurrencies[0].Currency;\r\n\t\t\t\t\t\t\tthis.orderedCurrencies[0].Selected = true;\r\n\r\n\t\t\t\t\t\t\tlet contractsOfInitialCurrency: ConfirmingContract[] = retrievedConfirmingContracts.filter(\r\n\t\t\t\t\t\t\t\t(c) => c.Currency == initialCurrencytoProcess\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tcontractsOfInitialCurrency.forEach((contract) => {\r\n\t\t\t\t\t\t\t\tthis.contractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\t\t\t\tthis.contractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\t\t\t\tthis.contractsAvailableAmountRatio =\r\n\t\t\t\t\t\t\t\t\tthis.contractedAmount > 0 ? 100.0 * (this.contractsAvailableAmount / this.contractedAmount) : 0;\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t//get other information for this currency\r\n\t\t\t\t\t\t\tthis.selectedCurrency = initialCurrencytoProcess;\r\n\t\t\t\t\t\t\tthis.documentForecastChart.YAxisLabel = this.selectedCurrency;\r\n\r\n\t\t\t\t\t\t\tthis.getNotPaidDocumentsSum(initialCurrencytoProcess);\r\n\t\t\t\t\t\t\tthis.getDocumentForecast(initialCurrencytoProcess);\r\n\t\t\t\t\t\t\tthis.getSuppliersActiveConnections(initialCurrencytoProcess);\r\n\t\t\t\t\t\t\tthis.getCurrentFundingRequestsAmount(initialCurrencytoProcess);\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\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate refreshContractDataForCurrency(currency: string) {\r\n\t\tconst criteria: ConfirmingContractsSearchCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'EndDate';\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.BuyerIdList = this.loggedUser?.Companies.map((c) => c.Id!) ?? [];\r\n\t\tcriteria.RestrictionCriteria.Currency = currency;\r\n\r\n\t\tthis.serverApiService.searchConfirmingContracts(criteria).subscribe((getConfirmingContracts) => {\r\n\t\t\tif (!getConfirmingContracts.IsValid) this.requestErrors = getConfirmingContracts.Errors;\r\n\t\t\telse {\r\n\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\tthis.contractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\t\tthis.contractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\t\tthis.contractsAvailableAmountRatio =\r\n\t\t\t\t\t\t\tthis.contractedAmount > 0 ? 100.0 * (this.contractsAvailableAmount / this.contractedAmount) : 0;\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\tpublic clickedCurrency(currency: string): void {\r\n\t\tthis.resetValues();\r\n\r\n\t\tthis.selectedCurrency = currency;\r\n\t\tthis.documentForecastChart.YAxisLabel = this.selectedCurrency;\r\n\r\n\t\tthis.orderedCurrencies.forEach((orderedCurrency) => {\r\n\t\t\torderedCurrency.Selected = orderedCurrency.Currency == currency;\r\n\t\t});\r\n\r\n\t\tthis.refreshContractDataForCurrency(this.selectedCurrency);\r\n\t\tthis.getNotPaidDocumentsSum(this.selectedCurrency);\r\n\t\tthis.getDocumentForecast(this.selectedCurrency);\r\n\t\tthis.getSuppliersActiveConnections(this.selectedCurrency);\r\n\t\tthis.getCurrentFundingRequestsAmount(this.selectedCurrency);\r\n\t}\r\n\r\n\tprivate resetValues() {\r\n\t\tthis.contractsAvailableAmount = 0;\r\n\t\tthis.contractsAvailableAmountRatio = 0;\r\n\t\tthis.contractedAmount = 0;\r\n\t\tthis.currentFundingRequestsAmount = 0;\r\n\t\tthis.notPaidDocuments = 0;\r\n\t\tthis.suppliersActiveConnections = 0;\r\n\t}\r\n\r\n\tpublic notMultipleCurrencies(currencies: CurrencyViewModel[]): boolean {\r\n\t\treturn currencies?.length <= 1;\r\n\t}\r\n}\r\n","\r\n\r\n
    \r\n\t
    \r\n\t\t 1\"\r\n\t\t\tclass=\"currency-wrap\">\r\n\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\t{{ orderedCurrency.Currency }}\r\n\t\t\t\t\r\n\t\t\t
  • \r\n\t\t\r\n\t\t\r\n\t\t

    \r\n\t
    \r\n
    \r\n\r\n
    \r\n\t
    \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{{ contractsAvailableAmount | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t{{ contractsAvailableAmountRatio | numberLocale: '1.2-2' }}%\r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ 'dashboard-buyer.contractsAvailableAmount' | translate }}\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
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ contractedAmount | currencyLocale: selectedCurrency }}\r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ 'dashboard-buyer.contractedAmount' | translate }}\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
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ currentFundingRequestsAmount | currencyLocale: selectedCurrency }}\r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ 'dashboard-buyer.currentFundingRequestsAmount' | translate }}\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
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ notPaidDocuments | currencyLocale: selectedCurrency }}\r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ 'dashboard-buyer.notPaidDocuments' | translate }}\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
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    {{ loggedUser?.Companies.length }}
    \r\n\t\t\t\t
    {{ 'dashboard-buyer.companies' | translate }}
    \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
    \r\n\t\t
    \r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    {{ suppliersActiveConnections }}
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{{ 'dashboard-buyer.suppliersActiveConnections' | translate }}\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
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n
    \r\n\r\n
    \r\n\t
    \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{{ 'dashboard-supplier.documentForecast' | translate }}\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
    \r\n\t\t\t\t\t\t\t\t\t
    {{ model.series }} • {{ model.name }}
    \r\n\t\t\t\t\t\t\t\t\t{{ model.value | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t\t
    \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 { Component, OnInit, SecurityContext } from '@angular/core';\r\nimport { User } from '../../../models/User/user';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { ConfirmingContract } from '../../../models/contracts/confirming/confirming-contract';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { DateLocalePipe } from '../../../services/date-locale.pipe';\r\nimport { SearchFilter } from '../../../models/common/search-filter';\r\nimport { ConfirmingConnectionsSearchCriteria } from '../../../models/contracts/confirming/confirming-connections-search-criteria';\r\nimport { ConfirmingConnection } from '../../../models/contracts/confirming/confirming-connection';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { GetFinancierConfirmingContractsInput } from '../../../models/contracts/confirming/get-financier-confirming-contracts';\r\nimport { FactoringContractsSearchCriteria } from '../../../models/contracts/factoring/factoring-contracts-search-criteria';\r\nimport { FactoringConnectionsSearchCriteria } from '../../../models/contracts/factoring/factoring-connections-search-criteria';\r\nimport { FactoringConnection } from '../../../models/contracts/factoring/factoring-connection';\r\nimport { CurrencyCode } from '../../../models/enums/currency-code';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\ntype CurrencyViewModel = {\r\n\tCurrency: string;\r\n\tSelected: boolean;\r\n};\r\n\r\n@Component({\r\n\tselector: 'app-dashboard-financier',\r\n\ttemplateUrl: './dashboard-financier.component.html',\r\n\tstyleUrls: ['./dashboard-financier.component.css'],\r\n})\r\nexport class DashboardFinancierComponent implements OnInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic requestErrors: OperationError[] = [];\r\n\r\n\tpublic CurrentMonth: Date;\r\n\r\n\tpublic registeredBuyerCompanies: number = 0;\r\n\tpublic contractsAvailableAmount: number = 0;\r\n\tpublic contractedAmount: number = 0;\r\n\tpublic approvedRequestFunds: number = 0;\r\n\tpublic contractsAvailableAmountRatio: number = 0;\r\n\tpublic buyersWithActiveContractsCompaniesCount: number = 0;\r\n\tpublic suppliersWithActiveConnectionsCompaniesCount: number = 0;\r\n\tpublic suppliersActiveConnections: number = 0;\r\n\tpublic monthlyAutomaticPayments: number = 0;\r\n\tpublic currentFundingRequestsAmount: number = 0;\r\n\tpublic notPaidDocuments: number = 0;\r\n\r\n\tprivate month: number = new Date().getMonth() + 1;\r\n\tprivate year: number = new Date().getFullYear();\r\n\r\n\tpublic selectedCurrency: string;\r\n\tpublic orderedCurrencies: CurrencyViewModel[] = [];\r\n\r\n\tpublic confirmingTabVisible: boolean = false;\r\n\tpublic factoringTabVisible: boolean = false;\r\n\tpublic confirmingTabSelected: boolean = false;\r\n\tpublic factoringTabSelected: boolean = false;\r\n\r\n\tpublic factoringApprovedCreditAssignments: number = 0;\r\n\tpublic factoringCurrentCreditAssignmentsAmount: number = 0;\r\n\tpublic factoringApprovedAdvances: number = 0;\r\n\tpublic factoringContractedAmount: number = 0;\r\n\tpublic factoringContractDocumentPortfolioAmount: number = 0;\r\n\tpublic factoringContractAdvanceableAmount: number = 0;\r\n\tpublic factoringSuppliersWithActiveContractsCompaniesCount: number = 0;\r\n\tpublic factoringBuyersWithActiveConnectionsCompaniesCount: number = 0;\r\n\tpublic factoringBuyersActiveConnections: number = 0;\r\n\r\n\t// PR: This reference is necessary in order to access the enum from the template HTML file.\r\n\tprotected CurrencyCode = CurrencyCode;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate dateLocale: DateLocalePipe,\r\n\t\tprivate domSanitizer: DomSanitizer\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\r\n\t\t\tthis.CurrentMonth = this.dateLocale.transform(new Date(), 'MM/yyyy');\r\n\r\n\t\t\tif (this.loggedUser?.canSeeConfirmingOptions()) {\r\n\t\t\t\tthis.confirmingTabVisible = true;\r\n\t\t\t\tthis.confirmingTabSelected = true;\r\n\t\t\t\tthis.clickedConfirmingTab();\r\n\t\t\t}\r\n\r\n\t\t\tif (this.loggedUser?.canSeeFactoringOptions()) {\r\n\t\t\t\tthis.factoringTabVisible = true;\r\n\t\t\t\tthis.factoringTabSelected = !this.confirmingTabSelected;\r\n\r\n\t\t\t\tif (this.factoringTabSelected) this.clickedFactoringTab();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getCurrentFundingRequestsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingCurrentFundingRequestsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.currentFundingRequestsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getCurrentFundingRequestsAmount()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] Invalid result from getCurrentFundingRequestsAmount()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getMonthlyAutomaticPayments(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingMonthlyAutomaticPayments(this.month, this.year, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.monthlyAutomaticPayments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getMonthlyAutomaticPayments()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] Invalid result from getMonthlyAutomaticPayments()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getSuppliersActiveConnections(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingSuppliersActiveConnections(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.suppliersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getSuppliersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] Invalid result from getSuppliersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getContracts() {\r\n\t\tthis.resetValues();\r\n\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tthis.loggedUser?.Companies.forEach((company) => {\r\n\t\t\tservicesCallsToMake.push(\r\n\t\t\t\tthis.serverApiService.getConfirmingContractsForFinancier({\r\n\t\t\t\t\tFinancierId: company.Id!,\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tlet currencies: CurrencyViewModel[] = [];\r\n\t\t\tlet retrievedConfirmingContracts: ConfirmingContract[] = [];\r\n\r\n\t\t\tfor (let index = 0; index < servicesCallsToMake.length; index++) {\r\n\t\t\t\tlet getConfirmingContracts = opResults[index] as OperationResult;\r\n\r\n\t\t\t\tif (!getConfirmingContracts.IsValid) this.requestErrors = getConfirmingContracts.Errors;\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\t\tthis.registeredBuyerCompanies += getConfirmingContracts.Data.length;\r\n\r\n\t\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\t\tretrievedConfirmingContracts.push(contract);\r\n\r\n\t\t\t\t\t\t\tif (currencies.findIndex((c) => c.Currency == contract.Currency) == -1)\r\n\t\t\t\t\t\t\t\tcurrencies.push({\r\n\t\t\t\t\t\t\t\t\tCurrency: contract.Currency,\r\n\t\t\t\t\t\t\t\t\tSelected: false,\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\tthis.orderedCurrencies = currencies.sort(function (c1: CurrencyViewModel, c2: CurrencyViewModel) {\r\n\t\t\t\tvar currency1 = c1.Currency.toUpperCase();\r\n\t\t\t\tvar currency2 = c2.Currency.toUpperCase();\r\n\t\t\t\treturn currency1 < currency2 ? -1 : currency1 > currency2 ? 1 : 0;\r\n\t\t\t});\r\n\r\n\t\t\tif (!!this.orderedCurrencies && this.orderedCurrencies.length > 0) {\r\n\t\t\t\tlet initialCurrencytoProcess = this.orderedCurrencies[0].Currency;\r\n\t\t\t\tthis.orderedCurrencies[0].Selected = true;\r\n\r\n\t\t\t\tlet contractsOfInitialCurrency: ConfirmingContract[] = retrievedConfirmingContracts.filter(\r\n\t\t\t\t\t(c) => c.Currency == initialCurrencytoProcess\r\n\t\t\t\t);\r\n\r\n\t\t\t\tcontractsOfInitialCurrency.forEach((contract) => {\r\n\t\t\t\t\tthis.contractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\tthis.contractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\tthis.contractsAvailableAmountRatio =\r\n\t\t\t\t\t\tthis.contractedAmount > 0 ? 100.0 * (this.contractsAvailableAmount / this.contractedAmount) : 0;\r\n\t\t\t\t});\r\n\r\n\t\t\t\tthis.buyersWithActiveContractsCompaniesCount = contractsOfInitialCurrency\r\n\t\t\t\t\t.filter((contract) => contract.ContractState == 'Active')\r\n\t\t\t\t\t.map((c) => c.Buyer.Id)\r\n\t\t\t\t\t.filter((x, i, a) => a.indexOf(x) == i).length;\r\n\r\n\t\t\t\t//get other information for this currency\r\n\t\t\t\tthis.selectedCurrency = initialCurrencytoProcess;\r\n\r\n\t\t\t\tthis.getApprovedRequestFunds(initialCurrencytoProcess);\r\n\t\t\t\tthis.getActiveConnections(initialCurrencytoProcess);\r\n\t\t\t\tthis.getSuppliersActiveConnections(initialCurrencytoProcess);\r\n\t\t\t\tthis.getMonthlyAutomaticPayments(initialCurrencytoProcess);\r\n\t\t\t\tthis.getCurrentFundingRequestsAmount(initialCurrencytoProcess);\r\n\t\t\t\tthis.getNotPaidDocumentsSum(initialCurrencytoProcess);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate refreshContractDataForCurrency(currency: string) {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tthis.loggedUser?.Companies.forEach((company) => {\r\n\t\t\tservicesCallsToMake.push(\r\n\t\t\t\tthis.serverApiService.getConfirmingContractsForFinancier({\r\n\t\t\t\t\tFinancierId: company.Id!,\r\n\t\t\t\t\tCurrency: currency,\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\tfor (let index = 0; index < servicesCallsToMake.length; index++) {\r\n\t\t\t\tlet getConfirmingContracts = opResults[index] as OperationResult;\r\n\r\n\t\t\t\tif (!getConfirmingContracts.IsValid) this.requestErrors = getConfirmingContracts.Errors;\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (!!getConfirmingContracts.Data && getConfirmingContracts.Data.length > 0) {\r\n\t\t\t\t\t\tthis.registeredBuyerCompanies += getConfirmingContracts.Data.length;\r\n\r\n\t\t\t\t\t\tgetConfirmingContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\t\tthis.contractedAmount += contract.ContractedAmount;\r\n\t\t\t\t\t\t\tthis.contractsAvailableAmount += contract.AvailableAmount;\r\n\t\t\t\t\t\t\tthis.contractsAvailableAmountRatio =\r\n\t\t\t\t\t\t\t\tthis.contractedAmount > 0 ? 100.0 * (this.contractsAvailableAmount / this.contractedAmount) : 0;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.buyersWithActiveContractsCompaniesCount = getConfirmingContracts.Data.filter(\r\n\t\t\t\t\t\t\t(contract) => contract.ContractState == 'Active'\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t.map((c) => c.Buyer.Id)\r\n\t\t\t\t\t\t\t.filter((x, i, a) => a.indexOf(x) == i).length;\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\tprivate getApprovedRequestFunds(currency: string) {\r\n\t\tconst fundingRequestDocumentStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getConfirmingFundingRequestsTotalAdvancedAmount(fundingRequestDocumentStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.approvedRequestFunds = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getFundingRequestsTotalAdvancedAmount', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] HttpError result from getFundingRequestsTotalAdvancedAmount', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getActiveConnections(currency: string) {\r\n\t\tconst criteria: ConfirmingConnectionsSearchCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.Currency = currency;\r\n\r\n\t\tthis.serverApiService.searchConfirmingConnections(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data) {\r\n\t\t\t\t\t\tif (operationResult.Data.length > 0)\r\n\t\t\t\t\t\t\tthis.suppliersWithActiveConnectionsCompaniesCount = operationResult.Data.map((c) => c.Supplier.Id).filter(\r\n\t\t\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t\t\t).length;\r\n\t\t\t\t\t\telse this.suppliersWithActiveConnectionsCompaniesCount = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic clickedCurrency(currency: string): void {\r\n\t\tthis.resetValues();\r\n\r\n\t\tthis.selectedCurrency = currency;\r\n\r\n\t\tthis.orderedCurrencies.forEach((orderedCurrency) => {\r\n\t\t\torderedCurrency.Selected = orderedCurrency.Currency == currency;\r\n\t\t});\r\n\r\n\t\tthis.refreshContractDataForCurrency(currency);\r\n\t\tthis.getApprovedRequestFunds(currency);\r\n\t\tthis.getActiveConnections(currency);\r\n\t\tthis.getSuppliersActiveConnections(currency);\r\n\t\tthis.getMonthlyAutomaticPayments(currency);\r\n\t\tthis.getCurrentFundingRequestsAmount(currency);\r\n\t\tthis.getNotPaidDocumentsSum(currency);\r\n\t}\r\n\r\n\tprivate resetValues() {\r\n\t\tthis.contractedAmount = 0;\r\n\t\tthis.contractsAvailableAmount = 0;\r\n\t\tthis.contractsAvailableAmountRatio = 0;\r\n\t\tthis.approvedRequestFunds = 0;\r\n\t\tthis.currentFundingRequestsAmount = 0;\r\n\t\tthis.monthlyAutomaticPayments = 0;\r\n\t\tthis.buyersWithActiveContractsCompaniesCount = 0;\r\n\t\tthis.suppliersWithActiveConnectionsCompaniesCount = 0;\r\n\t\tthis.suppliersActiveConnections = 0;\r\n\t\tthis.notPaidDocuments = 0;\r\n\t}\r\n\r\n\tpublic notMultipleCurrencies(currencies: CurrencyViewModel[]): boolean {\r\n\t\treturn currencies?.length <= 1;\r\n\t}\r\n\r\n\tpublic clickedConfirmingTab(): void {\r\n\t\tthis.confirmingTabSelected = true;\r\n\t\tthis.factoringTabSelected = false;\r\n\r\n\t\tthis.getContracts();\r\n\t}\r\n\r\n\tprivate getNotPaidDocumentsSum(currency: string): void {\r\n\t\tthis.serverApiService.getNotPaidDocumentsSum(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.notPaidDocuments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getNotPaidDocumentsSum()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinacierComponent] Invalid result from getNotPaidDocumentsSum()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic clickedFactoringTab(): void {\r\n\t\tthis.confirmingTabSelected = false;\r\n\t\tthis.factoringTabSelected = true;\r\n\t\tthis.selectedCurrency = CurrencyCode.Euro;\r\n\r\n\t\tthis.getFactoringApprovedCreditAssignments(CurrencyCode.Euro);\r\n\t\tthis.getFactoringCurrentCreditAssignmentsAmount(CurrencyCode.Euro);\r\n\t\tthis.getFactoringApprovedAdvances(CurrencyCode.Euro);\r\n\t\tthis.getFactoringSuppliersWithActiveContractsCompaniesCount();\r\n\t\tthis.getFactoringBuyersWithActiveConnectionsCompaniesCount(CurrencyCode.Euro);\r\n\t\tthis.getFactoringBuyersActiveConnections();\r\n\t}\r\n\r\n\tprivate getFactoringApprovedCreditAssignments(currency: string): void {\r\n\t\tconst creditAssignmentsDocumentStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getFactoringApprovedCreditAssignments(creditAssignmentsDocumentStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringApprovedCreditAssignments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getFactoringApprovedCreditAssignments', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardFinancierComponent] HttpError result from getFactoringApprovedCreditAssignments',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringCurrentCreditAssignmentsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getFactoringCurrentCreditAssignmentsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringCurrentCreditAssignmentsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\t'[DashboardFinancierComponent] Invalid result from getFactoringCurrentCreditAssignmentsAmount()',\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[DashboardFinancierComponent] Invalid result from getFactoringCurrentCreditAssignmentsAmount()',\r\n\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringApprovedAdvances(currency: string): void {\r\n\t\tconst advancesStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getFactoringApprovedAdvances(advancesStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringApprovedAdvances = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getFactoringApprovedAdvances', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] HttpError result from getFactoringApprovedAdvances', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringSuppliersWithActiveContractsCompaniesCount(): void {\r\n\t\tconst criteria: FactoringContractsSearchCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tthis.serverApiService.searchFactoringContracts(criteria).subscribe((getFactoringContracts) => {\r\n\t\t\tif (!getFactoringContracts.IsValid) this.requestErrors = getFactoringContracts.Errors;\r\n\t\t\telse {\r\n\t\t\t\tif (!!getFactoringContracts.Data && getFactoringContracts.Data.length > 0) {\r\n\t\t\t\t\tgetFactoringContracts.Data.forEach((contract) => {\r\n\t\t\t\t\t\tthis.factoringContractedAmount += contract.ContractAmount;\r\n\t\t\t\t\t\tthis.factoringContractAdvanceableAmount += contract.AdvanceableAmount;\r\n\t\t\t\t\t\tthis.factoringContractDocumentPortfolioAmount += contract.DocumentPortfolioAmount;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.factoringSuppliersWithActiveContractsCompaniesCount = getFactoringContracts.Data.map((c) => c.Supplier.Id).filter(\r\n\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t).length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringBuyersWithActiveConnectionsCompaniesCount(currency: string) {\r\n\t\tconst criteria: FactoringConnectionsSearchCriteria = new FactoringConnectionsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new FactoringConnectionsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ConnectionStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\r\n\t\tthis.serverApiService.searchFactoringConnections(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data && operationResult.Data.length > 0) {\r\n\t\t\t\t\t\tthis.factoringBuyersWithActiveConnectionsCompaniesCount = operationResult.Data.map((c) => c.Buyer.Id).filter(\r\n\t\t\t\t\t\t\t(x, i, a) => a.indexOf(x) == i\r\n\t\t\t\t\t\t).length;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringBuyersActiveConnections() {\r\n\t\tthis.serverApiService.getFactoringBuyersActiveConnections().subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringBuyersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardFinancierComponent] Invalid result from getFactoringBuyersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardFinancierComponent] Invalid result from getFactoringBuyersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n}\r\n","\r\n\r\n
    \r\n\t\r\n\t
    \r\n\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t
    \r\n\r\n\t\r\n\t\r\n\t\t
    \r\n\t\t\t\r\n\t\t\t 1\"\r\n\t\t\t\tclass=\"currency-wrap\">\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{{ orderedCurrency.Currency }}\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\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{{ contractedAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-financier.contractedAmount' | translate }}\r\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
    \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\t{{ contractsAvailableAmount | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    {{ contractsAvailableAmountRatio | numberLocale: '1.2-2' }}%
    \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{{ 'dashboard-financier.contractsAvailableAmount' | translate }}\r\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
    \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
    {{ notPaidDocuments | currencyLocale: selectedCurrency }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.notPaidDocuments' | translate }}
    \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
    \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{{ approvedRequestFunds | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.approvedRequestFunds' | translate }} ({{ CurrentMonth }})
    \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
    \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{{ currentFundingRequestsAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-financier.currentFundingRequestsAmount' | translate }}\r\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
    \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{{ monthlyAutomaticPayments | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.monthlyAutomaticPayments' | translate }} ({{ CurrentMonth }})
    \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
    \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{{ buyersWithActiveContractsCompaniesCount }}\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{{ 'dashboard-financier.buyersCompaniesCount' | translate }}\r\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
    \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{{ suppliersWithActiveConnectionsCompaniesCount }}\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{{ 'dashboard-financier.suppliersCompaniesCount' | translate }}\r\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
    \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
    {{ suppliersActiveConnections }}
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{{ 'dashboard-financier.suppliersActiveConnections' | translate }}\r\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
    \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\t\r\n\t\r\n\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
    \r\n\t\t\t\t\t\t\t
    {{ factoringApprovedCreditAssignments | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringApprovedCreditAssignments' | translate }} ({{ CurrentMonth }})
    \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
    \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
    {{ factoringCurrentCreditAssignmentsAmount | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringCurrentCreditAssignmentsAmount' | translate }}
    \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
    \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
    {{ factoringApprovedAdvances | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringApprovedAdvances' | translate }} ({{ CurrentMonth }})
    \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
    \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
    {{ factoringContractedAmount | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringContractedAmount' | translate }}
    \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
    \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
    {{ factoringContractDocumentPortfolioAmount | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringContractDocumentPortfolioAmount' | translate }}
    \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
    \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
    {{ factoringContractAdvanceableAmount | currencyLocale: CurrencyCode.Euro }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringContractAdvanceableAmount' | translate }}
    \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
    \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
    {{ factoringSuppliersWithActiveContractsCompaniesCount }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringSuppliersWithActiveContractsCompaniesCount' | translate }}
    \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
    \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
    {{ factoringBuyersWithActiveConnectionsCompaniesCount }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringBuyersWithActiveConnectionsCompaniesCount' | translate }}
    \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
    \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
    {{ factoringBuyersActiveConnections }}
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-financier.factoringBuyersActiveConnections' | translate }}
    \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
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\r\n\t\r\n\r\n","import { Component, OnInit, SecurityContext } from '@angular/core';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { User } from '../../../models/User/user';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { DocumentForecast } from '../../../models/dashboard/document-forecast';\r\nimport { VerticalBarChart } from '../../../models/charts/vertical-bar-chart';\r\nimport { DateLocalePipe } from '../../../services/date-locale.pipe';\r\nimport { DocumentForecastByState } from '../../../models/dashboard/document-forecast-by-paymentstate';\r\nimport { SearchFilter } from '../../../models/common/search-filter';\r\nimport { FactoringContractsSearchCriteria } from '../../../models/contracts/factoring/factoring-contracts-search-criteria';\r\nimport { FactoringContract } from '../../../models/contracts/factoring/factoring-contract';\r\nimport { ConfirmingConnectionsSearchCriteria } from '../../../models/contracts/confirming/confirming-connections-search-criteria';\r\nimport { ConfirmingConnection } from '../../../models/contracts/confirming/confirming-connection';\r\nimport { CurrencyCode } from '../../../models/enums/currency-code';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\ntype DocumentForecastSeriesData = {\r\n\tPaymentState: string;\r\n\tTotalAmount: string;\r\n};\r\n\r\ntype SeriesDetail = {\r\n\tname: string;\r\n\tvalue: string;\r\n};\r\n\r\ntype SeriesData = {\r\n\tname: string;\r\n\tseries: SeriesDetail[];\r\n};\r\n\r\ntype CurrencyViewModel = {\r\n\tCurrency: string;\r\n\tSelected: boolean;\r\n};\r\n\r\n@Component({\r\n\tselector: 'app-dashboard-supplier',\r\n\ttemplateUrl: './dashboard-supplier.component.html',\r\n\tstyleUrls: ['./dashboard-supplier.component.css'],\r\n})\r\nexport class DashboardSupplierComponent implements OnInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic errors: OperationError[] = [];\r\n\r\n\tpublic CurrentMonth: Date;\r\n\tpublic confirmingApprovedRequestFunds: number = 0;\r\n\tpublic documentForecast: DocumentForecast[] = [];\r\n\tpublic currentFundingRequestsAmount: number = 0;\r\n\tpublic averageMonthFundingRequestDays: number = 0;\r\n\tpublic notPaidDocuments: number = 0;\r\n\tpublic suppliersActiveConnections: number = 0;\r\n\r\n\tpublic factoringBuyersActiveConnections: number = 0;\r\n\tpublic factoringAdvanceableAmount: number = 0;\r\n\tpublic factoringAdvancedAmount: number = 0;\r\n\tpublic factoringPortfolioAmount: number = 0;\r\n\r\n\tpublic selectedCurrency: string;\r\n\r\n\tpublic documentForecastChart: VerticalBarChart = new VerticalBarChart();\r\n\r\n\tprivate month: number = new Date().getMonth() + 1;\r\n\tprivate year: number = new Date().getFullYear();\r\n\r\n\tpublic confirmingTabVisible: boolean = false;\r\n\tpublic factoringTabVisible: boolean = false;\r\n\tpublic confirmingTabSelected: boolean = false;\r\n\tpublic factoringTabSelected: boolean = false;\r\n\r\n\tpublic orderedCurrencies: CurrencyViewModel[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate dateLocale: DateLocalePipe,\r\n\t\tprivate domSanitizer: DomSanitizer\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\r\n\t\t\tthis.CurrentMonth = this.dateLocale.transform(new Date(), 'MM/yyyy');\r\n\r\n\t\t\tif (this.loggedUser?.canSeeConfirmingOptions()) {\r\n\t\t\t\tthis.confirmingTabVisible = true;\r\n\t\t\t\tthis.confirmingTabSelected = true;\r\n\t\t\t\tthis.clickedConfirmingTab();\r\n\t\t\t}\r\n\r\n\t\t\tif (this.loggedUser?.canSeeFactoringOptions()) {\r\n\t\t\t\tthis.factoringTabVisible = true;\r\n\t\t\t\tthis.factoringTabSelected = !this.confirmingTabSelected;\r\n\r\n\t\t\t\tif (this.factoringTabSelected) this.clickedFactoringTab();\r\n\t\t\t}\r\n\r\n\t\t\t//https://stackblitz.com/edit/swimlane-stacked-vertical-bar-chart-bfhqph?embed=1&file=app/app.component.ts\r\n\t\t\t//https://swimlane.gitbook.io/ngx-charts/examples/bar-charts/stacked-vertical-bar-chart\r\n\t\t\t// documentForecast Vertical Stacked Bar Chart Init\r\n\t\t\tthis.documentForecastChart.View = [];\r\n\t\t\tthis.documentForecastChart.ShowXAxis = true;\r\n\t\t\tthis.documentForecastChart.ShowLegend = false;\r\n\t\t\tthis.documentForecastChart.LegendTitle = this.translateService.translate('dashboard-supplier.chart.seriesLegend');\r\n\t\t\tthis.documentForecastChart.ShowYAxis = true;\r\n\t\t\tthis.documentForecastChart.ShowXAxisLabel = true;\r\n\t\t\tthis.documentForecastChart.XAxisLabel = this.translateService.translate('dashboard-buyer.chart.buyerConfirmedPaymentDate');\r\n\t\t\tthis.documentForecastChart.ShowYAxisLabel = true;\r\n\t\t\tthis.documentForecastChart.YAxisLabel = this.selectedCurrency;\r\n\t\t\tthis.documentForecastChart.ColorScheme = {\r\n\t\t\t\tdomain: ['#3949ab', '#ff6d6e', '#40c9c5', '#f6c951', '#48aeff', '#6E47C0', '#88D4FF', '#C392FF'],\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getConfirmingSuppliersActiveConnections(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingSuppliersActiveConnections(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.suppliersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\t\t\t\tSecurityContext.HTML,\r\n\t\t\t\t\t\t\t\t'[DashboardSupplierComponent] Invalid result from getSuppliersActiveConnections()'\r\n\t\t\t\t\t\t\t)!,\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] Invalid result from getSuppliersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getNotPaidDocumentsSum(currency: string): void {\r\n\t\tthis.serverApiService.getNotPaidDocumentsSum(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.notPaidDocuments = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\t\t\t\tSecurityContext.HTML,\r\n\t\t\t\t\t\t\t\t'[DashboardSupplierComponent] Invalid result from getNotPaidDocumentsSum()'\r\n\t\t\t\t\t\t\t)!,\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] Invalid result from getNotPaidDocumentsSum()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t}\r\n\t})}\r\n\r\n\tprivate getConfirmingCurrentFundingRequestsAmount(currency: string): void {\r\n\t\tthis.serverApiService.getConfirmingCurrentFundingRequestsAmount(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.currentFundingRequestsAmount = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\t\t\t\tSecurityContext.HTML,\r\n\t\t\t\t\t\t\t\t'[DashboardSupplierComponent] Invalid result from getCurrentFundingRequestsAmount()'\r\n\t\t\t\t\t\t\t)!,\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] Invalid result from getCurrentFundingRequestsAmount()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t}\r\n\t})}\r\n\r\n\tprivate getConfirmingApprovedRequestFunds(currency: string) {\r\n\t\tconst fundingRequestDocumentStates = ['Approved'];\r\n\r\n\t\tthis.serverApiService.getConfirmingFundingRequestsTotalAdvancedAmount(fundingRequestDocumentStates, currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.confirmingApprovedRequestFunds = opResult.Data)\r\n\t\t\t\t\t: this.logger.error(\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\t\t\t\tSecurityContext.HTML,\r\n\t\t\t\t\t\t\t\t'[DashboardSupplierComponent] Invalid result from getFundingRequestsTotalAdvancedAmount'\r\n\t\t\t\t\t\t\t)!,\r\n\t\t\t\t\t\t\topResult\r\n\t\t\t\t\t );\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] HttpError result from getFundingRequestsTotalAdvancedAmount', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t})}\r\n\r\n\tprivate getDocumentForecast(currency: string) {\r\n\t\tthis.serverApiService.getDailyDocumentForecast(currency).subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\tthis.documentForecastChart.Results = [];\r\n\t\t\t\tif (opResult.IsValid) {\r\n\t\t\t\t\tlet documentForecastByPaymentDate: { [paymentDate: string]: DocumentForecastSeriesData[] } = {};\r\n\r\n\t\t\t\t\tthis.documentForecastChart.ShowLegend = opResult.Data.some((d) => !!d.DocumentPaymentState);\r\n\r\n\t\t\t\t\tfor (let index = 0; index < opResult.Data.length; index++) {\r\n\t\t\t\t\t\tconst element = opResult.Data[index];\r\n\r\n\t\t\t\t\t\tlet key = this.dateLocale.transform(element.BuyerPaymentDate);\r\n\t\t\t\t\t\tlet dictBuyerPaymentDate = documentForecastByPaymentDate[key];\r\n\r\n\t\t\t\t\t\tif (!dictBuyerPaymentDate) {\r\n\t\t\t\t\t\t\tdictBuyerPaymentDate = [];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar stateToDecode = element.DocumentPaymentState;\r\n\t\t\t\t\t\tvar dicPaymentStateEntry = !!stateToDecode ? this.translateService.translate(stateToDecode, 'list-paymentState') : null;\r\n\r\n\t\t\t\t\t\tif (!!stateToDecode && !!dicPaymentStateEntry) {\r\n\t\t\t\t\t\t\tdictBuyerPaymentDate.push({\r\n\t\t\t\t\t\t\t\tPaymentState: dicPaymentStateEntry,\r\n\t\t\t\t\t\t\t\tTotalAmount: element.TotalAmount,\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdocumentForecastByPaymentDate[key] = dictBuyerPaymentDate;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tlet results: SeriesData[] = [];\r\n\r\n\t\t\t\t\tObject.keys(documentForecastByPaymentDate).forEach(function (key) {\r\n\t\t\t\t\t\tresults.push({\r\n\t\t\t\t\t\t\tname: key,\r\n\t\t\t\t\t\t\tseries: documentForecastByPaymentDate[key].map(\r\n\t\t\t\t\t\t\t\t(r) =>\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tname: r.PaymentState,\r\n\t\t\t\t\t\t\t\t\t\tvalue: r.TotalAmount,\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\r\n\t\t\t\t\tthis.documentForecastChart.Results = results;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, '[DashboardSupplierComponent] Invalid result from getDocumentForecast')!,\r\n\t\t\t\t\t\topResult\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] HttpError result from getDocumentForecast', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t}\r\n\r\n\t})}\r\n\r\n\tprivate getFactoringContracts() {\r\n\t\tconst criteria: FactoringContractsSearchCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.OrderBy = 'SupplierName';\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.OrderDescending = true;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new FactoringContractsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active'];\r\n\t\tcriteria.RestrictionCriteria.SupplierIdList = this.loggedUser?.Companies.map((c) => c.Id!) ?? [];\r\n\r\n\t\tthis.serverApiService.searchFactoringContracts(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data && operationResult.Data.length > 0) {\r\n\t\t\t\t\t\toperationResult.Data.forEach((contract) => {\r\n\t\t\t\t\t\t\tthis.factoringPortfolioAmount += contract.DocumentPortfolioAmount;\r\n\t\t\t\t\t\t\tthis.factoringAdvanceableAmount += contract.AdvanceableAmount;\r\n\t\t\t\t\t\t\tthis.factoringAdvancedAmount += contract.AdvancedAmount;\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\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getFactoringBuyersActiveConnections(): void {\r\n\t\tthis.serverApiService.getFactoringBuyersActiveConnections().subscribe({\r\n\t\t\tnext: (opResult: OperationResult) => {\r\n\t\t\t\topResult.IsValid\r\n\t\t\t\t\t? (this.factoringBuyersActiveConnections = opResult.Data)\r\n\t\t\t\t\t: this.logger.error('[DashboardSupplierComponent] Invalid result from getFactoringBuyersActiveConnections()', opResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.logger.error('[DashboardSupplierComponent] Invalid result from getFactoringBuyersActiveConnections()', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t}\r\n\t\t\r\n\t})}\r\n\r\n\tpublic clickedConfirmingTab(): void {\r\n\t\tthis.confirmingTabSelected = true;\r\n\t\tthis.factoringTabSelected = false;\r\n\r\n\t\tthis.resetValues();\r\n\r\n\t\tconst criteria: ConfirmingConnectionsSearchCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.PageNumber = 1;\r\n\t\tcriteria.RowsPerPage = 2147483647;\r\n\t\tcriteria.RestrictionCriteria = new ConfirmingConnectionsSearchCriteria();\r\n\t\tcriteria.RestrictionCriteria.ConnectionStateList = ['Active', 'Inactive'];\r\n\t\tcriteria.RestrictionCriteria.ContractStateList = ['Active', 'Inactive'];\r\n\r\n\t\tthis.serverApiService.searchConfirmingConnections(criteria).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tif (!!operationResult.Data && operationResult.Data.length > 0) {\r\n\t\t\t\t\t\tlet currencies: CurrencyViewModel[] = [];\r\n\r\n\t\t\t\t\t\tfor (let index = 0; index < operationResult.Data.length; index++) {\r\n\t\t\t\t\t\t\tlet connection: ConfirmingConnection = operationResult.Data[index];\r\n\r\n\t\t\t\t\t\t\tif (currencies.findIndex((c) => c.Currency == connection.Currency) == -1)\r\n\t\t\t\t\t\t\t\tcurrencies.push({\r\n\t\t\t\t\t\t\t\t\tCurrency: connection.Currency,\r\n\t\t\t\t\t\t\t\t\tSelected: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.orderedCurrencies = currencies.sort(function (c1: CurrencyViewModel, c2: CurrencyViewModel) {\r\n\t\t\t\t\t\t\tvar currency1 = c1.Currency.toUpperCase();\r\n\t\t\t\t\t\t\tvar currency2 = c2.Currency.toUpperCase();\r\n\t\t\t\t\t\t\treturn currency1 < currency2 ? -1 : currency1 > currency2 ? 1 : 0;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (!!this.orderedCurrencies && this.orderedCurrencies.length > 0) {\r\n\t\t\t\t\t\t\tlet initialCurrencytoProcess = this.orderedCurrencies[0].Currency;\r\n\t\t\t\t\t\t\tthis.orderedCurrencies[0].Selected = true;\r\n\t\t\t\t\t\t\tthis.clickedCurrency(initialCurrencytoProcess);\r\n\t\t\t\t\t\t\tthis.getDocumentForecast(initialCurrencytoProcess);\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\tthis.notificationService.addDanger('errors returned when calling get company contracts (result=false)');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic clickedFactoringTab(): void {\r\n\t\tthis.confirmingTabSelected = false;\r\n\t\tthis.factoringTabSelected = true;\r\n\t\tthis.selectedCurrency = CurrencyCode.Euro;\r\n\r\n\t\tthis.resetValues();\r\n\r\n\t\tthis.getNotPaidDocumentsSum(CurrencyCode.Euro);\r\n\t\tthis.getDocumentForecast(CurrencyCode.Euro);\r\n\r\n\t\tthis.getFactoringBuyersActiveConnections();\r\n\t\tthis.getFactoringContracts();\r\n\t}\r\n\r\n\tpublic clickedCurrency(currency: string): void {\r\n\t\tthis.resetValues();\r\n\r\n\t\tthis.selectedCurrency = currency;\r\n\t\tthis.documentForecastChart.YAxisLabel = this.selectedCurrency;\r\n\r\n\t\tthis.orderedCurrencies.forEach((orderedCurrency) => {\r\n\t\t\torderedCurrency.Selected = orderedCurrency.Currency == currency;\r\n\t\t});\r\n\r\n\t\tthis.getNotPaidDocumentsSum(currency);\r\n\t\tthis.getDocumentForecast(currency);\r\n\r\n\t\tthis.getConfirmingCurrentFundingRequestsAmount(currency);\r\n\t\tthis.getConfirmingApprovedRequestFunds(currency);\r\n\t\tthis.getConfirmingSuppliersActiveConnections(currency);\r\n\t}\r\n\r\n\tprivate resetValues() {\r\n\t\tthis.confirmingApprovedRequestFunds = 0;\r\n\t\tthis.currentFundingRequestsAmount = 0;\r\n\t\tthis.notPaidDocuments = 0;\r\n\t\tthis.suppliersActiveConnections = 0;\r\n\r\n\t\tthis.factoringPortfolioAmount = 0;\r\n\t\tthis.factoringAdvancedAmount = 0;\r\n\t\tthis.factoringAdvanceableAmount = 0;\r\n\t\tthis.factoringBuyersActiveConnections = 0;\r\n\t}\r\n\r\n\tpublic notMultipleCurrencies(currencies: CurrencyViewModel[]): boolean {\r\n\t\treturn currencies?.length <= 1;\r\n\t}\r\n}\r\n","\r\n\r\n\t
    \r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t
    \r\n\r\n\r\n
    \r\n\t\r\n\t
    \r\n\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t
    \r\n\t\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t 1\"\r\n\t\t\t\tclass=\"currency-wrap\">\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{{ orderedCurrency.Currency }}\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\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{{ confirmingApprovedRequestFunds | currencyLocale: selectedCurrency }}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    {{ 'dashboard-supplier.approvedRequestFunds' | translate }} ({{ CurrentMonth }})
    \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
    \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{{ currentFundingRequestsAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-supplier.currentFundingRequestsAmount' | translate }}\r\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
    \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{{ notPaidDocuments | currencyLocale: selectedCurrency }}\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{{ 'dashboard-supplier.notPaidDocuments' | translate }}\r\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
    \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{{ suppliersActiveConnections }}\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{{ 'dashboard-supplier.suppliersActiveConnections' | translate }}\r\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
    \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
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{{ 'dashboard-supplier.documentForecast' | translate }}\r\n\t\t\t\t\t\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
    {{ model.series }} • {{ model.name }}
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{{ model.value | currencyLocale: selectedCurrency }}\r\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\t\r\n\t\r\n\t\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{{ factoringPortfolioAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-supplier.factoringPortfolioAmount' | translate }}\r\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
    \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{{ factoringAdvancedAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-supplier.factoringAdvancedAmount' | translate }}\r\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
    \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{{ factoringAdvanceableAmount | currencyLocale: selectedCurrency }}\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{{ 'dashboard-supplier.factoringAdvanceableAmount' | translate }}\r\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
    \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{{ factoringBuyersActiveConnections }}\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{{ 'dashboard-supplier.factoringBuyersActiveConnections' | translate }}\r\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
    \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 { Component, OnInit } from '@angular/core';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { User } from '../../models/User/user';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\n\r\n@Component({\r\n\tselector: 'app-private-home',\r\n\ttemplateUrl: './private-home.component.html',\r\n\tstyleUrls: ['./private-home.component.css'],\r\n})\r\nexport class PrivateHomeComponent implements OnInit {\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic newFeatureHtml: string | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate translateService: TranslateService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.loggedUser = this.appContext.getLoggedUser() ?? new User();\r\n\r\n\t\tthis.newFeatureHtml = this.getNewFeatureDocumentHtmlLink();\r\n\t}\r\n\r\n\tprivate getNewFeatureDocumentHtmlLink(): string | null {\r\n\t\tlet link = this.translateService.translateByLanguage('home.newfeatures.document', this.loggedUser?.LanguageCode, 'client');\r\n\r\n\t\tif (!link) return null;\r\n\r\n\t\tlet downloadFileName = this.translateService.translateByLanguage(\r\n\t\t\t'home.newfeatures.documentName',\r\n\t\t\tthis.loggedUser?.LanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tlet ticks = new Date().getTime() * 10000 + 621355968000000000;\r\n\r\n\t\treturn link.replace('[BypassCacheStrategy]', ticks.toString()).replace('[DownloadFilename]', downloadFileName);\r\n\t}\r\n}\r\n","
    \r\n\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
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    {{ 'private-home.pageTitle' | translate }}

    \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\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\r\n\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\r\n\t\t\t\r\n\t\t
    \r\n\r\n\t\t\r\n\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\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { PrivateComponent } from './private.component';\r\nimport { PrivateHomeComponent } from './private-home/private-home.component';\r\nimport { SearchDocumentsComponent } from './documents/search-documents/search-documents.component';\r\nimport { CompaniesListsComponent } from './companies-lists/companies-lists.component';\r\nimport { EditCompanyComponent } from './companies/edit-company/edit-company.component';\r\nimport { CompanyDetailsComponent } from './companies/company-details/company-details.component';\r\nimport { AuthGuard } from '../guards/auth.guard';\r\nimport { AuthSystemAdminOnlyGuard } from '../guards/auth-system-admin-only.guard';\r\nimport { AuthSystemAdminOrFinancierOnlyGuard } from '../guards/auth-system-admin-or-financier-only.guard';\r\nimport { FinancierCompaniesComponent } from './financier-companies/financier-companies.component';\r\n\r\nconst routes: Routes = [\r\n\t{\r\n\t\tpath: 'private',\r\n\t\tcomponent: PrivateComponent,\r\n\t\tchildren: [\r\n\t\t\t{\r\n\t\t\t\tpath: '',\r\n\t\t\t\tpathMatch: 'full',\r\n\t\t\t\tredirectTo: 'u/0/home',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex',\r\n\t\t\t\tpathMatch: 'full',\r\n\t\t\t\tredirectTo: 'u/:userIndex/home',\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/home',\r\n\t\t\t\tcomponent: PrivateHomeComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/documents',\r\n\t\t\t\tcomponent: SearchDocumentsComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/documents/fileIntegration/:fileId',\r\n\t\t\t\tcomponent: SearchDocumentsComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/documents/search/:searchCriteria',\r\n\t\t\t\tcomponent: SearchDocumentsComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/companies/financiers',\r\n\t\t\t\tcomponent: FinancierCompaniesComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/companies',\r\n\t\t\t\tcomponent: CompaniesListsComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/company/details/:companyId',\r\n\t\t\t\tcomponent: CompanyDetailsComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/company/edit/:companyId',\r\n\t\t\t\tcomponent: EditCompanyComponent,\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/users',\r\n\t\t\t\tloadChildren: () => import('./users/users.module').then((m) => m.UsersModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/contracts',\r\n\t\t\t\tloadChildren: () => import('./contracts/contracts.module').then((m) => m.ContractsModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/funding-request',\r\n\t\t\t\tloadChildren: () => import('./funding-request/funding-request.module').then((m) => m.FundingRequestModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/administration',\r\n\t\t\t\tloadChildren: () => import('./administration/administration.module').then((m) => m.AdministrationModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/files-upload',\r\n\t\t\t\tloadChildren: () => import('./files-upload/upload.module').then((m) => m.UploadModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/company',\r\n\t\t\t\tloadChildren: () => import('./companies/companies.module').then((m) => m.CompaniesModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/invitation',\r\n\t\t\t\tloadChildren: () => import('./invitations/invitations.module').then((m) => m.InvitationsModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/files-integration',\r\n\t\t\t\tloadChildren: () => import('./files-integration/files-integration.module').then((m) => m.FilesIntegrationModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/payment-request',\r\n\t\t\t\tloadChildren: () => import('./payment-request/payment-request.module').then((m) => m.PaymentRequestModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/help',\r\n\t\t\t\tloadChildren: () => import('./help/help.module').then((m) => m.HelpModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/credit-assignment',\r\n\t\t\t\tloadChildren: () => import('./credit-assignment/credit-assignment.module').then((m) => m.CreditAssignmentModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/advance-request',\r\n\t\t\t\tloadChildren: () => import('./advance-request/advance-request.module').then((m) => m.AdvanceRequestModule),\r\n\t\t\t\tcanActivate: [AuthGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/reporting',\r\n\t\t\t\tloadChildren: () => import('./reporting/reporting.module').then((m) => m.ReportingModule),\r\n\t\t\t\tcanActivate: [AuthSystemAdminOnlyGuard],\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'u/:userIndex/monitoring',\r\n\t\t\t\tloadChildren: () => import('./monitoring/monitoring.module').then((m) => m.MonitoringModule),\r\n\t\t\t\tcanActivate: [AuthSystemAdminOrFinancierOnlyGuard],\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n];\r\n\r\n@NgModule({\r\n\timports: [RouterModule.forChild(routes)],\r\n\texports: [RouterModule],\r\n})\r\nexport class PrivateRoutingModule {}\r\n","import { TranslateService } from '../../services/translate/translate.service';\r\n\r\nexport class MenuEntranceViewModel {\r\n\tpublic EntranceLink: (m: MenuEntranceViewModel) => string | null;\r\n\tpublic EntranceType: MenuEntranceType;\r\n\tpublic EntranceTooltip: string | null;\r\n\tpublic EntranceOriginalName: string | null;\r\n\tpublic EntranceName: string | null;\r\n\tpublic EntranceIconClass: string | null;\r\n\tpublic EntranceNgClass: (s: string, m: MenuEntranceViewModel) => string | null;\r\n\tpublic EntranceClickEvent: () => void;\r\n\tpublic SubEntrances: MenuEntranceViewModel[];\r\n\r\n\tconstructor(private translateService: TranslateService) {\r\n\t\tthis.SubEntrances = [];\r\n\t}\r\n\r\n\tpublic buildEntrance(\r\n\t\tentranceType: MenuEntranceType,\r\n\t\tentranceLink: (m: MenuEntranceViewModel) => string | null,\r\n\t\tentranceName: string | null,\r\n\t\tentranceTooltip: string | null,\r\n\t\tentranceIconClass: string | null,\r\n\t\tentranceNgClass: (s: string, m: MenuEntranceViewModel) => string | null,\r\n\t\tentranceClickEvent: () => void,\r\n\t\tsubEntrances: MenuEntranceViewModel[]\r\n\t) {\r\n\t\tthis.EntranceTooltip = !!entranceTooltip ? this.translateService.translate(entranceTooltip, 'client') : null;\r\n\t\tthis.EntranceName = !!entranceName ? this.translateService.translate(entranceName, 'client') : null;\r\n\t\tthis.EntranceOriginalName = entranceName;\r\n\t\tthis.EntranceLink = entranceLink;\r\n\t\tthis.EntranceType = entranceType;\r\n\t\tthis.EntranceNgClass = entranceNgClass;\r\n\t\tthis.EntranceClickEvent = entranceClickEvent;\r\n\t\tthis.EntranceIconClass = entranceIconClass;\r\n\r\n\t\tthis.SubEntrances = subEntrances;\r\n\t}\r\n}\r\n\r\nexport enum MenuEntranceType {\r\n\tItem = 'Item',\r\n\tSubItem = 'SubItem',\r\n\tTitle = 'Title',\r\n\tSupportContact = 'SupportContact',\r\n\tLogout = 'Logout',\r\n}\r\n","import { Component, OnInit, OnDestroy, Renderer2, AfterViewInit, SecurityContext } from '@angular/core';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { Router } from '@angular/router';\r\nimport { User } from '../models/User/user';\r\nimport { md5 } from '../utils/md5';\r\nimport { ServerApiService } from '../server-api/server-api.service';\r\nimport { LoginApiService } from '../server-api/login-api.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { CompanyFileIntegrations } from '../models/companies/company-file-integrations';\r\nimport { SessionExpirationTimeoutService } from '../services/authorization/session-expiration-timeout.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { NotificationService } from '../services/notification/notification.service';\r\nimport { TranslateService } from '../services/translate/translate.service';\r\nimport { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';\r\nimport { ConfirmDialogModalComponent } from '../shared-components/modals/confirm-dialog/confirm-dialog-modal.component';\r\nimport { InterceptorMessageService } from '../services/interceptor-message/interceptor-message.service';\r\nimport { InformationModalComponent } from '../shared-components/modals/information/information-modal.component';\r\nimport { LoggerUserDataChangedNotificationService } from '../services/logged-user-data-changed-notification/logged-user-data-changed-notification.service';\r\nimport { MenuEntranceType, MenuEntranceViewModel } from './private.component-view-models/menu-entrances-view-model';\r\nimport { EifLoggedUser } from '../models/User/eif-logged-user.type';\r\nimport { TokensPerRole } from '../models/User/tokens-per-role';\r\nimport { SessionStatusBroadcastService } from '../services/authorization/session-status-broadcast.service';\r\nimport { BroadcastMessage } from '../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../models/broadcast/broadcast-message-type';\r\nimport { SessionStatusBroadcastMessagePayload } from '../models/broadcast/session-status-broadcast-message-payload';\r\nimport { dropDownFX } from '../animations/animate';\r\nimport { UserRole } from '../models/enums/user-role';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { LatestDocumentViewModel } from './users/view-user/view-models/latest-legal-document-view-model';\r\nimport { LegalDocument } from '../models/documentation/legal-document';\r\nimport { LatestLegalDocumentsResponse } from '../models/documentation/latest-legal-documents-response';\r\nimport { UtilitiesService } from '../services/utils/utilities.service';\r\nimport { LoginService } from '../services/authentication/login.service';\r\n\r\n@Component({\r\n\tselector: 'app-private',\r\n\ttemplateUrl: './private.component.html',\r\n\tstyleUrls: ['./private.component.css'],\r\n\tanimations: [dropDownFX],\r\n})\r\nexport class PrivateComponent implements OnInit, OnDestroy {\r\n\tpublic isActiveAdminMenu: boolean = false;\r\n\tpublic administrationPageTooltip: string = '';\r\n\tpublic menuEntrances: MenuEntranceViewModel[] = [];\r\n\tpublic loggedUser: User | null = new User();\r\n\tpublic gravatarEmailUrl: string | null;\r\n\tpublic userRoles: EifLoggedUser[];\r\n\r\n\tpublic anyUserCompanyHasFileIntegration: boolean;\r\n\tprivate loggerUserDataChangedNotificationSubscription: Subscription;\r\n\tprivate sessionStatusBroadcastSubscription: Subscription;\r\n\r\n\tpublic selectedOption: string;\r\n\tpublic isCollapsed: boolean;\r\n\r\n\tprivate idleTimerSubscription: Subscription;\r\n\tprivate idleTimerWarningSubscription: Subscription;\r\n\tprivate modalTimeoutExpiredWarningRef: NgbModalRef | null;\r\n\tprivate modalTimeoutExpiredInformationRef: NgbModalRef | null;\r\n\tpublic logUsrAssociatedRle: string | null;\r\n\tpublic mailToText: string;\r\n\r\n\tprotected userMenuOpen: boolean = false;\r\n\tprivate userMenuBtnClick: boolean = false;\r\n\r\n\tprotected latestDocuments: LatestDocumentViewModel[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate router: Router,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate loginApiService: LoginApiService,\r\n\t\tprivate sessionExpirationTimeoutService: SessionExpirationTimeoutService,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate interceptorMessageService: InterceptorMessageService,\r\n\t\tprivate loggerUserDataChangedNotificationService: LoggerUserDataChangedNotificationService,\r\n\t\tprivate sessionStatusBroadcastService: SessionStatusBroadcastService,\r\n\t\tprivate domSanitizer: DomSanitizer,\r\n\t\tprivate renderer: Renderer2,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate loginService: LoginService\r\n\t) {\r\n\t\tthis.isActiveAdminMenu = false;\r\n\t\tif (this.router.routerState.snapshot.url.endsWith('administration')) {\r\n\t\t\tthis.isActiveAdminMenu = true;\r\n\t\t\tthis.selectedOption = 'settings';\r\n\t\t}\r\n\t\tthis.administrationPageTooltip = this.translateService.translate('private.administration-page-tooltip', 'client');\r\n\t\tthis.loggerUserDataChangedNotificationSubscription = this.loggerUserDataChangedNotificationService.loggedUserDataChanged.subscribe(\r\n\t\t\t(dataChanged: boolean) => {\r\n\t\t\t\tif (dataChanged) {\r\n\t\t\t\t\tthis.setLoggedUserInfo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\tthis.renderer.listen('window', 'click', (e: Event) => {\r\n\t\t\tif (!this.userMenuBtnClick) {\r\n\t\t\t\tthis.userMenuOpen = false;\r\n\t\t\t}\r\n\t\t\tthis.userMenuBtnClick = false;\r\n\t\t});\r\n\t}\r\n\r\n\tngOnInit() {\r\n\t\tthis.setLoggedUserInfo();\r\n\t\tthis.isCollapsed = false;\r\n\t\tthis.checkIfAnyUserCompanyHasFileIntegrations();\r\n\t\tthis.buildMenuEntrances();\r\n\t\tthis.sessionTimeoutIdleMonitor();\r\n\t\tthis.sessionTimmerBroadcast();\r\n\t\tthis.orderAdvanceRequestsRefresh();\r\n\t\tthis.getLatestLegalDocuments();\r\n\t}\r\n\r\n\ttoggleUserMenu() {\r\n\t\tthis.userMenuOpen = !this.userMenuOpen;\r\n\t}\r\n\tpreventCloseOnClick() {\r\n\t\tthis.userMenuBtnClick = true;\r\n\t}\r\n\r\n\tprotected onUserProfileClicked(userData: EifLoggedUser): void {\r\n\t\tif (!!userData && userData.MainRole !== UserRole.SystemAdmin && this.userRoles?.length > 1 && !this.isProfileOfLoggedUser(userData)) {\r\n\t\t\tthis.loginService.switchLoggedUserProfile(userData).then((newProfileUserData: EifLoggedUser) => {\r\n\t\t\t\tthis.sessionStatusBroadcastService.publish({\r\n\t\t\t\t\ttype: BroadcastMessageType.SessionProfileSwitched,\r\n\t\t\t\t\tpayload: JSON.stringify(newProfileUserData),\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tprotected isProfileOfLoggedUser(userData: EifLoggedUser): boolean {\r\n\t\tif (!!userData) {\r\n\t\t\tif (userData.MainRole === UserRole.SystemAdmin && this.isSystemAdmin()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tif (userData.MainRole === UserRole.Buyer && this.isBuyer()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tif (userData.MainRole === UserRole.Supplier && this.isSupplier()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tif (userData.MainRole === UserRole.Financier && this.isFinancier()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate handleSessionStatusBroadcastMessages(msg: BroadcastMessage): void {\r\n\t\tconsole.log(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, this.loggedUser?.Name + '-' + this.logUsrAssociatedRle) +\r\n\t\t\t\t' subscribed to sessionTimmerBroadcastService'\r\n\t\t);\r\n\r\n\t\tif (msg.type == BroadcastMessageType.SessionTimmerExtended) {\r\n\t\t\tconst payload = JSON.parse(msg.payload) as SessionStatusBroadcastMessagePayload;\r\n\r\n\t\t\tif (this.loggedUser!.Username === payload.Username) {\r\n\t\t\t\tthis.sessionExpirationTimeoutService.resetTimer();\r\n\t\t\t\t//close modals:\r\n\t\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('tokenRefreshed');\r\n\t\t\t\tif (this.modalTimeoutExpiredInformationRef != null) this.modalTimeoutExpiredInformationRef.dismiss('tokenRefreshed');\r\n\t\t\t}\r\n\t\t} else if (msg.type == BroadcastMessageType.SessionTimmerNotExtended) {\r\n\t\t\tconst payload = JSON.parse(msg.payload) as SessionStatusBroadcastMessagePayload;\r\n\r\n\t\t\tif (this.loggedUser!.Username === payload.Username) {\r\n\t\t\t\t//close modals:\r\n\t\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('sessionNotExtended');\r\n\t\t\t\tif (this.modalTimeoutExpiredInformationRef != null) this.modalTimeoutExpiredInformationRef.dismiss('sessionNotExtended');\r\n\r\n\t\t\t\tthis.logout();\r\n\t\t\t}\r\n\t\t} else if (msg.type == BroadcastMessageType.SessionTimmerExpired) {\r\n\t\t\tconst payload = JSON.parse(msg.payload) as SessionStatusBroadcastMessagePayload;\r\n\r\n\t\t\tif (this.loggedUser!.Username === payload.Username) {\r\n\t\t\t\t//close modals:\r\n\t\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('sessionNotExtended');\r\n\t\t\t\tif (this.modalTimeoutExpiredInformationRef != null) this.modalTimeoutExpiredInformationRef.dismiss('sessionNotExtended');\r\n\r\n\t\t\t\tthis.logout();\r\n\t\t\t}\r\n\t\t} else if (msg.type == BroadcastMessageType.SessionTimmerNotExtendedDueTokenRefreshError) {\r\n\t\t\tconst payload = JSON.parse(msg.payload) as SessionStatusBroadcastMessagePayload;\r\n\r\n\t\t\tif (this.loggedUser!.Username === payload.Username) {\r\n\t\t\t\t//close modals:\r\n\t\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('sessionNotExtended');\r\n\t\t\t\tif (this.modalTimeoutExpiredInformationRef != null) this.modalTimeoutExpiredInformationRef.dismiss('sessionNotExtended');\r\n\r\n\t\t\t\tthis.logout();\r\n\t\t\t}\r\n\t\t} else if (msg.type == BroadcastMessageType.SessionKilled) {\r\n\t\t\t//close modals:\r\n\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('sessionNotExtended');\r\n\t\t\tif (this.modalTimeoutExpiredInformationRef != null) this.modalTimeoutExpiredInformationRef.dismiss('sessionNotExtended');\r\n\r\n\t\t\tthis.logout();\r\n\t\t} else if (msg.type == BroadcastMessageType.SessionProfileSwitched) {\r\n\t\t\tconst payload = JSON.parse(msg.payload) as EifLoggedUser;\r\n\r\n\t\t\tif (!!payload && !!this.loggedUser && this.loggedUser.Username === payload.Username) {\r\n\t\t\t\t// PR: Force reload the new profile on this tab given that the change occurred in another tab.\r\n\t\t\t\tthis.loginService.switchLoggedUserProfile(payload);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprivate sessionTimmerBroadcast() {\r\n\t\tthis.sessionStatusBroadcastSubscription = this.sessionStatusBroadcastService\r\n\t\t\t.messagesOfTypes([\r\n\t\t\t\tBroadcastMessageType.SessionTimmerExtended,\r\n\t\t\t\tBroadcastMessageType.SessionTimmerExpired,\r\n\t\t\t\tBroadcastMessageType.SessionTimmerNotExtended,\r\n\t\t\t\tBroadcastMessageType.SessionTimmerNotExtendedDueTokenRefreshError,\r\n\t\t\t\tBroadcastMessageType.SessionKilled,\r\n\t\t\t\tBroadcastMessageType.SessionProfileSwitched,\r\n\t\t\t])\r\n\t\t\t.subscribe((msg: BroadcastMessage) => {\r\n\t\t\t\tthis.handleSessionStatusBroadcastMessages(msg);\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate orderAdvanceRequestsRefresh(): void {\r\n\t\tif (this.loggedUser?.IsFactoringSupplier) {\r\n\t\t\t//fire and forget logic. Front end does not need to wait for response.\r\n\t\t\ttry {\r\n\t\t\t\tthis.serverApiService.orderUserPendingAdvanceRequestsRefresh().subscribe();\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tngOnDestroy() {\r\n\t\tthis.unsubscribeSessionTimers();\r\n\r\n\t\tif (this.sessionStatusBroadcastSubscription) {\r\n\t\t\tconsole.log('sessionStatusBroadcastSubscription.unsubscribe();');\r\n\t\t\tthis.sessionStatusBroadcastSubscription.unsubscribe();\r\n\t\t}\r\n\r\n\t\tif (this.loggerUserDataChangedNotificationSubscription) {\r\n\t\t\tconsole.log('loggerUserDataChangedNotificationSubscription.unsubscribe();');\r\n\t\t\tthis.loggerUserDataChangedNotificationSubscription.unsubscribe();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate unsubscribeSessionTimers() {\r\n\t\tif (this.idleTimerSubscription) {\r\n\t\t\tthis.idleTimerSubscription.unsubscribe();\r\n\t\t\tconsole.log('idleTimerSubscription.unsubscribe();');\r\n\t\t}\r\n\r\n\t\tif (this.idleTimerWarningSubscription) {\r\n\t\t\tthis.idleTimerWarningSubscription.unsubscribe();\r\n\t\t\tconsole.log('idleTimerWarningSubscription.unsubscribe();');\r\n\t\t}\r\n\t}\r\n\r\n\tprivate sessionTimeoutIdleMonitor(): void {\r\n\t\tconsole.group('sessionTimeoutIdleMonitor');\r\n\t\tconsole.log('user role:' + this.domSanitizer.sanitize(SecurityContext.HTML, this.logUsrAssociatedRle));\r\n\r\n\t\tif (!!this.loggedUser && !!this.loggedUser.Username) {\r\n\t\t\tthis.sessionExpirationTimeoutService.resetTimer();\r\n\t\t\tthis.idleTimerWarningSubscription = this.sessionExpirationTimeoutService.timeoutExpiredWarning.subscribe((res) => {\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef = this.modalService.open(ConfirmDialogModalComponent, { size: 'lg' });\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t\t'private.modalTimeoutExpiredWarningTitle',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef.componentInstance.content = this.translateService\r\n\t\t\t\t\t.translate('private.modalTimeoutExpiredWarningContent', 'client')\r\n\t\t\t\t\t.replace('[EXPIREDTIMEMINUTES]', this.appContext.getTokenToBeExpiredWarningInMinutesOrDefault().toString());\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t\t'private.modalTimeoutExpiredWarningConfirmActionText',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef.componentInstance.denyActionText = this.translateService.translate(\r\n\t\t\t\t\t'private.modalTimeoutExpiredWarningDenyActionText',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\r\n\t\t\t\tthis.modalTimeoutExpiredWarningRef.result\r\n\t\t\t\t\t.then(\r\n\t\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\t\tconsole.log('Extending session...');\r\n\r\n\t\t\t\t\t\t\tconst serviceCall = this.loginApiService.refreshJwtToken();\r\n\r\n\t\t\t\t\t\t\tserviceCall.subscribe({\r\n\t\t\t\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\t\t\t\tthis.processRefreshTokenResponse(operationResult);\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\tthis.processRefreshTokenCallError(httpErrorResponse);\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t(cancelData) => {\r\n\t\t\t\t\t\t\tif (cancelData !== 'dismissByTimeout' && cancelData !== 'tokenRefreshed') {\r\n\t\t\t\t\t\t\t\tconsole.log('Not extending session...');\r\n\r\n\t\t\t\t\t\t\t\tconst messagePayload = new SessionStatusBroadcastMessagePayload(this.loggedUser!.Username!);\r\n\r\n\t\t\t\t\t\t\t\tlet message: BroadcastMessage = {\r\n\t\t\t\t\t\t\t\t\ttype: BroadcastMessageType.SessionTimmerNotExtended,\r\n\t\t\t\t\t\t\t\t\tpayload: messagePayload.AsJson(),\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tthis.sessionStatusBroadcastService.publish(message);\r\n\t\t\t\t\t\t\t\tconsole.log(\r\n\t\t\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, this.loggedUser?.Name + '-' + this.logUsrAssociatedRle) +\r\n\t\t\t\t\t\t\t\t\t\t' published msg.type:' +\r\n\t\t\t\t\t\t\t\t\t\tmessage.type\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\tthis.unsubscribeSessionTimers();\r\n\t\t\t\t\t\t\t\tthis.logout();\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.catch((error) => console.error('Error from modal' + this.domSanitizer.sanitize(SecurityContext.HTML, error)));\r\n\t\t\t});\r\n\r\n\t\t\tthis.idleTimerSubscription = this.sessionExpirationTimeoutService.timeoutExpired.subscribe((res) => {\r\n\t\t\t\tif (this.modalTimeoutExpiredWarningRef != null) this.modalTimeoutExpiredWarningRef.dismiss('dismissByTimeout');\r\n\t\t\t\t// this.sessionExpirationTimeoutService.resetTimer();\r\n\t\t\t\tthis.unsubscribeSessionTimers();\r\n\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef = this.modalService.open(InformationModalComponent, { size: 'lg' });\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef.componentInstance.msgType = 'warning';\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef.componentInstance.title = this.translateService.translate(\r\n\t\t\t\t\t'http-auhorization-error.modalInformationTitle',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef.componentInstance.content = this.translateService.translate(\r\n\t\t\t\t\t'http-auhorization-error.modalSucessInformationContent',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef.componentInstance.confirmActionText = this.translateService.translate(\r\n\t\t\t\t\t'http-auhorization-error.modalInformationConfirmActionText',\r\n\t\t\t\t\t'client'\r\n\t\t\t\t);\r\n\r\n\t\t\t\tthis.modalTimeoutExpiredInformationRef.result\r\n\t\t\t\t\t.then(\r\n\t\t\t\t\t\t(confirmAction) => {\r\n\t\t\t\t\t\t\tthis.logout();\r\n\r\n\t\t\t\t\t\t\tconst messagePayload = new SessionStatusBroadcastMessagePayload(this.loggedUser!.Username!);\r\n\r\n\t\t\t\t\t\t\tlet message: BroadcastMessage = {\r\n\t\t\t\t\t\t\t\ttype: BroadcastMessageType.SessionTimmerNotExtended,\r\n\t\t\t\t\t\t\t\tpayload: messagePayload.AsJson(),\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tthis.sessionStatusBroadcastService.publish(message);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t(cancelData) => {\r\n\t\t\t\t\t\t\tthis.logout();\r\n\t\t\t\t\t\t\tconst messagePayload = new SessionStatusBroadcastMessagePayload(this.loggedUser!.Username!);\r\n\r\n\t\t\t\t\t\t\tlet message: BroadcastMessage = {\r\n\t\t\t\t\t\t\t\ttype: BroadcastMessageType.SessionTimmerNotExtended,\r\n\t\t\t\t\t\t\t\tpayload: messagePayload.AsJson(),\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tthis.sessionStatusBroadcastService.publish(message);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.catch((error) => console.error('Error from modal' + this.domSanitizer.sanitize(SecurityContext.HTML, error)));\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconsole.groupEnd();\r\n\t}\r\n\r\n\tprivate processRefreshTokenResponse(result: OperationResult) {\r\n\t\tif (result.IsValid) {\r\n\t\t\tthis.appContext.setRefreshedTokens(this.loggedUser!.Username!, result.Data.SplitTokens);\r\n\r\n\t\t\tthis.sessionExpirationTimeoutService.resetTimer();\r\n\r\n\t\t\tconst messagePayload = new SessionStatusBroadcastMessagePayload(this.loggedUser!.Username!);\r\n\r\n\t\t\tlet message: BroadcastMessage = {\r\n\t\t\t\ttype: BroadcastMessageType.SessionTimmerExtended,\r\n\t\t\t\tpayload: messagePayload.AsJson(),\r\n\t\t\t};\r\n\r\n\t\t\tthis.sessionStatusBroadcastService.publish(message);\r\n\t\t} else {\r\n\t\t\tconst msgCouldNotLogin = this.translateService.translate('session.refresh.not.possible');\r\n\t\t\tthis.notificationService.addDanger(msgCouldNotLogin);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processRefreshTokenCallError(httpError: HttpErrorResponse) {\r\n\t\tthis.notificationService.addDanger(httpError.statusText + httpError.message);\r\n\r\n\t\tconst messagePayload = new SessionStatusBroadcastMessagePayload(this.loggedUser!.Username!);\r\n\r\n\t\tlet message: BroadcastMessage = {\r\n\t\t\ttype: BroadcastMessageType.SessionTimmerNotExtended,\r\n\t\t\tpayload: messagePayload.AsJson(),\r\n\t\t};\r\n\r\n\t\tthis.sessionStatusBroadcastService.publish(message);\r\n\r\n\t\tthis.logout();\r\n\t}\r\n\r\n\tprivate setLoggedUserInfo() {\r\n\t\tthis.loggedUser = this.appContext.getLoggedUser();\r\n\t\tthis.logUsrAssociatedRle = this.appContext.getLoggedUserAssociatedRole();\r\n\r\n\t\tif (!!this.logUsrAssociatedRle) {\r\n\t\t\tthis.logUsrAssociatedRle = this.translateService.translate(this.logUsrAssociatedRle, 'list-role');\r\n\t\t}\r\n\r\n\t\tconst emailMd5 = !!this.loggedUser && this.loggedUser?.Email ? md5(this.loggedUser?.Email) : null;\r\n\t\tthis.gravatarEmailUrl = !!emailMd5 ? 'http://www.gravatar.com/avatar/' + emailMd5 + '?s=48&d=mp' : null;\r\n\r\n\t\tthis.userRoles = this.appContext.getLoggedUserData(this.loggedUser?.Username!);\r\n\t}\r\n\r\n\tpublic isFinancier(): boolean {\r\n\t\treturn this.appContext.getLoggedUserAssociatedRole() === UserRole.Financier;\r\n\t}\r\n\r\n\tpublic isBuyer(): boolean {\r\n\t\treturn this.appContext.getLoggedUserAssociatedRole() === UserRole.Buyer;\r\n\t}\r\n\r\n\tpublic isSupplier(): boolean {\r\n\t\treturn this.appContext.getLoggedUserAssociatedRole() === UserRole.Supplier;\r\n\t}\r\n\r\n\tpublic isSystemAdmin(): boolean {\r\n\t\treturn this.appContext.getLoggedUserAssociatedRole() === UserRole.SystemAdmin;\r\n\t}\r\n\r\n\tpublic logout() {\r\n\t\tconsole.log('logout()');\r\n\t\t// reset app context and go to login page\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigate(['public/login']);\r\n\t}\r\n\r\n\tpublic getCurrentYear(): number {\r\n\t\tvar currentdate = new Date();\r\n\t\treturn currentdate.getFullYear();\r\n\t}\r\n\r\n\tprivate checkIfAnyUserCompanyHasFileIntegrations(): void {\r\n\t\t//start by assuming no permission\r\n\t\tthis.anyUserCompanyHasFileIntegration = false;\r\n\r\n\t\tif (!!this.loggedUser && this.loggedUser.IsSystemAdmin) {\r\n\t\t\tthis.anyUserCompanyHasFileIntegration = true;\r\n\t\t\treturn;\r\n\t\t} else if (!!this.loggedUser && !this.loggedUser.IsSystemAdmin && this.loggedUser.Companies.some((c) => !!c)) {\r\n\t\t\tthis.serverApiService\r\n\t\t\t\t.companyFileIntegration(this.loggedUser.Companies.map((c) => c.Id!))\r\n\t\t\t\t.subscribe((opResults: OperationResult) => {\r\n\t\t\t\t\tthis.anyUserCompanyHasFileIntegration =\r\n\t\t\t\t\t\topResults.IsValid &&\r\n\t\t\t\t\t\t!!opResults.Data &&\r\n\t\t\t\t\t\topResults.Data.map((d) => d.CompanyFileSourceFileTypes).some((f) => !!f && f.length > 0);\r\n\t\t\t\t\tthis.buildMenuEntrances();\r\n\t\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tpublic goToHelpCenter() {\r\n\t\t//redirect to faqs page\r\n\t\tthis.router.navigate(['private/help']);\r\n\t}\r\n\r\n\tprivate buildMenuEntrances(): void {\r\n\t\tlet entrances: MenuEntranceViewModel[] = [];\r\n\r\n\t\tthis.buildHomeMenuEntrance(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeMonitorMenuEntranceOption()) this.buildMonitorMenuEntrance(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeDocumentsMenuOption()) this.buildDocumentsMenuEntrances(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeContractsOptions()) this.buildContractsMenuEntrances(entrances);\r\n\r\n\t\tif (this.anyUserCompanyHasFileIntegration) this.buildIntegrationFilesMenuEntrances(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeReportingOption()) this.buildReportingMenuEntrances(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeConfirmingOptions()) this.buildConfirmingMenuEntrances(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeFactoringOptions()) this.buildFactoringMenuEntrances(entrances);\r\n\r\n\t\tif (this.loggedUser?.canSeeNetworkOptions()) this.buildNetworkMenuEntrances(entrances, this.loggedUser?.canSeeFinancierMenuOption());\r\n\r\n\t\tthis.buildLogoutMenuEntrance(entrances);\r\n\t\tthis.buildSupportContactMenuEntrance(entrances);\r\n\r\n\t\tthis.menuEntrances = entrances;\r\n\t}\r\n\r\n\tprivate buildSupportContactMenuEntrance(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet supportContact: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tsupportContact.buildEntrance(\r\n\t\t\tMenuEntranceType.SupportContact,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn this.translateService.translate('help.email.support.email', 'client');\r\n\t\t\t},\r\n\t\t\t'help.email.support',\r\n\t\t\t'help.email.support',\r\n\t\t\t'fal fa-question-circle fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t() => {},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(supportContact);\r\n\t}\r\n\r\n\tprivate buildLogoutMenuEntrance(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet logout: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tlogout.buildEntrance(\r\n\t\t\tMenuEntranceType.Logout,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t'menu.logout',\r\n\t\t\t'menu.logout',\r\n\t\t\t'',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.logout();\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(logout);\r\n\t}\r\n\r\n\tprivate buildHomeMenuEntrance(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet home: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\thome.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/home';\r\n\t\t\t},\r\n\t\t\t'menu.dashboard',\r\n\t\t\t'menu.dashboard',\r\n\t\t\t'fal fa-chart-area fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'home' || !imp ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'home';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(home);\r\n\t}\r\n\r\n\tprivate buildMonitorMenuEntrance(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet monitoring: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tmonitoring.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/monitoring';\r\n\t\t\t},\r\n\t\t\t'menu.monitoring',\r\n\t\t\t'menu.monitoring',\r\n\t\t\t'far fa-chart-line',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'monitoring' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'monitoring';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(monitoring);\r\n\t}\r\n\r\n\tprivate buildNetworkMenuEntrances(entrances: MenuEntranceViewModel[], canSeeFinancierMenuOption: boolean) {\r\n\t\tlet networkTitle: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tnetworkTitle.buildEntrance(\r\n\t\t\tMenuEntranceType.Title,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t'menu.network',\r\n\t\t\t'menu.network',\r\n\t\t\tnull,\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t() => {},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(networkTitle);\r\n\r\n\t\tlet networkCompanies: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tnetworkCompanies.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/companies';\r\n\t\t\t},\r\n\t\t\t'menu.companies',\r\n\t\t\t'menu.companies',\r\n\t\t\t'fal fa-building fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'companies' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'companies';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tnetworkTitle.SubEntrances.push(networkCompanies);\r\n\r\n\t\tif (canSeeFinancierMenuOption) {\r\n\t\t\tlet networkFinanciers: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\t\tnetworkFinanciers.buildEntrance(\r\n\t\t\t\tMenuEntranceType.Item,\r\n\t\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\t\treturn '/private/companies/financiers';\r\n\t\t\t\t},\r\n\t\t\t\t'menu.financiers',\r\n\t\t\t\t'menu.financiers',\r\n\t\t\t\t'fal fa-university fa-fw',\r\n\t\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'financiers' ? 'active' : '') : '';\r\n\t\t\t\t},\r\n\t\t\t\t() => {\r\n\t\t\t\t\tthis.selectedOption = 'financiers';\r\n\t\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t\t},\r\n\t\t\t\t[]\r\n\t\t\t);\r\n\t\t\tnetworkTitle.SubEntrances.push(networkFinanciers);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate buildIntegrationFilesMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet integratedFiles: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tintegratedFiles.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/files-integration';\r\n\t\t\t},\r\n\t\t\t'menu.integratedfiles',\r\n\t\t\t'menu.integratedfiles',\r\n\t\t\t'fal fa-file-import fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'integratedfiles' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'integratedfiles';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(integratedFiles);\r\n\t}\r\n\r\n\tprivate buildContractsMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet contracts: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tcontracts.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/contracts';\r\n\t\t\t},\r\n\t\t\t'menu.contracts',\r\n\t\t\t'menu.contracts',\r\n\t\t\t'fal fa-file-contract fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'contracts' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'contracts';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(contracts);\r\n\t}\r\n\r\n\tprivate buildDocumentsMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet documents: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tdocuments.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/documents';\r\n\t\t\t},\r\n\t\t\t'menu.documents',\r\n\t\t\t'menu.documents',\r\n\t\t\t'fal fa-file-invoice fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'documents' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'documents';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(documents);\r\n\t}\r\n\r\n\tprivate buildFactoringMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet factoringTitle: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tfactoringTitle.buildEntrance(\r\n\t\t\tMenuEntranceType.Title,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t'menu.Factoring',\r\n\t\t\t'menu.Factoring',\r\n\t\t\tnull,\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t() => {},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(factoringTitle);\r\n\r\n\t\tlet factoringCreditAssignments: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tfactoringCreditAssignments.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/credit-assignment/list';\r\n\t\t\t},\r\n\t\t\t'menu.credit-assignments',\r\n\t\t\t'menu.credit-assignments',\r\n\t\t\t'fal fa-hands-usd fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'credit-assignments' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'credit-assignments';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tfactoringTitle.SubEntrances.push(factoringCreditAssignments);\r\n\r\n\t\tlet factoringAdvanceRequests: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tfactoringAdvanceRequests.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/advance-request/list';\r\n\t\t\t},\r\n\t\t\t'menu.advance-requests',\r\n\t\t\t'menu.advance-requests',\r\n\t\t\t'fal fa-money-check-alt fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'advance-requests' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'advance-requests';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tfactoringTitle.SubEntrances.push(factoringAdvanceRequests);\r\n\t}\r\n\r\n\tprivate buildConfirmingMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet confirmingTitle: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tconfirmingTitle.buildEntrance(\r\n\t\t\tMenuEntranceType.Title,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t'menu.Confirming',\r\n\t\t\t'menu.Confirming',\r\n\t\t\tnull,\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn null;\r\n\t\t\t},\r\n\t\t\t() => {},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(confirmingTitle);\r\n\r\n\t\tlet confirmingFundingRequests: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tconfirmingFundingRequests.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/funding-request/list';\r\n\t\t\t},\r\n\t\t\t'menu.funding-requests',\r\n\t\t\t'menu.funding-requests',\r\n\t\t\t'fal fa-hand-holding-usd fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'funding-requests' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'funding-requests';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tconfirmingTitle.SubEntrances.push(confirmingFundingRequests);\r\n\r\n\t\tlet confirmingPaymentRequests: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\tconfirmingPaymentRequests.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/payment-request/list';\r\n\t\t\t},\r\n\t\t\t'menu.payment-request',\r\n\t\t\t'menu.payment-request',\r\n\t\t\t'fal fa-usd-circle fa-fw',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'payment-request' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'payment-request';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tconfirmingTitle.SubEntrances.push(confirmingPaymentRequests);\r\n\t}\r\n\r\n\tprivate buildReportingMenuEntrances(entrances: MenuEntranceViewModel[]) {\r\n\t\tlet reportingOption: MenuEntranceViewModel = new MenuEntranceViewModel(this.translateService);\r\n\t\treportingOption.buildEntrance(\r\n\t\t\tMenuEntranceType.Item,\r\n\t\t\t(me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn '/private/reporting/list';\r\n\t\t\t},\r\n\t\t\t'menu.reportinglist',\r\n\t\t\t'menu.reportinglist',\r\n\t\t\t'far fa-chart-bar',\r\n\t\t\t(imp: string, me: MenuEntranceViewModel) => {\r\n\t\t\t\treturn me.EntranceType == MenuEntranceType.Item ? (imp === 'reporting' ? 'active' : '') : '';\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.selectedOption = 'reporting';\r\n\t\t\t\tthis.isActiveAdminMenu = false;\r\n\t\t\t},\r\n\t\t\t[]\r\n\t\t);\r\n\t\tentrances.push(reportingOption);\r\n\t}\r\n\r\n\tpublic showHelpCenter() {\r\n\t\treturn !this.loggedUser?.IsFinancier && !this.loggedUser?.IsSystemAdmin;\r\n\t}\r\n\r\n\tpublic showNotificationsEntrance(): boolean {\r\n\t\treturn !this.loggedUser?.IsFinancier && !this.loggedUser?.IsSystemAdmin;\r\n\t}\r\n\r\n\tpublic openAdminPage() {\r\n\t\tthis.isActiveAdminMenu = true;\r\n\t\tthis.selectedOption = 'settings';\r\n\t\tthis.router.navigate(['private/administration/']);\r\n\t}\r\n\r\n\t// ************ Legal documents ************\r\n\r\n\tprivate getLatestLegalDocuments(): void {\r\n\t\tconst serviceCall = this.serverApiService.latestLegalDocuments(this.loggedUser?.LanguageCode!);\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (!!operationResult?.IsValid && !!operationResult.Data) {\r\n\t\t\t\t\tthis.processValidLatestLegalDocumentsResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.notificationService.addErrors(operationResult.Errors);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processValidLatestLegalDocumentsResult(operationResult: OperationResult): void {\r\n\t\tlet legalDocuments: LegalDocument[] | null = this.utilitiesService.ObjectDeepCopy(operationResult.Data?.Documents);\r\n\r\n\t\tlegalDocuments\r\n\t\t\t?.sort(function (doc1: LegalDocument, doc2: LegalDocument) {\r\n\t\t\t\tvar doc1Code = doc1.LegalDocumentType.toUpperCase();\r\n\t\t\t\tvar doc2Code = doc2.LegalDocumentType.toUpperCase();\r\n\t\t\t\treturn doc1Code < doc2Code ? -1 : doc1Code > doc2Code ? 1 : 0;\r\n\t\t\t})\r\n\t\t\t.forEach((missingDoc) => {\r\n\t\t\t\tthis.latestDocuments.push({\r\n\t\t\t\t\tLegalDocumentType: missingDoc.LegalDocumentType,\r\n\t\t\t\t\tDocumentBlob: this.utilitiesService.base64ToBlob(missingDoc.Document, missingDoc.ContentType),\r\n\t\t\t\t\tContentType: missingDoc.ContentType,\r\n\t\t\t\t\tDocumentDownloadName: this.translateService.translate(missingDoc.LegalDocumentType, 'list-DownloadDocNames'),\r\n\t\t\t\t\tLegalDocumentTypeTranslation: this.translateService.translate(\r\n\t\t\t\t\t\tmissingDoc.LegalDocumentType + '_ViewUserDropdown',\r\n\t\t\t\t\t\t'list-DocumentNamesLabel'\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\tprotected openBlob(blob: Blob, docNameForDownload: string): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(blob, docNameForDownload, false);\r\n\t}\r\n}\r\n","
    \r\n\t\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\r\n\t\t\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\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{{ menuEntrance.EntranceName }}\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{{ subEntrance.EntranceTooltip }}\r\n\t\t\t\t\t\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{{ subEntrance.EntranceName }}\r\n\t\t\t\t\t\t\t\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\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\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\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\r\n\t\t\t\r\n\t\t\r\n\t\r\n\t
    \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
    \r\n\t\t\t\t\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\r\n\t\t\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{{ 'home.userRole.letterBuyer' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterSupplier' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterFinancier' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterAdmin' | translate }}\r\n\t\t\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
    \r\n\t\t\t\t\t\t\t\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{{ menuEntrance.EntranceName }}\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{{ subEntrance.EntranceName }}\r\n\t\t\t\t\t\t\t\t\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\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{{ 'menu.helpCenter' | translate }}\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{{ 'home.welcome.user' | translate }} {{ loggedUser?.Name }}\r\n\t\t\t\t\t\t\t\t({{ logUsrAssociatedRle }})\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{{ 'home.userRole.letterBuyer' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterSupplier' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterFinancier' | translate }}\r\n\t\t\t\t\t\t\t\t\t{{ 'home.userRole.letterAdmin' | translate }}\r\n\t\t\t\t\t\t\t\t
    \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\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{{ 'home.userRole.letterBuyer' | translate }}\r\n\t\t\t\t\t\t\t\t{{ 'home.userRole.letterSupplier' | translate }}\r\n\t\t\t\t\t\t\t\t{{ 'home.userRole.letterAdmin' | translate }}\r\n\t\t\t\t\t\t\t\t{{ 'home.userRole.letterFinancier' | translate }}\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{{ userData.MainRole | translate : 'list-role' }}\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{{ 'menu.user.account' | translate }}\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{{ 'menu.user.notifications' | translate }}\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{{ 'menu.user.help' | translate }}\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{{ 'menu.logout' | translate }}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t 0\"\r\n\t\t\t\t\t\t\tclass=\"d-flex flex-row-reverse align-items-center justify-content-end mt-2 user-dropdown-legal-documents\">\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{{ latestDocument.LegalDocumentTypeTranslation }}\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\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
    © {{ getCurrentYear() }} Sovos Compliance, LLC.
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\r\n\t\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgxChartsModule } from '@swimlane/ngx-charts';\r\nimport { PrivateComponent } from './private.component';\r\nimport { PrivateHomeComponent } from './private-home/private-home.component';\r\nimport { PrivateRoutingModule } from './private-routing.module';\r\nimport { TranslateModule } from '../services/translate/translate.module';\r\nimport { TranslateService } from '../services/translate/translate.service';\r\nimport { CoreModule } from '../core/core.module';\r\nimport { SearchDocumentsComponent } from './documents/search-documents/search-documents.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { CompaniesListsComponent } from './companies-lists/companies-lists.component';\r\nimport { DashboardSupplierComponent } from './private-home/dashboard-supplier/dashboard-supplier.component';\r\nimport { DashboardBuyerComponent } from './private-home/dashboard-buyer/dashboard-buyer.component';\r\nimport { DashboardFinancierComponent } from './private-home/dashboard-financier/dashboard-financier.component';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { UploadModule } from './files-upload/upload.module';\r\nimport { SearchCompaniesComponent } from './companies/search-companies/search-companies.component';\r\nimport { EditCompanyComponent } from './companies/edit-company/edit-company.component';\r\nimport { CompanyDetailsComponent } from './companies/company-details/company-details.component';\r\nimport { DashboardAdministratorComponent } from './private-home/dashboard-administrator/dashboard-administrator.component';\r\nimport { LoggerUserDataChangedNotificationService } from '../services/logged-user-data-changed-notification/logged-user-data-changed-notification.service';\r\nimport { FinancierCompaniesComponent } from './financier-companies/financier-companies.component';\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tBrowserModule,\r\n\t\tBrowserAnimationsModule,\r\n\t\tNgxChartsModule,\r\n\t\tCommonModule,\r\n\t\tCoreModule,\r\n\t\tFormsModule,\r\n\t\tReactiveFormsModule,\r\n\t\tNgbModule,\r\n\t\tTranslateModule,\r\n\t\tPrivateRoutingModule,\r\n\t\tUploadModule,\r\n\t],\r\n\tdeclarations: [\r\n\t\tPrivateComponent,\r\n\t\tPrivateHomeComponent,\r\n\t\tSearchDocumentsComponent,\r\n\t\tCompaniesListsComponent,\r\n\t\tSearchCompaniesComponent,\r\n\t\tEditCompanyComponent,\r\n\t\tCompanyDetailsComponent,\r\n\t\tDashboardSupplierComponent,\r\n\t\tDashboardBuyerComponent,\r\n\t\tDashboardFinancierComponent,\r\n\t\tDashboardAdministratorComponent,\r\n\t\tFinancierCompaniesComponent\r\n\t],\r\n\tproviders: [TranslateService, LoggerUserDataChangedNotificationService],\r\n})\r\nexport class PrivateModule {}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { RegisterUserInput } from '../../../../models/User/register-user-input';\r\nimport { OperationError } from '../../../../models/server-result/operation-error';\r\nimport { PublicCompany } from '../../../../models/companies/public-company';\r\nimport { Company } from '../../../../models/companies/company';\r\nimport { User } from '../../../../models/User/user';\r\nimport { CodeDecodeValue } from '../../../../models/common/code-decode-value';\r\nimport { ServerApiService } from '../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../services/notification/notification.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { TranslateService } from '../../../../services/translate/translate.service';\r\nimport { UtilitiesService } from '../../../../services/utils/utilities.service';\r\nimport { AppContextService } from '../../../../services/app-context.service';\r\nimport { OperationResult } from '../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { CompanyLegalAcceptanceRequest } from '../../../../models/companies/company-legal-acceptance-request';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { RefuseNewCompanyInviteForConfirmingNetwork } from '../../../../models/invitations/confirming/refuse-new-company-invite-confirming-network';\r\nimport { AcceptNewCompanyInviteForConfirmingNetwork } from '../../../../models/invitations/confirming/accept-new-company-invite-confirming-network';\r\nimport { PersonalDataConsentDocumentRequest } from '../../../../models/User/personal-data-consent-document-request';\r\nimport { PersonalDataConsentDocumentAcceptance } from '../../../../models/User/personal-data-consent-document-acceptance';\r\nimport { TimeZoneValue } from '../../../../models/common/time-zone-value';\r\nimport { CommonValidationsService } from '../../../../services/validations/common-validation.service';\r\nimport { ExtendedPublicCompany } from '../../../../models/companies/extended-public-company';\r\nimport { SettingsPerCountryCode } from '../../../../models/configurations/settings-per-country-code';\r\nimport { PublicInviteCompanyForNetworkTicket } from '../../../../models/invitations/public-invite-company-network-ticket';\r\nimport { ServerErrors } from '../../../../models/enums/server-errors';\r\nimport { InvitationStatus } from '../../../../models/enums/Invitations/invitation-status';\r\nimport { CompanyLegalAcceptance } from '../../../../models/funding-request/company-legal-acceptance';\r\n\r\n@Component({\r\n\tselector: 'app-confirming-buyer-invitation-response',\r\n\ttemplateUrl: './buyer-invitation-response.component.html',\r\n\tstyleUrls: ['./buyer-invitation-response.component.css'],\r\n})\r\nexport class ConfirmingBuyerInvitationResponseComponent implements OnInit {\r\n\tprivate tokenId: string;\r\n\tprivate invitationId: string;\r\n\tprivate invitedUserEmail: string;\r\n\r\n\tprivate publicInviteCompanyForNetworkTicket: PublicInviteCompanyForNetworkTicket = new PublicInviteCompanyForNetworkTicket();\r\n\tpublic newUser: boolean;\r\n\tpublic registerUserInput: RegisterUserInput = new RegisterUserInput();\r\n\tpublic isPerformingRequest: boolean = false;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\tpublic invitingCompany: PublicCompany = new PublicCompany();\r\n\tpublic invitedCompany: Company = new Company();\r\n\tpublic invitedUser: User = new User();\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\r\n\tpublic invitedUserIdentification: string;\r\n\tpublic invitationCompaniesIdentification: string;\r\n\tpublic invitationTermsAndConditionsAcceptance: string;\r\n\r\n\tpublic registerUserInputUsername: string | null = null;\r\n\tpublic registerUserInputInvalidEmail: string | null = null;\r\n\tpublic registerUserInputEmail: string | null = null;\r\n\tpublic registerUserInputPawd: string | null = null;\r\n\tpublic registerUserInputPawdsDoNotMatch: string | null = null;\r\n\tpublic RepeatePawd: string | null = null;\r\n\tpublic registerUserInputRepeatePawd: string | null = null;\r\n\tpublic registerUserInputLanguageCode: string | null = null;\r\n\tpublic registerUserInputTimeZone: string | null = null;\r\n\tpublic registerUserInputName: string | null = null;\r\n\tpublic registerUserInputTelephone: string | null = null;\r\n\r\n\tpublic contextualizationText: string | null = null;\r\n\tpublic textTolinkWithContract: string | null = null;\r\n\tpublic viewContract: string | null = null;\r\n\tpublic isContractAccepted: boolean;\r\n\tpublic contractBlob: Blob;\r\n\r\n\tpublic textTolinkWithPersonalDataConsentDocument: string | null = null;\r\n\tpublic viewPersonalDataConsentDocument: string | null = null;\r\n\tpublic textTolinkWithPersonalDataConsentDocumentPart2: string | null = null;\r\n\tpublic isPersonalDataConsentDocumentAccepted: boolean;\r\n\tpublic personalDataConsentDocumentBlob: Blob;\r\n\r\n\tpublic showSucessSubmission: boolean = false;\r\n\tpublic sucessSubmissionContent: string | null = null;\r\n\tpublic sucessSubmissionButtonText: string | null = null;\r\n\tpublic companyNameRequiredError: string | null = null;\r\n\tpublic companyAddressLine1RequiredError: string | null = null;\r\n\tpublic companyZipCodeRequiredError: string | null = null;\r\n\tpublic companyCityRequiredError: string | null = null;\r\n\tpublic companyTimeZoneRequiredError: string | null = null;\r\n\tpublic companyLanguageCodeRequiredError: string | null = null;\r\n\tpublic companyShareCapitalRequiredError: string | null = null;\r\n\r\n\tpublic tokenAsExpired: boolean = false;\r\n\tpublic tokenAsExpiredContent: string | null = null;\r\n\tpublic tokenAsExpiredButtonText: string | null = null;\r\n\r\n\tpublic tokenUsed: boolean = false;\r\n\tpublic tokenUsedContent: string | null = null;\r\n\tpublic tokenUsedButtonText: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentAcceptance: PersonalDataConsentDocumentAcceptance | null = null;\r\n\tprivate legalUserAcceptance: CompanyLegalAcceptance | null = null;\r\n\r\n\t/**\r\n\t * This is the language code defined by the user (check User Data section on the page).\r\n\t * @summary Affects the page resources as well as these legal documents: Terms and Conditions and GDPR policy.\r\n\t * @description This language code should only be changed by the dropdown in the User Data section,\r\n\t * and NOT by the dropdown in the Company Data section.\r\n\t */\r\n\tpublic pageDisplayLanguageCode: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentName: string | null = null;\r\n\tprivate termsConditionsDocumentName: string | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate commonValidationsService: CommonValidationsService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pageDisplayLanguageCode = this.appContext.getApplicationLanguageCode(); //start by assuming this language code, after getting additional data, set this language code properly\r\n\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tlet base64InvitationContext = params['invitationContext'];\r\n\r\n\t\t\tif (!base64InvitationContext) {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get invitationContext from route...');\r\n\t\t\t}\r\n\r\n\t\t\t//base64 to string\r\n\t\t\tlet invitationContext = atob(base64InvitationContext);\r\n\r\n\t\t\tif (!!invitationContext) {\r\n\t\t\t\tlet parameters: string[] = invitationContext.split('&');\r\n\r\n\t\t\t\tif (parameters.length < 3) this.notificationService.addDanger('Could not get invitationContext content...');\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.tokenId = parameters[0].split(':')[1];\r\n\t\t\t\t\tthis.invitationId = parameters[1].split(':')[1];\r\n\t\t\t\t\tthis.invitedUserEmail = parameters[2].split(':')[1];\r\n\r\n\t\t\t\t\tif (!!this.tokenId && !!this.invitationId && !!this.invitedUserEmail) {\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\tconst getCompanyInvitationTicketServiceCall = this.serverApiService.getCompanyInvitationTicket(this.invitationId, this.tokenId);\r\n\t\t\t\t\t\tconst isUserRegisteredServiceCall = this.serverApiService.isUserRegistered(this.invitedUserEmail);\r\n\t\t\t\t\t\tconst getTimeZonesServiceCall = this.serverApiService.getTimeZones();\r\n\t\t\t\t\t\tconst languageCodesServiceCall = this.serverApiService.getLanguageCodes();\r\n\t\t\t\t\t\tconst countryCodesServiceCall = this.serverApiService.getCountryCodes();\r\n\t\t\t\t\t\tconst getUserLanguageCodeServiceCall = this.serverApiService.getUserLanguageCode(this.invitedUserEmail);\r\n\r\n\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t> = [];\r\n\r\n\t\t\t\t\t\tservicesCallsToMake.push(getCompanyInvitationTicketServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(isUserRegisteredServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getTimeZonesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(languageCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(countryCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getUserLanguageCodeServiceCall);\r\n\r\n\t\t\t\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\t\t\t\t\tconst getCompanyInvitationTicketResult = opResults[0] as OperationResult;\r\n\t\t\t\t\t\t\tconst isUserRegisteredResult = opResults[1] as OperationResult;\r\n\t\t\t\t\t\t\tconst getTimeZonesResult = opResults[2] as OperationResult;\r\n\t\t\t\t\t\t\tconst languageCodesResult = opResults[3] as OperationResult;\r\n\t\t\t\t\t\t\tconst countryCodesResult = opResults[4] as OperationResult;\r\n\t\t\t\t\t\t\tconst getUserLanguageCodeResult = opResults[5] as OperationResult;\r\n\r\n\t\t\t\t\t\t\tif (!getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getCompanyInvitationTicketResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!isUserRegisteredResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(isUserRegisteredResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!getTimeZonesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getTimeZonesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!languageCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(languageCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!countryCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(countryCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (\r\n\t\t\t\t\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t\t\t\t\tisUserRegisteredResult.IsValid &&\r\n\t\t\t\t\t\t\t\tgetTimeZonesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tlanguageCodesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tcountryCodesResult.IsValid\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket = getCompanyInvitationTicketResult.Data;\r\n\r\n\t\t\t\t\t\t\t\tthis.tokenAsExpired = this.publicInviteCompanyForNetworkTicket.IsExpired;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenAsExpired) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenAsExpiredMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.tokenUsed = this.publicInviteCompanyForNetworkTicket.InvitationStatus !== InvitationStatus.Processed;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenUsed) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenUsedMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.processValidGetUserInfoResult(isUserRegisteredResult);\r\n\r\n\t\t\t\t\t\t\t\tthis.invitingCompany = this.publicInviteCompanyForNetworkTicket.InvitingCompany;\r\n\t\t\t\t\t\t\t\tthis.countryCodes = countryCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.languageCodes = languageCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(getTimeZonesResult.Data, false);\r\n\r\n\t\t\t\t\t\t\t\tlet legalDocumentsLanguageCode = this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode;\r\n\r\n\t\t\t\t\t\t\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = <\r\n\t\t\t\t\t\t\t\t\tPersonalDataConsentDocumentRequest\r\n\t\t\t\t\t\t\t\t>{\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t\t\tObservable<\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\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\tconst createUserLegalAcceptanceServiceCall =\r\n\t\t\t\t\t\t\t\t\tthis.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\t\t\t\t\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCall = this.serverApiService.getPublicSettingsPerCountryCode(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode.toUpperCase()\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getPublicSettingsPerCountryCodeServiceCall);\r\n\t\t\t\t\t\t\t\tconst getExtendedPublicCompanyByVatNumberServiceAll = this.serverApiService.getExtendedPublicCompanyByVatNumber(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getExtendedPublicCompanyByVatNumberServiceAll);\r\n\r\n\t\t\t\t\t\t\t\tconst getAllRequestsLegalDocuments = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\t\t\tgetAllRequestsLegalDocuments.subscribe({\r\n\t\t\t\t\t\t\t\t\tnext: (operationResults) => {\r\n\t\t\t\t\t\t\t\t\t\tconst createUserLegalAcceptanceResult = operationResults[0] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentResult =\r\n\t\t\t\t\t\t\t\t\t\t\toperationResults[1] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCallResult = operationResults[2] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getInvitedCompanyServiceCallResult = operationResults[3] as OperationResult;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createUserLegalAcceptanceResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createPersonalDataConsentDocumentResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!getPublicSettingsPerCountryCodeServiceCallResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(getPublicSettingsPerCountryCodeServiceCallResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (\r\n\t\t\t\t\t\t\t\t\t\t\tcreateUserLegalAcceptanceResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tcreatePersonalDataConsentDocumentResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tgetPublicSettingsPerCountryCodeServiceCallResult.IsValid\r\n\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\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\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.ContentType\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\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.IsValid ||\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.Errors?.every((e) => e.Code == ServerErrors.CompanyNotFound)\r\n\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getInvitedCompanyServiceCallResult.IsValid && getInvitedCompanyServiceCallResult.Errors?.length == 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: getInvitedCompanyServiceCallResult.Data.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: getInvitedCompanyServiceCallResult.Data.Name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: getInvitedCompanyServiceCallResult.Data.VatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: getInvitedCompanyServiceCallResult.Data.CountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: getInvitedCompanyServiceCallResult.Data.LanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: getInvitedCompanyServiceCallResult.Data.TimeZone,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine1: getInvitedCompanyServiceCallResult.Data.AddressLine1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine2: getInvitedCompanyServiceCallResult.Data.AddressLine2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine3: getInvitedCompanyServiceCallResult.Data.AddressLine3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tZipCode: getInvitedCompanyServiceCallResult.Data.ZipCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCity: getInvitedCompanyServiceCallResult.Data.City,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCodeList: getInvitedCompanyServiceCallResult.Data.ActivityCodeList,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCode: getInvitedCompanyServiceCallResult.Data.ActivityCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShareCapital: getInvitedCompanyServiceCallResult.Data.ShareCapital,\r\n\t\t\t\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\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: this.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedCompanyName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: this.publicInviteCompanyForNetworkTicket.InvitedCompanyTimeZone,\r\n\t\t\t\t\t\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\tthis.registerUserInput.Name = this.invitedUser.Name;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.Email = this.invitedUserEmail;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.TimeZone = this.invitedCompany.TimeZone;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = this.invitedCompany.LanguageCode;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.updateResources();\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\tthis.processInvalidResult(getInvitedCompanyServiceCallResult);\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\tthis.isPerformingRequest = 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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\t\t\tthis.logger.error('[ConfirmingBuyerInvitationResponseComponent] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t\t\t'[ConfirmingBuyerInvitationResponseComponent] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\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} else this.notificationService.addDanger('Could not get invitationContext parameters...');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic openContract(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.contractBlob, this.termsConditionsDocumentName!, false);\r\n\t}\r\n\r\n\tupdateResources(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.invitedUser = {\r\n\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\r\n\t\t};\r\n\r\n\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitationCompaniesIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\t}\r\n\r\n\tpublic openPersonalDataConsentDocument(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.personalDataConsentDocumentBlob, this.personalDataConsentDocumentName!, false);\r\n\t}\r\n\r\n\tpublic refuseInvitation(): void {\r\n\t\tlet refuseCompanyInviteForConfirmingNetwork: RefuseNewCompanyInviteForConfirmingNetwork = {\r\n\t\t\tInvitationId: this.invitationId,\r\n\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\tToken: this.tokenId,\r\n\t\t};\r\n\r\n\t\tconst inviteCompanyForConfirmingNetworkServiceCall = this.serverApiService.refuseNewCompanyInviteForConfirmingNetwork(\r\n\t\t\trefuseCompanyInviteForConfirmingNetwork\r\n\t\t);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tinviteCompanyForConfirmingNetworkServiceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidRefuseCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidRefuseCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[CompanyConfirmingInvitationRefuseComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[CompanyConfirmingInvitationRefuseComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic acceptInvitation(): void {\r\n\t\tif (this.formIsValid()) {\r\n\t\t\tthis.isPerformingRequest = true; // request indicator + block UI\r\n\r\n\t\t\tif (this.newUser) this.registerUserInput.Username = this.registerUserInput.Email;\r\n\r\n\t\t\tlet acceptCompanyInviteForConfirmingNetwork: AcceptNewCompanyInviteForConfirmingNetwork = <\r\n\t\t\t\tAcceptNewCompanyInviteForConfirmingNetwork\r\n\t\t\t>{\r\n\t\t\t\tToken: this.tokenId,\r\n\t\t\t\tTermsAndConditionsDocumentAcceptanceHash: this.legalUserAcceptance?.AcceptanceHash,\r\n\t\t\t\tTermsAndConditionsDocumentId: this.legalUserAcceptance?.DocumentId,\r\n\t\t\t\tInvitationId: this.invitationId,\r\n\t\t\t\tNewUser: this.registerUserInput,\r\n\t\t\t\tNewCompany: this.invitedCompany,\r\n\t\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\t\tPersonalDataConsentDocumentAcceptanceHash: this.personalDataConsentDocumentAcceptance?.AcceptanceHash,\r\n\t\t\t\tPersonalDataConsentDocumentId: this.personalDataConsentDocumentAcceptance?.DocumentId,\r\n\t\t\t\tLanguageCode: this.pageDisplayLanguageCode,\r\n\t\t\t};\r\n\r\n\t\t\tconst inviteCompanyForConfirmingNetworkServiceCall = this.serverApiService.acceptNewBuyerInviteForConfirmingNetwork(\r\n\t\t\t\tacceptCompanyInviteForConfirmingNetwork\r\n\t\t\t);\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tinviteCompanyForConfirmingNetworkServiceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tthis.processValidAcceptCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.processInvalidAcceptCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t);\r\n\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\thttpErrorResponse.message\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\tprivate processInvalidRefuseCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidRefuseCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalSucessInformationContentRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationConfirmActionTextRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidCreateUserLegalAcceptanceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidCreatePersonalDataConsentDocumentResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidGetPublicSettingsPerCountryCodeServiceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidAcceptCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalSucessInformationContentAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationConfirmActionTextAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidAcceptCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate formIsValid(): boolean {\r\n\t\tthis.companyNameRequiredError = !this.invitedCompany.Name ? 'REQUIRED' : null;\r\n\t\tthis.companyAddressLine1RequiredError = !this.invitedCompany.AddressLine1 ? 'REQUIRED' : null;\r\n\t\tthis.companyZipCodeRequiredError = !this.invitedCompany.ZipCode ? 'REQUIRED' : null;\r\n\t\tthis.companyCityRequiredError = !this.invitedCompany.City ? 'REQUIRED' : null;\r\n\t\tthis.companyTimeZoneRequiredError = !this.invitedCompany.TimeZone ? 'REQUIRED' : null;\r\n\t\tthis.companyLanguageCodeRequiredError = !this.invitedCompany.LanguageCode ? 'REQUIRED' : null;\r\n\t\tthis.companyShareCapitalRequiredError = this.utilitiesService.numberIsNullOrZero(this.invitedCompany.ShareCapital) ? 'REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputEmail = this.newUser && !this.registerUserInput.Email ? 'EMAIL_REQUIRED' : null;\r\n\t\tthis.registerUserInputInvalidEmail =\r\n\t\t\tthis.newUser && !!this.registerUserInput.Email && !this.emailIsValid(this.registerUserInput.Email) ? 'EMAIL_INVALID' : null;\r\n\t\tthis.registerUserInputName = this.newUser && !this.registerUserInput.Name ? 'NAME_REQUIRED' : null;\r\n\t\tthis.registerUserInputLanguageCode = this.newUser && !this.registerUserInput.LanguageCode ? 'LANGUAGE_CODE_REQUIRED' : null;\r\n\t\tthis.registerUserInputPawd = this.newUser && !this.registerUserInput.Pawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputRepeatePawd = this.newUser && !this.registerUserInput.RepeatePawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputTelephone = this.newUser && !this.registerUserInput.Telephone ? 'TELEPHONE_REQUIRED' : null;\r\n\t\tthis.registerUserInputTimeZone = this.newUser && !this.registerUserInput.TimeZone ? 'TIMEZONE_REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputPawdsDoNotMatch =\r\n\t\t\t!!this.registerUserInput.RepeatePawd &&\r\n\t\t\t!!this.registerUserInput.Pawd &&\r\n\t\t\tthis.registerUserInput.RepeatePawd != this.registerUserInput.Pawd\r\n\t\t\t\t? 'PASSWORDS_DO_NOT_MATCH'\r\n\t\t\t\t: null;\r\n\r\n\t\tlet newUserValidations = !this.newUser\r\n\t\t\t? true\r\n\t\t\t: !this.registerUserInputEmail &&\r\n\t\t\t !this.registerUserInputInvalidEmail &&\r\n\t\t\t !this.registerUserInputName &&\r\n\t\t\t !this.registerUserInputLanguageCode &&\r\n\t\t\t !this.registerUserInputPawd &&\r\n\t\t\t !this.registerUserInputRepeatePawd &&\r\n\t\t\t !this.registerUserInputTelephone &&\r\n\t\t\t !this.registerUserInputPawdsDoNotMatch &&\r\n\t\t\t !this.registerUserInputTimeZone;\r\n\r\n\t\tlet invitedCompanyValidations =\r\n\t\t\t!this.companyNameRequiredError &&\r\n\t\t\t!this.companyAddressLine1RequiredError &&\r\n\t\t\t!this.companyZipCodeRequiredError &&\r\n\t\t\t!this.companyCityRequiredError &&\r\n\t\t\t!this.companyTimeZoneRequiredError &&\r\n\t\t\t!this.companyLanguageCodeRequiredError &&\r\n\t\t\t!this.companyShareCapitalRequiredError;\r\n\r\n\t\tlet legalAcceptances = this.legalUserAcceptance != null && this.personalDataConsentDocumentAcceptance != null;\r\n\r\n\t\treturn newUserValidations && invitedCompanyValidations && legalAcceptances;\r\n\t}\r\n\r\n\tpublic checkEmail(value) {\r\n\t\tif (!this.registerUserInput.Email) {\r\n\t\t\tthis.registerUserInputEmail = 'EMAIL_REQUIRED';\r\n\t\t} else this.registerUserInputEmail = null;\r\n\r\n\t\tthis.emailIsValid(value);\r\n\t}\r\n\r\n\tprivate emailIsValid(value): boolean {\r\n\t\tlet isValid = this.commonValidationsService.emailIsValid(value);\r\n\r\n\t\tif (!isValid) {\r\n\t\t\tthis.registerUserInputInvalidEmail = 'EMAIL_INVALID';\r\n\t\t} else this.registerUserInputInvalidEmail = null;\r\n\r\n\t\treturn isValid;\r\n\t}\r\n\r\n\tpublic validateOnlyNumbers(e) {\r\n\t\treturn this.utilitiesService.validateOnlyNumbers(e);\r\n\t}\r\n\r\n\tprivate processValidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tlet userIsAlreadyRegistered: boolean = operationResult.Data;\r\n\t\tthis.newUser = !userIsAlreadyRegistered;\r\n\t}\r\n\r\n\tprivate retrivedTokenAsExpiredMessages(): void {\r\n\t\tthis.tokenAsExpiredContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenAsExpiredContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenAsExpiredButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenAsExpiredButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tprivate retrivedTokenUsedMessages(): void {\r\n\t\tthis.tokenUsedContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenUsedContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenUsedButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenUsedButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tpublic translateMessagesWithUserLanguageCode(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\t\tthis.appContext.setApplicationLanguageCode(this.registerUserInput.LanguageCode);\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitationCompaniesIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.translateDocumentsWithInvitedCompanyLanguageCode(this.pageDisplayLanguageCode);\r\n\t}\r\n\r\n\tprivate translateDocumentsWithInvitedCompanyLanguageCode(languageCodeToUse: string): void {\r\n\t\tlet servicesCallsToMake: Array<\r\n\t\t\tObservable | OperationResult>\r\n\t\t> = [];\r\n\r\n\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tconst createUserLegalAcceptanceServiceCall = this.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t);\r\n\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\tconst createUserLegalAcceptanceResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst createPersonalDataConsentDocumentResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) this.processInvalidCreateUserLegalAcceptanceResult(createUserLegalAcceptanceResult);\r\n\r\n\t\t\t\tif (!createPersonalDataConsentDocumentResult.IsValid)\r\n\t\t\t\t\tthis.processInvalidCreatePersonalDataConsentDocumentResult(createPersonalDataConsentDocumentResult);\r\n\r\n\t\t\t\tif (createUserLegalAcceptanceResult.IsValid && createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(this.legalUserAcceptance.Document, this.legalUserAcceptance.ContentType);\r\n\r\n\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidResult(operationResult: OperationResult) {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate showInvitationContextInformationWhenTokenUsedOrExpired(\r\n\t\tgetCompanyInvitationTicketResult: OperationResult,\r\n\t\tgetUserLanguageCodeResult: OperationResult\r\n\t): void {\r\n\t\tif (!getCompanyInvitationTicketResult.IsValid) this.processInvalidResult(getCompanyInvitationTicketResult);\r\n\r\n\t\tif (getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\tthis.invitedUser = {\r\n\t\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\r\n\t\t\t};\r\n\r\n\t\t\tthis.registerUserInput.TimeZone = getCompanyInvitationTicketResult.Data.InvitingCompany.TimeZone;\r\n\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\telse if (\r\n\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany?.LanguageCode\r\n\t\t\t)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t'client'\r\n\t\t\t\t)\r\n\t\t\t\t.replace('[InvitedCompanyName]', getCompanyInvitationTicketResult.Data.InvitedCompanyName)\r\n\t\t\t\t.replace('[InvitedCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitedCompanyCountryCode)\r\n\t\t\t\t.replace('[InvitedCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitedCompanyVatNumber)\r\n\t\t\t\t.replace('[InvitingCompanyName]', getCompanyInvitationTicketResult.Data.InvitingCompany.Name)\r\n\t\t\t\t.replace('[InvitingCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitingCompany.CountryCode)\r\n\t\t\t\t.replace('[InvitingCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitingCompany.VatNumber);\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n\t
    \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
    \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{{ 'company-relation-invitation-response.welcomeHeader' | translate: languageCode : pageDisplayLanguageCode }}\r\n\t\t\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{{ invitedUserIdentification }}\r\n\t\t\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
    \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\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
    \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
    \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
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.invitedCompanyContextualizationText'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\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\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{{ 'company-relation-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\t'company-relation-invitation-response.AddressLine1'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\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\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\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\t'company-relation-invitation-response.ZipCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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{{ 'company-relation-invitation-response.City' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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\t\t'company-relation-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\t\t'company-relation-invitation-response.LanguageCode'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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{{ 'field.required' | translate }}\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
    \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\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.userDataForRegistration'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Email' | translate: languageCode : pageDisplayLanguageCode\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'field.invalid.email' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Telephone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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\t\t'resetPassword.passwordRules' | translate: languageCode : pageDisplayLanguageCode\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
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'resetPassword.passwordRule1' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule2' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule3' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule4' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule5' | translate: languageCode : pageDisplayLanguageCode }}\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\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\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\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{{ 'user-invitation-response.repeatePassword' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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'field.passwordsDoNotMatch' | translate: languageCode : pageDisplayLanguageCode\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\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{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.LanguageCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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{{ 'user-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\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\t\t{{ textTolinkWithContract }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewContract }}\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocument }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewPersonalDataConsentDocument }} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocumentPart2 }}\r\n\t\t\t\t\t\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\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'company-relation-invitation-response.accept' | translate: languageCode : pageDisplayLanguageCode\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'company-relation-invitation-response.refuse' | translate: languageCode : pageDisplayLanguageCode\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
    \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
    \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 { Component, OnInit } from '@angular/core';\r\nimport { ServerApiService } from '../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../services/notification/notification.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { TranslateService } from '../../../../services/translate/translate.service';\r\nimport { User } from '../../../../models/User/user';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { OperationResult } from '../../../../models/server-result/operation-result';\r\nimport { Company } from '../../../../models/companies/company';\r\nimport { OperationError } from '../../../../models/server-result/operation-error';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { CompanyLegalAcceptanceRequest } from '../../../../models/companies/company-legal-acceptance-request';\r\nimport { CodeDecodeValue } from '../../../../models/common/code-decode-value';\r\nimport { PublicCompany } from '../../../../models/companies/public-company';\r\nimport { AcceptNewCompanyInviteForConfirmingNetwork } from '../../../../models/invitations/confirming/accept-new-company-invite-confirming-network';\r\nimport { RegisterUserInput } from '../../../../models/User/register-user-input';\r\nimport { RefuseNewCompanyInviteForConfirmingNetwork } from '../../../../models/invitations/confirming/refuse-new-company-invite-confirming-network';\r\nimport { UtilitiesService } from '../../../../services/utils/utilities.service';\r\nimport { PublicContract } from '../../../../models/contracts/confirming/public-contract';\r\nimport { PublicContract as ConfirmingPublicContract } from '../../../../models/contracts/confirming/public-contract';\r\nimport { AppContextService } from '../../../../services/app-context.service';\r\nimport { PersonalDataConsentDocumentRequest } from '../../../../models/User/personal-data-consent-document-request';\r\nimport { PersonalDataConsentDocumentAcceptance } from '../../../../models/User/personal-data-consent-document-acceptance';\r\nimport { TimeZoneValue } from '../../../../models/common/time-zone-value';\r\nimport { CommonValidationsService } from '../../../../services/validations/common-validation.service';\r\nimport { ExtendedPublicCompany } from '../../../../models/companies/extended-public-company';\r\nimport { SettingsPerCountryCode } from '../../../../models/configurations/settings-per-country-code';\r\nimport { PublicInviteCompanyForNetworkTicket } from '../../../../models/invitations/public-invite-company-network-ticket';\r\nimport { ServerErrors } from '../../../../models/enums/server-errors';\r\nimport { InvitationStatus } from '../../../../models/enums/Invitations/invitation-status';\r\nimport { CompanyLegalAcceptance } from '../../../../models/funding-request/company-legal-acceptance';\r\n\r\n@Component({\r\n\tselector: 'app-confirming-supplier-invitation-response',\r\n\ttemplateUrl: './supplier-confirming-invitation-response.component.html',\r\n\tstyleUrls: ['./supplier-confirming-invitation-response.component.css'],\r\n})\r\nexport class ConfirmingSupplierInvitationResponseComponent implements OnInit {\r\n\tprivate tokenId: string;\r\n\tprivate invitationId: string;\r\n\tprivate invitedUserEmail: string;\r\n\tprivate publicInviteCompanyForNetworkTicket: PublicInviteCompanyForNetworkTicket = new PublicInviteCompanyForNetworkTicket();\r\n\r\n\tpublic newUser: boolean;\r\n\tpublic registerUserInput: RegisterUserInput = new RegisterUserInput();\r\n\tpublic supplierIncludeInAutomaticFundingRequest: boolean = false;\r\n\tpublic isPerformingRequest: boolean = false;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\tpublic invitingCompany: PublicCompany = new PublicCompany();\r\n\tpublic invitedCompany: Company = new Company();\r\n\r\n\tpublic invitedUser: User = new User();\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\tpublic fundingRequestConfirmingContract: PublicContract;\r\n\r\n\tpublic invitedUserIdentification: string;\r\n\tpublic invitationCompaniesIdentification: string;\r\n\tpublic invitationTermsAndConditionsAcceptance: string;\r\n\tpublic invitationCompaniesFundingRequestContractInformation: string;\r\n\tpublic invitationCompaniesFundingRequestConnectionInformation: string;\r\n\r\n\tpublic companyNameRequiredError: string | null = null;\r\n\tpublic companyAddressLine1RequiredError: string | null = null;\r\n\tpublic companyZipCodeRequiredError: string | null = null;\r\n\tpublic companyCityRequiredError: string | null = null;\r\n\tpublic companyTimeZoneRequiredError: string | null = null;\r\n\tpublic companyLanguageCodeRequiredError: string | null = null;\r\n\tpublic companyShareCapitalRequiredError: string | null = null;\r\n\r\n\tpublic registerUserInputUsername: string | null = null;\r\n\tpublic registerUserInputInvalidEmail: string | null = null;\r\n\tpublic registerUserInputEmail: string | null = null;\r\n\tpublic registerUserInputPawd: string | null = null;\r\n\tpublic registerUserInputPawdsDoNotMatch: string | null = null;\r\n\tpublic RepeatePawd: string | null = null;\r\n\tpublic registerUserInputRepeatePawd: string | null = null;\r\n\tpublic registerUserInputLanguageCode: string | null = null;\r\n\tpublic registerUserInputTimeZone: string | null = null;\r\n\tpublic registerUserInputName: string | null = null;\r\n\tpublic registerUserInputTelephone: string | null = null;\r\n\r\n\tpublic contextualizationText: string | null = null;\r\n\tpublic textTolinkWithContract: string | null = null;\r\n\tpublic viewContract: string | null = null;\r\n\tpublic isContractAccepted: boolean;\r\n\tpublic contractBlob: Blob;\r\n\r\n\tpublic textTolinkWithPersonalDataConsentDocument: string | null = null;\r\n\tpublic viewPersonalDataConsentDocument: string | null = null;\r\n\tpublic textTolinkWithPersonalDataConsentDocumentPart2: string | null = null;\r\n\tpublic isPersonalDataConsentDocumentAccepted: boolean;\r\n\tpublic personalDataConsentDocumentBlob: Blob;\r\n\r\n\tpublic showSucessSubmission: boolean = false;\r\n\tpublic sucessSubmissionContent: string | null = null;\r\n\tpublic sucessSubmissionButtonText: string | null = null;\r\n\r\n\tpublic tokenAsExpired: boolean = false;\r\n\tpublic tokenAsExpiredContent: string | null = null;\r\n\tpublic tokenAsExpiredButtonText: string | null = null;\r\n\r\n\tpublic tokenUsed: boolean = false;\r\n\tpublic tokenUsedContent: string | null = null;\r\n\tpublic tokenUsedButtonText: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentAcceptance: PersonalDataConsentDocumentAcceptance | null = null;\r\n\tprivate legalUserAcceptance: CompanyLegalAcceptance | null = null;\r\n\t/**\r\n\t * This is the language code defined by the user (check User Data section on the page).\r\n\t * @summary Affects the page resources as well as these legal documents: Terms and Conditions and GDPR policy.\r\n\t * @description This language code should only be changed by the dropdown in the User Data section,\r\n\t * and NOT by the dropdown in the Company Data section.\r\n\t */\r\n\tpublic pageDisplayLanguageCode: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentName: string | null = null;\r\n\tprivate termsConditionsDocumentName: string | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate commonValidationsService: CommonValidationsService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pageDisplayLanguageCode = this.appContext.getApplicationLanguageCode(); //start by assuming this language code, after getting additional data, set this language code properly\r\n\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tlet base64InvitationContext = params['invitationContext'];\r\n\r\n\t\t\tif (!base64InvitationContext) {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get invitationContext from route...');\r\n\t\t\t}\r\n\r\n\t\t\t//base64 to string\r\n\t\t\tlet invitationContext = atob(base64InvitationContext);\r\n\r\n\t\t\tif (!!invitationContext) {\r\n\t\t\t\tlet parameters: string[] = invitationContext.split('&');\r\n\r\n\t\t\t\tif (parameters.length < 3) this.notificationService.addDanger('Could not get invitationContext content...');\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.tokenId = parameters[0].split(':')[1];\r\n\t\t\t\t\tthis.invitationId = parameters[1].split(':')[1];\r\n\t\t\t\t\tthis.invitedUserEmail = parameters[2].split(':')[1];\r\n\r\n\t\t\t\t\tif (!!this.tokenId && !!this.invitationId && !!this.invitedUserEmail) {\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\tconst getCompanyInvitationTicketServiceCall = this.serverApiService.getCompanyInvitationTicket(this.invitationId, this.tokenId);\r\n\t\t\t\t\t\tconst isUserRegisteredServiceCall = this.serverApiService.isUserRegistered(this.invitedUserEmail);\r\n\t\t\t\t\t\tconst getTimeZonesServiceCall = this.serverApiService.getTimeZones();\r\n\t\t\t\t\t\tconst languageCodesServiceCall = this.serverApiService.getLanguageCodes();\r\n\t\t\t\t\t\tconst countryCodesServiceCall = this.serverApiService.getCountryCodes();\r\n\t\t\t\t\t\tconst getUserLanguageCodeServiceCall = this.serverApiService.getUserLanguageCode(this.invitedUserEmail);\r\n\r\n\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t> = [];\r\n\r\n\t\t\t\t\t\tservicesCallsToMake.push(getCompanyInvitationTicketServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(isUserRegisteredServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getTimeZonesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(languageCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(countryCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getUserLanguageCodeServiceCall);\r\n\r\n\t\t\t\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\t\t\t\t\tconst getCompanyInvitationTicketResult = opResults[0] as OperationResult;\r\n\t\t\t\t\t\t\tconst isUserRegisteredResult = opResults[1] as OperationResult;\r\n\t\t\t\t\t\t\tconst getTimeZonesResult = opResults[2] as OperationResult;\r\n\t\t\t\t\t\t\tconst languageCodesResult = opResults[3] as OperationResult;\r\n\t\t\t\t\t\t\tconst countryCodesResult = opResults[4] as OperationResult;\r\n\t\t\t\t\t\t\tconst getUserLanguageCodeResult = opResults[5] as OperationResult;\r\n\r\n\t\t\t\t\t\t\tif (!getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getCompanyInvitationTicketResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!isUserRegisteredResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(isUserRegisteredResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!getTimeZonesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getTimeZonesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!languageCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(languageCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!countryCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(countryCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (\r\n\t\t\t\t\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t\t\t\t\tisUserRegisteredResult.IsValid &&\r\n\t\t\t\t\t\t\t\tgetTimeZonesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tlanguageCodesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tcountryCodesResult.IsValid\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket = getCompanyInvitationTicketResult.Data;\r\n\t\t\t\t\t\t\t\tthis.tokenAsExpired = this.publicInviteCompanyForNetworkTicket.IsExpired;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenAsExpired) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenAsExpiredMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.tokenUsed = this.publicInviteCompanyForNetworkTicket.InvitationStatus !== InvitationStatus.Processed;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenUsed) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenUsedMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.processValidGetUserInfoResult(isUserRegisteredResult);\r\n\r\n\t\t\t\t\t\t\t\tthis.invitingCompany = this.publicInviteCompanyForNetworkTicket.InvitingCompany;\r\n\t\t\t\t\t\t\t\tthis.countryCodes = countryCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.languageCodes = languageCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(getTimeZonesResult.Data, false);\r\n\r\n\t\t\t\t\t\t\t\tlet legalDocumentsLanguageCode = this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode;\r\n\r\n\t\t\t\t\t\t\t\t// BF 2024-01-11 [EIF-543]\r\n\t\t\t\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data) {\r\n\t\t\t\t\t\t\t\t\tlegalDocumentsLanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t\t\tObservable<\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\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\tconst createUserLegalAcceptanceServiceCall =\r\n\t\t\t\t\t\t\t\t\tthis.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\t\t\t\t\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCall = this.serverApiService.getPublicSettingsPerCountryCode(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode.toUpperCase()\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getPublicSettingsPerCountryCodeServiceCall);\r\n\t\t\t\t\t\t\t\tconst getExtendedPublicCompanyByVatNumberServiceAll = this.serverApiService.getExtendedPublicCompanyByVatNumber(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getExtendedPublicCompanyByVatNumberServiceAll);\r\n\t\t\t\t\t\t\t\tconst getFundingRequestPublicContractServiceCall = this.serverApiService.getPublicConfirmingContract(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvolvedContractId\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getFundingRequestPublicContractServiceCall);\r\n\r\n\t\t\t\t\t\t\t\tconst getAllRequestsLegalDocuments = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\t\t\tgetAllRequestsLegalDocuments.subscribe({\r\n\t\t\t\t\t\t\t\t\tnext: (operationResults) => {\r\n\t\t\t\t\t\t\t\t\t\tconst createUserLegalAcceptanceResult = operationResults[0] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentResult =\r\n\t\t\t\t\t\t\t\t\t\t\toperationResults[1] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCallResult = operationResults[2] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getInvitedCompanyServiceCallResult = operationResults[3] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getFundingRequestPublicContractCallResult = operationResults[4] as OperationResult;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createUserLegalAcceptanceResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createPersonalDataConsentDocumentResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!getPublicSettingsPerCountryCodeServiceCallResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(getPublicSettingsPerCountryCodeServiceCallResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!getFundingRequestPublicContractCallResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(getFundingRequestPublicContractCallResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (\r\n\t\t\t\t\t\t\t\t\t\t\tcreateUserLegalAcceptanceResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tcreatePersonalDataConsentDocumentResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tcreatePersonalDataConsentDocumentResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tgetPublicSettingsPerCountryCodeServiceCallResult.IsValid\r\n\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\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\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.ContentType\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\tthis.fundingRequestConfirmingContract = getFundingRequestPublicContractCallResult.Data;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.IsValid ||\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.Errors?.every((e) => e.Code == ServerErrors.CompanyNotFound)\r\n\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getInvitedCompanyServiceCallResult.IsValid && getInvitedCompanyServiceCallResult.Errors?.length == 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: getInvitedCompanyServiceCallResult.Data.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: getInvitedCompanyServiceCallResult.Data.Name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: getInvitedCompanyServiceCallResult.Data.VatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: getInvitedCompanyServiceCallResult.Data.CountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: getInvitedCompanyServiceCallResult.Data.LanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: getInvitedCompanyServiceCallResult.Data.TimeZone,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine1: getInvitedCompanyServiceCallResult.Data.AddressLine1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine2: getInvitedCompanyServiceCallResult.Data.AddressLine2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine3: getInvitedCompanyServiceCallResult.Data.AddressLine3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tZipCode: getInvitedCompanyServiceCallResult.Data.ZipCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCity: getInvitedCompanyServiceCallResult.Data.City,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCodeList: getInvitedCompanyServiceCallResult.Data.ActivityCodeList,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCode: getInvitedCompanyServiceCallResult.Data.ActivityCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShareCapital: getInvitedCompanyServiceCallResult.Data.ShareCapital,\r\n\t\t\t\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\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: this.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedCompanyName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: this.publicInviteCompanyForNetworkTicket.InvitedCompanyTimeZone,\r\n\t\t\t\t\t\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\tthis.registerUserInput.Name = this.invitedUser.Name;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.Email = this.invitedUserEmail;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.TimeZone = this.invitedCompany.TimeZone;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = this.invitedCompany.LanguageCode;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.updateResources();\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\tthis.processInvalidResult(getInvitedCompanyServiceCallResult);\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\tthis.isPerformingRequest = 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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t\t\t'[ConfirmingBuyerInvitationResponseComponent::getExtendedPublicCompanyByVatNumber] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t\t\t'[ConfirmingBuyerInvitationResponseComponent::getExtendedPublicCompanyByVatNumber] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\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} else this.notificationService.addDanger('Could not get invitationContext parameters...');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\topenContract() {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.contractBlob, this.termsConditionsDocumentName!, false);\r\n\t}\r\n\r\n\tupdateResources(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.invitedUser = {\r\n\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\r\n\t\t};\r\n\r\n\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationCompaniesFundingRequestContractInformation = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesFundingRequestContractInformation',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[FinancierName]', this.fundingRequestConfirmingContract.Financier.Name)\r\n\t\t\t.replace('[FinancierCountryCode]', this.fundingRequestConfirmingContract.Financier.CountryCode)\r\n\t\t\t.replace('[FinancierVatNumber]', this.fundingRequestConfirmingContract.Financier.VatNumber);\r\n\r\n\t\tthis.invitationCompaniesFundingRequestConnectionInformation = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesFundingRequestConnectionInformation',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[SWIFT]', this.publicInviteCompanyForNetworkTicket.InvitedCompanySWIFT)\r\n\t\t\t.replace('[IBAN]', this.publicInviteCompanyForNetworkTicket.InvitedCompanyIBAN);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\t}\r\n\r\n\tpublic openPersonalDataConsentDocument(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.personalDataConsentDocumentBlob, this.personalDataConsentDocumentName!, false);\r\n\t}\r\n\r\n\tpublic refuseInvitation(): void {\r\n\t\tlet refuseCompanyInviteForConfirmingNetwork: RefuseNewCompanyInviteForConfirmingNetwork = {\r\n\t\t\tInvitationId: this.invitationId,\r\n\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\tToken: this.tokenId,\r\n\t\t};\r\n\r\n\t\tconst inviteCompanyForConfirmingNetworkServiceCall = this.serverApiService.refuseNewCompanyInviteForConfirmingNetwork(\r\n\t\t\trefuseCompanyInviteForConfirmingNetwork\r\n\t\t);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tinviteCompanyForConfirmingNetworkServiceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidRefuseCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidRefuseCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[CompanyConfirmingInvitationRefuseComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[CompanyConfirmingInvitationRefuseComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic acceptInvitation(): void {\r\n\t\tif (this.formIsValid()) {\r\n\t\t\tthis.isPerformingRequest = true; // request indicator + block UI\r\n\r\n\t\t\tif (this.newUser) this.registerUserInput.Username = this.registerUserInput.Email;\r\n\r\n\t\t\tlet acceptCompanyInviteForConfirmingNetwork: AcceptNewCompanyInviteForConfirmingNetwork = <\r\n\t\t\t\tAcceptNewCompanyInviteForConfirmingNetwork\r\n\t\t\t>{\r\n\t\t\t\tToken: this.tokenId,\r\n\t\t\t\tTermsAndConditionsDocumentAcceptanceHash: this.legalUserAcceptance?.AcceptanceHash,\r\n\t\t\t\tTermsAndConditionsDocumentId: this.legalUserAcceptance?.DocumentId,\r\n\t\t\t\tPersonalDataConsentDocumentAcceptanceHash: this.personalDataConsentDocumentAcceptance?.AcceptanceHash,\r\n\t\t\t\tPersonalDataConsentDocumentId: this.personalDataConsentDocumentAcceptance?.DocumentId,\r\n\t\t\t\tNewCompany: this.invitedCompany,\r\n\t\t\t\tInvitationId: this.invitationId,\r\n\t\t\t\tNewUser: this.registerUserInput,\r\n\t\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\t\tLanguageCode: this.pageDisplayLanguageCode,\r\n\t\t\t};\r\n\r\n\t\t\tconst inviteCompanyForConfirmingNetworkServiceCall = this.serverApiService.acceptNewSupplierInviteForConfirmingNetwork(\r\n\t\t\t\tacceptCompanyInviteForConfirmingNetwork\r\n\t\t\t);\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tinviteCompanyForConfirmingNetworkServiceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tthis.processValidAcceptCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.processInvalidAcceptCompanyInviteForConfirmingNetworkResult(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t);\r\n\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForConfirmingNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\thttpErrorResponse.message\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\tprivate processInvalidRefuseCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidRefuseCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalSucessInformationContentRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationConfirmActionTextRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidCreateUserLegalAcceptanceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(this.translateService.translateByLanguage(e.Code, 'list-errorCodes'))\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidAcceptCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalSucessInformationContentAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationConfirmActionTextAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidAcceptCompanyInviteForConfirmingNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidCreatePersonalDataConsentDocumentResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidGetPublicSettingsPerCountryCodeServiceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate formIsValid(): boolean {\r\n\t\tthis.companyNameRequiredError = !this.invitedCompany.Name ? 'REQUIRED' : null;\r\n\t\tthis.companyAddressLine1RequiredError = !this.invitedCompany.AddressLine1 ? 'REQUIRED' : null;\r\n\t\tthis.companyZipCodeRequiredError = !this.invitedCompany.ZipCode ? 'REQUIRED' : null;\r\n\t\tthis.companyCityRequiredError = !this.invitedCompany.City ? 'REQUIRED' : null;\r\n\t\tthis.companyTimeZoneRequiredError = !this.invitedCompany.TimeZone ? 'REQUIRED' : null;\r\n\t\tthis.companyLanguageCodeRequiredError = !this.invitedCompany.LanguageCode ? 'REQUIRED' : null;\r\n\t\tthis.companyShareCapitalRequiredError = !this.invitedCompany.ShareCapital ? 'REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputEmail = this.newUser && !this.registerUserInput.Email ? 'EMAIL_REQUIRED' : null;\r\n\t\tthis.registerUserInputInvalidEmail =\r\n\t\t\tthis.newUser && !!this.registerUserInput.Email && !this.emailIsValid(this.registerUserInput.Email) ? 'EMAIL_INVALID' : null;\r\n\t\tthis.registerUserInputName = this.newUser && !this.registerUserInput.Name ? 'NAME_REQUIRED' : null;\r\n\t\tthis.registerUserInputLanguageCode = this.newUser && !this.registerUserInput.LanguageCode ? 'LANGUAGE_CODE_REQUIRED' : null;\r\n\t\tthis.registerUserInputPawd = this.newUser && !this.registerUserInput.Pawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputRepeatePawd = this.newUser && !this.registerUserInput.RepeatePawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputTelephone = this.newUser && !this.registerUserInput.Telephone ? 'TELEPHONE_REQUIRED' : null;\r\n\t\tthis.registerUserInputTimeZone = this.newUser && !this.registerUserInput.TimeZone ? 'TIMEZONE_REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputPawdsDoNotMatch =\r\n\t\t\tthis.newUser &&\r\n\t\t\t!!this.registerUserInput.RepeatePawd &&\r\n\t\t\t!!this.registerUserInput.Pawd &&\r\n\t\t\tthis.registerUserInput.RepeatePawd != this.registerUserInput.Pawd\r\n\t\t\t\t? 'PASSWORDS_DO_NOT_MATCH'\r\n\t\t\t\t: null;\r\n\r\n\t\tlet newUserValidations = !this.newUser\r\n\t\t\t? true\r\n\t\t\t: !this.registerUserInputEmail &&\r\n\t\t\t !this.registerUserInputInvalidEmail &&\r\n\t\t\t !this.registerUserInputName &&\r\n\t\t\t !this.registerUserInputLanguageCode &&\r\n\t\t\t !this.registerUserInputPawd &&\r\n\t\t\t !this.registerUserInputRepeatePawd &&\r\n\t\t\t !this.registerUserInputTelephone &&\r\n\t\t\t !this.registerUserInputPawdsDoNotMatch &&\r\n\t\t\t !this.registerUserInputTimeZone;\r\n\r\n\t\tlet invitedCompanyValidations =\r\n\t\t\t!this.companyNameRequiredError &&\r\n\t\t\t!this.companyAddressLine1RequiredError &&\r\n\t\t\t!this.companyZipCodeRequiredError &&\r\n\t\t\t!this.companyCityRequiredError &&\r\n\t\t\t!this.companyTimeZoneRequiredError &&\r\n\t\t\t!this.companyLanguageCodeRequiredError &&\r\n\t\t\t!this.companyShareCapitalRequiredError;\r\n\r\n\t\tlet legalAcceptances = this.legalUserAcceptance != null && this.personalDataConsentDocumentAcceptance != null;\r\n\r\n\t\treturn newUserValidations && invitedCompanyValidations && legalAcceptances;\r\n\t}\r\n\r\n\tpublic checkEmail(value) {\r\n\t\tif (!this.registerUserInput.Email) {\r\n\t\t\tthis.registerUserInputEmail = 'EMAIL_REQUIRED';\r\n\t\t} else this.registerUserInputEmail = null;\r\n\r\n\t\tthis.emailIsValid(value);\r\n\t}\r\n\r\n\tprivate emailIsValid(value): boolean {\r\n\t\tlet isValid = this.commonValidationsService.emailIsValid(value);\r\n\r\n\t\tif (!isValid) {\r\n\t\t\tthis.registerUserInputInvalidEmail = 'EMAIL_INVALID';\r\n\t\t} else this.registerUserInputInvalidEmail = null;\r\n\r\n\t\treturn isValid;\r\n\t}\r\n\r\n\tpublic validateOnlyNumbers(e) {\r\n\t\treturn this.utilitiesService.validateOnlyNumbers(e);\r\n\t}\r\n\r\n\tprivate processValidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tlet userIsAlreadyRegistered: boolean = operationResult.Data;\r\n\t\tthis.newUser = !userIsAlreadyRegistered;\r\n\t}\r\n\r\n\tprivate processInvalidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate processActiveTokenResult(operationResult: OperationResult): void {\r\n\t\t//Check to see if a given user has not already been created in the mean while\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tconst getUserByUsername = this.serverApiService.isUserRegistered(this.invitedUserEmail);\r\n\r\n\t\tgetUserByUsername.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidGetUserInfoResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidGetUserInfoResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[ConfirmingSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[ConfirmingSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate retrivedTokenAsExpiredMessages(): void {\r\n\t\tthis.tokenAsExpiredContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenAsExpiredContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenAsExpiredButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenAsExpiredButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tprivate retrivedTokenUsedMessages(): void {\r\n\t\tthis.tokenUsedContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenUsedContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenUsedButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-confirming-invitation-response.modalInformationTokenUsedButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tpublic translateMessagesWithUserLanguageCode(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\t\tthis.appContext.setApplicationLanguageCode(this.registerUserInput.LanguageCode);\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationCompaniesFundingRequestContractInformation = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesFundingRequestContractInformation',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[FinancierName]', this.fundingRequestConfirmingContract.Financier.Name)\r\n\t\t\t.replace('[FinancierCountryCode]', this.fundingRequestConfirmingContract.Financier.CountryCode)\r\n\t\t\t.replace('[FinancierVatNumber]', this.fundingRequestConfirmingContract.Financier.VatNumber);\r\n\r\n\t\tthis.invitationCompaniesFundingRequestConnectionInformation = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationCompaniesFundingRequestConnectionInformation',\r\n\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[SWIFT]', this.publicInviteCompanyForNetworkTicket.InvitedCompanySWIFT)\r\n\t\t\t.replace('[IBAN]', this.publicInviteCompanyForNetworkTicket.InvitedCompanyIBAN);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.translateDocumentsWithInvitedCompanyLanguageCode(this.pageDisplayLanguageCode);\r\n\t}\r\n\r\n\tprivate translateDocumentsWithInvitedCompanyLanguageCode(languageCodeToUse: string): void {\r\n\t\tlet servicesCallsToMake: Array<\r\n\t\t\tObservable | OperationResult>\r\n\t\t> = [];\r\n\r\n\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tconst createUserLegalAcceptanceServiceCall = this.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t);\r\n\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\tconst createUserLegalAcceptanceResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst createPersonalDataConsentDocumentResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) this.processInvalidCreateUserLegalAcceptanceResult(createUserLegalAcceptanceResult);\r\n\r\n\t\t\t\tif (!createPersonalDataConsentDocumentResult.IsValid)\r\n\t\t\t\t\tthis.processInvalidCreatePersonalDataConsentDocumentResult(createPersonalDataConsentDocumentResult);\r\n\r\n\t\t\t\tif (createUserLegalAcceptanceResult.IsValid && createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(this.legalUserAcceptance.Document, this.legalUserAcceptance.ContentType);\r\n\r\n\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidResult(operationResult: OperationResult) {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate showInvitationContextInformationWhenTokenUsedOrExpired(\r\n\t\tgetCompanyInvitationTicketResult: OperationResult,\r\n\t\tgetUserLanguageCodeResult: OperationResult\r\n\t): void {\r\n\t\tif (!getCompanyInvitationTicketResult.IsValid) this.processInvalidResult(getCompanyInvitationTicketResult);\r\n\r\n\t\tif (getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\tthis.invitedUser = {\r\n\t\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\r\n\t\t\t};\r\n\r\n\t\t\tthis.registerUserInput.TimeZone = getCompanyInvitationTicketResult.Data.InvitingCompany.TimeZone;\r\n\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\telse if (\r\n\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany?.LanguageCode\r\n\t\t\t)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t'client'\r\n\t\t\t\t)\r\n\t\t\t\t.replace('[InvitedCompanyName]', getCompanyInvitationTicketResult.Data.InvitedCompanyName)\r\n\t\t\t\t.replace('[InvitedCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitedCompanyCountryCode)\r\n\t\t\t\t.replace('[InvitedCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitedCompanyVatNumber)\r\n\t\t\t\t.replace('[InvitingCompanyName]', getCompanyInvitationTicketResult.Data.InvitingCompany.Name)\r\n\t\t\t\t.replace('[InvitingCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitingCompany.CountryCode)\r\n\t\t\t\t.replace('[InvitingCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitingCompany.VatNumber);\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n\t
    \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
    \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{{ 'company-relation-invitation-response.welcomeHeader' | translate: languageCode : pageDisplayLanguageCode }}\r\n\t\t\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{{ invitedUserIdentification }}\r\n\t\t\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
    \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\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
    \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
    \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
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.invitedCompanyContextualizationText'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\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\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{{ 'company-relation-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\t'company-relation-invitation-response.AddressLine1'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\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\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\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\t'company-relation-invitation-response.ZipCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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{{ 'company-relation-invitation-response.City' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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\t\t'company-relation-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\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\t'company-relation-invitation-response.LanguageCode'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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{{ 'field.required' | translate }}\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
    \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\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.contractInformation' | translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\r\n\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\t\t\t\t\t\t'new-company-confirming-invitation-response.Currency'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'new-company-confirming-invitation-response.financier'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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\t{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'new-company-confirming-invitation-response.bankInfoSupplier'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ fundingRequestConfirmingContract?.ExternalContractId }}\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{{ 'new-company-confirming-invitation-response.confirming' | translate }}\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\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ fundingRequestConfirmingContract?.Currency }}\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ fundingRequestConfirmingContract?.Financier?.Name }}\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{{ fundingRequestConfirmingContract?.Financier?.CountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {{ fundingRequestConfirmingContract?.Financier?.VatNumber }}\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\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'relation.revise.IBAN' | translate }}:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ publicInviteCompanyForNetworkTicket?.InvitedCompanyIBAN }}\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{{ 'relation.revise.SWIFT' | translate }}:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ publicInviteCompanyForNetworkTicket?.InvitedCompanySWIFT }}\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
    \r\n\t\t\t\t\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\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\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'new-company-confirming-invitation-response.externalContractId'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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\t\t{{ fundingRequestConfirmingContract?.ExternalContractId }}\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{{ 'new-company-confirming-invitation-response.confirming' | translate }}\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\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'new-company-confirming-invitation-response.Currency'\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| translate: languageCode : pageDisplayLanguageCode\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{{ fundingRequestConfirmingContract?.Currency }}\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\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'new-company-confirming-invitation-response.financier'\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| translate: languageCode : pageDisplayLanguageCode\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{{ fundingRequestConfirmingContract?.Financier?.Name }}\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{{ fundingRequestConfirmingContract?.Financier?.CountryCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {{ fundingRequestConfirmingContract?.Financier?.VatNumber }}\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\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'new-company-confirming-invitation-response.bankInfoSupplier'\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| translate: languageCode : pageDisplayLanguageCode\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{{ 'relation.revise.IBAN' | translate }}:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ publicInviteCompanyForNetworkTicket?.InvitedCompanyIBAN }}\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{{ 'relation.revise.SWIFT' | translate }}:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ publicInviteCompanyForNetworkTicket?.InvitedCompanySWIFT }}\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
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.userDataForRegistration'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Email' | translate: languageCode : pageDisplayLanguageCode\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'field.invalid.email' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Telephone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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\t\t'resetPassword.passwordRules' | translate: languageCode : pageDisplayLanguageCode\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
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'resetPassword.passwordRule1' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule2' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule3' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule4' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule5' | translate: languageCode : pageDisplayLanguageCode }}\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\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\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{{ 'user-invitation-response.repeatePassword' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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'field.passwordsDoNotMatch' | translate: languageCode : pageDisplayLanguageCode\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\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{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.LanguageCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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{{ 'user-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\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\t\t{{ textTolinkWithContract }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewContract }}\r\n\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocument}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewPersonalDataConsentDocument }} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocumentPart2 }}\r\n\t\t\t\t\t\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\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'company-relation-invitation-response.accept' | translate: languageCode : pageDisplayLanguageCode\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'company-relation-invitation-response.refuse' | translate: languageCode : pageDisplayLanguageCode\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\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
    \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 { Component, OnInit } from '@angular/core';\r\nimport { RegisterUserInput } from '../../../../models/User/register-user-input';\r\nimport { OperationError } from '../../../../models/server-result/operation-error';\r\nimport { PublicCompany } from '../../../../models/companies/public-company';\r\nimport { Company } from '../../../../models/companies/company';\r\nimport { User } from '../../../../models/User/user';\r\nimport { CodeDecodeValue } from '../../../../models/common/code-decode-value';\r\nimport { ServerApiService } from '../../../../server-api/server-api.service';\r\nimport { LogService } from '../../../../services/log/log.service';\r\nimport { NotificationService } from '../../../../services/notification/notification.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { TranslateService } from '../../../../services/translate/translate.service';\r\nimport { UtilitiesService } from '../../../../services/utils/utilities.service';\r\nimport { AppContextService } from '../../../../services/app-context.service';\r\nimport { OperationResult } from '../../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { CompanyLegalAcceptanceRequest } from '../../../../models/companies/company-legal-acceptance-request';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { PersonalDataConsentDocumentRequest } from '../../../../models/User/personal-data-consent-document-request';\r\nimport { PersonalDataConsentDocumentAcceptance } from '../../../../models/User/personal-data-consent-document-acceptance';\r\nimport { TimeZoneValue } from '../../../../models/common/time-zone-value';\r\nimport { CommonValidationsService } from '../../../../services/validations/common-validation.service';\r\nimport { AcceptCompanyInviteForFactoringNetwork } from '../../../../models/invitations/factoring/accept-company-invite-factoring-network';\r\nimport { RefuseCompanyInviteForFactoringNetwork } from '../../../../models/invitations/factoring/refuse-company-invite-factoring-network';\r\nimport { ExtendedPublicCompany } from '../../../../models/companies/extended-public-company';\r\nimport { SettingsPerCountryCode } from '../../../../models/configurations/settings-per-country-code';\r\nimport { PublicInviteCompanyForNetworkTicket } from '../../../../models/invitations/public-invite-company-network-ticket';\r\nimport { ServerErrors } from '../../../../models/enums/server-errors';\r\nimport { InvitationStatus } from '../../../../models/enums/Invitations/invitation-status';\r\nimport { CompanyLegalAcceptance } from '../../../../models/funding-request/company-legal-acceptance';\r\n\r\n@Component({\r\n\tselector: 'app-factoring-supplier-invitation-response',\r\n\ttemplateUrl: './supplier-invitation-response.component.html',\r\n\tstyleUrls: ['./supplier-invitation-response.component.css'],\r\n})\r\nexport class FactoringSupplierInvitationResponseComponent implements OnInit {\r\n\tprivate tokenId: string;\r\n\tprivate invitationId: string;\r\n\tprivate invitedUserEmail: string;\r\n\tprivate publicInviteCompanyForNetworkTicket: PublicInviteCompanyForNetworkTicket = new PublicInviteCompanyForNetworkTicket();\r\n\r\n\tpublic newUser: boolean;\r\n\tpublic registerUserInput: RegisterUserInput = new RegisterUserInput();\r\n\tpublic isPerformingRequest: boolean = false;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\tpublic invitingCompany: PublicCompany = new PublicCompany();\r\n\tpublic invitedCompany: Company = new Company();\r\n\tpublic invitedUser: User = new User();\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\r\n\tpublic invitedUserIdentification: string;\r\n\tpublic invitationCompaniesIdentification: string;\r\n\tpublic invitationTermsAndConditionsAcceptance: string;\r\n\r\n\tpublic registerUserInputUsername: string | null = null;\r\n\tpublic registerUserInputInvalidEmail: string | null = null;\r\n\tpublic registerUserInputEmail: string | null = null;\r\n\tpublic registerUserInputPawd: string | null = null;\r\n\tpublic registerUserInputPawdsDoNotMatch: string | null = null;\r\n\tpublic RepeatePawd: string | null = null;\r\n\tpublic registerUserInputRepeatePawd: string | null = null;\r\n\tpublic registerUserInputLanguageCode: string | null = null;\r\n\tpublic registerUserInputTimeZone: string | null = null;\r\n\tpublic registerUserInputName: string | null = null;\r\n\tpublic registerUserInputTelephone: string | null = null;\r\n\r\n\tpublic contextualizationText: string | null = null;\r\n\tpublic textTolinkWithContract: string | null = null;\r\n\tpublic viewContract: string | null = null;\r\n\tpublic isContractAccepted: boolean;\r\n\tpublic contractBlob: Blob;\r\n\r\n\tpublic textTolinkWithPersonalDataConsentDocument: string | null = null;\r\n\tpublic viewPersonalDataConsentDocument: string | null = null;\r\n\tpublic textTolinkWithPersonalDataConsentDocumentPart2: string | null = null;\r\n\tpublic isPersonalDataConsentDocumentAccepted: boolean;\r\n\tpublic personalDataConsentDocumentBlob: Blob;\r\n\r\n\tpublic showSucessSubmission: boolean = false;\r\n\tpublic sucessSubmissionContent: string | null = null;\r\n\tpublic sucessSubmissionButtonText: string | null = null;\r\n\tpublic companyNameRequiredError: string | null = null;\r\n\tpublic companyAddressLine1RequiredError: string | null = null;\r\n\tpublic companyZipCodeRequiredError: string | null = null;\r\n\tpublic companyCityRequiredError: string | null = null;\r\n\tpublic companyTimeZoneRequiredError: string | null = null;\r\n\tpublic companyLanguageCodeRequiredError: string | null = null;\r\n\tpublic companyShareCapitalRequiredError: string | null = null;\r\n\r\n\tpublic tokenAsExpired: boolean = false;\r\n\tpublic tokenAsExpiredContent: string | null = null;\r\n\tpublic tokenAsExpiredButtonText: string | null = null;\r\n\r\n\tpublic tokenUsed: boolean = false;\r\n\tpublic tokenUsedContent: string | null = null;\r\n\tpublic tokenUsedButtonText: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentAcceptance: PersonalDataConsentDocumentAcceptance | null = null;\r\n\tprivate legalUserAcceptance: CompanyLegalAcceptance | null = null;\r\n\r\n\tpublic pageDisplayLanguageCode: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentName: string | null = null;\r\n\tprivate termsConditionsDocumentName: string | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate commonValidationsService: CommonValidationsService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pageDisplayLanguageCode = this.appContext.getDefaultLanguageCode(); //start by assuming this language code, after getting additional data, set this language code properly\r\n\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tlet base64InvitationContext = params['invitationContext'];\r\n\r\n\t\t\tif (!base64InvitationContext) {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get invitationContext from route...');\r\n\t\t\t}\r\n\r\n\t\t\t//base64 to string\r\n\t\t\tlet invitationContext = atob(base64InvitationContext);\r\n\r\n\t\t\tif (!!invitationContext) {\r\n\t\t\t\tlet parameters: string[] = invitationContext.split('&');\r\n\r\n\t\t\t\tif (parameters.length < 3) this.notificationService.addDanger('Could not get invitationContext content...');\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.tokenId = parameters[0].split(':')[1];\r\n\t\t\t\t\tthis.invitationId = parameters[1].split(':')[1];\r\n\t\t\t\t\tthis.invitedUserEmail = parameters[2].split(':')[1];\r\n\r\n\t\t\t\t\tif (!!this.tokenId && !!this.invitationId && !!this.invitedUserEmail) {\r\n\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\t\t\t\tconst getCompanyInvitationTicketServiceCall = this.serverApiService.getCompanyInvitationTicket(this.invitationId, this.tokenId);\r\n\t\t\t\t\t\tconst isUserRegisteredServiceCall = this.serverApiService.isUserRegistered(this.invitedUserEmail);\r\n\t\t\t\t\t\tconst getTimeZonesServiceCall = this.serverApiService.getTimeZones();\r\n\t\t\t\t\t\tconst languageCodesServiceCall = this.serverApiService.getLanguageCodes();\r\n\t\t\t\t\t\tconst countryCodesServiceCall = this.serverApiService.getCountryCodes();\r\n\t\t\t\t\t\tconst getUserLanguageCodeServiceCall = this.serverApiService.getUserLanguageCode(this.invitedUserEmail);\r\n\r\n\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t\t| Observable>\r\n\t\t\t\t\t\t> = [];\r\n\r\n\t\t\t\t\t\tservicesCallsToMake.push(getCompanyInvitationTicketServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(isUserRegisteredServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getTimeZonesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(languageCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(countryCodesServiceCall);\r\n\t\t\t\t\t\tservicesCallsToMake.push(getUserLanguageCodeServiceCall);\r\n\r\n\t\t\t\t\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\tgetAllRequests.subscribe((opResults) => {\r\n\t\t\t\t\t\t\tconst getCompanyInvitationTicketResult = opResults[0] as OperationResult;\r\n\t\t\t\t\t\t\tconst isUserRegisteredResult = opResults[1] as OperationResult;\r\n\t\t\t\t\t\t\tconst getTimeZonesResult = opResults[2] as OperationResult;\r\n\t\t\t\t\t\t\tconst languageCodesResult = opResults[3] as OperationResult;\r\n\t\t\t\t\t\t\tconst countryCodesResult = opResults[4] as OperationResult;\r\n\t\t\t\t\t\t\tconst getUserLanguageCodeResult = opResults[5] as OperationResult;\r\n\r\n\t\t\t\t\t\t\tif (!getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getCompanyInvitationTicketResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!isUserRegisteredResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(isUserRegisteredResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!getTimeZonesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(getTimeZonesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!languageCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(languageCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (!countryCodesResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processInvalidResult(countryCodesResult);\r\n\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tif (\r\n\t\t\t\t\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t\t\t\t\tisUserRegisteredResult.IsValid &&\r\n\t\t\t\t\t\t\t\tgetTimeZonesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tlanguageCodesResult.IsValid &&\r\n\t\t\t\t\t\t\t\tcountryCodesResult.IsValid\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket = getCompanyInvitationTicketResult.Data;\r\n\r\n\t\t\t\t\t\t\t\tthis.tokenAsExpired = this.publicInviteCompanyForNetworkTicket.IsExpired;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenAsExpired) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenAsExpiredMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.tokenUsed = this.publicInviteCompanyForNetworkTicket.InvitationStatus !== InvitationStatus.Processed;\r\n\r\n\t\t\t\t\t\t\t\tif (this.tokenUsed) {\r\n\t\t\t\t\t\t\t\t\tthis.retrivedTokenUsedMessages();\r\n\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired(getCompanyInvitationTicketResult, getUserLanguageCodeResult);\r\n\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\tthis.processValidGetUserInfoResult(isUserRegisteredResult);\r\n\r\n\t\t\t\t\t\t\t\tthis.invitingCompany = this.publicInviteCompanyForNetworkTicket.InvitingCompany;\r\n\t\t\t\t\t\t\t\tthis.countryCodes = countryCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.languageCodes = languageCodesResult.Data;\r\n\t\t\t\t\t\t\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(getTimeZonesResult.Data, false);\r\n\r\n\t\t\t\t\t\t\t\tlet legalDocumentsLanguageCode = this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode;\r\n\r\n\t\t\t\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\t\t\t\tlegalDocumentsLanguageCode = getUserLanguageCodeResult.Data;\r\n\r\n\t\t\t\t\t\t\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = <\r\n\t\t\t\t\t\t\t\t\tPersonalDataConsentDocumentRequest\r\n\t\t\t\t\t\t\t\t>{\r\n\t\t\t\t\t\t\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\t\t\t\t\t\t\tLanguageCode: legalDocumentsLanguageCode,\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\tlet servicesCallsToMake: Array<\r\n\t\t\t\t\t\t\t\t\tObservable<\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\r\n\t\t\t\t\t\t\t\t\t\t| OperationResult\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\tconst createUserLegalAcceptanceServiceCall =\r\n\t\t\t\t\t\t\t\t\tthis.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\t\t\t\t\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCall = this.serverApiService.getPublicSettingsPerCountryCode(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode.toUpperCase()\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getPublicSettingsPerCountryCodeServiceCall);\r\n\t\t\t\t\t\t\t\tconst getExtendedPublicCompanyByVatNumberServiceAll = this.serverApiService.getExtendedPublicCompanyByVatNumber(\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\tthis.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\tservicesCallsToMake.push(getExtendedPublicCompanyByVatNumberServiceAll);\r\n\r\n\t\t\t\t\t\t\t\tconst getAllRequestsLegalDocuments = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\t\t\t\tgetAllRequestsLegalDocuments.subscribe({\r\n\t\t\t\t\t\t\t\t\tnext: (operationResults) => {\r\n\t\t\t\t\t\t\t\t\t\tconst createUserLegalAcceptanceResult = operationResults[0] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst createPersonalDataConsentDocumentResult =\r\n\t\t\t\t\t\t\t\t\t\t\toperationResults[1] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getPublicSettingsPerCountryCodeServiceCallResult = operationResults[2] as OperationResult;\r\n\t\t\t\t\t\t\t\t\t\tconst getInvitedCompanyServiceCallResult = operationResults[3] as OperationResult;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createUserLegalAcceptanceResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(createPersonalDataConsentDocumentResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (!getPublicSettingsPerCountryCodeServiceCallResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.processInvalidResult(getPublicSettingsPerCountryCodeServiceCallResult);\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (\r\n\t\t\t\t\t\t\t\t\t\t\tcreateUserLegalAcceptanceResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tcreatePersonalDataConsentDocumentResult.IsValid &&\r\n\t\t\t\t\t\t\t\t\t\t\tgetPublicSettingsPerCountryCodeServiceCallResult.IsValid\r\n\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\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\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.Document,\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.legalUserAcceptance.ContentType\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\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.IsValid ||\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetInvitedCompanyServiceCallResult.Errors?.every((e) => e.Code == ServerErrors.CompanyNotFound)\r\n\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getInvitedCompanyServiceCallResult.IsValid && getInvitedCompanyServiceCallResult.Errors?.length == 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: getInvitedCompanyServiceCallResult.Data.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: getInvitedCompanyServiceCallResult.Data.Name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: getInvitedCompanyServiceCallResult.Data.VatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: getInvitedCompanyServiceCallResult.Data.CountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: getInvitedCompanyServiceCallResult.Data.LanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: getInvitedCompanyServiceCallResult.Data.TimeZone,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine1: getInvitedCompanyServiceCallResult.Data.AddressLine1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine2: getInvitedCompanyServiceCallResult.Data.AddressLine2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAddressLine3: getInvitedCompanyServiceCallResult.Data.AddressLine3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tZipCode: getInvitedCompanyServiceCallResult.Data.ZipCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCity: getInvitedCompanyServiceCallResult.Data.City,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCodeList: getInvitedCompanyServiceCallResult.Data.ActivityCodeList,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tActivityCode: getInvitedCompanyServiceCallResult.Data.ActivityCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShareCapital: getInvitedCompanyServiceCallResult.Data.ShareCapital,\r\n\t\t\t\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\tthis.invitedCompany = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCountryCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyCountryCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVatNumber: this.publicInviteCompanyForNetworkTicket.InvitedCompanyVatNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLanguageCode: this.publicInviteCompanyForNetworkTicket.InvitedCompanyLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedCompanyName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTimeZone: this.publicInviteCompanyForNetworkTicket.InvitedCompanyTimeZone,\r\n\t\t\t\t\t\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\tthis.registerUserInput.Name = this.invitedUser.Name;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.Email = this.invitedUserEmail;\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.TimeZone = this.invitedCompany.TimeZone;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = this.invitedCompany.LanguageCode;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'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\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'client'\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\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'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\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'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\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'client'\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\tthis.invitedUser = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\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\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response.invitedUserIdentification',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'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.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'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.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'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.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'list-DownloadDocNames'\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\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'list-DownloadDocNames'\r\n\t\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\tthis.processInvalidResult(getInvitedCompanyServiceCallResult);\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\tthis.isPerformingRequest = 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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\t\t\t\t\t\tthis.logger.error('[FactoringSupplierInvitationResponseComponent] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t\t\t'[FactoringSupplierInvitationResponseComponent] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\t\t\t\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} else this.notificationService.addDanger('Could not get invitationContext parameters...');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic openContract(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.contractBlob, this.termsConditionsDocumentName!, false);\r\n\t}\r\n\r\n\tpublic openPersonalDataConsentDocument(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.personalDataConsentDocumentBlob, this.personalDataConsentDocumentName!, false);\r\n\t}\r\n\r\n\tpublic refuseInvitation(): void {\r\n\t\tlet refuseCompanyInviteForFactoringNetwork: RefuseCompanyInviteForFactoringNetwork = {\r\n\t\t\tInvitationId: this.invitationId,\r\n\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\tToken: this.tokenId,\r\n\t\t};\r\n\r\n\t\tconst inviteCompanyForFactoringNetworkServiceCall = this.serverApiService.refuseCompanyInviteForFactoringNetwork(\r\n\t\t\trefuseCompanyInviteForFactoringNetwork\r\n\t\t);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tinviteCompanyForFactoringNetworkServiceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidRefuseCompanyInviteForFactoringNetworkResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidRefuseCompanyInviteForFactoringNetworkResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t'[FactoringSupplierInvitationResponseComponent::acceptCompanyInviteForFactoringNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[FactoringSupplierInvitationResponseComponent::acceptCompanyInviteForFactoringNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic acceptInvitation(): void {\r\n\t\tif (this.formIsValid()) {\r\n\t\t\tthis.isPerformingRequest = true; // request indicator + block UI\r\n\r\n\t\t\tif (this.newUser) this.registerUserInput.Username = this.registerUserInput.Email;\r\n\r\n\t\t\tlet acceptCompanyInviteForFactoringNetwork: AcceptCompanyInviteForFactoringNetwork = {\r\n\t\t\t\tToken: this.tokenId,\r\n\t\t\t\tTermsAndConditionsDocumentAcceptanceHash: this.legalUserAcceptance?.AcceptanceHash,\r\n\t\t\t\tTermsAndConditionsDocumentId: this.legalUserAcceptance?.DocumentId,\r\n\t\t\t\tInvitationId: this.invitationId,\r\n\t\t\t\tNewUser: this.registerUserInput,\r\n\t\t\t\tNewCompany: this.invitedCompany,\r\n\t\t\t\tInvitedUserEmail: this.invitedUserEmail,\r\n\t\t\t\tPersonalDataConsentDocumentAcceptanceHash: this.personalDataConsentDocumentAcceptance?.AcceptanceHash,\r\n\t\t\t\tPersonalDataConsentDocumentId: this.personalDataConsentDocumentAcceptance?.DocumentId,\r\n\t\t\t\tLanguageCode: this.pageDisplayLanguageCode,\r\n\t\t\t};\r\n\r\n\t\t\tconst inviteCompanyForFactoringNetworkServiceCall = this.serverApiService.acceptSupplierInviteForFactoringNetwork(\r\n\t\t\t\tacceptCompanyInviteForFactoringNetwork\r\n\t\t\t);\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tinviteCompanyForFactoringNetworkServiceCall.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tthis.processValidAcceptCompanyInviteForFactoringNetworkResult(operationResult);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.processInvalidAcceptCompanyInviteForFactoringNetworkResult(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForFactoringNetwork] HttpErrorResponse: ',\r\n\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t);\r\n\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t'[CompanyConfirmingInvitationAcceptComponent::acceptCompanyInviteForFactoringNetwork] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\thttpErrorResponse.message\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\tprivate processInvalidRefuseCompanyInviteForFactoringNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidRefuseCompanyInviteForFactoringNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalSucessInformationContentRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationConfirmActionTextRefuse',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidCreateUserLegalAcceptanceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidCreatePersonalDataConsentDocumentResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprocessInvalidGetPublicSettingsPerCountryCodeServiceResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processValidAcceptCompanyInviteForFactoringNetworkResult(operationResult: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalSucessInformationContentAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationConfirmActionTextAccept',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidAcceptCompanyInviteForFactoringNetworkResult(operationResult: OperationResult): void {\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.pageDisplayLanguageCode!, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate formIsValid(): boolean {\r\n\t\tthis.companyNameRequiredError = !this.invitedCompany.Name ? 'REQUIRED' : null;\r\n\t\tthis.companyAddressLine1RequiredError = !this.invitedCompany.AddressLine1 ? 'REQUIRED' : null;\r\n\t\tthis.companyZipCodeRequiredError = !this.invitedCompany.ZipCode ? 'REQUIRED' : null;\r\n\t\tthis.companyCityRequiredError = !this.invitedCompany.City ? 'REQUIRED' : null;\r\n\t\tthis.companyTimeZoneRequiredError = !this.invitedCompany.TimeZone ? 'REQUIRED' : null;\r\n\t\tthis.companyLanguageCodeRequiredError = !this.invitedCompany.LanguageCode ? 'REQUIRED' : null;\r\n\t\tthis.companyShareCapitalRequiredError = !this.invitedCompany.ShareCapital ? 'REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputEmail = this.newUser && !this.registerUserInput.Email ? 'EMAIL_REQUIRED' : null;\r\n\t\tthis.registerUserInputInvalidEmail =\r\n\t\t\tthis.newUser && !!this.registerUserInput.Email && !this.emailIsValid(this.registerUserInput.Email) ? 'EMAIL_INVALID' : null;\r\n\t\tthis.registerUserInputName = this.newUser && !this.registerUserInput.Name ? 'NAME_REQUIRED' : null;\r\n\t\tthis.registerUserInputLanguageCode = this.newUser && !this.registerUserInput.LanguageCode ? 'LANGUAGE_CODE_REQUIRED' : null;\r\n\t\tthis.registerUserInputPawd = this.newUser && !this.registerUserInput.Pawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputRepeatePawd = this.newUser && !this.registerUserInput.RepeatePawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputTelephone = this.newUser && !this.registerUserInput.Telephone ? 'TELEPHONE_REQUIRED' : null;\r\n\t\tthis.registerUserInputTimeZone = this.newUser && !this.registerUserInput.TimeZone ? 'TIMEZONE_REQUIRED' : null;\r\n\r\n\t\tthis.registerUserInputPawdsDoNotMatch =\r\n\t\t\t!!this.registerUserInput.RepeatePawd &&\r\n\t\t\t!!this.registerUserInput.Pawd &&\r\n\t\t\tthis.registerUserInput.RepeatePawd != this.registerUserInput.Pawd\r\n\t\t\t\t? 'PASSWORDS_DO_NOT_MATCH'\r\n\t\t\t\t: null;\r\n\r\n\t\tlet newUserValidations = !this.newUser\r\n\t\t\t? true\r\n\t\t\t: !this.registerUserInputEmail &&\r\n\t\t\t !this.registerUserInputInvalidEmail &&\r\n\t\t\t !this.registerUserInputName &&\r\n\t\t\t !this.registerUserInputLanguageCode &&\r\n\t\t\t !this.registerUserInputPawd &&\r\n\t\t\t !this.registerUserInputRepeatePawd &&\r\n\t\t\t !this.registerUserInputTelephone &&\r\n\t\t\t !this.registerUserInputPawdsDoNotMatch &&\r\n\t\t\t !this.registerUserInputTimeZone;\r\n\r\n\t\tlet invitedCompanyValidations =\r\n\t\t\t!this.companyNameRequiredError &&\r\n\t\t\t!this.companyAddressLine1RequiredError &&\r\n\t\t\t!this.companyZipCodeRequiredError &&\r\n\t\t\t!this.companyCityRequiredError &&\r\n\t\t\t!this.companyTimeZoneRequiredError &&\r\n\t\t\t!this.companyLanguageCodeRequiredError &&\r\n\t\t\t!this.companyShareCapitalRequiredError;\r\n\r\n\t\tlet legalAcceptances = this.legalUserAcceptance != null && this.personalDataConsentDocumentAcceptance != null;\r\n\r\n\t\treturn newUserValidations && invitedCompanyValidations && legalAcceptances;\r\n\t}\r\n\r\n\tpublic checkEmail(value) {\r\n\t\tif (!this.registerUserInput.Email) {\r\n\t\t\tthis.registerUserInputEmail = 'EMAIL_REQUIRED';\r\n\t\t} else this.registerUserInputEmail = null;\r\n\r\n\t\tthis.emailIsValid(value);\r\n\t}\r\n\r\n\tprivate emailIsValid(value): boolean {\r\n\t\tlet isValid = this.commonValidationsService.emailIsValid(value);\r\n\r\n\t\tif (!isValid) {\r\n\t\t\tthis.registerUserInputInvalidEmail = 'EMAIL_INVALID';\r\n\t\t} else this.registerUserInputInvalidEmail = null;\r\n\r\n\t\treturn isValid;\r\n\t}\r\n\r\n\tpublic validateOnlyNumbers(e) {\r\n\t\treturn this.utilitiesService.validateOnlyNumbers(e);\r\n\t}\r\n\r\n\tprivate processValidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tlet userIsAlreadyRegistered: boolean = operationResult.Data;\r\n\t\tthis.newUser = !userIsAlreadyRegistered;\r\n\t}\r\n\r\n\tprivate processInvalidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate retrivedTokenAsExpiredMessages(): void {\r\n\t\tthis.tokenAsExpiredContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationTokenAsExpiredContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenAsExpiredButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationTokenAsExpiredButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tprivate retrivedTokenUsedMessages(): void {\r\n\t\tthis.tokenUsedContent = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationTokenUsedContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenUsedButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'company-factoring-invitation-response.modalInformationTokenUsedButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tprivate processActiveTokenResult(operationResult: OperationResult): void {\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tconst getUserByUsername = this.serverApiService.isUserRegistered(this.invitedUserEmail);\r\n\r\n\t\tgetUserByUsername.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidGetUserInfoResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidGetUserInfoResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[FactoringSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[FactoringSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic translateMessagesWithUserLanguageCode(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t.translateByLanguage('company-relation-invitation-response.invitationCompaniesIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.invitationTermsAndConditionsAcceptance = this.translateService\r\n\t\t\t.translateByLanguage(\r\n\t\t\t\t'company-relation-invitation-response.invitationTermsAndConditionsAcceptance',\r\n\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t'client'\r\n\t\t\t)\r\n\t\t\t.replace('[InvitedCompanyName]', this.invitedCompany.Name)\r\n\t\t\t.replace('[InvitedCompanyContryCode]', this.invitedCompany.CountryCode)\r\n\t\t\t.replace('[InvitedCompanyVatNumber]', this.invitedCompany.VatNumber)\r\n\t\t\t.replace('[InvitingCompanyName]', this.invitingCompany.Name)\r\n\t\t\t.replace('[InvitingCompanyContryCode]', this.invitingCompany.CountryCode)\r\n\t\t\t.replace('[InvitingCompanyVatNumber]', this.invitingCompany.VatNumber);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.translateDocumentsWithInvitedCompanyLanguageCode(this.pageDisplayLanguageCode);\r\n\t}\r\n\r\n\tprivate translateDocumentsWithInvitedCompanyLanguageCode(languageCodeToUse: string): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\tUsername: this.invitedUserEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tconst createUserLegalAcceptanceServiceCall = this.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t);\r\n\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\tconst createUserLegalAcceptanceResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst createPersonalDataConsentDocumentResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) this.processInvalidCreateUserLegalAcceptanceResult(createUserLegalAcceptanceResult);\r\n\r\n\t\t\t\tif (!createPersonalDataConsentDocumentResult.IsValid)\r\n\t\t\t\t\tthis.processInvalidCreatePersonalDataConsentDocumentResult(createPersonalDataConsentDocumentResult);\r\n\r\n\t\t\t\tif (createUserLegalAcceptanceResult.IsValid && createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(this.legalUserAcceptance.Document, this.legalUserAcceptance.ContentType);\r\n\r\n\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidResult(operationResult: OperationResult) {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate showInvitationContextInformationWhenTokenUsedOrExpired(\r\n\t\tgetCompanyInvitationTicketResult: OperationResult,\r\n\t\tgetUserLanguageCodeResult: OperationResult\r\n\t): void {\r\n\t\tif (!getCompanyInvitationTicketResult.IsValid) this.processInvalidResult(getCompanyInvitationTicketResult);\r\n\r\n\t\tif (getCompanyInvitationTicketResult.IsValid) {\r\n\t\t\tthis.invitedUser = {\r\n\t\t\t\tEmail: this.publicInviteCompanyForNetworkTicket.InvitedEmail,\r\n\t\t\t\tName: this.publicInviteCompanyForNetworkTicket.InvitedUserName,\r\n\t\t\t};\r\n\r\n\t\t\tthis.registerUserInput.TimeZone = getCompanyInvitationTicketResult.Data.InvitingCompany.TimeZone;\r\n\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\telse if (\r\n\t\t\t\tgetCompanyInvitationTicketResult.IsValid &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany &&\r\n\t\t\t\t!!getCompanyInvitationTicketResult.Data.InvitingCompany?.LanguageCode\r\n\t\t\t)\r\n\t\t\t\tthis.registerUserInput.LanguageCode = getCompanyInvitationTicketResult.Data.InvitingCompany.LanguageCode;\r\n\r\n\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\tthis.invitedUserIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage('company-relation-invitation-response.invitedUserIdentification', this.pageDisplayLanguageCode, 'client')\r\n\t\t\t\t.replace('[UserName]', this.invitedUser.Name);\r\n\r\n\t\t\tthis.invitationCompaniesIdentification = this.translateService\r\n\t\t\t\t.translateByLanguage(\r\n\t\t\t\t\t'company-relation-invitation-response.invitationCompaniesIdentification',\r\n\t\t\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t\t\t'client'\r\n\t\t\t\t)\r\n\t\t\t\t.replace('[InvitedCompanyName]', getCompanyInvitationTicketResult.Data.InvitedCompanyName)\r\n\t\t\t\t.replace('[InvitedCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitedCompanyCountryCode)\r\n\t\t\t\t.replace('[InvitedCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitedCompanyVatNumber)\r\n\t\t\t\t.replace('[InvitingCompanyName]', getCompanyInvitationTicketResult.Data.InvitingCompany.Name)\r\n\t\t\t\t.replace('[InvitingCompanyContryCode]', getCompanyInvitationTicketResult.Data.InvitingCompany.CountryCode)\r\n\t\t\t\t.replace('[InvitingCompanyVatNumber]', getCompanyInvitationTicketResult.Data.InvitingCompany.VatNumber);\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\t
    \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
    \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{{ 'company-relation-invitation-response.welcomeHeader' | translate: languageCode : pageDisplayLanguageCode }}\r\n\t\t\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{{ invitedUserIdentification }}\r\n\t\t\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
    \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\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
    \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
    \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
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.invitedCompanyContextualizationText'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\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\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{{ 'company-relation-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\t'company-relation-invitation-response.AddressLine1'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\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\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\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\t'company-relation-invitation-response.ZipCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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{{ 'company-relation-invitation-response.City' | translate: languageCode : pageDisplayLanguageCode }}\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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\t\t'company-relation-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\t\t'company-relation-invitation-response.LanguageCode'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\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{{ 'field.required' | translate }}\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
    \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\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'company-relation-invitation-response.userDataForRegistration'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t| translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\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\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Email' | translate: languageCode : pageDisplayLanguageCode\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'field.invalid.email' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.Telephone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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\t\t'resetPassword.passwordRules' | translate: languageCode : pageDisplayLanguageCode\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
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'resetPassword.passwordRule1' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule2' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule3' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule4' | translate: languageCode : pageDisplayLanguageCode }}\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{{ 'resetPassword.passwordRule5' | translate: languageCode : pageDisplayLanguageCode }}\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\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\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\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{{ 'user-invitation-response.repeatePassword' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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'field.passwordsDoNotMatch' | translate: languageCode : pageDisplayLanguageCode\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\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{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.LanguageCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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{{ 'user-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\t\t\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\t\t{{ textTolinkWithContract}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewContract }}\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocument}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewPersonalDataConsentDocument }} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocumentPart2 }}\r\n\t\t\t\t\t\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\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'company-relation-invitation-response.accept' | translate: languageCode : pageDisplayLanguageCode\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'company-relation-invitation-response.refuse' | translate: languageCode : pageDisplayLanguageCode\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
    \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
    \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 { Component, OnInit } from '@angular/core';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { CodeDecodeValue } from '../../../models/common/code-decode-value';\r\nimport { ServerApiService } from '../../../server-api/server-api.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { LogService } from '../../../services/log/log.service';\r\nimport { RegisterUserInput } from '../../../models/User/register-user-input';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { forkJoin, Observable } from 'rxjs';\r\nimport { PublicCompany } from '../../../models/companies/public-company';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { CompanyLegalAcceptanceRequest } from '../../../models/companies/company-legal-acceptance-request';\r\nimport { PersonalDataConsentDocumentRequest } from '../../../models/User/personal-data-consent-document-request';\r\nimport { PersonalDataConsentDocumentAcceptance } from '../../../models/User/personal-data-consent-document-acceptance';\r\nimport { TimeZoneValue } from '../../../models/common/time-zone-value';\r\nimport { CommonValidationsService } from '../../../services/validations/common-validation.service';\r\nimport { PublicUserInvitationData } from '../../../models/invitations/public-user-invitation-data';\r\nimport { CompanyLegalAcceptance } from '../../../models/funding-request/company-legal-acceptance';\r\n\r\n@Component({\r\n\tselector: 'app-user-invitation-response',\r\n\ttemplateUrl: './user-invitation-response.component.html',\r\n\tstyleUrls: ['./user-invitation-response.component.css'],\r\n})\r\nexport class UserInvitationResponseComponent implements OnInit {\r\n\t// public company: Company = new Company();\r\n\tpublic isPerformingRequest = false;\r\n\tpublic requestErrors: OperationError[];\r\n\r\n\tpublic countryCodes: CodeDecodeValue[];\r\n\tpublic languageCodes: CodeDecodeValue[];\r\n\tpublic timeZones: TimeZoneValue[];\r\n\tpublic invitingCompany: PublicCompany = new PublicCompany();\r\n\r\n\tprivate token: string;\r\n\tprivate tokenRelatedEmail: string;\r\n\tprivate userCompanyId: string;\r\n\tprivate invitingCompanyId: string;\r\n\r\n\tpublic registerUserInput: RegisterUserInput = new RegisterUserInput();\r\n\r\n\tpublic registerUserInputEmail: string | null = null;\r\n\tpublic registerUserInputInvalidEmail: string | null = null;\r\n\tpublic registerUserInputName: string | null = null;\r\n\tpublic registerUserInputLanguageCode: string | null = null;\r\n\tpublic registerUserInputPawd: string | null = null;\r\n\tpublic registerUserInputRepeatePawd: string | null = null;\r\n\tpublic registerUserInputPasswordsDoNotMatch: string | null = null;\r\n\tpublic registerUserInputTelephone: string | null = null;\r\n\tpublic registerUserInputTimeZone: string | null = null;\r\n\r\n\tpublic showSucessSubmission: boolean = false;\r\n\tpublic sucessSubmissionContent: string | null = null;\r\n\tpublic sucessSubmissionButtonText: string | null = null;\r\n\r\n\tpublic contextualizationInvitedUser: string | null = null;\r\n\tpublic contextualizationInvitedCompany: string | null = null;\r\n\r\n\tpublic textTolinkWithContract: string | null = null;\r\n\tpublic viewContract: string | null = null;\r\n\tpublic isContractAccepted: boolean;\r\n\tpublic contractBlob: Blob;\r\n\r\n\tpublic textTolinkWithPersonalDataConsentDocument: string | null = null;\r\n\tpublic viewPersonalDataConsentDocument: string | null = null;\r\n\tpublic textTolinkWithPersonalDataConsentDocumentPart2: string | null = null;\r\n\tpublic isPersonalDataConsentDocumentAccepted: boolean;\r\n\tpublic personalDataConsentDocumentBlob: Blob;\r\n\r\n\tpublic newUser: boolean = false;\r\n\r\n\tpublic tokenAsExpired: boolean = false;\r\n\tpublic tokenAsExpiredContent: string | null = null;\r\n\tpublic tokenAsExpiredButtonText: string | null = null;\r\n\r\n\tpublic tokenUsed: boolean = false;\r\n\tpublic tokenUsedContent: string | null = null;\r\n\tpublic tokenUsedButtonText: string | null = null;\r\n\r\n\tpublic pageDisplayLanguageCode: string | null = null;\r\n\r\n\tprivate personalDataConsentDocumentAcceptance: PersonalDataConsentDocumentAcceptance | null = null;\r\n\tprivate legalUserAcceptance: CompanyLegalAcceptance | null = null;\r\n\r\n\tprivate personalDataConsentDocumentName: string | null = null;\r\n\tprivate termsConditionsDocumentName: string | null = null;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate router: Router,\r\n\t\tprivate sanitizer: DomSanitizer,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate commonValidationsService: CommonValidationsService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.pageDisplayLanguageCode = this.appContext.getApplicationLanguageCode(); //start by assuming this language code, after getting additional data, set this language code properly\r\n\r\n\t\tthis.route.params.subscribe((params) => {\r\n\t\t\tlet base64InvitationContext = params['invitationContext'];\r\n\r\n\t\t\tif (!base64InvitationContext) {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get invitationContext from route...');\r\n\t\t\t}\r\n\r\n\t\t\t//base64 to string\r\n\t\t\tlet invitationContext = atob(base64InvitationContext);\r\n\r\n\t\t\tif (!!invitationContext) {\r\n\t\t\t\tlet parameters: string[] = invitationContext.split('&');\r\n\r\n\t\t\t\tif (parameters.length != 4) this.notificationService.addDanger('Could not get invitationContext content...');\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.token = parameters[0].split(':')[1]; //used ':' as separator because token is in base64 which uses '=' character\r\n\t\t\t\t\tthis.userCompanyId = parameters[1].split(':')[1];\r\n\t\t\t\t\tthis.invitingCompanyId = parameters[2].split(':')[1];\r\n\t\t\t\t\tthis.tokenRelatedEmail = parameters[3].split(':')[1];\r\n\r\n\t\t\t\t\tif (!!this.token && !!this.userCompanyId && !!this.invitingCompanyId && !!this.tokenRelatedEmail)\r\n\t\t\t\t\t\tif (!!this.userCompanyId) {\r\n\t\t\t\t\t\t\tthis.isPerformingRequest = true;\r\n\t\t\t\t\t\t\tconst checkIfInvitationtTokenExpiredServiceCall = this.serverApiService.getUserInvitation(\r\n\t\t\t\t\t\t\t\tthis.tokenRelatedEmail,\r\n\t\t\t\t\t\t\t\tthis.userCompanyId,\r\n\t\t\t\t\t\t\t\tthis.token\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tcheckIfInvitationtTokenExpiredServiceCall.subscribe({\r\n\t\t\t\t\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\t\t\t\t\tif (operationResult.Data.TokenExpired) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.tokenAsExpired = operationResult.Data.TokenExpired;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tthis.retrivedTokenAsExpiredMessages();\r\n\t\t\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired();\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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 (operationResult.Data.TokenUsed) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.tokenUsed = operationResult.Data.TokenUsed;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tthis.retrivedTokenUsedMessages();\r\n\t\t\t\t\t\t\t\t\t\t\tthis.showInvitationContextInformationWhenTokenUsedOrExpired();\r\n\t\t\t\t\t\t\t\t\t\t\tthis.isPerformingRequest = false;\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\t} else {\r\n\t\t\t\t\t\t\t\t\t\tthis.tokenAsExpired = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tthis.processActiveTokenResult();\r\n\t\t\t\t\t\t\t\t\tthis.getValues();\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\t\t\t\t\tthis.logger.error(\r\n\t\t\t\t\t\t\t\t\t\t'[UserInvitationResponseComponent::checkIfInvitationtTokenExpiredServiceCall] HttpErrorResponse: ',\r\n\t\t\t\t\t\t\t\t\t\thttpErrorResponse\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\t\t\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t\t\t\t\t\t'[UserInvitationResponseComponent::checkIfInvitationtTokenExpiredServiceCall] HttpErrorResponse: ' +\r\n\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t\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} else {\r\n\t\t\t\t\t\t\tthis.notificationService.addDanger('Could not get invitationContext parameters...');\r\n\t\t\t\t\t\t\tthis.router.navigate(['/']);\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\r\n\tprivate processActiveTokenResult(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.invitingCompany.LanguageCode;\r\n\r\n\t\tthis.registerUserInput.Email = this.tokenRelatedEmail;\r\n\t\tthis.registerUserInput.LanguageCode = this.invitingCompany.LanguageCode;\r\n\t\tthis.registerUserInput.TimeZone = this.invitingCompany.TimeZone;\r\n\t\tthis.registerUserInput.InvitingCompanyId = this.invitingCompanyId;\r\n\t\tthis.registerUserInput.UserCompanyId = this.userCompanyId;\r\n\r\n\t\t//Check to see if a given user has not already been created in the mean while\r\n\t\tconst getUserByUsername = this.serverApiService.isUserRegistered(this.tokenRelatedEmail);\r\n\r\n\t\tgetUserByUsername.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidGetUserInfoResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidGetUserInfoResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[ConfirmingSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[ConfirmingSupplierInvitationResponseComponent::getUserInfo] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic sanitize(url: string) {\r\n\t\treturn this.sanitizer.bypassSecurityTrustUrl(url);\r\n\t}\r\n\r\n\tpublic registerUser(): void {\r\n\t\tif (this.newUser && this.formIsValid()) {\r\n\t\t\tthis.sendDataToServer();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.sendDataToServer();\r\n\t}\r\n\r\n\tprivate formIsValid(): boolean {\r\n\t\tthis.registerUserInputEmail = !this.registerUserInput.Email ? 'EMAIL_REQUIRED' : null;\r\n\t\tthis.registerUserInputInvalidEmail =\r\n\t\t\t!!this.registerUserInput.Email && !this.emailIsValid(this.registerUserInput.Email) ? 'EMAIL_INVALID' : null;\r\n\t\tthis.registerUserInputName = !this.registerUserInput.Name ? 'NAME_REQUIRED' : null;\r\n\t\tthis.registerUserInputLanguageCode = !this.registerUserInput.LanguageCode ? 'LANGUAGE_CODE_REQUIRED' : null;\r\n\t\tthis.registerUserInputPawd = !this.registerUserInput.Pawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputRepeatePawd = !this.registerUserInput.RepeatePawd ? 'PASSWORD_REQUIRED' : null;\r\n\t\tthis.registerUserInputPasswordsDoNotMatch =\r\n\t\t\t!!this.registerUserInput.RepeatePawd &&\r\n\t\t\t!!this.registerUserInput.Pawd &&\r\n\t\t\tthis.registerUserInput.RepeatePawd != this.registerUserInput.Pawd\r\n\t\t\t\t? 'PASSWORDS_DO_NOT_MATCH'\r\n\t\t\t\t: null;\r\n\r\n\t\tthis.registerUserInputTelephone = !this.registerUserInput.Telephone ? 'TELEPHONE_REQUIRED' : null;\r\n\t\tthis.registerUserInputTimeZone = !this.registerUserInput.TimeZone ? 'TIMEZONE_REQUIRED' : null;\r\n\r\n\t\treturn (\r\n\t\t\tthis.registerUserInputEmail == null &&\r\n\t\t\tthis.registerUserInputInvalidEmail == null &&\r\n\t\t\tthis.registerUserInputName == null &&\r\n\t\t\tthis.registerUserInputLanguageCode == null &&\r\n\t\t\tthis.registerUserInputPawd == null &&\r\n\t\t\tthis.registerUserInputRepeatePawd == null &&\r\n\t\t\tthis.registerUserInputPasswordsDoNotMatch == null &&\r\n\t\t\tthis.registerUserInputTelephone == null &&\r\n\t\t\tthis.registerUserInputTimeZone == null\r\n\t\t);\r\n\t}\r\n\r\n\tpublic checkEmail(value) {\r\n\t\tif (!this.registerUserInput.Email) {\r\n\t\t\tthis.registerUserInputEmail = 'EMAIL_REQUIRED';\r\n\t\t} else this.registerUserInputEmail = null;\r\n\r\n\t\tthis.emailIsValid(value);\r\n\t}\r\n\r\n\tprivate emailIsValid(value): boolean {\r\n\t\tlet isValid = this.commonValidationsService.emailIsValid(value);\r\n\r\n\t\tif (!isValid) {\r\n\t\t\tthis.registerUserInputInvalidEmail = 'EMAIL_INVALID';\r\n\t\t} else this.registerUserInputInvalidEmail = null;\r\n\r\n\t\treturn isValid;\r\n\t}\r\n\r\n\tpublic sendDataToServer() {\r\n\t\tthis.registerUserInput.UserCompanyId = this.userCompanyId;\r\n\t\tthis.registerUserInput.Token = this.token;\r\n\t\tthis.registerUserInput.TokenRelatedEmail = this.tokenRelatedEmail;\r\n\t\tthis.registerUserInput.Username = this.registerUserInput.Email;\r\n\t\tthis.registerUserInput.InvitingCompanyId = this.invitingCompanyId;\r\n\t\tthis.isPerformingRequest = true; // request indicator + block UI\r\n\r\n\t\tthis.registerUserInput.TermsAndConditionsDocumentAcceptanceHash = this.legalUserAcceptance!.AcceptanceHash;\r\n\t\tthis.registerUserInput.TermsAndConditionsDocumentId = this.legalUserAcceptance!.DocumentId;\r\n\t\tthis.registerUserInput.PersonalDataConsentDocumentAcceptanceHash = this.personalDataConsentDocumentAcceptance!.AcceptanceHash;\r\n\t\tthis.registerUserInput.PersonalDataConsentDocumentId = this.personalDataConsentDocumentAcceptance!.DocumentId;\r\n\r\n\t\tthis.registerUserInput.InvitationLanguageCode = this.pageDisplayLanguageCode!;\r\n\r\n\t\tconst registerUserServiceCall = this.serverApiService.registerUser(this.registerUserInput);\r\n\t\tthis.isPerformingRequest = true; // request indicator + block UI\r\n\r\n\t\tregisterUserServiceCall.subscribe({\r\n\t\t\tnext: (operationResultLocal: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResultLocal.IsValid && operationResultLocal.Data) {\r\n\t\t\t\t\tthis.processValidRegisterUserResult(operationResultLocal);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidRegisterUserResult(operationResultLocal);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tthis.isPerformingRequest = false; // request indicator + unblock UI\r\n\t}\r\n\r\n\tprivate processValidRegisterUserResult(operationResultLocal: OperationResult): void {\r\n\t\tthis.sucessSubmissionContent = this.translateService\r\n\t\t\t.translateByLanguage('user-invitation-response.modalInformationContent', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t.replace('[Email]', this.registerUserInput.Username);\r\n\t\tthis.sucessSubmissionButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'user-invitation-response.modalInformationConfirmActionText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.showSucessSubmission = true;\r\n\t}\r\n\r\n\tprivate processInvalidRegisterUserResult(operationResult: OperationResult): void {\r\n\t\t// this.requestErrors = operationResult.Errors;\r\n\t\toperationResult.Errors?.forEach((e) =>\r\n\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\tthis.translateService.translateByLanguage(e.Code, this.invitingCompany.LanguageCode, 'list-errorCodes')\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate getValues(): void {\r\n\t\tconst getTimeZonesServiceCall = this.serverApiService.getTimeZones();\r\n\t\tconst getLanguageCodesServiceCall = this.serverApiService.getLanguageCodes();\r\n\t\tconst getCountryCodesServiceCall = this.serverApiService.getCountryCodes();\r\n\t\tconst getInvitingCompanyServiceCall = this.serverApiService.getPublicCompany(this.invitingCompanyId);\r\n\t\tconst getUserLanguageCode = this.serverApiService.getUserLanguageCode(this.tokenRelatedEmail);\r\n\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(getTimeZonesServiceCall);\r\n\t\tservicesCallsToMake.push(getLanguageCodesServiceCall);\r\n\t\tservicesCallsToMake.push(getCountryCodesServiceCall);\r\n\t\tservicesCallsToMake.push(getInvitingCompanyServiceCall);\r\n\t\tservicesCallsToMake.push(getUserLanguageCode);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tconst getTimeZonesResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst getLanguageCodesResult = opResults[1] as OperationResult;\r\n\t\t\t\tconst getCountryCodesResult = opResults[2] as OperationResult;\r\n\t\t\t\tconst getInvitingCompanyResult = opResults[3] as OperationResult;\r\n\t\t\t\tconst getUserLanguageCodeResult = opResults[4] as OperationResult;\r\n\r\n\t\t\t\tif (!getInvitingCompanyResult.IsValid) this.processInvalidResult(getInvitingCompanyResult);\r\n\r\n\t\t\t\tif (!getTimeZonesResult.IsValid) this.processInvalidResult(getTimeZonesResult);\r\n\r\n\t\t\t\tif (!getLanguageCodesResult.IsValid) this.processInvalidResult(getLanguageCodesResult);\r\n\r\n\t\t\t\tif (!getCountryCodesResult.IsValid) this.processInvalidResult(getCountryCodesResult);\r\n\r\n\t\t\t\tif (\r\n\t\t\t\t\tgetInvitingCompanyResult.IsValid &&\r\n\t\t\t\t\tgetTimeZonesResult.IsValid &&\r\n\t\t\t\t\tgetLanguageCodesResult.IsValid &&\r\n\t\t\t\t\tgetCountryCodesResult.IsValid\r\n\t\t\t\t) {\r\n\t\t\t\t\tthis.countryCodes = getCountryCodesResult.Data;\r\n\t\t\t\t\tthis.languageCodes = getLanguageCodesResult.Data;\r\n\t\t\t\t\tthis.timeZones = this.utilitiesService.GetOrderedTimeZoneValues(getTimeZonesResult.Data, false);\r\n\t\t\t\t\tthis.invitingCompany = getInvitingCompanyResult.Data;\r\n\r\n\t\t\t\t\tthis.registerUserInput.TimeZone = this.invitingCompany.TimeZone;\r\n\t\t\t\t\tthis.registerUserInput.LanguageCode = this.invitingCompany.LanguageCode;\r\n\r\n\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\t\t\telse if (getInvitingCompanyResult.IsValid && !!getInvitingCompanyResult.Data && !!getInvitingCompanyResult.Data?.LanguageCode)\r\n\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getInvitingCompanyResult.Data.LanguageCode;\r\n\r\n\t\t\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\t\t\t//at this point no email has been introduced. Also there is no guarantee that the introduced email is the same email that the invitation was intended for\r\n\t\t\t\t\t//Therefore, to get the terms and conditions document, one is generated at this stage for a TEMP.\r\n\t\t\t\t\t//When submiting the form data, a new signature will be generated.\r\n\t\t\t\t\t//this has to be done this way because functionally it is not pretended that the terms and conditions acceptance be made in a popup\r\n\t\t\t\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\t\t\t\tUsername: this.tokenRelatedEmail,\r\n\t\t\t\t\t\tLanguageCode: this.registerUserInput.LanguageCode,\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\t\t\t\tUsername: this.tokenRelatedEmail,\r\n\t\t\t\t\t\tLanguageCode: this.registerUserInput.LanguageCode,\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\t\t\t\tconst createUserLegalAcceptanceServiceCall = this.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\t\t\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\t\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\t\t\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\t\t\t\t\tconst getAllRequestsForLegalDocuments = forkJoin(servicesCallsToMake);\r\n\r\n\t\t\t\t\tgetAllRequestsForLegalDocuments.subscribe((opResults) => {\r\n\t\t\t\t\t\tconst createUserLegalAcceptanceResult = opResults[0] as OperationResult;\r\n\t\t\t\t\t\tconst createPersonalDataConsentDocumentResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) this.processInvalidResult(createUserLegalAcceptanceResult);\r\n\r\n\t\t\t\t\t\tif (!createPersonalDataConsentDocumentResult.IsValid) this.processInvalidResult(createPersonalDataConsentDocumentResult);\r\n\r\n\t\t\t\t\t\tif (createUserLegalAcceptanceResult.IsValid && createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\t\t\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\tthis.legalUserAcceptance.Document,\r\n\t\t\t\t\t\t\t\tthis.legalUserAcceptance.ContentType\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'user-invitation-response-modal.textTolinkWithContract',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'client'\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'user-invitation-response-modal.viewContract',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'client'\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'user-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'client'\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'user-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'client'\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'user-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'client'\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tthis.contextualizationInvitedUser = this.translateService\r\n\t\t\t\t\t\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedUser', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t\t\t\t\t\t.replace('[Email]', this.tokenRelatedEmail);\r\n\r\n\t\t\t\t\t\t\tthis.contextualizationInvitedCompany = this.translateService\r\n\t\t\t\t\t\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedCompany', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t\t\t\t\t\t.replace('[CompanyName]', this.invitingCompany.Name);\r\n\r\n\t\t\t\t\t\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'list-DownloadDocNames'\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t\t\t\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\t\t\t\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t\t\t\t\t\t'list-DownloadDocNames'\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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tpublic openContract(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.contractBlob, this.termsConditionsDocumentName!, false);\r\n\t}\r\n\r\n\tpublic openPersonalDataConsentDocument(): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(this.personalDataConsentDocumentBlob, this.personalDataConsentDocumentName!, false);\r\n\t}\r\n\r\n\tprivate processValidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tlet userIsAlreadyRegistered: boolean = operationResult.Data;\r\n\t\tthis.newUser = !userIsAlreadyRegistered;\r\n\t}\r\n\r\n\tprivate processInvalidGetUserInfoResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tprivate retrivedTokenAsExpiredMessages(): void {\r\n\t\tthis.tokenAsExpiredContent = this.translateService.translateByLanguage(\r\n\t\t\t'user-invitation-response.modalInformationTokenAsExpiredContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenAsExpiredButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'user-invitation-response.modalInformationTokenAsExpiredButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tprivate retrivedTokenUsedMessages(): void {\r\n\t\tthis.tokenUsedContent = this.translateService.translateByLanguage(\r\n\t\t\t'user-invitation-response.modalInformationTokenUsedContent',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.tokenUsedButtonText = this.translateService.translateByLanguage(\r\n\t\t\t'user-invitation-response.modalInformationTokenUsedButtonText',\r\n\t\t\tthis.pageDisplayLanguageCode!,\r\n\t\t\t'client'\r\n\t\t);\r\n\t}\r\n\r\n\tpublic translateMessagesWithUserLanguageCode(): void {\r\n\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\t\tthis.appContext.setApplicationLanguageCode(this.registerUserInput.LanguageCode);\r\n\r\n\t\tthis.textTolinkWithContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewContract = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewContract',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.textTolinkWithPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.viewPersonalDataConsentDocument = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.viewPersonalDataConsentDocument',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\t\tthis.textTolinkWithPersonalDataConsentDocumentPart2 = this.translateService.translateByLanguage(\r\n\t\t\t'company-relation-invitation-response-modal.textTolinkWithPersonalDataConsentDocumentPart2',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'client'\r\n\t\t);\r\n\r\n\t\tthis.contextualizationInvitedUser = this.translateService\r\n\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedUser', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t.replace('[Email]', this.tokenRelatedEmail);\r\n\r\n\t\tthis.contextualizationInvitedCompany = this.translateService\r\n\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedCompany', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t.replace('[CompanyName]', this.invitingCompany.Name);\r\n\r\n\t\tthis.personalDataConsentDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_personnal_data_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.termsConditionsDocumentName = this.translateService.translateByLanguage(\r\n\t\t\t'saphety_terms_conditions_doc_name',\r\n\t\t\tthis.pageDisplayLanguageCode,\r\n\t\t\t'list-DownloadDocNames'\r\n\t\t);\r\n\r\n\t\tthis.translateDocumentsWithInvitedCompanyLanguageCode(this.pageDisplayLanguageCode);\r\n\t}\r\n\r\n\tprivate translateDocumentsWithInvitedCompanyLanguageCode(languageCodeToUse: string): void {\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tlet legalUserAcceptanceInputDto: CompanyLegalAcceptanceRequest = {\r\n\t\t\tUsername: this.tokenRelatedEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tlet personalDataConsentDocumentServiceCallInputDto: PersonalDataConsentDocumentRequest = {\r\n\t\t\tUsername: this.tokenRelatedEmail,\r\n\t\t\tLanguageCode: languageCodeToUse,\r\n\t\t};\r\n\r\n\t\tconst createUserLegalAcceptanceServiceCall = this.serverApiService.createCompanyLegalAcceptance(legalUserAcceptanceInputDto);\r\n\t\tservicesCallsToMake.push(createUserLegalAcceptanceServiceCall);\r\n\t\tconst createPersonalDataConsentDocumentServiceCall = this.serverApiService.createPersonalDataConsentDocument(\r\n\t\t\tpersonalDataConsentDocumentServiceCallInputDto\r\n\t\t);\r\n\t\tservicesCallsToMake.push(createPersonalDataConsentDocumentServiceCall);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\tconst createUserLegalAcceptanceResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst createPersonalDataConsentDocumentResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!createUserLegalAcceptanceResult.IsValid) this.processInvalidResult(createUserLegalAcceptanceResult);\r\n\r\n\t\t\t\tif (!createPersonalDataConsentDocumentResult.IsValid) this.processInvalidResult(createPersonalDataConsentDocumentResult);\r\n\r\n\t\t\t\tif (createUserLegalAcceptanceResult.IsValid && createPersonalDataConsentDocumentResult.IsValid) {\r\n\t\t\t\t\tthis.legalUserAcceptance = createUserLegalAcceptanceResult.Data;\r\n\t\t\t\t\tthis.contractBlob = this.utilitiesService.base64ToBlob(this.legalUserAcceptance.Document, this.legalUserAcceptance.ContentType);\r\n\r\n\t\t\t\t\tthis.personalDataConsentDocumentAcceptance = createPersonalDataConsentDocumentResult.Data;\r\n\t\t\t\t\tthis.personalDataConsentDocumentBlob = this.utilitiesService.base64ToBlob(\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.Document,\r\n\t\t\t\t\t\tthis.personalDataConsentDocumentAcceptance.ContentType\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate showInvitationContextInformationWhenTokenUsedOrExpired(): void {\r\n\t\tconst getInvitingCompanyServiceCall = this.serverApiService.getPublicCompany(this.invitingCompanyId);\r\n\t\tconst getUserLanguageCode = this.serverApiService.getUserLanguageCode(this.tokenRelatedEmail);\r\n\r\n\t\tlet servicesCallsToMake: Array>> = [];\r\n\r\n\t\tservicesCallsToMake.push(getInvitingCompanyServiceCall);\r\n\t\tservicesCallsToMake.push(getUserLanguageCode);\r\n\r\n\t\tconst getAllRequests = forkJoin(servicesCallsToMake);\r\n\r\n\t\tgetAllRequests.subscribe({\r\n\t\t\tnext: (opResults) => {\r\n\t\t\t\tconst getInvitingCompanyResult = opResults[0] as OperationResult;\r\n\t\t\t\tconst getUserLanguageCodeResult = opResults[1] as OperationResult;\r\n\r\n\t\t\t\tif (!getInvitingCompanyResult.IsValid) this.processInvalidResult(getInvitingCompanyResult);\r\n\r\n\t\t\t\tif (getInvitingCompanyResult.IsValid) {\r\n\t\t\t\t\tthis.invitingCompany = getInvitingCompanyResult.Data;\r\n\r\n\t\t\t\t\tthis.registerUserInput.TimeZone = this.invitingCompany.TimeZone;\r\n\t\t\t\t\tthis.registerUserInput.LanguageCode = this.invitingCompany.LanguageCode;\r\n\r\n\t\t\t\t\tif (getUserLanguageCodeResult.IsValid && !!getUserLanguageCodeResult.Data)\r\n\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getUserLanguageCodeResult.Data;\r\n\t\t\t\t\telse if (getInvitingCompanyResult.IsValid && !!getInvitingCompanyResult.Data && !!getInvitingCompanyResult.Data?.LanguageCode)\r\n\t\t\t\t\t\tthis.registerUserInput.LanguageCode = getInvitingCompanyResult.Data.LanguageCode;\r\n\r\n\t\t\t\t\tthis.pageDisplayLanguageCode = this.registerUserInput.LanguageCode;\r\n\r\n\t\t\t\t\tthis.contextualizationInvitedUser = this.translateService\r\n\t\t\t\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedUser', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t\t\t\t.replace('[Email]', this.tokenRelatedEmail);\r\n\r\n\t\t\t\t\tthis.contextualizationInvitedCompany = this.translateService\r\n\t\t\t\t\t\t.translateByLanguage('user-invitation-response.ContextualizationInvitedCompany', this.pageDisplayLanguageCode!, 'client')\r\n\t\t\t\t\t\t.replace('[CompanyName]', this.invitingCompany.Name);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprocessInvalidResult(operationResult: OperationResult) {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n\t
    \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
    \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-invitation-response.welcomeHeader' | translate: languageCode : pageDisplayLanguageCode }}\r\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{{ contextualizationInvitedUser }}\r\n\t\t\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
    \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\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
    \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
    \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
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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-invitation-response.userDataFormContext' | translate: languageCode : pageDisplayLanguageCode }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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\r\n\t\t\t\t\t\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{{ 'user-invitation-response.Email' | translate: languageCode : pageDisplayLanguageCode\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'field.invalid.email' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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{{ 'user-invitation-response.Name' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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{{ 'user-invitation-response.Telephone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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{{ 'resetPassword.passwordRules' | translate: languageCode : pageDisplayLanguageCode }}\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
    • {{ 'resetPassword.passwordRule1' | translate: languageCode : pageDisplayLanguageCode }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule2' | translate: languageCode : pageDisplayLanguageCode }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule3' | translate: languageCode : pageDisplayLanguageCode }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule4' | translate: languageCode : pageDisplayLanguageCode }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule5' | translate: languageCode : pageDisplayLanguageCode }}
    • \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\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{{ 'user-invitation-response.Password' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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'field.passwordsDoNotMatch' | translate: languageCode : pageDisplayLanguageCode\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{{ 'user-invitation-response.repeatePassword' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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'field.passwordsDoNotMatch' | translate: languageCode : pageDisplayLanguageCode\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\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{{ languageCode.Code }}\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{{ languageCode.Decode }}\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'user-invitation-response.LanguageCode' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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\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{{ timeZone.TimeZoneName | translate: 'list-timeZones' }}\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{{ 'user-invitation-response.TimeZone' | translate: languageCode : pageDisplayLanguageCode\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'field.required' | translate: languageCode : pageDisplayLanguageCode\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
    \r\n\t\t\t\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{{ textTolinkWithContract }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewContract }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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{{ textTolinkWithPersonalDataConsentDocument }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ viewPersonalDataConsentDocument }} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ textTolinkWithPersonalDataConsentDocumentPart2 }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\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\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'user-invitation-response.acceptContract' | translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\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'user-invitation-response.cancel' | translate: languageCode : pageDisplayLanguageCode\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\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\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 { AfterViewInit, ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { NotificationService } from '../../services/notification/notification.service';\r\nimport { LoginApiService } from '../../server-api/login-api.service';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\nimport { LogService } from '../../services/log/log.service';\r\nimport { TokensPerRole } from '../../models/User/tokens-per-role';\r\nimport { ErrorDetailCode } from '../../models/enums/error-detail-code';\r\nimport { MfaLoginService } from '../../services/authentication/mfa-login.service';\r\nimport { ServiceCallStatus } from '../../models/enums/service-call-status';\r\nimport { LoginService } from '../../services/authentication/login.service';\r\nimport { SessionStatusBroadcastService } from '../../services/authorization/session-status-broadcast.service';\r\nimport { BroadcastMessage } from '../../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../../models/broadcast/broadcast-message-type';\r\n\r\n@Component({\r\n\tselector: 'app-login',\r\n\ttemplateUrl: './login.component.html',\r\n\tstyleUrls: ['./login.component.css'],\r\n})\r\nexport class LoginComponent implements OnInit, AfterViewInit {\r\n\tpublic username: string;\r\n\tpublic password: string;\r\n\tpublic token: string;\r\n\r\n\tprivate returnUrl: string | null;\r\n\r\n\tpublic language: string;\r\n\r\n\tconstructor(\r\n\t\tprivate loginApiService: LoginApiService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate cdr: ChangeDetectorRef,\r\n\t\tprivate mfaLoginService: MfaLoginService,\r\n\t\tprivate loginService: LoginService,\r\n\t\tprivate sessionStatusBroadcastService: SessionStatusBroadcastService\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\t// [FLC-588] End any existing session.\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.sessionStatusBroadcastService.publish({\r\n\t\t\ttype: BroadcastMessageType.SessionKilled,\r\n\t\t});\r\n\r\n\t\tthis.returnUrl = this.route.snapshot.queryParams['returnUrl'] || null;\r\n\t\tthis.route.fragment?.subscribe({\r\n\t\t\tnext: (fragment: string) => {\r\n\t\t\t\tif (fragment === ServiceCallStatus.Forbidden) {\r\n\t\t\t\t\tthis.alertServiceCallForbidden();\r\n\t\t\t\t\tlocation.hash = '';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tngAfterViewInit(): void {\r\n\t\tthis.cdr.detectChanges();\r\n\t}\r\n\r\n\tpublic login(event): void {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tthis.loginApiService.getJwtToken(this.username, this.password).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.processLoginResponse(operationResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.processLoginCallError(httpErrorResponse);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprivate processLoginResponse(resultTokensPerRole: OperationResult) {\r\n\t\tif (resultTokensPerRole.IsValid) {\r\n\t\t\tthis.appContext.setUserAssociatedTokensOnLoginFromUsername(this.username, resultTokensPerRole.Data);\r\n\t\t\tthis.loginService.getUserInfoOnLoginSuccess(this.username, resultTokensPerRole.Data, this.returnUrl);\r\n\t\t} else {\r\n\t\t\tconst mfaLoginRequiredError = resultTokensPerRole.Errors?.find((error) => error.Code === ErrorDetailCode.MFA_LOGIN_REQUIRED);\r\n\t\t\tif (!!mfaLoginRequiredError) {\r\n\t\t\t\tthis.mfaLoginService.handleMfaLoginRequiredError(this.username, mfaLoginRequiredError, this.returnUrl);\r\n\t\t\t} else {\r\n\t\t\t\tconst msgCouldNotLogin = this.translateService.translate('login.invalid.credentials');\r\n\t\t\t\tthis.notificationService.addDanger(msgCouldNotLogin);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processLoginCallError(httpErrorResponse: HttpErrorResponse) {\r\n\t\tif (httpErrorResponse.error instanceof HttpErrorResponse) {\r\n\t\t\tif (httpErrorResponse.error.status !== 403) {\r\n\t\t\t\t//403 is handled by http-error.interceptor\r\n\t\t\t\tthis.logger.error('[LoginComponent::login] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.statusText + httpErrorResponse.message);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.logger.log(httpErrorResponse.message);\r\n\t\tthis.logger.warn('warning: ' + httpErrorResponse.message);\r\n\t}\r\n\r\n\tprivate alertServiceCallForbidden(): void {\r\n\t\tconst msgCouldNotLogin = this.translateService.translate('service.call.forbidden');\r\n\t\tthis.notificationService.addDanger(msgCouldNotLogin);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n
    \r\n\t
    \r\n\t\t\r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ 'login.msg' | translate }}\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\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\r\n\t\t\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
    \r\n\t\t\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
    \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

    {{ 'supported.browsers.warning' | translate }}

    \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
    \r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { ScreenWidthListenerService } from '../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { MfaSelectCardViewModel } from './models/mfa-select-card-view-model';\r\nimport { MfaType } from '../../../models/enums/mfa-type';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { MfaLoginService } from '../../../services/authentication/mfa-login.service';\r\nimport { MfaLoginDataWithToken } from '../../../models/User/mfa/mfa-tokens/mfa-login-data';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\nimport { SessionStatusBroadcastService } from '../../../services/authorization/session-status-broadcast.service';\r\nimport { BroadcastMessage } from '../../../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../../../models/broadcast/broadcast-message-type';\r\n\r\n@Component({\r\n\tselector: 'eif-mfa-select',\r\n\ttemplateUrl: './mfa-select.component.html',\r\n\tstyleUrls: ['./mfa-select.component.css'],\r\n})\r\nexport class MfaSelectComponent implements OnInit, OnDestroy {\r\n\tprivate mfaData: MfaLoginDataWithToken;\r\n\tprotected mfaSelectOptions: MfaSelectCardViewModel[] = [];\r\n\tprotected mfaSelectOptionsLoaded: Promise;\r\n\tprivate sessionKilledSubscription: Subscription;\r\n\r\n\tconstructor(\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate mfaLoginService: MfaLoginService,\r\n\t\tprivate sessionStatusBroadcastService: SessionStatusBroadcastService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.mfaLoginService.getMfaLoginDataFromRoute(this.route).then((mfaData: MfaLoginDataWithToken) => {\r\n\t\t\tthis.mfaData = mfaData;\r\n\t\t\tif (this.mfaData?.MfaToken) {\r\n\t\t\t\tthis.subscribeSessionKill();\r\n\t\t\t\tthis.loadMfaSelectOptions();\r\n\t\t\t} else {\r\n\t\t\t\tthis.goBack();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis.unsubscribeSessionKill();\r\n\t}\r\n\r\n\tprivate subscribeSessionKill(): void {\r\n\t\tthis.sessionKilledSubscription = this.sessionStatusBroadcastService\r\n\t\t\t.messagesOfType(BroadcastMessageType.SessionKilled)\r\n\t\t\t.subscribe((msg: BroadcastMessage) => {\r\n\t\t\t\tif (msg.type == BroadcastMessageType.SessionKilled) {\r\n\t\t\t\t\tthis.unsubscribeSessionKill();\r\n\t\t\t\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate unsubscribeSessionKill(): void {\r\n\t\tif (!!this.sessionKilledSubscription) {\r\n\t\t\tthis.sessionKilledSubscription.unsubscribe();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate loadMfaSelectOptions(): void {\r\n\t\tthis.mfaSelectOptions = this.mfaData.MfaLoginData.UserMfaAuthenticators.map((userMfa) => {\r\n\t\t\tconst option = new MfaSelectCardViewModel();\r\n\t\t\toption.UserMfa = userMfa;\r\n\r\n\t\t\tif (option.UserMfa.MfaTypeName === MfaType.OTP) {\r\n\t\t\t\toption.MfaInfoIconUrl = 'assets/images/icon_dark_mfa_authenticator_app.svg';\r\n\t\t\t\toption.MfaTypeTitle = this.translateService.translate('mfa-select.mfaAuthenticatorTitleOtp', 'client');\r\n\t\t\t\toption.MfaTypeDescription = this.translateService.translate('mfa-select.mfaAuthenticatorDescriptionOtp', 'client');\r\n\t\t\t} else if (option.UserMfa.MfaTypeName === MfaType.EMAIL) {\r\n\t\t\t\toption.MfaInfoIconUrl = 'assets/images/icon_dark_mfa_authenticator_email.svg';\r\n\t\t\t\toption.MfaTypeTitle = this.translateService.translate('mfa-select.mfaAuthenticatorTitleEmail', 'client');\r\n\t\t\t\toption.MfaTypeDescription = this.translateService.translate('mfa-select.mfaAuthenticatorDescriptionEmail', 'client');\r\n\t\t\t}\r\n\r\n\t\t\treturn option;\r\n\t\t});\r\n\r\n\t\tthis.mfaSelectOptionsLoaded = Promise.resolve(true);\r\n\t}\r\n\r\n\tprotected goBack(): void {\r\n\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t}\r\n\r\n\tprotected navigateToMfaPage(selectedMfaOption: MfaSelectCardViewModel): void {\r\n\t\tthis.mfaLoginService.goToNextMfaPage(this.mfaData.MfaLoginData, selectedMfaOption.UserMfa);\r\n\t}\r\n}\r\n","
    \r\n\t
    \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\t
    \r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t

    {{ 'mfa-select.title' | translate }}

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

    {{ 'mfa-select.subTitle' | translate }}

    \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
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{{ option.MfaTypeTitle }}\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
    \r\n\t\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{{ 'mfa-select.goBack' | translate }}\r\n\t\t\t\t\t\t\t\t\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\t
    \r\n\t\t
    \r\n\t\t\t© {{ 'mfa-select.trademark' | translate }}\r\n\t\t
    \r\n\t
    \r\n\r\n","import { UserMfaAuthenticator } from \"../../../../models/User/mfa/user-mfa-configuration/user-mfa-authenticator\";\r\n\r\nexport class MfaSelectCardViewModel {\r\n // authenticator data\r\n public UserMfa: UserMfaAuthenticator;\r\n\r\n // visual information\r\n public MfaInfoIconUrl: string;\r\n public MfaTypeTitle: string;\r\n public MfaTypeDescription: string;\r\n}","import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { MfaLoginDataWithToken } from '../../../models/User/mfa/mfa-tokens/mfa-login-data';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { MfaLoginService } from '../../../services/authentication/mfa-login.service';\r\nimport { MfaType } from '../../../models/enums/mfa-type';\r\nimport { MfaSetUpOtpComponent } from '../../../shared-components/mfa-setup/mfa-setup-otp/mfa-setup-otp.component';\r\nimport { ScreenWidthListenerService } from '../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { SessionStatusBroadcastService } from '../../../services/authorization/session-status-broadcast.service';\r\nimport { BroadcastMessage } from '../../../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../../../models/broadcast/broadcast-message-type';\r\n\r\n@Component({\r\n\tselector: 'eif-mfa-setup-otp-page',\r\n\ttemplateUrl: './mfa-setup-otp-page.component.html',\r\n\tstyleUrls: ['./mfa-setup-otp-page.component.css'],\r\n})\r\nexport class MfaSetUpOtpPageComponent implements OnInit, OnDestroy {\r\n\t@ViewChild('mfaSetUpOtp') mfaSetUpOtp: MfaSetUpOtpComponent;\r\n\r\n\tprotected mfaData: MfaLoginDataWithToken;\r\n\tprotected componentLoaded: Promise;\r\n\tprivate sessionKilledSubscription: Subscription;\r\n\r\n\tconstructor(\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate mfaLoginService: MfaLoginService,\r\n\t\tprivate sessionStatusBroadcastService: SessionStatusBroadcastService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.mfaLoginService.getMfaLoginDataFromRoute(this.route).then((mfaData: MfaLoginDataWithToken) => {\r\n\t\t\tthis.mfaData = mfaData;\r\n\t\t\tif (!!this.mfaData?.MfaToken) {\r\n\t\t\t\tthis.subscribeSessionKill();\r\n\t\t\t\tthis.componentLoaded = Promise.resolve(true);\r\n\t\t\t} else {\r\n\t\t\t\tthis.goBack();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis.unsubscribeSessionKill();\r\n\t}\r\n\r\n\tprivate subscribeSessionKill(): void {\r\n\t\tthis.sessionKilledSubscription = this.sessionStatusBroadcastService\r\n\t\t\t.messagesOfType(BroadcastMessageType.SessionKilled)\r\n\t\t\t.subscribe((msg: BroadcastMessage) => {\r\n\t\t\t\tif (msg.type == BroadcastMessageType.SessionKilled) {\r\n\t\t\t\t\tthis.unsubscribeSessionKill();\r\n\t\t\t\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate unsubscribeSessionKill(): void {\r\n\t\tif (!!this.sessionKilledSubscription) {\r\n\t\t\tthis.sessionKilledSubscription.unsubscribe();\r\n\t\t}\r\n\t}\r\n\r\n\tprotected confirmSetUpSuccess(): void {\r\n\t\tconst index = this.mfaData.MfaLoginData.UserMfaAuthenticators?.findIndex((userMfa) => userMfa.MfaTypeName === MfaType.OTP) ?? -1;\r\n\t\tif (index === -1) {\r\n\t\t\t// PR: The user cannot confirm OTP set up without the authenticator being registered somehow (Active or otherwise).\r\n\t\t\tthis.goBack();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// PR: For security purposes the current MFA login process is cancelled.\r\n\t\t// The user then logs in again, this time having the OTP authenticator active and available.\r\n\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t}\r\n\r\n\tprotected goBack(): void {\r\n\t\tthis.mfaLoginService.cancelMfaLogin();\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
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    ","import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { MfaLoginDataWithToken } from '../../../models/User/mfa/mfa-tokens/mfa-login-data';\r\nimport { ScreenWidthListenerService } from '../../../services/screen-width-detector/screen-width-listener.service';\r\nimport { TranslateService } from '../../../services/translate/translate.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { MfaLoginService } from '../../../services/authentication/mfa-login.service';\r\nimport { MfaVerifyViewModel } from './models/mfa-verify-view-model';\r\nimport { MfaType } from '../../../models/enums/mfa-type';\r\nimport { MfaApiService } from '../../../server-api/mfa-api.service';\r\nimport { SendCodeMfaEmailInput } from '../../../models/User/mfa/user-mfa-configuration/send-code-mfa-email-input';\r\nimport { OperationResult } from '../../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { UtilitiesService } from '../../../services/utils/utilities.service';\r\nimport { NotificationService } from '../../../services/notification/notification.service';\r\nimport { OperationError } from '../../../models/server-result/operation-error';\r\nimport { SendCodeMfaEmailResult } from '../../../models/User/mfa/user-mfa-configuration/send-code-mfa-email-result';\r\nimport { RequestMfaLoginInput } from '../../../models/User/mfa/user-mfa-configuration/request-mfa-login-input';\r\nimport { ErrorDetailCode } from '../../../models/enums/error-detail-code';\r\nimport { TokensPerRole } from '../../../models/User/tokens-per-role';\r\nimport { UserMfaAuthenticator } from '../../../models/User/mfa/user-mfa-configuration/user-mfa-authenticator';\r\nimport { CheckCanRequestNewMfaEmailCodeInput } from '../../../models/User/mfa/user-mfa-configuration/check-can-request-new-mfa-email-code-input';\r\nimport { finalize, Subscription } from 'rxjs';\r\nimport { SessionStatusBroadcastService } from '../../../services/authorization/session-status-broadcast.service';\r\nimport { BroadcastMessage } from '../../../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../../../models/broadcast/broadcast-message-type';\r\nimport { LogService } from '../../../services/log/log.service';\r\n\r\n@Component({\r\n\tselector: 'eif-mfa-verify',\r\n\ttemplateUrl: './mfa-verify.component.html',\r\n\tstyleUrls: ['./mfa-verify.component.css'],\r\n})\r\nexport class MfaVerifyComponent implements OnInit, OnDestroy {\r\n\t@ViewChild('mfaVerifyCode') private mfaVerifyCode: ElementRef;\r\n\r\n\tprivate static REQUIRED_CODE_LENGTH = 6;\r\n\tprivate static FIRST_CODE_INPUT_POSITION = 1;\r\n\tprivate static LAST_CODE_INPUT_POSITION = 6;\r\n\r\n\tpublic isPerformingRequest: boolean;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\tprivate selectedAuthenticator: UserMfaAuthenticator;\r\n\tprotected mfaData: MfaLoginDataWithToken;\r\n\tprotected viewModel: MfaVerifyViewModel;\r\n\tprotected showOtpVerificationLayout: Promise;\r\n\tprotected isFatalError: Promise;\r\n\tprotected invalidOrExpiredOtpVerificationCode: boolean = false;\r\n\tprivate codeExpirationCheckerInterval: any = null;\r\n\tprivate _canRequestNewCode: boolean = false;\r\n\tprivate requestMfaVerifyTimeoutId: any = null;\r\n\tprivate sessionKilledSubscription: Subscription;\r\n\r\n\tconstructor(\r\n\t\tprotected screenWidthListener: ScreenWidthListenerService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate mfaLoginService: MfaLoginService,\r\n\t\tprivate mfaApiService: MfaApiService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate sessionStatusBroadcastService: SessionStatusBroadcastService,\r\n\t\tprivate logger: LogService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.mfaLoginService.getMfaLoginDataFromRoute(this.route).then((mfaData: MfaLoginDataWithToken) => {\r\n\t\t\tthis.mfaData = mfaData;\r\n\t\t\tthis.selectedAuthenticator = this.mfaData.SelectedMfaAuthenticator!;\r\n\t\t\tif (!!this.mfaData?.MfaToken && !!this.mfaData?.MfaLoginData && !!this.selectedAuthenticator) {\r\n\t\t\t\tif (this.selectedAuthenticator.MfaTypeName === MfaType.OTP) {\r\n\t\t\t\t\tthis.subscribeSessionKill();\r\n\t\t\t\t\tthis.loadMfaVerificationOtp();\r\n\t\t\t\t} else if (this.selectedAuthenticator.MfaTypeName === MfaType.EMAIL) {\r\n\t\t\t\t\tthis.subscribeSessionKill();\r\n\t\t\t\t\tthis.loadMfaVerificationEmail();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis.clearCodeExpirationChecker();\r\n\t\tthis.unsubscribeSessionKill();\r\n\t}\r\n\r\n\tprivate subscribeSessionKill(): void {\r\n\t\tthis.sessionKilledSubscription = this.sessionStatusBroadcastService\r\n\t\t\t.messagesOfType(BroadcastMessageType.SessionKilled)\r\n\t\t\t.subscribe((msg: BroadcastMessage) => {\r\n\t\t\t\tif (msg.type == BroadcastMessageType.SessionKilled) {\r\n\t\t\t\t\tthis.unsubscribeSessionKill();\r\n\t\t\t\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate unsubscribeSessionKill(): void {\r\n\t\tif (!!this.sessionKilledSubscription) {\r\n\t\t\tthis.sessionKilledSubscription.unsubscribe();\r\n\t\t}\r\n\t}\r\n\r\n\t// ************ Action handlers ************\r\n\r\n\tprotected get canRequestNewCode(): boolean {\r\n\t\treturn this._canRequestNewCode;\r\n\t}\r\n\r\n\tprotected requestNewCode(): void {\r\n\t\tif (!this.canRequestNewCode) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.viewModel.MfaTypeName === MfaType.EMAIL) {\r\n\t\t\tthis.loadMfaVerificationEmail();\r\n\t\t}\r\n\t}\r\n\r\n\tprotected chooseAnotherAuthenticator(): void {\r\n\t\tif (!this.hasOptionChooseOtherAuthenticators()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.mfaLoginService.goToNextMfaPage(this.mfaData.MfaLoginData);\r\n\t}\r\n\r\n\tprotected handleCodePaste(event): void {\r\n\t\tevent.preventDefault();\r\n\t\tevent.stopPropagation();\r\n\r\n\t\tconst pasted: string = event.clipboardData?.getData('text/plain') ?? event.target.value;\r\n\t\tconst pastedChars: string[] = pasted?.split('');\r\n\t\tif (!pastedChars || pastedChars.length === 0) {\r\n\t\t\tthis.clearVerificationCode();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (let index = 0; index < MfaVerifyComponent.REQUIRED_CODE_LENGTH; index++) {\r\n\t\t\tconst char = pastedChars[index];\r\n\t\t\tif (char) {\r\n\t\t\t\tconst position = index + 1;\r\n\t\t\t\tif (position >= MfaVerifyComponent.FIRST_CODE_INPUT_POSITION && position <= MfaVerifyComponent.LAST_CODE_INPUT_POSITION) {\r\n\t\t\t\t\tthis.viewModel[`CodeChar${position}`] = char;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.tryToSubmit();\r\n\t}\r\n\r\n\tprotected handleCodeChange(event: KeyboardEvent, position: number): void {\r\n\t\tif ((event.ctrlKey || event.metaKey) && (event.key === 'v' || event.key === 'V')) {\r\n\t\t\t// PR: Handled by the paste handler.\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst value = this.getCodeInput(position)?.value ?? '';\r\n\r\n\t\tif (value?.length === MfaVerifyComponent.REQUIRED_CODE_LENGTH) {\r\n\t\t\t// PR: Handled by the paste handler.\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (value?.length >= 1) {\r\n\t\t\tconst nextInput = this.getNextCodeInput(position);\r\n\t\t\tif (!!nextInput) {\r\n\t\t\t\tnextInput.focus();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tconst prevInput = this.getPreviousCodeInput(position);\r\n\t\t\tif (!!prevInput) {\r\n\t\t\t\tprevInput.focus();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// PR: The code must be typed in sequence from left to right.\r\n\t\t// Only try to submit when changing the last code input in order to avoid collision with the paste event.\r\n\t\tif (event.type === 'keyup' && position === MfaVerifyComponent.LAST_CODE_INPUT_POSITION) {\r\n\t\t\tthis.tryToSubmit();\r\n\t\t}\r\n\t}\r\n\r\n\tprotected handleCodeFocus(event: FocusEvent, position: number): void {\r\n\t\tif (position > MfaVerifyComponent.FIRST_CODE_INPUT_POSITION) {\r\n\t\t\tconst firstCodeInput = this.getCodeInput(MfaVerifyComponent.FIRST_CODE_INPUT_POSITION);\r\n\t\t\tif (!!firstCodeInput && !firstCodeInput.value) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\tevent.stopPropagation();\r\n\t\t\t\tfirstCodeInput.focus();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprotected handleKeyDown(event: KeyboardEvent, position: number): void {\r\n\t\tconst value = this.getCodeInput(position)?.value ?? '';\r\n\t\tif (event?.key === 'Backspace') {\r\n\t\t\tif (!value) {\r\n\t\t\t\tconst prevInput = this.getPreviousCodeInput(position);\r\n\t\t\t\tif (!!prevInput) {\r\n\t\t\t\t\t// PR: The current input already had no value.\r\n\t\t\t\t\t// This way the user can keep deleting the code without having to press the backspace again.\r\n\t\t\t\t\tprevInput.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (value?.length >= 1 && event.key.length === 1) {\r\n\t\t\t\tconst newValue = parseInt(event.key);\r\n\t\t\t\tif (!!newValue || newValue === 0) {\r\n\t\t\t\t\tconst nextInput = this.getNextCodeInput(position);\r\n\t\t\t\t\tif (!!nextInput) {\r\n\t\t\t\t\t\t// PR: The current input already had a value.\r\n\t\t\t\t\t\t// This way the user can keep typing the code without having to press the number key again.\r\n\t\t\t\t\t\tnextInput.focus();\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\tprotected cancelLogin(): void {\r\n\t\tthis.clearCodeExpirationChecker();\r\n\t\tthis.mfaLoginService.cancelMfaLogin();\r\n\t}\r\n\r\n\t// ************ Component loading ************\r\n\r\n\tprivate loadMfaVerificationOtp(): void {\r\n\t\tconst userMfaAuthenticator = this.mfaData.MfaLoginData.UserMfaAuthenticators.find((userMfa) => userMfa.MfaTypeName === MfaType.OTP);\r\n\t\tif (!userMfaAuthenticator || !userMfaAuthenticator.MfaDeviceName) {\r\n\t\t\t// PR: MfaDeviceName is mandatory.\r\n\t\t\tthis.cancelLogin();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.viewModel = new MfaVerifyViewModel();\r\n\t\tthis.viewModel.MfaTypeName = MfaType.OTP;\r\n\t\tthis.viewModel.HasOptionRequestNewCode = false;\r\n\t\tthis.viewModel.HasOptionChooseOtherAuthenticators = this.hasOptionChooseOtherAuthenticators();\r\n\r\n\t\tthis.viewModel.MfaInfoIconUrl = 'assets/images/icon_dark_mfa_authenticator_app.svg';\r\n\t\tthis.viewModel.MfaTypeTitle = this.translateService.translate('mfa-verify.mfaAuthenticatorTitleOtp', 'client');\r\n\t\tthis.viewModel.MfaTypeDescription = this.translateService\r\n\t\t\t.translate('mfa-verify.mfaAuthenticatorDescriptionOtp', 'client')\r\n\t\t\t.replace('[DEVICE_NAME]', userMfaAuthenticator.MfaDeviceName);\r\n\r\n\t\tthis.showOtpVerificationLayout = Promise.resolve(true);\r\n\t}\r\n\r\n\tprivate loadMfaVerificationEmail(): void {\r\n\t\t// PR: Initialize here in order to allow setting properties on both success and error cases when calling the server below.\r\n\t\tthis.viewModel = new MfaVerifyViewModel();\r\n\t\tthis.viewModel.MfaTypeName = MfaType.EMAIL;\r\n\t\tthis.viewModel.HasOptionRequestNewCode = true;\r\n\t\tthis.viewModel.HasOptionChooseOtherAuthenticators = this.hasOptionChooseOtherAuthenticators();\r\n\r\n\t\tthis.sendCodeMfaEmail().then((result: SendCodeMfaEmailResult) => {\r\n\t\t\tthis.viewModel.MfaInfoIconUrl = 'assets/images/icon_dark_mfa_authenticator_email.svg';\r\n\t\t\tthis.viewModel.MfaTypeTitle = this.translateService.translate('mfa-verify.mfaAuthenticatorTitleEmail', 'client');\r\n\t\t\tthis.viewModel.MfaTypeDescription = this.translateService\r\n\t\t\t\t.translate('mfa-verify.mfaAuthenticatorDescriptionEmail', 'client')\r\n\t\t\t\t.replace('[EMAIL]', result.CodeRecipientEmailObfuscated);\r\n\t\t\tthis.viewModel.CodeAreaFootnoteText = this.translateService.translate('mfa-verify.mfaVerificationCodeFootnoteTextEmail', 'client');\r\n\r\n\t\t\tthis.triggerCodeExpirationChecker();\r\n\r\n\t\t\tthis.showOtpVerificationLayout = Promise.resolve(true);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate sendCodeMfaEmail(): Promise {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tthis.clearOldInlineErrorIndicators();\r\n\r\n\t\t\tconst inputDto: SendCodeMfaEmailInput = {\r\n\t\t\t\tMfaToken: this.mfaData.MfaToken,\r\n\t\t\t};\r\n\r\n\t\t\tthis.isPerformingRequest = true;\r\n\r\n\t\t\tthis.mfaApiService.sendCodeMfaEmail(inputDto).subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid && !!operationResult.Data) {\r\n\t\t\t\t\t\t// PR: Each time the user requests a MFA Email code\r\n\t\t\t\t\t\t// they must wait before requesting again.\r\n\t\t\t\t\t\tthis._canRequestNewCode = false;\r\n\t\t\t\t\t\tresolve(operationResult.Data);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.handleMfaLoginOperationErrors(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.processHttpErrorResponse(httpErrorResponse);\r\n\t\t\t\t},\r\n\t\t\t\tcomplete: () => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tprivate hasOptionChooseOtherAuthenticators(): boolean {\r\n\t\tif (!!this.mfaData?.MfaLoginData?.UserMfaAuthenticators) {\r\n\t\t\tconst countActiveAuthenticators = this.mfaData.MfaLoginData.UserMfaAuthenticators.filter((userMfa) => userMfa.IsActive).length;\r\n\r\n\t\t\tif (countActiveAuthenticators > 1 || countActiveAuthenticators === 0) {\r\n\t\t\t\t// PR: It only makes sense if the user has more than 1 Active or has none,\r\n\t\t\t\t// in which case they're either logging in for the first time or after a MFA reset.\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate checkCanRequestNewCode(): Promise {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tconst inputDto: CheckCanRequestNewMfaEmailCodeInput = {\r\n\t\t\t\tMfaToken: this.mfaData.MfaToken,\r\n\t\t\t};\r\n\r\n\t\t\tthis.mfaApiService.checkCanRequestNewMfaEmailCode(inputDto).subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\t\tthis._canRequestNewCode = operationResult.Data;\r\n\t\t\t\t\t\tresolve();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.handleMfaLoginOperationErrors(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.processHttpErrorResponse(httpErrorResponse);\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tprivate clearCodeExpirationChecker(): void {\r\n\t\tif (!!this.codeExpirationCheckerInterval) {\r\n\t\t\tclearInterval(this.codeExpirationCheckerInterval);\r\n\t\t\tthis.codeExpirationCheckerInterval = null;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate triggerCodeExpirationChecker(): void {\r\n\t\tthis.clearCodeExpirationChecker();\r\n\r\n\t\tthis.codeExpirationCheckerInterval = setInterval(() => {\r\n\t\t\tthis.checkCanRequestNewCode().then(() => {\r\n\t\t\t\tif (this.canRequestNewCode) {\r\n\t\t\t\t\tthis.clearCodeExpirationChecker();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}, 60000);\r\n\t}\r\n\r\n\t// ************ Verification code handling ************\r\n\r\n\tprivate getNextCodeInput(position: number): HTMLInputElement | null {\r\n\t\treturn this.getCodeInput(position + 1);\r\n\t}\r\n\r\n\tprivate getPreviousCodeInput(position: number): HTMLInputElement | null {\r\n\t\treturn this.getCodeInput(position - 1);\r\n\t}\r\n\r\n\tprivate getCodeInput(position: number): HTMLInputElement | null {\r\n\t\tif (position >= MfaVerifyComponent.FIRST_CODE_INPUT_POSITION && position <= MfaVerifyComponent.LAST_CODE_INPUT_POSITION) {\r\n\t\t\treturn this.mfaVerifyCode?.nativeElement.querySelector(`#mfaVerifyCodeChar${position}`) as HTMLInputElement;\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\r\n\tprivate getVerificationCode(): string {\r\n\t\tlet code = '';\r\n\t\tif (!!this.viewModel) {\r\n\t\t\tfor (\r\n\t\t\t\tlet position = MfaVerifyComponent.FIRST_CODE_INPUT_POSITION;\r\n\t\t\t\tposition <= MfaVerifyComponent.LAST_CODE_INPUT_POSITION;\r\n\t\t\t\tposition++\r\n\t\t\t) {\r\n\t\t\t\tcode += this.viewModel[`CodeChar${position}`] ?? '';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn code;\r\n\t}\r\n\r\n\tprivate clearVerificationCode(): void {\r\n\t\tif (!this.viewModel) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (let position = MfaVerifyComponent.FIRST_CODE_INPUT_POSITION; position <= MfaVerifyComponent.LAST_CODE_INPUT_POSITION; position++) {\r\n\t\t\tthis.viewModel[`CodeChar${position}`] = '';\r\n\t\t}\r\n\r\n\t\tthis.getCodeInput(MfaVerifyComponent.FIRST_CODE_INPUT_POSITION)?.focus();\r\n\t}\r\n\r\n\tprivate tryToSubmit(): void {\r\n\t\tconst code = this.getVerificationCode();\r\n\t\tconst hasCompleteCode = code?.length === MfaVerifyComponent.REQUIRED_CODE_LENGTH;\r\n\t\tif (hasCompleteCode) {\r\n\t\t\tif (!!this.requestMfaVerifyTimeoutId) {\r\n\t\t\t\t// PR: Already requesting.\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.requestMfaVerifyTimeoutId = setTimeout(() => {\r\n\t\t\t\tthis.requestMfaLogin();\r\n\t\t\t}, 250);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate requestMfaLogin(): void {\r\n\t\tthis.clearOldInlineErrorIndicators();\r\n\r\n\t\tconst inputDto: RequestMfaLoginInput = {\r\n\t\t\tMfaToken: this.mfaData.MfaToken,\r\n\t\t\tMfaTypeName: this.viewModel.MfaTypeName,\r\n\t\t\tVerificationCode: this.getVerificationCode(),\r\n\t\t};\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tthis.mfaApiService\r\n\t\t\t.getJwtByMfa(inputDto)\r\n\t\t\t.pipe(\r\n\t\t\t\tfinalize(() => {\r\n\t\t\t\t\tthis.isPerformingRequest = false;\r\n\r\n\t\t\t\t\tif (!!this.requestMfaVerifyTimeoutId) {\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tthis.requestMfaVerifyTimeoutId = null;\r\n\t\t\t\t\t\t}, 250);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t\t.subscribe({\r\n\t\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\t\tif (operationResult.IsValid && !!operationResult.Data) {\r\n\t\t\t\t\t\tthis.mfaLoginService.handleMfaLoginSuccess(this.mfaData.MfaLoginData, operationResult.Data);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.handleMfaLoginOperationErrors(operationResult);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.processHttpErrorResponse(httpErrorResponse);\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t}\r\n\r\n\t// ************ Error handling ************\r\n\r\n\tprivate handleMfaLoginOperationErrors(operationResult: OperationResult): void {\r\n\t\tconst invalidTokenError = operationResult.Errors?.find((error) => error.Code === ErrorDetailCode.INVALID_TOKEN);\r\n\t\tconst invalidOrExpiredOtpVerificationCodeError = operationResult.Errors?.find(\r\n\t\t\t(error) => error.Code === ErrorDetailCode.INVALID_OR_EXPIRED_OTP_VERIFICATION_CODE\r\n\t\t);\r\n\r\n\t\tif (!!invalidTokenError) {\r\n\t\t\tthis.cancelLogin();\r\n\t\t} else if (!!invalidOrExpiredOtpVerificationCodeError) {\r\n\t\t\tthis.handleInvalidVerificationCode();\r\n\t\t} else {\r\n\t\t\tthis.processInvalidResult(operationResult);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate handleInvalidVerificationCode(): void {\r\n\t\tthis.clearVerificationCode();\r\n\t\tthis.invalidOrExpiredOtpVerificationCode = true;\r\n\t}\r\n\r\n\tprivate processInvalidResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = this.utilitiesService.GetDistinctOperationErrors(operationResult.Errors);\r\n\t\tif (this.requestErrors?.length > 0) {\r\n\t\t\tthis.isFatalError = Promise.resolve(true);\r\n\t\t\tthis.showOtpVerificationLayout = Promise.resolve(false);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processHttpErrorResponse(httpErrorResponse: HttpErrorResponse): void {\r\n\t\tthis.logger.error('[MfaVerify]:: HttpErrorResponse>', httpErrorResponse);\r\n\t\tthis.notificationService?.addDanger(httpErrorResponse.message);\r\n\t\tthis.isFatalError = Promise.resolve(true);\r\n\t\tthis.showOtpVerificationLayout = Promise.resolve(false);\r\n\t}\r\n\r\n\tprivate clearOldInlineErrorIndicators(): void {\r\n\t\tthis.invalidOrExpiredOtpVerificationCode = false;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n
    \r\n\t\r\n\t
    \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\t\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t

    {{ 'mfa-verify.title' | translate }}

    \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{{ 'mfa-verify.loginAgain' | translate }}\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\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

    {{ 'mfa-verify.title' | translate }}

    \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\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{{ viewModel.MfaTypeTitle }}\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\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
    \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\t
    \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
    \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
    \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\t
    \r\n\t\t\t\t\t\t\t\t\t{{ 'mfa-verify.invalidOrExpiredCode' | translate }}\r\n\t\t\t\t\t\t\t\t
    \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{{ viewModel.CodeAreaFootnoteText }}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{{ 'mfa-verify.requestNewCode' | translate }}\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{{ 'mfa-verify.waitBeforeRequestNewCode' | translate }}\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{{ 'mfa-verify.orText' | translate }}\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{{ 'mfa-verify.chooseAnotherAuthenticator' | translate }}\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\t
    \r\n\t\t
    \r\n\t\t\t© {{ 'mfa-verify.trademark' | translate }}\r\n\t\t
    \r\n\t
    \r\n\r\n","export class MfaVerifyViewModel {\r\n public MfaTypeName: string;\r\n public MfaInfoIconUrl: string;\r\n public MfaTypeTitle: string;\r\n public MfaTypeDescription: string;\r\n public HasOptionRequestNewCode: boolean;\r\n public HasOptionChooseOtherAuthenticators: boolean;\r\n public CodeAreaFootnoteText: string;\r\n public CodeChar1: string;\r\n public CodeChar2: string;\r\n public CodeChar3: string;\r\n public CodeChar4: string;\r\n public CodeChar5: string;\r\n public CodeChar6: string;\r\n}","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'app-public-home',\r\n\ttemplateUrl: './public-home.component.html',\r\n\tstyleUrls: ['./public-home.component.css'],\r\n})\r\nexport class PublicHomeComponent {\r\n\tconstructor() {}\r\n}\r\n","
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    Bem-vindo ao
    \r\n\t\t\t\t\r\n\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\t
    \r\n\t\t\t\t\t\t
    Version 6.9.8.1 is ready
    \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
    \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\tYou can check all the new features in this link\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
    Contacts
    \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
    \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\tSend us your opinion\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
    Login
    \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
    \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\tClick here for login\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 { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { PublicComponent } from './public.component';\r\nimport { LoginComponent } from './login/login.component';\r\nimport { RecoverPasswordComponent } from './recover-password/recover-password.component';\r\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\r\nimport { UserInvitationResponseComponent } from './invitations/user-invitation-response/user-invitation-response.component';\r\nimport { ConfirmingSupplierInvitationResponseComponent } from './invitations/confirming/supplier-invitation-response/supplier-confirming-invitation-response.component';\r\nimport { ConfirmingBuyerInvitationResponseComponent } from './invitations/confirming/buyer-invitation-response/buyer-invitation-response.component';\r\nimport { FactoringSupplierInvitationResponseComponent } from './invitations/factoring/supplier-invitation-response/supplier-invitation-response.component';\r\nimport { ResetLoggedInformationComponent } from './reset-logged-information/reset-logged-information.component';\r\nimport { MfaSelectComponent } from './mfa/mfa-select/mfa-select.component';\r\nimport { MfaVerifyComponent } from './mfa/mfa-verify/mfa-verify.component';\r\nimport { MfaSetUpOtpPageComponent } from './mfa/mfa-setup-otp-page/mfa-setup-otp-page.component';\r\n\r\nconst routes: Routes = [\r\n\t{\r\n\t\tpath: 'public',\r\n\t\tcomponent: PublicComponent,\r\n\t\tchildren: [\r\n\t\t\t{\r\n\t\t\t\tpath: '',\r\n\t\t\t\tcomponent: LoginComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'login',\r\n\t\t\t\tcomponent: LoginComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'login/resetLoggedInformation',\r\n\t\t\t\tcomponent: ResetLoggedInformationComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'recover-password',\r\n\t\t\t\tcomponent: RecoverPasswordComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'reset-password',\r\n\t\t\t\tcomponent: ResetPasswordComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'user-invitation-response/:invitationContext',\r\n\t\t\t\tcomponent: UserInvitationResponseComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'invitation/company/new/supplier/confirming-invitation-response/:invitationContext',\r\n\t\t\t\tcomponent: ConfirmingSupplierInvitationResponseComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'invitation/company/new/buyer/confirming-invitation-response/:invitationContext',\r\n\t\t\t\tcomponent: ConfirmingBuyerInvitationResponseComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'invitation/company/existing/confirming-invitation-response/:invitationContext',\r\n\t\t\t\tcomponent: ConfirmingSupplierInvitationResponseComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'invitation/company/new/supplier/factoring-invitation-response/:invitationContext',\r\n\t\t\t\tcomponent: FactoringSupplierInvitationResponseComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'mfa-select',\r\n\t\t\t\tcomponent: MfaSelectComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'mfa-verify',\r\n\t\t\t\tcomponent: MfaVerifyComponent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tpath: 'mfa-setup-otp',\r\n\t\t\t\tcomponent: MfaSetUpOtpPageComponent,\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n];\r\n\r\n@NgModule({\r\n\timports: [RouterModule.forChild(routes)],\r\n\texports: [RouterModule],\r\n})\r\nexport class PublicRoutingModule {}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'app-public',\r\n\ttemplateUrl: './public.component.html',\r\n\tstyleUrls: ['./public.component.css'],\r\n})\r\nexport class PublicComponent {\r\n\tconstructor() {}\r\n}\r\n","\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PublicComponent } from './public.component';\r\nimport { PublicRoutingModule } from './public-routing.module';\r\nimport { PublicHomeComponent } from './public-home/public-home.component';\r\nimport { LoginComponent } from './login/login.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NotificationService } from '../services/notification/notification.service';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { TranslateModule } from '../services/translate/translate.module';\r\nimport { CoreModule } from '../core/core.module';\r\nimport { RecoverPasswordComponent } from './recover-password/recover-password.component';\r\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NgxCaptchaModule } from 'ngx-captcha';\r\nimport { ConfirmingSupplierInvitationResponseComponent } from './invitations/confirming/supplier-invitation-response/supplier-confirming-invitation-response.component';\r\nimport { ConfirmingBuyerInvitationResponseComponent } from './invitations/confirming/buyer-invitation-response/buyer-invitation-response.component';\r\nimport { InterceptorMessageService } from '../services/interceptor-message/interceptor-message.service';\r\nimport { UserInvitationResponseComponent } from './invitations/user-invitation-response/user-invitation-response.component';\r\nimport { FactoringSupplierInvitationResponseComponent } from './invitations/factoring/supplier-invitation-response/supplier-invitation-response.component';\r\nimport { ResetLoggedInformationComponent } from './reset-logged-information/reset-logged-information.component';\r\nimport { MfaSelectComponent } from '../public/mfa/mfa-select/mfa-select.component';\r\nimport { MfaVerifyComponent } from '../public/mfa/mfa-verify/mfa-verify.component';\r\nimport { MfaSetUpOtpPageComponent } from '../public/mfa/mfa-setup-otp-page/mfa-setup-otp-page.component';\r\n\r\n@NgModule({\r\n\timports: [CommonModule, FormsModule, CoreModule, PublicRoutingModule, TranslateModule, ReactiveFormsModule, NgxCaptchaModule, NgbModule],\r\n\tproviders: [NotificationService, InterceptorMessageService, AppContextService],\r\n\tdeclarations: [\r\n\t\tPublicComponent,\r\n\t\tPublicHomeComponent,\r\n\t\tLoginComponent,\r\n\t\tRecoverPasswordComponent,\r\n\t\tResetPasswordComponent,\r\n\t\tUserInvitationResponseComponent,\r\n\t\tConfirmingSupplierInvitationResponseComponent,\r\n\t\tConfirmingBuyerInvitationResponseComponent,\r\n\t\tFactoringSupplierInvitationResponseComponent,\r\n\t\tResetLoggedInformationComponent,\r\n\t\tMfaSelectComponent,\r\n\t\tMfaVerifyComponent,\r\n\t\tMfaSetUpOtpPageComponent,\r\n\t],\r\n})\r\nexport class PublicModule {}\r\n","import { AfterViewInit, ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';\r\nimport { ServerApiService } from '../../server-api/server-api.service';\r\nimport { NotificationService } from '../../services/notification/notification.service';\r\nimport { LogService } from '../../services/log/log.service';\r\nimport { Router } from '@angular/router';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { InvisibleReCaptchaComponent } from 'ngx-captcha';\r\n\r\n@Component({\r\n\tselector: 'app-recover-password',\r\n\ttemplateUrl: './recover-password.component.html',\r\n\tstyleUrls: ['./recover-password.component.css'],\r\n})\r\nexport class RecoverPasswordComponent implements OnInit, AfterViewInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic processCompleted = false;\r\n\r\n\tpublic usernameOrEmail: string;\r\n\tpublic reCapchaClientKey: string;\r\n\tpublic language: string;\r\n\tprivate reCapchaToken: string | null;\r\n\r\n\tpublic captchaIsLoaded = false;\r\n\tpublic captchaSuccess = false;\r\n\tpublic captchaIsReady = false;\r\n\r\n\tpublic recaptcha: any = null;\r\n\r\n\t@ViewChild('captchaElem') captchaElem: InvisibleReCaptchaComponent;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate router: Router,\r\n\t\tprivate formBuilder: UntypedFormBuilder,\r\n\t\tprivate cdr: ChangeDetectorRef\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.reCapchaClientKey = this.appContext.getEnvironment().GoogleReCapchaKey;\r\n\t\tthis.language = this.appContext.getCurrentLanguage();\r\n\t}\r\n\r\n\tngAfterViewInit(): void {\r\n\t\tthis.captchaIsLoaded = true;\r\n\t\tthis.cdr.detectChanges();\r\n\t}\r\n\r\n\tpublic recoverPassword(event): void {\r\n\t\tevent.preventDefault();\r\n\r\n\t\t//recaptach already had success\r\n\t\tif (!!this.reCapchaToken) this.doRecoverPassword();\r\n\t\telse this.captchaElem.execute();\r\n\t}\r\n\r\n\tprivate processRecoverPasswordCallError(httpError: HttpErrorResponse): void {\r\n\t\tthis.notificationService.addDanger(httpError.statusText + httpError.message);\r\n\t}\r\n\r\n\tprivate processRecoverPasswordResponse(operationResult: OperationResult): void {\r\n\t\tconst msgEmailSent = this.translateService.translate('recoverPassword.email_sent.toast');\r\n\t\tthis.notificationService.addSuccess(msgEmailSent);\r\n\t\tthis.processCompleted = true;\r\n\t}\r\n\r\n\tpublic handleExpire(): void {\r\n\t\tthis.reCapchaToken = null;\r\n\t\tthis.logger.log('Recovering password Google reCapcha expired.');\r\n\t}\r\n\r\n\tpublic handleError(): void {\r\n\t\tthis.reCapchaToken = null;\r\n\t\tthis.logger.log('Recovering password Google reCapcha error.');\r\n\t}\r\n\r\n\thandleLoad(): void {\r\n\t\tthis.captchaIsLoaded = true;\r\n\t\tthis.cdr.detectChanges();\r\n\t}\r\n\r\n\thandleReady(): void {\r\n\t\tthis.captchaIsReady = true;\r\n\t\tthis.cdr.detectChanges();\r\n\t}\r\n\r\n\thandleSuccess(captchaResponse: string): void {\r\n\t\tthis.captchaSuccess = true;\r\n\t\tthis.reCapchaToken = captchaResponse;\r\n\t\tthis.cdr.detectChanges();\r\n\r\n\t\tthis.doRecoverPassword();\r\n\t}\r\n\r\n\tprivate doRecoverPassword(): void {\r\n\t\tif (!this.reCapchaToken) {\r\n\t\t\tconst msgNoReacapchaToken = this.translateService.translate('recoverPassword.emptyRecapcha');\r\n\t\t\tthis.notificationService.addDanger(msgNoReacapchaToken);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.usernameOrEmail) {\r\n\t\t\tconst msgNoUsername = this.translateService.translate('recoverPassword.emptyUsernameOrEmail');\r\n\t\t\tthis.notificationService.addDanger(msgNoUsername);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst serviceCall = this.serverApiService.recoverPasswordEmail(this.usernameOrEmail, this.reCapchaToken);\r\n\t\tthis.logger.log('Recovering password for:' + this.usernameOrEmail);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.processRecoverPasswordResponse(operationResult);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.processRecoverPasswordCallError(httpErrorResponse);\r\n\t\t\t\tthis.logger.log(httpErrorResponse.message);\r\n\t\t\t\tthis.logger.warn('warning: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\treturn;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
    \r\n\t
    \r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ 'recoverPassword_mainMessage' | translate }}\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t\t

    {{ 'recoverPassword_subMessage' | translate }}

    \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\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\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\t
    {{ 'recoverPassword.email_sent' | translate }}
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'login.submit' | translate }}\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 { Component, OnInit } from '@angular/core';\r\nimport { AppContextService } from '../../services/app-context.service';\r\n\r\n@Component({\r\n\tselector: 'app-reset-logged-information',\r\n\ttemplateUrl: './reset-logged-information.component.html',\r\n\tstyleUrls: ['./reset-logged-information.component.css'],\r\n})\r\nexport class ResetLoggedInformationComponent implements OnInit {\r\n\tpublic resetFeedback: string = '';\r\n\r\n\tconstructor(private appContext: AppContextService) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.appContext.removeSession();\r\n\r\n\t\tthis.resetFeedback = \"browser's flexcash information has been reseted\";\r\n\t}\r\n}\r\n","

    {{ resetFeedback }}

    \r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { NotificationService } from '../../services/notification/notification.service';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\nimport { LogService } from '../../services/log/log.service';\r\nimport { ServerApiService } from '../../server-api/server-api.service';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { AppContextService } from '../../services/app-context.service';\r\n\r\n@Component({\r\n\tselector: 'app-reset-password',\r\n\ttemplateUrl: './reset-password.component.html',\r\n\tstyleUrls: ['./reset-password.component.css'],\r\n})\r\nexport class ResetPasswordComponent implements OnInit {\r\n\tpublic isPerformingRequest = false;\r\n\tpublic processCompleted = false;\r\n\tpublic showRules = false;\r\n\r\n\tpublic password1: string;\r\n\tpublic password2: string;\r\n\r\n\tprivate resetToken: string;\r\n\tprivate tokenId: string;\r\n\tprivate username: string;\r\n\r\n\tpublic userLanguage: string;\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate appContext: AppContextService\r\n\t) {\r\n\t\tthis.route.queryParams.subscribe((params) => {\r\n\t\t\tlet base64Token = params['token'];\r\n\r\n\t\t\tif (!base64Token) {\r\n\t\t\t\tthis.notificationService.addDanger('Could not get token from route...');\r\n\t\t\t}\r\n\r\n\t\t\t//base64 to string\r\n\t\t\tlet token = atob(base64Token);\r\n\r\n\t\t\tif (!!token) {\r\n\t\t\t\tlet parameters: string[] = token.split('&');\r\n\r\n\t\t\t\tif (parameters.length < 3) this.notificationService.addDanger('Could not get token content...');\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.tokenId = parameters[0].split(':')[1];\r\n\t\t\t\t\tthis.resetToken = parameters[1].split(':')[1];\r\n\t\t\t\t\tthis.username = parameters[2].split(':')[1];\r\n\r\n\t\t\t\t\tif (!this.resetToken || !this.username || !this.tokenId) {\r\n\t\t\t\t\t\tthis.notificationService.addDanger('Could not get token parameters...');\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\tngOnInit() {\r\n\t\tthis.getUserLanguage();\r\n\t}\r\n\r\n\tpublic resetPassword(): boolean {\r\n\t\tthis.logger.log('isPerformingRequest: ' + this.isPerformingRequest);\r\n\t\tthis.logger.log('Reseting Password for user ' + this.username + ' with token ' + this.resetToken);\r\n\r\n\t\tif (!this.username) {\r\n\t\t\tconst msgNoUsername = this.translateService.translateByLanguage('resetPassword.emptyUsername', this.userLanguage);\r\n\t\t\tthis.notificationService.addDanger(msgNoUsername);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!this.resetToken) {\r\n\t\t\tconst msgNoToken = this.translateService.translateByLanguage('resetPassword.emptyToken', this.userLanguage);\r\n\t\t\tthis.notificationService.addDanger(msgNoToken);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!this.password1 || !this.password2) {\r\n\t\t\tconst msgNoPassword = this.translateService.translateByLanguage('resetPassword.emptyPassword', this.userLanguage);\r\n\t\t\tthis.notificationService.addDanger(msgNoPassword);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (this.password1 !== this.password2) {\r\n\t\t\tconst msgdiffenretPassword = this.translateService.translateByLanguage('resetPassword.passwordsDontMatch', this.userLanguage);\r\n\t\t\tthis.notificationService.addDanger(msgdiffenretPassword);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tconst serviceCall = this.serverApiService.resetUserPassword(this.username, this.password1, this.resetToken, this.tokenId);\r\n\t\tthis.logger.log('Recovering password for token' + this.resetToken);\r\n\t\tthis.isPerformingRequest = true;\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.processResetPasswordResponse(operationResult);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.processResetPasswordCallError(httpErrorResponse);\r\n\t\t\t\tthis.logger.log(httpErrorResponse.message);\r\n\t\t\t\tthis.logger.warn('warning: ' + httpErrorResponse.message);\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\treturn true;\r\n\t}\r\n\tprocessResetPasswordCallError(httpError: HttpErrorResponse): void {\r\n\t\tthis.notificationService.addDanger(httpError.statusText + httpError.message);\r\n\t}\r\n\tprocessResetPasswordResponse(operationResult: OperationResult): void {\r\n\t\tif (operationResult.IsValid) {\r\n\t\t\tconst msgResetSuccess = this.translateService.translateByLanguage('resetPassword.successful', this.userLanguage);\r\n\t\t\tthis.notificationService.addSuccess(msgResetSuccess);\r\n\t\t\tthis.processCompleted = true;\r\n\t\t} else {\r\n\t\t\tconst msgNoResetPassword = this.translateService.translateByLanguage('resetPassword.error', this.userLanguage);\r\n\t\t\tthis.notificationService.addWarning(msgNoResetPassword);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate getUserLanguage() {\r\n\t\tthis.userLanguage = this.appContext.getCurrentLanguage();\r\n\r\n\t\tconst getUserLangageCodeCall = this.serverApiService.getUserLanguageCode(this.username);\r\n\t\tgetUserLangageCodeCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.processGetUserLangageCodeCallResponse(operationResult);\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.processGetUserLangageCodeCallError(httpErrorResponse);\r\n\t\t\t\tthis.logger.log(httpErrorResponse.message);\r\n\t\t\t\tthis.logger.warn('warning: ' + httpErrorResponse.message);\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprocessGetUserLangageCodeCallError(httpError: HttpErrorResponse): void {\r\n\t\tthis.notificationService.addDanger(httpError.statusText + httpError.message);\r\n\t}\r\n\tprocessGetUserLangageCodeCallResponse(operationResult: OperationResult): void {\r\n\t\tif (operationResult.IsValid) {\r\n\t\t\tthis.userLanguage = operationResult.Data;\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
    \r\n\t
    \r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ 'resetPassword.mainMessage' | translate: 'client' : userLanguage }}\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
    {{ 'resetPassword.subMessage' | translate: 'client' : userLanguage }}
    \r\n\t\t\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\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'resetPassword.passwordRules' | translate: 'client' : userLanguage }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
      \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule1' | translate: 'client' : userLanguage }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule2' | translate: 'client' : userLanguage }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule3' | translate: 'client' : userLanguage }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule4' | translate: 'client' : userLanguage }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    • {{ 'resetPassword.passwordRule5' | translate: 'client' : userLanguage }}
    • \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\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
    \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\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
    \r\n\t\t\t\t\t\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
    \r\n\t\t\t\t\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\n\t\t\t\t\t
    {{ 'resetPassword.completed' | translate: 'client' : userLanguage }}
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{{ 'login.submit' | translate: 'client' : userLanguage }}\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 { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { ServerApiService } from '../../server-api/server-api.service';\r\nimport { User } from '../../models/User/user';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { SearchMissingAcceptanceOfDocuments } from '../../models/documentation/search-missing-acceptance-of-documents';\r\nimport { OperationError } from '../../models/server-result/operation-error';\r\nimport { LogService } from '../../services/log/log.service';\r\nimport { NotificationService } from '../../services/notification/notification.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { UtilitiesService } from '../../services/utils/utilities.service';\r\nimport { SearchedMissingDocument } from '../../models/documentation/searched-missing-document';\r\nimport { MissingAcceptedDocumentViewModel } from './view-models/missing-accepted-document-view-model';\r\nimport { AcceptanceOfMissingDocuments } from '../../models/documentation/acceptance-missing-document';\r\nimport { AcceptMissingDocument } from '../../models/documentation/accept-missing-document';\r\nimport { LegalDocumentType } from '../../models/enums/documentation/legal-document-type';\r\nimport { TranslateService } from '../../services/translate/translate.service';\r\nimport { EifLoggedUser } from '../../models/User/eif-logged-user.type';\r\n\r\n@Component({\r\n\tselector: 'app-missing-accepted',\r\n\ttemplateUrl: './missing-accepted.component.html',\r\n\tstyleUrls: ['./missing-accepted.component.css'],\r\n})\r\nexport class MissingAcceptedComponent implements OnInit {\r\n\tpublic loggedUser: User | null = null;\r\n\tpublic isPerformingRequest = false;\r\n\tpublic requestErrors: OperationError[] = [];\r\n\tpublic missingAcceptanceDocuments: MissingAcceptedDocumentViewModel[] = [];\r\n\tpublic allDocsAccepted: boolean = false;\r\n\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate utilitiesService: UtilitiesService,\r\n\t\tprivate translateService: TranslateService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.loggedUser = this.appContext.getLoggedUser();\r\n\r\n\t\tconst searchMissingAcceptanceOfDocumentsServiceAll = this.serverApiService.searchMissingAcceptanceOfDocuments(\r\n\t\t\tthis.loggedUser?.Username!\r\n\t\t);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tsearchMissingAcceptanceOfDocumentsServiceAll.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidSearchMissingAcceptanceOfDocumentsResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidSearchMissingAcceptanceOfDocumentsResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[MissingAcceptedComponent::searchMissingAcceptanceOfDocuments] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[MissingAcceptedComponent::searchMissingAcceptanceOfDocuments] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\tthis.allDocumentsAccepted();\r\n\t}\r\n\r\n\tprivate processValidSearchMissingAcceptanceOfDocumentsResult(operationResult: OperationResult): void {\r\n\t\tlet missingDocuments: SearchedMissingDocument[] | null = this.utilitiesService.ObjectDeepCopy(operationResult.Data.MissingDocuments);\r\n\r\n\t\tmissingDocuments\r\n\t\t\t?.sort(function (doc1: SearchedMissingDocument, doc2: SearchedMissingDocument) {\r\n\t\t\t\tvar doc1Code = doc1.LegalDocumentType.toUpperCase();\r\n\t\t\t\tvar doc2Code = doc2.LegalDocumentType.toUpperCase();\r\n\t\t\t\treturn doc1Code < doc2Code ? -1 : doc1Code > doc2Code ? 1 : 0;\r\n\t\t\t})\r\n\t\t\t.forEach((missingDoc) => {\r\n\t\t\t\tthis.missingAcceptanceDocuments.push({\r\n\t\t\t\t\tLegalDocumentType: missingDoc.LegalDocumentType,\r\n\t\t\t\t\tDocumentBlob: this.utilitiesService.base64ToBlob(missingDoc.Document, missingDoc.ContentType),\r\n\t\t\t\t\tContentType: missingDoc.ContentType,\r\n\t\t\t\t\tDocumentId: missingDoc.DocumentId,\r\n\t\t\t\t\tAcceptanceHash: missingDoc.AcceptanceHash,\r\n\t\t\t\t\tAccepted: false,\r\n\t\t\t\t\tDocumentDownloadName: missingDoc.LegalDocumentType + '_name',\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate processInvalidSearchMissingAcceptanceOfDocumentsResult(\r\n\t\toperationResult: OperationResult\r\n\t): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tpublic openBlob(blob: Blob, docNameForDownload: string): void {\r\n\t\tthis.utilitiesService.openBlobNewWindowWithName(blob, docNameForDownload, false);\r\n\t}\r\n\r\n\tpublic allDocumentsAccepted(): void {\r\n\t\tthis.allDocsAccepted = this.missingAcceptanceDocuments.length > 0 && !this.missingAcceptanceDocuments.some((d) => !d.Accepted);\r\n\t}\r\n\r\n\tpublic refuseDocuments(): void {\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigateByUrl('/public/login');\r\n\t}\r\n\r\n\tpublic acceptDocuments(): void {\r\n\t\tlet acceptanceOfMissingDocuments: AcceptanceOfMissingDocuments = {\r\n\t\t\tUsername: this.loggedUser?.Username,\r\n\t\t\tAcceptanceMissingDocuments: this.missingAcceptanceDocuments.map(\r\n\t\t\t\t(d) =>\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLegalDocumentType: d.LegalDocumentType,\r\n\t\t\t\t\t\tDocumentId: d.DocumentId,\r\n\t\t\t\t\t\tAcceptanceHash: d.AcceptanceHash,\r\n\t\t\t\t\t}\r\n\t\t\t),\r\n\t\t};\r\n\r\n\t\tconst acceptMissingDocumentsServiceAll = this.serverApiService.acceptMissingDocuments(acceptanceOfMissingDocuments);\r\n\r\n\t\tthis.isPerformingRequest = true;\r\n\r\n\t\tacceptMissingDocumentsServiceAll.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tif (operationResult.IsValid) {\r\n\t\t\t\t\tthis.processValidAcceptMissinDocumentsResult(operationResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidAcceptMissinDocumentsResult(operationResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.isPerformingRequest = false;\r\n\t\t\t\tthis.logger.error('[MissingAcceptedComponent::searchMissingAcceptanceOfDocuments] HttpErrorResponse: ', httpErrorResponse);\r\n\t\t\t\t// eslint-disable-next-line max-len\r\n\t\t\t\tthis.notificationService.addDanger(\r\n\t\t\t\t\t'[MissingAcceptedComponent::searchMissingAcceptanceOfDocuments] HttpErrorResponse: ' +\r\n\t\t\t\t\t\thttpErrorResponse.error +\r\n\t\t\t\t\t\thttpErrorResponse.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\treturn;\r\n\t}\r\n\r\n\tprivate processValidAcceptMissinDocumentsResult(operationResult: OperationResult): void {\r\n\t\tif (operationResult.IsValid) {\r\n\t\t\tif (!!this.loggedUser) {\r\n\t\t\t\tlet loggedUserData: EifLoggedUser[] = this.appContext.getLoggedUserData(this.loggedUser.Username!);\r\n\r\n\t\t\t\tif (loggedUserData.length > 1) {\r\n\t\t\t\t\tlet destinationUrl = '/required-action/users/roleSelection';\r\n\t\t\t\t\tthis.router.navigateByUrl(destinationUrl);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.appContext.setClientToken(loggedUserData[0].Token);\r\n\t\t\t\t\tthis.router.navigateByUrl('/private/u/' + this.appContext.getUserSessionIndexFromUsername(this.loggedUser.Username!) + '/home');\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\t\t} else {\r\n\t\t\tthis.appContext.removeSession();\r\n\t\t\tthis.router.navigateByUrl('/public/login');\r\n\t\t}\r\n\t}\r\n\r\n\tprivate processInvalidAcceptMissinDocumentsResult(operationResult: OperationResult): void {\r\n\t\tthis.requestErrors = operationResult.Errors;\r\n\t}\r\n\r\n\tpublic getAdditionalDocumentText(legalDocumentType: string): string | null {\r\n\t\tif (legalDocumentType === LegalDocumentType.PersonalDataConsent)\r\n\t\t\treturn this.translateService.translateByLanguage(\r\n\t\t\t\t'missingAcceptanceDocument.contextInformation3',\r\n\t\t\t\tthis.loggedUser?.LanguageCode,\r\n\t\t\t\t'client'\r\n\t\t\t);\r\n\r\n\t\treturn null;\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n
    \r\n\t
    \r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ 'missingAcceptanceDocument.message' | translate }}\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{{ 'missingAcceptanceDocument.contextInformation1' | translate }}\r\n\t\t\t\t\t\t{{ loggedUser?.Name }}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{{ 'missingAcceptanceDocument.contextInformation2' | translate }}\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\r\n\t\t\t\t\t\t\t\t{{ 'missingAcceptanceDocument.readAndAcceptTermsMsg' | translate\r\n\t\t\t\t\t\t\t\t\t}}{{ missingAcceptanceDocument.LegalDocumentType | translate: 'list-DocumentNamesLabel' }}\r\n\t\t\t\t\t\t\t\t\t{{ getAdditionalDocumentText(missingAcceptanceDocument.LegalDocumentType) }}\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{{ 'missingAcceptanceDocument.refuse' | translate }}\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{{ 'missingAcceptanceDocument.accept' | translate }}\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{{ 'help.email.support' | translate }}\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { RequiredActionComponent } from './required-action.component';\r\nimport { MissingAcceptedComponent } from './documentation/missing-accepted.component';\r\nimport { UserLoggedInGuard } from '../guards/user-logged-in.guard';\r\nimport { UserLoginRoleSelectionComponent } from './users/user-login-role-selection/user-login-role-selection.component';\r\nimport { AuthGuard } from '../guards/auth.guard';\r\n\r\nconst routes: Routes = [\r\n\t{\r\n\t\tpath: 'required-action',\r\n\t\tcomponent: RequiredActionComponent,\r\n\t\tchildren: [\r\n\t\t\t{ path: 'documentation/acceptance', component: MissingAcceptedComponent, canActivate: [UserLoggedInGuard] },\r\n\t\t\t{ path: 'users/roleSelection', component: UserLoginRoleSelectionComponent, canActivate: [AuthGuard] },\r\n\t\t],\r\n\t},\r\n];\r\n\r\n@NgModule({\r\n\timports: [RouterModule.forChild(routes)],\r\n\texports: [RouterModule],\r\n})\r\nexport class RequiredActionRoutingModule {}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'app-required-action',\r\n\ttemplateUrl: './required-action.component.html',\r\n\tstyleUrls: ['./required-action.component.css'],\r\n})\r\nexport class RequiredActionComponent {\r\n\tconstructor() {}\r\n}\r\n","\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { NotificationService } from '../services/notification/notification.service';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { TranslateModule } from '../services/translate/translate.module';\r\nimport { CoreModule } from '../core/core.module';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NgxCaptchaModule } from 'ngx-captcha';\r\nimport { InterceptorMessageService } from '../services/interceptor-message/interceptor-message.service';\r\nimport { RequiredActionComponent } from './required-action.component';\r\nimport { MissingAcceptedComponent } from './documentation/missing-accepted.component';\r\nimport { RequiredActionRoutingModule } from './required-action-routing.module';\r\nimport { UserLoginRoleSelectionComponent } from './users/user-login-role-selection/user-login-role-selection.component';\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tFormsModule,\r\n\t\tCoreModule,\r\n\t\tRequiredActionRoutingModule,\r\n\t\tTranslateModule,\r\n\t\tReactiveFormsModule,\r\n\t\tNgxCaptchaModule,\r\n\t\tNgbModule,\r\n\t],\r\n\tproviders: [NotificationService, InterceptorMessageService, AppContextService],\r\n\tdeclarations: [RequiredActionComponent, MissingAcceptedComponent, UserLoginRoleSelectionComponent],\r\n})\r\nexport class RequiredActionModule {}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { AppContextService } from '../../../services/app-context.service';\r\nimport { User } from '../../../models/User/user';\r\nimport { EifLoggedUser } from '../../../models/User/eif-logged-user.type';\r\n\r\n@Component({\r\n\tselector: 'app-user-login-role-selection',\r\n\ttemplateUrl: './user-login-role-selection.component.html',\r\n\tstyleUrls: ['./user-login-role-selection.component.css'],\r\n})\r\nexport class UserLoginRoleSelectionComponent implements OnInit {\r\n\tpublic loggedUser: User | null = null;\r\n\tpublic userRoles: EifLoggedUser[];\r\n\tprivate returnUrl: string | null;\r\n\r\n\tconstructor(private router: Router, private route: ActivatedRoute, private appContext: AppContextService) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.returnUrl = this.route.snapshot.queryParams['returnUrl'] || null;\r\n\r\n\t\tthis.loggedUser = this.appContext.getLoggedUser();\r\n\t\tthis.userRoles = this.appContext.getLoggedUserData(this.loggedUser?.Username!);\r\n\t}\r\n\r\n\tpublic handleRoleSelect(userData: EifLoggedUser): void {\r\n\t\tthis.appContext.setClientToken(userData.Token);\r\n\r\n\t\tif (!!this.returnUrl) {\r\n\t\t\tlet newUrl = this.returnUrl.replace('/private/', '/private/u/' + userData.SessionIndex + '/');\r\n\t\t\twindow['base-href'] = '/private/u/' + userData.SessionIndex.toString() + '/';\r\n\r\n\t\t\tthis.router.navigateByUrl(newUrl);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\twindow['base-href'] = '/private/u/' + userData.SessionIndex.toString() + '/';\r\n\t\tthis.router.navigateByUrl('/private/u/' + userData.SessionIndex + '/home');\r\n\t}\r\n\r\n\tpublic logout() {\r\n\t\tconsole.log('logout()');\r\n\t\t// reset app context and go to login page\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigate(['public/login']);\r\n\t}\r\n}\r\n","\r\n\r\n\r\n
    \r\n\t
    \r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ 'user-login-role-selection.message' | translate }}\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\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{{ 'userLogin.letterBuyer' | translate }}\r\n\t\t\t\t\t\t\t{{ 'userLogin.letterSupplier' | translate }}\r\n\t\t\t\t\t\t\t{{ 'userLogin.letterSystemAdmin' | translate }}\r\n\t\t\t\t\t\t\t{{ 'userLogin.letterFinancier' | translate }}\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{{ usarData.MainRole | translate: 'list-role' }}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    {{ 'userLogin.buyerDesciption' | translate }}

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

    {{ 'userLogin.suppliersDesciption' | translate }}

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

    {{ 'userLogin.systemAdminDesciption' | translate }}

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

    {{ 'userLogin.financierDesciption' | translate }}

    \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{{ 'userLogin.backbutton' | translate }}\r\n\t\t\t\t
    \r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { CodeList } from '../models/common/code-list';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { AuditEntry } from '../models/audit-entries/audit-entry';\r\nimport { AuditEntriesSearchCriteria } from '../models/audit-entries/audit-entries-search-criteria';\r\n\r\n@Injectable()\r\nexport class AuditApiService {\r\n\tconstructor(private http: HttpClient, private appContext: AppContextService, private domSanitizer: DomSanitizer) {}\r\n\r\n\tpublic searchAuditEntries(inputDto: AuditEntriesSearchCriteria): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAuditAPIUrl() + '/audit/search')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic countSearchAuditEntries(inputDto: AuditEntriesSearchCriteria): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAuditAPIUrl() + '/audit/count')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListAuditEntryStatus(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAuditAPIUrl() + '/codes/status')!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getAuditEntryById(auditEntryId: string): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAuditAPIUrl() + '/audit/' + auditEntryId)!\r\n\t\t);\r\n\t}\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { GlobalizationUploadTemplateResult } from '../models/upload/globalization/management/import/globalization-upload-template-result';\r\nimport { AllResourcesResponse } from '../models/resources/all-resources-response';\r\nimport { GlobalizationUploadTemplateValidationRequest } from '../models/upload/globalization/management/globalization-upload-template-validation-request';\r\nimport { GlobalizationUploadTemplateValidationResult } from '../models/upload/globalization/management/import/globalization-upload-template-validation-result';\r\nimport { ResourceTemplateOutputDto } from '../models/upload/globalization/management/resource-template-output-dto';\r\nimport { GlobalizationTemplateAllTranslationsResult } from '../models/upload/globalization/management/globalization-template-all-translations-result';\r\nimport { GlobalizationUploadDeleteTemplateResult } from '../models/upload/globalization/management/delete/globalization-upload-delete-template-result';\r\nimport { GlobalizationUploadDeleteTemplateValidationResult } from '../models/upload/globalization/management/delete/globalization-upload-delete-template-validation-result';\r\n\r\n@Injectable()\r\nexport class GlobalizationApiService {\r\n\tconstructor(private http: HttpClient, private appContext: AppContextService, private domSanitizer: DomSanitizer) {}\r\n\r\n\tpublic getAvailableLanguages(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getGlobalizationAPIUrl() + '/resources/languages')!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getTranslations(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getGlobalizationAPIUrl() + '/resources')!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getTranslationsByResourceType(\r\n\t\tresourceTypes: string[] | null,\r\n\t\tlanguageCode: string | null = null\r\n\t): Observable> {\r\n\t\tconst requestData = { ResourceTypes: resourceTypes, LanguageCode: languageCode };\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getGlobalizationAPIUrl() + '/resources/resourcesByType')!,\r\n\t\t\trequestData\r\n\t\t);\r\n\t}\r\n\r\n\tpublic generateGlobalizationUploadTemplate(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/generateGlobalizationUploadTemplate'\r\n\t\t\t)!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic validateGlobalizationUploadTemplate(\r\n\t\tvalidationRequest: GlobalizationUploadTemplateValidationRequest\r\n\t): Observable>> {\r\n\t\tconst requestData = { FileContent: validationRequest.FileContent };\r\n\t\treturn this.http.post>>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/validateGlobalizationUploadTemplate'\r\n\t\t\t)!,\r\n\t\t\trequestData\r\n\t\t);\r\n\t}\r\n\r\n\tpublic processGlobalizationUploadTemplateValidResources(\r\n\t\tvalidResources: ResourceTemplateOutputDto[],\r\n\t\tuserEmail: string | undefined\r\n\t): Observable> {\r\n\t\tconst requestData = { ValidResources: validResources, UserEmail: userEmail };\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/processGlobalizationUploadTemplateValidResources'\r\n\t\t\t)!,\r\n\t\t\trequestData\r\n\t\t);\r\n\t}\r\n\r\n\tpublic generateGlobalizationUploadTemplateAllTranslations(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/generateGlobalizationUploadTemplateAllTranslations'\r\n\t\t\t)!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic generateGlobalizationUploadDeleteTemplate(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/generateGlobalizationUploadDeleteTemplate'\r\n\t\t\t)!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic validateGlobalizationUploadDeleteTemplate(\r\n\t\tvalidationRequest: GlobalizationUploadTemplateValidationRequest\r\n\t): Observable>> {\r\n\t\tconst requestData = { FileContent: validationRequest.FileContent };\r\n\t\treturn this.http.post>>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/validateGlobalizationUploadDeleteTemplate'\r\n\t\t\t)!,\r\n\t\t\trequestData\r\n\t\t);\r\n\t}\r\n\r\n\tpublic processGlobalizationUploadDeleteTemplateValidResources(\r\n\t\tvalidResources: ResourceTemplateOutputDto[],\r\n\t\tuserEmail: string | undefined\r\n\t): Observable> {\r\n\t\tconst requestData = { ValidResources: validResources, UserEmail: userEmail };\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getGlobalizationAPIUrl() + '/management/processGlobalizationUploadDeleteTemplateValidResources'\r\n\t\t\t)!,\r\n\t\t\trequestData\r\n\t\t);\r\n\t}\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { Observable } from 'rxjs';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { TokensPerRole } from '../models/User/tokens-per-role';\r\nimport { ClientConfigurations } from '../models/configurations/client-configurations';\r\n\r\n@Injectable()\r\nexport class LoginApiService {\r\n\tconstructor(private http: HttpClient, private appContext: AppContextService, private domSanitizer: DomSanitizer) {}\r\n\r\n\tpublic getClientConfigurations(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/configurations/client/initial')!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getJwtToken(userName: string, password: string): Observable> {\r\n\t\tconst httpOptions = {\r\n\t\t\theaders: new HttpHeaders({\r\n\t\t\t\t'Content-Type': 'application/json',\r\n\t\t\t}),\r\n\t\t};\r\n\t\tconst requestData = { Username: userName, Password: password };\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/tokensPerRole')!,\r\n\t\t\trequestData,\r\n\t\t\thttpOptions\r\n\t\t);\r\n\t}\r\n\r\n\tpublic refreshJwtToken(): Observable> {\r\n\t\treturn this.http.get>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/refreshToken')!\r\n\t\t);\r\n\t}\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { Observable } from 'rxjs';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { ConfirmSetUpMfaOtpInput } from '../models/User/mfa/mfa-setup/confirm-setup-mfa-otp-input';\r\nimport { SetUpMfaOtpInput } from '../models/User/mfa/mfa-setup/setup-mfa-otp-input';\r\nimport { SetUpMfaOtpResult } from '../models/User/mfa/mfa-setup/setup-mfa-otp-result';\r\nimport { GenerateMfaTokenInput } from '../models/User/mfa/mfa-tokens/generate-mfa-token-input';\r\nimport { GenerateMfaTokenResult } from '../models/User/mfa/mfa-tokens/generate-mfa-token-result';\r\nimport { ActivateUserMfaEmailInput } from '../models/User/mfa/user-mfa-configuration/activate-user-mfa-email-input';\r\nimport { CheckCanRequestNewMfaEmailCodeInput } from '../models/User/mfa/user-mfa-configuration/check-can-request-new-mfa-email-code-input';\r\nimport { InactivateUserMfaInput } from '../models/User/mfa/user-mfa-configuration/inactivate-user-mfa-input';\r\nimport { RequestMfaLoginInput } from '../models/User/mfa/user-mfa-configuration/request-mfa-login-input';\r\nimport { SendCodeMfaEmailInput } from '../models/User/mfa/user-mfa-configuration/send-code-mfa-email-input';\r\nimport { SendCodeMfaEmailResult } from '../models/User/mfa/user-mfa-configuration/send-code-mfa-email-result';\r\nimport { UserMfaAuthenticatorConfiguration } from '../models/User/mfa/user-mfa-configuration/user-mfa-authenticator-configuration';\r\nimport { UserMfaConfigurationInput } from '../models/User/mfa/user-mfa-configuration/user-mfa-configuration-input';\r\nimport { TokensPerRole } from '../models/User/tokens-per-role';\r\n\r\n@Injectable()\r\nexport class MfaApiService {\r\n\tconstructor(private http: HttpClient, private appContext: AppContextService, private domSanitizer: DomSanitizer) {}\r\n\r\n\tpublic getUserMfaConfigurationByType(\r\n\t\tinputDto: UserMfaConfigurationInput\r\n\t): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/configuration')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic setUpMfaOtp(inputDto: SetUpMfaOtpInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/otp/setup')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic confirmSetUpMfaOtp(inputDto: ConfirmSetUpMfaOtpInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/otp/confirm')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic generateMfaToken(inputDto: GenerateMfaTokenInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/token')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic inactivateUserMfa(inputDto: InactivateUserMfaInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/inactivate')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic activateUserMfaEmail(inputDto: ActivateUserMfaEmailInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/email/activate')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic sendCodeMfaEmail(inputDto: SendCodeMfaEmailInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/email/send')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getJwtByMfa(inputDto: RequestMfaLoginInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/verify')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n\r\n\tpublic resetUserMfa(username: string): Observable> {\r\n\t\treturn this.http.delete>(\r\n\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\tSecurityContext.URL,\r\n\t\t\t\tthis.appContext.getAPIUrl() + '/administration/mfa/reset?u=' + encodeURIComponent(username)\r\n\t\t\t)!\r\n\t\t);\r\n\t}\r\n\r\n\tpublic checkCanRequestNewMfaEmailCode(inputDto: CheckCanRequestNewMfaEmailCodeInput): Observable> {\r\n\t\treturn this.http.post>(\r\n\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/mfa/email/canRequestNewCode')!,\r\n\t\t\tinputDto\r\n\t\t);\r\n\t}\r\n}\r\n","import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { CodeList } from '../models/common/code-list';\r\nimport { Company } from '../models/companies/company';\r\nimport { CompanyLogo } from '../models/companies/company-logo';\r\nimport { CompanySearchCriteria } from '../models/companies/company-search-criteria';\r\nimport { ConfirmingConnection } from '../models/contracts/confirming/confirming-connection';\r\nimport { ConfirmingContract } from '../models/contracts/confirming/confirming-contract';\r\nimport { AdvancementDocumentValueDictionary } from '../models/document/advancement-document-values-dictionary';\r\nimport { Document } from '../models/document/document';\r\nimport { DocumentSearchCriteria } from '../models/document/document-search-criteria';\r\nimport { FundingRequest } from '../models/funding-request/funding-request';\r\nimport { FundingRequestDetail } from '../models/funding-request/funding-request-detail';\r\nimport { FundingRequestSearchCriteria } from '../models/funding-request/funding-request-search-criteria';\r\nimport { LegalAcceptance } from '../models/funding-request/legal-acceptance';\r\nimport { NewFundingRequest } from '../models/funding-request/new-funding-request';\r\nimport { PaymentRequestInfo } from '../models/payment-request/payment-request-info';\r\nimport { PaymentRequestDetail } from '../models/payment-request/payment-request-detail';\r\nimport { PaymentRequestSearchCriteria } from '../models/payment-request/payment-request-search-criteria';\r\nimport { Report } from '../models/reports/Report';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { User } from '../models/User/user';\r\nimport { AppContextService } from '../services/app-context.service';\r\nimport { BuyerSupplierRelation } from '../models/relations/buyer-supplier-relation';\r\nimport { PublicContract as ConfirmingPublicContract } from '../models/contracts/confirming/public-contract';\r\nimport { PublicContract as FactoringPublicContract } from '../models/contracts/factoring/public-contract';\r\nimport { BuyerSupplierRelationSearchCriteria } from '../models/relations/buyer-supplier-relation-search-criteria';\r\nimport { PaymentRequestSums } from '../models/payment-request/payment-request-sums';\r\nimport { ProcessFileContentByUploadIdRequest } from '../models/upload/process-file-content-by-upload-id-request';\r\nimport { ValidateFileContentByUploadIdResult } from '../models/upload/validate-file-content-by-upload-id-result';\r\nimport { ReceiveUploadedFileResult } from '../models/upload/receive-uploaded-file-result';\r\nimport { ReceiveUploadedFileRequest } from '../models/upload/receive-uploaded-file-request';\r\nimport { DocumentRecordsUploadTemplateResult } from '../models/upload/documents/document-records-upload-template-result';\r\nimport { ValidateFileContentByUploadIdRequest } from '../models/upload/validate-file-content-by-upload-id-request';\r\nimport { DocumentRecordValidation } from '../models/upload/documents/document-record-validation-result';\r\nimport { CompanyCardDetails } from '../models/companies/company-card-details';\r\nimport { CodeDecodeValue } from '../models/common/code-decode-value';\r\nimport { FundingRequestSums } from '../models/payment-request/funding-request-sums';\r\nimport { RegisterUserInput } from '../models/User/register-user-input';\r\nimport { InviteUserInput } from '../models/invitations/invite-user-input';\r\nimport { CreateCompanyInviteFlowCache } from '../models/invitations/create-company-invite-flow-cache';\r\nimport { CompanyLegalAcceptanceRequest } from '../models/companies/company-legal-acceptance-request';\r\nimport { UpdateCompanyInvitationFlowCache } from '../models/invitations/update-company-invitation-flow-cache';\r\nimport { InviteNewCompanyForConfirmingNetwork } from '../models/invitations/confirming/invite-new-company-for-confirming-network';\r\nimport { PublicCompany } from '../models/companies/public-company';\r\nimport { AcceptNewCompanyInviteForConfirmingNetwork } from '../models/invitations/confirming/accept-new-company-invite-confirming-network';\r\nimport { RefuseNewCompanyInviteForConfirmingNetwork } from '../models/invitations/confirming/refuse-new-company-invite-confirming-network';\r\nimport { UserSearchCriteria } from '../models/User/user-search-criteria';\r\nimport { ConfirmingContractsSearchCriteria } from '../models/contracts/confirming/confirming-contracts-search-criteria';\r\nimport { InviteCompanyForNetworkTicketSearchCriteria } from '../models/invitations/company-invite-for-network-ticket-search-criteria';\r\nimport { GetAutomaticFundingLegalAcceptanceDocument } from '../models/funding-request/get-automatic-funding-legal-acceptance-document';\r\nimport { PersonalDataConsentDocumentRequest } from '../models/User/personal-data-consent-document-request';\r\nimport { PersonalDataConsentDocumentAcceptance } from '../models/User/personal-data-consent-document-acceptance';\r\nimport { CompanyFileIntegrations } from '../models/companies/company-file-integrations';\r\nimport { FileIntegration } from '../models/file-integrations/file-integration';\r\nimport { FilesIntegrationSearchCriteria } from '../models/file-integrations/files-integration-search-criteria';\r\nimport { FileAssociatedFundingRequestsExistence } from '../models/file-integrations/file-integration-associated.funding-requests';\r\nimport { FileIntegrationExistingAcceptances } from '../models/file-integrations/file-integration-existing-acceptances';\r\nimport { RejectFileById } from '../models/file-integrations/reject-file-by-id';\r\nimport { ApproveFileById } from '../models/file-integrations/approve-file-by-id';\r\nimport { ConfirmingConnectionsSearchCriteria } from '../models/contracts/confirming/confirming-connections-search-criteria';\r\nimport { UpdateConfirmingConnectionData } from '../models/contracts/confirming/update-confirming-connection-data';\r\nimport { ClientConfigurations } from '../models/configurations/client-configurations';\r\nimport { TimeZoneValue } from '../models/common/time-zone-value';\r\nimport { SearchMissingAcceptanceOfDocuments } from '../models/documentation/search-missing-acceptance-of-documents';\r\nimport { IsMissingAcceptanceOfDocumentsResponse } from '../models/documentation/is-missing-acceptance-of-documents-response';\r\nimport { SupplierRecordValidation } from '../models/upload/suppliers/supplier-record-validation-result';\r\nimport { SupplierRecordsUploadTemplateResult } from '../models/upload/suppliers/supplier-records-upload-template-result';\r\nimport { AcceptanceOfMissingDocuments } from '../models/documentation/acceptance-missing-document';\r\nimport { FaqsQuestionsSearchCriteria } from '../models/help/faqs/faqs-questions-search-criteria';\r\nimport { FaqQuestion } from '../models/help/faqs/faq-question';\r\nimport { FaqsCategory } from '../models/help/faqs/faqs.category';\r\nimport { CommissionsSearchCriteria } from '../models/commissions/commissions-search-criteria';\r\nimport { SearchedCommission } from '../models/commissions/searched-commission';\r\nimport { CommissionsSumValues } from '../models/commissions/commissions-sum-values';\r\nimport { InviteNewSupplierForFactoringNetwork } from '../models/invitations/factoring/invite-new-supplier-for-factoring-network';\r\nimport { AcceptCompanyInviteForFactoringNetwork } from '../models/invitations/factoring/accept-company-invite-factoring-network';\r\nimport { RefuseCompanyInviteForFactoringNetwork } from '../models/invitations/factoring/refuse-company-invite-factoring-network';\r\nimport { FactoringContract } from '../models/contracts/factoring/factoring-contract';\r\nimport { FactoringCreditAssignmentRecordsUploadTemplateResult } from '../models/upload/factoring-credit-assignment/factoring-credit-assignment-records-upload-template-result';\r\nimport { ContractsSearchCriteria } from '../models/contracts/contracts-search-criteria';\r\nimport { Contract } from '../models/contracts/contract';\r\nimport { FactoringConnection } from '../models/contracts/factoring/factoring-connection';\r\nimport { FactoringConnectionsSearchCriteria } from '../models/contracts/factoring/factoring-connections-search-criteria';\r\nimport { CreditAssignmentSearchCriteria } from '../models/credit-assignment/credit-assignment-search-criteria';\r\nimport { CreditAssignmentSums } from '../models/credit-assignment/credit-assignment-sums';\r\nimport { CreditAssignmentDetail } from '../models/credit-assignment/credit-assignment-detail';\r\nimport { CreditAssignmentDocument } from '../models/credit-assignment/credit-assignment-document';\r\nimport { CreateAdvanceRequest } from '../models/advance-request/create-advance-request';\r\nimport { AdvanceRequestDetail } from '../models/advance-request/advance-request-detail';\r\nimport { AdvanceRequestSearchCriteria } from '../models/advance-request/advance-request-search-criteria';\r\nimport { UpdateContractAutomaticAdvance } from '../models/contracts/factoring/update-contract-automatic-advance';\r\nimport { AvailableAdvanceableAmountByContract } from '../models/advance-request/available-advanceable-amount-by-contract';\r\nimport { ContractAddBuyerRequest } from '../models/contracts/factoring/contract-add-buyer-request/contract-add-buyer-request';\r\nimport { CreatedContractAddBuyerRequest } from '../models/contracts/factoring/contract-add-buyer-request/created-contract-add-buyer-request';\r\nimport { UpdateContractAddBuyerRequest } from '../models/contracts/factoring/contract-add-buyer-request/update-contract-add-buyer-request';\r\nimport { ExtendedPublicCompany } from '../models/companies/extended-public-company';\r\nimport { DocumentInvolvement } from '../models/document/document-involvement';\r\nimport { SearchDocumentInvolvementInput } from '../models/document/search-document-involvement-input';\r\nimport { SettingsPerCountryCode } from '../models/configurations/settings-per-country-code';\r\nimport { DocumentForecastByState } from '../models/dashboard/document-forecast-by-paymentstate';\r\nimport { FactoringContractsSearchCriteria } from '../models/contracts/factoring/factoring-contracts-search-criteria';\r\nimport { RemoveUserRole } from '../models/User/remove-user-role';\r\nimport { SetUserRole } from '../models/User/set-user-role';\r\nimport { InviteCompanyForNetworkTicketSearchData } from '../models/invitations/company-invite-for-network-ticket-search-data';\r\nimport { PublicInviteCompanyForNetworkTicket } from '../models/invitations/public-invite-company-network-ticket';\r\nimport { UpdateConnectionAutomaticFundingAndPaymentRequests } from '../models/contracts/confirming/update-connection-automatic-funding-payment-requests';\r\nimport { GetFinancierConfirmingContractsInput } from '../models/contracts/confirming/get-financier-confirming-contracts';\r\nimport { GetFundingSimulationInput } from '../models/funding-request/funding-request-simulation-input';\r\nimport { CompanyProductPerCompanyDictionary } from '../models/company-products/company-product-per-company-dictionary';\r\nimport { UpdateUserDataRequest } from '../models/User/update-user-data-request';\r\nimport { LatestLegalDocumentsResponse } from '../models/documentation/latest-legal-documents-response';\r\nimport { PublicUserInvitationData } from '../models/invitations/public-user-invitation-data';\r\nimport { FileIntegrationError } from '../models/file-integrations/file-integration-error';\r\nimport { FilesIntegrationErrorsSearchCriteria } from '../models/file-integrations/files-integration-errors-search-criteria';\r\nimport { CompanyLegalAcceptance } from '../models/funding-request/company-legal-acceptance';\r\nimport { DocumentsUploadRecordsSearchCriteria } from '../models/upload/documents/documents-upload-records-search-criteria';\r\nimport { CheckForExistingConnection } from '../models/contracts/confirming/check-for-existing-connection';\r\nimport { MonthlyCommissionsSumsSearchCountCriteria } from '../models/reports/commissions/monthly-commissions-sums-search-count-criteria';\r\nimport { MonthlyCommissionsSumsSearchCriteria } from '../models/reports/commissions/monthly-commissions-sums-search-criteria';\r\nimport { MonthlyCommissionsSumsCriteria } from '../models/reports/commissions/monthly-commissions-sums-criteria';\r\nimport { SearchedMonthlyCommissionsSums } from '../models/reports/commissions/searched-monthly-commissions-sums';\r\nimport { MonthlyCommissionsSums } from '../models/reports/commissions/monthly-commissions-sums';\r\nimport { RegisterFileForProcessing } from '../models/upload/register-file-for-processing';\r\nimport { RegisterFileForProcessingOutput } from '../models/upload/register-file-for-processing-output';\r\nimport { CompanyFileParameters } from '../models/file-integrations/company-file-parameters';\r\nimport { RefreshConfirmingContractOutput } from '../models/contracts/confirming/refresh-confirming-contract-output';\r\nimport { UserNotification } from '../models/User/notifications/user-notification';\r\nimport { UserNotificationsSearchCriteria } from '../models/User/notifications/user-notifications-search-criteria';\r\nimport { PaymentRequestCreate } from '../models/payment-request/payment-request-create';\r\nimport { SearchDocumentsForPaymentRequest } from '../models/payment-request/search-documents-payment-request';\r\nimport { SearchDocumentsForPaymentResult } from '../models/payment-request/search-documents-payment-result';\r\nimport { AdditionalInvoicesRequiredForFunding } from '../models/funding-request/additional-invoices-required-for-funding';\r\nimport { AdditionalInvoicesRequiredForFundingResponse } from '../models/funding-request/additional-invoices-required-for-funding-response';\r\nimport { ExpiredContract } from '../models/monitoring/expired-contract';\r\nimport { ExpiredContractsCriteria } from '../models/monitoring/expired-contracts-criteria';\r\nimport { ExpiringContract } from '../models/monitoring/expiring-contract';\r\nimport { ExpiringContractsCriteria } from '../models/monitoring/expiring-contracts-criteria';\r\nimport { PendingConfirmingSupplier } from '../models/monitoring/pending-confirming-supplier';\r\nimport { PendingConfirmingSuppliersCriteria } from '../models/monitoring/pending-confirming-suppliers-criteria';\r\nimport { RefusedConfirmingFundingRequest } from '../models/monitoring/refused-confirming-funding-request';\r\nimport { RefusedConfirmingFundingRequestsCriteria } from '../models/monitoring/refused-confirming-funding-requests-criteria';\r\nimport { RefusedConfirmingPaymentRequest } from '../models/monitoring/refused-confirming-payment-request';\r\nimport { RefusedConfirmingPaymentRequestsCriteria } from '../models/monitoring/refused-confirming-payment-requests-criteria';\r\nimport { RefusedConfirmingPaymentRequestsCount } from '../models/monitoring/refused-confirming-payment-requests-count';\r\nimport { ExpiredContractsCount } from '../models/monitoring/expired-contracts-count';\r\nimport { ExpiringContractsCount } from '../models/monitoring/expiring-contracts-count';\r\nimport { PendingConfirmingSuppliersCount } from '../models/monitoring/pending-confirming-suppliers-count';\r\nimport { RefusedConfirmingFundingRequestsCount } from '../models/monitoring/refused-confirming-funding-requests-count';\r\nimport { CreditAssignment } from '../models/funding-request/credit-assignment';\r\nimport { GetAutomaticFundingCreditAssignmentDocument } from '../models/funding-request/get-automatic-funding-credit-assignment-document';\r\nimport { UpdateConfirmingContractData } from '../models/contracts/confirming/update-confirming-contract-data';\r\nimport { CommissionRatesSearchCriteria } from '../models/commissions/commission-rates-search-criteria';\r\nimport { SearchedCommissionRate } from '../models/commissions/searched-commission-rate';\r\nimport { UpdateConfirmingContractComplementaryData } from '../models/contracts/confirming/update-confirming-contract-complementary-data';\r\nimport { UpdatePaymentRequestStateAndRemittanceIdRequest } from '../models/payment-request/update-payment-request-state-and-remittanceid-request';\r\nimport { UpdatePaymentRequestDocumentSpecificationRequest } from '../models/payment-request/update-payment-request-document-specification-request';\r\nimport { CreateFundingRequestFromRemittanceIdRequest } from '../models/funding-request/create-funding-request-from-remittanceid-request';\r\nimport { CreateFundingRequestFromRemittanceIdResponse } from '../models/funding-request/create-funding-request-from-remittanceid-response';\r\nimport { UpdateAdditionalFundingDocumentsColumnsRequest } from '../models/funding-request/update-additional-funding-documents-columns-request';\r\nimport { RecalculateCommissionsByOperationTypeRequest } from '../models/commissions/recalculate-commissions-by-operation-type-request';\r\nimport { UpdateConfirmingConnectionSupplierExternalId } from '../models/contracts/confirming/update-confirming-connection-supplier-external-id';\r\nimport { AddSystemAdminUserInput } from '../models/User/add-system-admin-user-input';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { PaymentDaySetupSearchCriteria } from '../models/payment-request/payment-day-setup-search-criteria';\r\nimport { PaymentDaySetup } from '../models/payment-request/payment-day-setup';\r\nimport { PaymentDaySetupCreate } from '../models/payment-request/payment-day-setup-create';\r\nimport { MarkReadyForSendingContractAddBuyerRequest } from '../models/contracts/factoring/contract-add-buyer-request/mark-ready-for-sending-contract-add-buyer-request';\r\nimport { SystemAdminUsersSearchCriteria } from '../models/User/system-admin-users-search-criteria';\r\nimport { DocumentUploadContractType } from '../models/enums/document-upload-contract-type';\r\nimport { ActiveUsersSearchCriteria } from '../models/User/active-users-search-criteria';\r\nimport { SepaSearchCriteria } from '../models/sepa/sepa-search-criteria';\r\nimport { Sepa } from '../models/sepa/sepa';\r\nimport { UpdateNonSepaSupplierData } from '../models/sepa/update-non-sepa-supplier-data';\r\nimport { PendingToApprovalNonSEPAIBAN } from '../models/sepa/pending-to-approval-non-sepa-iban';\r\nimport { ApproveOrRejectNonSepaData } from '../models/sepa/approve-or-reject-non-sepa-data';\r\nimport { PendingNonSEPAIBANs } from '../models/monitoring/pending-non-sepa-ibans';\r\nimport { PendingNonSEPAIBANsCriteria } from '../models/monitoring/pending-non-sepa-ibans-criteria';\r\nimport { PendingNonSEPAIBANsCount } from '../models/monitoring/pending-non-sepa-ibans-count';\r\nimport { CompanyUsersSearchCriteria } from '../models/companies/company-users-search-criteria';\r\nimport { UpdateFactoringContractData } from '../models/contracts/factoring/update-factoring-contract-data';\r\nimport { GetCompanyInviteFlowCacheResult } from '../models/invitations/get-company-invite-flow-cache-result';\r\nimport { FactoringContractDocumentApproversDto } from '../models/contracts/factoring/contract-document-approvers/factoring-contract-document-approvers-dto';\r\nimport { ConfirmingContractDocumentApproversDto } from '../models/contracts/confirming/contract-document-approvers/confirming-contract-document-approvers-dto';\r\nimport { UpdateConfirmingContractDocumentApproversDto } from '../models/contracts/confirming/contract-document-approvers/update-confirming-contract-document-approvers-dto';\r\nimport { UpdateFactoringContractDocumentApproversDto } from '../models/contracts/factoring/contract-document-approvers/update-factoring-contract-document-approvers-dto';\r\n\r\n@Injectable()\r\nexport class ServerApiService {\r\n\tconstructor(private http: HttpClient, private appContext: AppContextService, private domSanitizer: DomSanitizer) {}\r\n\r\n\tpublic getPublicSettingsPerCountryCode(alpha2CountryCode: string): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/configurations/client/getPublicSettingsPerCountryCode/' + alpha2CountryCode\r\n\t\t\t\t)!\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListApprovalState(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/approvalstate')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListFundingRequestState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/fundingrequeststates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListDocumentType(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/documenttypes')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListDocumentAdvanceState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/documentadvancestates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListOperationTypes(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/operationTypes')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListContractTypes(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/contractTypes')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListCurrencies(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/currencies')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListPaymentState(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/paymentstates')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListPaymentRequestState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/paymentrequeststates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListCompanyInviteTicketStates(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/companyInviteTicketStates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListConfirmingContractsState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/confirmingcontractstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListConfirmingBuyerSupplierRelationState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/confirmingrelationstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListConfirmingConnectionsState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/confirmingconnectionstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListConfirmingContractRuleType(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/confirmingcontractruletypes')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListCompanyRoles(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/companyroles')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListCompanyProfiles(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/companyprofiles')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListSystemUserRoles(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/systemUserRoles')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getUserInfo(username: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/getInfo?u=' + encodeURIComponent(username))!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getUserLanguageCode(username: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/user/getUserLanguageCode?u=' + encodeURIComponent(username)\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompany(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/' + companyId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompanyByVatNumber(vatNumber: string, countryCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/' + vatNumber + '/' + countryCode)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPublicCompanyByVatNumber(vatNumber: string, countryCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/public/' + vatNumber + '/' + countryCode)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPublicCompany(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/public/' + companyId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getExtendedPublicCompanyByVatNumber(vatNumber: string, countryCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/company/public/extended/' + vatNumber + '/' + countryCode\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateCompany(company: Company): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(company);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/')!, requestDataInJson, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompaniesByIds(companyIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(companyIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompanyLogo(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/logo/' + companyId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompanyUsers(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/users/' + companyId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCompanyUsers(criteria: CompanyUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/users/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchCompanyUsers(criteria: CompanyUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/users/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\taddUserToCompanyAsync(companyId: string, username: string) {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { companyId: companyId, username: username };\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/company/')!, requestData, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic removeUserFromCompany(companyId: string, username: string) {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.delete(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/user/company/' + companyId + '?u=' + encodeURIComponent(username)\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchDocuments(criteria: DocumentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\tconst httpOptions = {\r\n\t\t\theaders: requestHeaders,\r\n\t\t};\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchDocumentsInvolvement(documentIds: SearchDocumentInvolvementInput[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(documentIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/searchInvolvement')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getNotPaidDocumentsSum(currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/notPaidDocumentsSum/' + currency)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchDocuments(criteria: DocumentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getDocumentByIds(docIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(docIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllAccessibleBuyersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allBuyers')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllConfirmingAccessibleSuppliersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allSuppliers/confirming')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllConfirmingAccessibleBuyersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allBuyers/confirming')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllFactoringAccessibleSuppliersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allSuppliers/factoring')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllFactoringAccessibleBuyersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allBuyers/factoring')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCompanies(criteria: CompanySearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchCompanies(criteria: CompanySearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportCompaniesNetwork(criteria: CompanySearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/companies/network/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getDocumentSimulations(documentIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(documentIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/simulations')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingContractsForFinancier(\r\n\t\tgetFinancierConfirmingContractsInput: GetFinancierConfirmingContractsInput\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(getFinancierConfirmingContractsInput);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/financier/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getContractsForBuyer(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/buyer/' + companyId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchConfirmingContracts(criteria: ConfirmingContractsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchConfirmingConnections(criteria: ConfirmingConnectionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchConfirmingConnections(criteria: ConfirmingConnectionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getBuyerSupplierRelation(buyerId: string, supplierId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/relations/buyerSupplier/' + buyerId + '/' + supplierId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateBuyerSupplierRelation(relation: BuyerSupplierRelation): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/relations/buyerSupplier')!,\r\n\t\t\t\tJSON.stringify(relation),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConnectionAutomaticFundingAndPaymentRequests(\r\n\t\tupdateConnectionAutomaticFundingAndPaymentRequests: UpdateConnectionAutomaticFundingAndPaymentRequests\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/confirming/automaticFundingAndPaymentRequestInformation'\r\n\t\t\t\t)!,\r\n\t\t\t\tJSON.stringify(updateConnectionAutomaticFundingAndPaymentRequests),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchConfirmingBuyerSupplierRelations(\r\n\t\tcriteria: BuyerSupplierRelationSearchCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/relations/buyerSupplier/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchConfirmingBuyerSupplierRelations(criteria: BuyerSupplierRelationSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/relations/buyerSupplier/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConnectionsForConfirmingContract(contractId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/contract/' + contractId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingConnectionByBuyer(buyerId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/buyer/' + buyerId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic checkForExistingConnection(\r\n\t\tsupplierId: string,\r\n\t\tbuyerId: string,\r\n\t\tcurrency: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/confirming/supplier/' + supplierId + '/buyer/' + buyerId + '/currency/' + currency\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingConnection(supplierId: string, contractId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/confirming/' + contractId + '/' + supplierId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getContractsForBuyerAndSupplier(buyerId: string, supplierId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/confirming/relation/' + buyerId + '/' + supplierId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshConfirmingContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/refresh/' + contractId)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshConfirmingConnection(contractId: string, supplierId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/confirming/refresh/' + contractId + '/' + supplierId\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConfirmingConnectionData(\r\n\t\tupdateConfirmingConnectionData: UpdateConfirmingConnectionData\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateConfirmingConnectionData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/data')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConfirmingContractData(updateConfirmingContractData: UpdateConfirmingContractData): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateConfirmingContractData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/data')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/' + contractId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingContractsByIds(contractIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(contractIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPublicConfirmingContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/confirming/public/' + contractId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFundingRequestSimulations(invoicesOrEquatedDocsIds: string[], currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tlet getFundingSimulationInput: GetFundingSimulationInput = {\r\n\t\t\tInvoicesOrEquatedDocumentsIds: invoicesOrEquatedDocsIds,\r\n\t\t\tCurrency: currency,\r\n\t\t};\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(getFundingSimulationInput);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/simulations')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createFundingRequest(newFundingRequest: NewFundingRequest): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(newFundingRequest);\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/manual')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFundingRequestDetail(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFundingRequestSequenceNumberById(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/seqNumber/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createFundingRequestLegalAcceptanceDocument(\r\n\t\tdocumentIds: string[],\r\n\t\tcontractId: string,\r\n\t\tsupplierId: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tDocuments: documentIds,\r\n\t\t\tContractId: contractId,\r\n\t\t\tSupplierId: supplierId,\r\n\t\t});\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/legalAcceptance'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFundingRequestLegalAcceptanceDocument(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/legalAcceptance/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getLegalAcceptedDocumentBySupplierForAutomaticFundings(\r\n\t\tgetAutomaticFundingLegalAcceptanceDocument: GetAutomaticFundingLegalAcceptanceDocument\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(getAutomaticFundingLegalAcceptanceDocument);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/confirming/legalAcceptedDocumentBySupplier'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAutomaticFundingCreditAssignmentDocument(\r\n\t\tgetAutomaticFundingCreditAssignmentDocument: GetAutomaticFundingCreditAssignmentDocument\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(getAutomaticFundingCreditAssignmentDocument);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/creditAssignmentForAutomaticFundingRequest'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFundingRequests(criteria: FundingRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countFundingRequests(criteria: FundingRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tsearchPaymentRequests(criteria: PaymentRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchPaymentRequests(criteria: PaymentRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPaymentRequestDetail(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/' + paymentRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPaymentRequestSequenceNumberById(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/seqNumber/' + paymentRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPaymentRequestsSumsByIds(paymentRequestIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(paymentRequestIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/sums/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshFundingRequest(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/refresh/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshPartiallyApprovedFundingRequest(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/refreshPartiallyApproved/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingFundingRequestsTotalAdvancedAmount(\r\n\t\tfundingRequestDocumentStatesList: string[],\r\n\t\tcurrency: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tFundingRequestDocumentsStateList: fundingRequestDocumentStatesList,\r\n\t\t\tCurrency: currency,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/fundingRequestsTotalAdvancedAmount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getDailyDocumentForecast(currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/dailyDocumentForecast')!,\r\n\t\t\t\tJSON.stringify({ Currency: currency }),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic recoverPasswordEmail(userOrEmail: string, googleReCaptcha: string): Observable> {\r\n\t\tconst httpOptions = {\r\n\t\t\theaders: new HttpHeaders({\r\n\t\t\t\t'Content-Type': 'application/json',\r\n\t\t\t\tGoogleReCaptcha: googleReCaptcha,\r\n\t\t\t}),\r\n\t\t};\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tUsername: userOrEmail,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/resetPassword/request')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic resetUserPassword(username: string, password: string, resetToken: string, tokenId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tUsername: username,\r\n\t\t\tPassword: password,\r\n\t\t\tToken: resetToken,\r\n\t\t\tId: tokenId,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/Account/resetPassword/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshPaymentRequest(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/refresh/' + paymentRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshPartiallyApprovedPaymentRequest(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/refreshPartiallyApproved/' + paymentRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic reexecutePaymentRequest(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/reexecute/' + paymentRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\tJSON.stringify({}),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic generateDocumentRecordsUploadTemplate(\r\n\t\tuploadContractType: DocumentUploadContractType\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/documents/generateDocumentRecordsTemplate/' + uploadContractType\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic receiveUploadedFile(\r\n\t\treceiveUploadedFileRequest: ReceiveUploadedFileRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(receiveUploadedFileRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/upload/file')!, requestDataInJson, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic registerFileForProcessing(fileRequest: RegisterFileForProcessing): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(fileRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/files')!, requestDataInJson, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic validateDocumentRecordsExcelFileContent(\r\n\t\tvalidateFileContentByUploadIdRequest: ValidateFileContentByUploadIdRequest\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(validateFileContentByUploadIdRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/documents/validateDocumentRecordsExcelFileContent'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic processDocumentRecordsExcelFileContentByUploadId(\r\n\t\tprocessFileContentByUploadIdRequest: ProcessFileContentByUploadIdRequest\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(processFileContentByUploadIdRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/documents/processDocumentRecordsExcelFileContent'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getDocumentRecordsByUploadId(uploadId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/upload/documents/recordsByUploadId/' + uploadId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getMyCompanyCardDetails(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/myCompanyCardDetails/' + companyId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConnectedCompanyCardDetails(companyId: string, otherCompaniesId: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { CardCompanyId: companyId, OtherCompaniesId: otherCompaniesId };\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/connectedCompanyCardDetails/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getNetworkCompanyCardDetails(companyId: string, otherCompaniesId: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { CardCompanyId: companyId, OtherCompaniesId: otherCompaniesId };\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/networkCompanyCardDetails/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getTimeZones(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/regionalSettings/timeZones/')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCountryCodes(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/regionalSettings/countryCodes/')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getLanguageCodes(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/regionalSettings/languageCodes/')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFundingRequestsSumsByIds(paymentRequestIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(paymentRequestIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/sums/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createPersonalDataConsentDocument(\r\n\t\tpersonalDataConsentDocumentRequest: PersonalDataConsentDocumentRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(personalDataConsentDocumentRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/personalDataConsentDocument')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic registerUser(registerUserInput: RegisterUserInput): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(registerUserInput);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/registration')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic userInvitation(inviteUserInput: InviteUserInput): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inviteUserInput);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/newUser')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createCompanyInvitationFlowCache(\r\n\t\tcreateCompanyInviteFlowCacheInput: CreateCompanyInviteFlowCache\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(createCompanyInviteFlowCacheInput);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/companyInvitationFlow')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCachedCompanyInvitationFlow(invitationId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/companyInvitationFlow/' + invitationId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateCachedCompanyInvitationFlow(\r\n\t\tupdateCompanyInvitationFlowCache: UpdateCompanyInvitationFlowCache\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateCompanyInvitationFlowCache);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/companyInvitationFlow/' + updateCompanyInvitationFlowCache.InvitationId\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createNewSupplierInviteForConfirmingNetwork(\r\n\t\tinviteNewCompanyForConfirmingNetwork: InviteNewCompanyForConfirmingNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inviteNewCompanyForConfirmingNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/confirmingNetworkTicketForNewSuppplier'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createNewBuyerInviteForConfirmingNetwork(\r\n\t\tinviteNewCompanyForConfirmingNetwork: InviteNewCompanyForConfirmingNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inviteNewCompanyForConfirmingNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/confirmingNetworkTicketForNewBuyer')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic acceptNewSupplierInviteForConfirmingNetwork(\r\n\t\tacceptCompanyInviteForConfirmingNetwork: AcceptNewCompanyInviteForConfirmingNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(acceptCompanyInviteForConfirmingNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/acceptNewSupplierForConfirmingNetworkInvitation'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic acceptNewBuyerInviteForConfirmingNetwork(\r\n\t\tacceptCompanyInviteForConfirmingNetwork: AcceptNewCompanyInviteForConfirmingNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(acceptCompanyInviteForConfirmingNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/acceptNewBuyerForConfirmingNetworkInvitation'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refuseNewCompanyInviteForConfirmingNetwork(\r\n\t\trefuseCompanyInviteForConfirmingNetwork: RefuseNewCompanyInviteForConfirmingNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(refuseCompanyInviteForConfirmingNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/refuseNewSupplierForConfirmingNetworkInvitation'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchCompanyInviteForNetworkTicket(criteria: InviteCompanyForNetworkTicketSearchCriteria): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCompanyInviteForNetworkTicket(criteria: InviteCompanyForNetworkTicketSearchCriteria): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getUserInvitation(\r\n\t\ttokenAssociatedEmail: string,\r\n\t\tuserCompanyId: string,\r\n\t\ttoken: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { TokenRelatedEmail: tokenAssociatedEmail, UserCompanyId: userCompanyId, Token: token };\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/userInvitation/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic resendInviteByInvitationId(invitationId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tInvitationId: invitationId,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/resendInviteByInvitationId/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompanyInvitationTicket(invitationId: string, token: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tInvitationId: invitationId,\r\n\t\t\tToken: token,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/companyInvitationTicket/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createCompanyLegalAcceptance(\r\n\t\tcompanyLegalAcceptanceRequest: CompanyLegalAcceptanceRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(companyLegalAcceptanceRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/legalAgreement')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchUsers(criteria: UserSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic companyFileIntegration(companyIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(companyIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/company/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFilesIntegration(criteria: FilesIntegrationSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchFilesIntegration(criteria: FilesIntegrationSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListFileIntegrationStates(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/fileIntegrationStates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListFileIntegrationFileTypes(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/fileIntegrationFileTypes')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFilesIntegratedAssociatedFundingRequestsExistence(\r\n\t\tfilesIds: string[]\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(filesIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/filesIntegration/retrieveAssociatedFundingRequestsExistence'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFileIntegrationById(fileId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/file/' + fileId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic acceptEtlReceivedFileById(approveFileById: ApproveFileById): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(approveFileById);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/file/accept')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic rejectEtlReceivedFileById(rejectFileById: RejectFileById): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(rejectFileById);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/file/reject')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic retrieveFilesExistingAcceptances(filesIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(filesIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/files/existingAcceptances')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic reexecuteFundingRequest(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/reexecute/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\tJSON.stringify({}),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic cancelFundingRequest(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/cancel/' + fundingRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\tJSON.stringify({}),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic isUserRegistered(username: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/user/isregistered?u=' + encodeURIComponent(username)\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportDocuments(criteria: DocumentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/documents/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportFundingRequests(criteria: FundingRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/fundingRequests/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportPaymentRequests(criteria: PaymentRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/paymentRequests/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportFundingRequestDetail(fundingRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(fundingRequestId);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/fundingRequest/detail/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportPaymentRequestDetail(paymentRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(paymentRequestId);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/paymentRequest/detail/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportIntegratedFiles(filesIntegrationSearchCriteria: FilesIntegrationSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(filesIntegrationSearchCriteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/filesIntegration/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingAverageMonthFundingRequestDays(month: number, year: number, currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tlet queryString = this.jsonToQueryString({ month: month, year: year, currency: currency });\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/fundingRequests/averageMonthFundingRequestDays?' + queryString\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingCurrentFundingRequestsAmount(currency: string): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/fundingRequests/currentFundingRequestsAmount/' + currency\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingMonthlyAutomaticPayments(month: number, year: number, currency: string): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tlet queryString = this.jsonToQueryString({ month: month, year: year, currency: currency });\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/paymentRequests/monthlyAutomaticPayments?' + queryString\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingSuppliersActiveConnections(currency: string): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/confirming/suppliersActiveConnections/' + currency\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic generateSupplierRecordsUploadTemplate(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/suppliers/generateSupplierRecordsTemplate/'\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic validateSupplierRecordsExcelFileContent(\r\n\t\tvalidateFileContentByUploadIdRequest: ValidateFileContentByUploadIdRequest\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(validateFileContentByUploadIdRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/suppliers/validateSupplierRecordsExcelFileContent/'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic processSupplierRecordsExcelFileContentByUploadId(\r\n\t\tprocessFileContentByUploadIdRequest: ProcessFileContentByUploadIdRequest\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(processFileContentByUploadIdRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/suppliers/processSupplierRecordsExcelFileContent/'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getSupplierRecordsByUploadId(uploadId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/upload/suppliers/recordsByUploadId/' + uploadId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchMissingAcceptanceOfDocuments(username: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tUsername: username,\r\n\t\t});\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/searchMissingAcceptanceOfDocuments')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic isMissingAcceptanceOfDocuments(username: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tUsername: username,\r\n\t\t});\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/isMissingAcceptanceOfDocuments')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic acceptMissingDocuments(acceptanceOfMissingDocuments: AcceptanceOfMissingDocuments): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tusername: acceptanceOfMissingDocuments?.Username,\r\n\t\t\tacceptanceMissingDocuments: acceptanceOfMissingDocuments?.AcceptanceMissingDocuments,\r\n\t\t});\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/acceptMissingDocuments')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFaqsUnrestricted(criteria: FaqsQuestionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/help/faqs/searchUnrestrited')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFaqsCategories(languageCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/help/faqs/categories?languageCode=' + languageCode\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCommissions(criteria: CommissionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/commissions/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchCommissions(criteria: CommissionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/commissions/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCommissionsSumValues(criteria: CommissionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/commissions/sums')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportCommissions(criteria: CommissionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/commissions/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeCommissionTypes(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/commissiontypes')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic getFileTypes(): Observable> {\r\n\t\treturn this.http.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/fileTypes')!).pipe(\r\n\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic createNewSupplierInviteForFactoringNetwork(\r\n\t\tinviteNewSupplierForFactoringNetwork: InviteNewSupplierForFactoringNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inviteNewSupplierForFactoringNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/invitation/factoringNetworkTicketForNewSupplier')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refuseCompanyInviteForFactoringNetwork(\r\n\t\trefuseCompanyInviteForFactoringNetwork: RefuseCompanyInviteForFactoringNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(refuseCompanyInviteForFactoringNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/refuseCompanyForFactoringNetworkInvitation'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic acceptSupplierInviteForFactoringNetwork(\r\n\t\tacceptCompanyInviteForFactoringNetwork: AcceptCompanyInviteForFactoringNetwork\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(acceptCompanyInviteForFactoringNetwork);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/invitation/acceptSupplierForFactoringNetworkInvitation'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringContractsForFinancier(companyId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/financier/' + companyId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic generateFactoringCreditAssignmentRecordsUploadTemplate(): Observable<\r\n\t\tOperationResult\r\n\t> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/upload/file/generateFactoringCreditAssignmentRecordsTemplate/'\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchContracts(criteria: ContractsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/contracts/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchContracts(criteria: ContractsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/contracts/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshFactoringContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/refresh/' + contractId)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/' + contractId)!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshFactoringConnection(contractId: string, buyerId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/factoring/refresh/' + contractId + '/' + buyerId\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringConnection(buyerId: string, contractId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/connection/factoring/' + contractId + '/' + buyerId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringBuyersActiveConnections(): any {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/factoring/buyersActiveConnections')!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFactoringConnections(criteria: FactoringConnectionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/factoring/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchFactoringConnections(criteria: FactoringConnectionsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/factoring/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConnectionsForFactoringContract(contractId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/factoring/contract/' + contractId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListFactoringConnectionsState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/factoringconnectionstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListFactoringContractsState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/factoringcontractstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListCreditAssignmentState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/creditassignmentstates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCreditAssignments(criteria: CreditAssignmentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countCreditAssignments(criteria: CreditAssignmentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCreditAssignmentsSumsByIds(creditAssignmentsIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(creditAssignmentsIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/CreditAssignment/sums/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportCreditAssignments(criteria: CreditAssignmentSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/creditAssignments/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringContractsByIds(contractIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(contractIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCreditAssignmentDetail(CreditAssignmentId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/' + CreditAssignmentId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCreditAssignmentDocuments(CreditAssignmentId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/documents/' + CreditAssignmentId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCreditAssignmentSequenceNumberById(CreditAssignmentId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/seqNumber/' + CreditAssignmentId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshCreditAssignment(CreditAssignmentId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/creditAssignment/refresh/' + CreditAssignmentId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPublicFactoringContract(contractId): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/public/' + contractId)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFactoringContracts(criteria: FactoringContractsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportCreditAssignmentDetail(creditAssignmentId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(creditAssignmentId);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/creditAssignment/detail/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createAdvanceRequest(newAdvanceRequest: CreateAdvanceRequest): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(newAdvanceRequest);\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/manual')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchAdvanceRequests(criteria: AdvanceRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/search')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countAdvanceRequests(criteria: AdvanceRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/searchCount')!,\r\n\t\t\t\tJSON.stringify(criteria),\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportAdvanceRequests(criteria: AdvanceRequestSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/advanceRequests/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refreshAdvanceRequest(AdvanceRequestId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/refresh/' + AdvanceRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListAdvanceRequestState(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/advancerequeststates')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateContractAutomaticAdvance(\r\n\t\tupdateContractAutomaticAdvance: UpdateContractAutomaticAdvance\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateContractAutomaticAdvance);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/factoring/updateContractAutomaticAdvance'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAvailableAdvanceableAmountByContractId(contractId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/availableAdvanceableAmount/contract/' + contractId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createContractAddBuyerRequest(\r\n\t\tcontractAddBuyerRequest: ContractAddBuyerRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(contractAddBuyerRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/addBuyer/request')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getContractAddBuyerRequest(\r\n\t\tcontractContractAddBuyerRequestId: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/factoring/addBuyer/request/' + contractContractAddBuyerRequestId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateContractAddBuyerRequest(updateContractAddBuyerRequest: UpdateContractAddBuyerRequest): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateContractAddBuyerRequest);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/addBuyer/request')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic markContractAddBuyerRequestReadyForSending(\r\n\t\tinput: MarkReadyForSendingContractAddBuyerRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(input);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/addBuyer/markReadyForSending')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic orderUserPendingAdvanceRequestsRefresh(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/factoring/payments/advanceRequest/orderRefreshUsersPending'\r\n\t\t\t\t)!,\r\n\t\t\t\tnull,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic deleteDocumentsByIds(documentIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(documentIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/document/delete/byIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic removeUserRole(removeUserRole: RemoveUserRole): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(removeUserRole);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/removeUserRole')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic setUserRole(setUserRole: SetUserRole): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(setUserRole);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/setUserRole')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringApprovedAdvances(advancesStatesList: string[], currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tAdvancesStatesList: advancesStatesList,\r\n\t\t\tCurrency: currency,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/factoring/advances/getAdvancesTotalAmount'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringCurrentCreditAssignmentsAmount(currency: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/factoring/creditAssignments/currentCreditAssignmentsAmount/' + currency\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringApprovedCreditAssignments(\r\n\t\tcreditAssignmentsDocumentStatesList: string[],\r\n\t\tcurrency: string\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({\r\n\t\t\tCreditAssignmentsDocumentStatesList: creditAssignmentsDocumentStatesList,\r\n\t\t\tCurrency: currency,\r\n\t\t});\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/reporting/factoring/creditAssignments/getCreditAssignmentsTotalAmount'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateFactoringContractData(updateFactoringContractData: UpdateFactoringContractData): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateFactoringContractData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/contract/factoring/data')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCompanyProductsForCompaniesIds(companiesIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(companiesIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/companyProducts/byCompaniesIds')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateUserData(userInformationToSubmit: UpdateUserDataRequest): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = {\r\n\t\t\tUsername: userInformationToSubmit.Username,\r\n\t\t\tName: userInformationToSubmit.Name,\r\n\t\t\tTelephone: userInformationToSubmit.Telephone,\r\n\t\t\tLanguageCode: userInformationToSubmit.LanguageCode,\r\n\t\t\tTimeZone: userInformationToSubmit.TimeZone,\r\n\t\t};\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user')!, requestDataInJson, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic validateVatNumber(vatNumber: string, countryCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { countryCode: countryCode, vatNumber: vatNumber };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/validators/vatnumber')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic latestLegalDocuments(languageCode: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/documentation/latestLegalDocuments/' + languageCode\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchFilesIntegrationErrors(criteria: FilesIntegrationErrorsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/errors/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countFilesIntegrationErrors(criteria: FilesIntegrationErrorsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/errors/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportCompaniesInvitations(criteria: InviteCompanyForNetworkTicketSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/companies/invitations/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchUploadDocumentsFileRecords(\r\n\t\tcriteria: DocumentsUploadRecordsSearchCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/upload/documents/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFilesParameters(companiesIds: string[]): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(companiesIds);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/files/parameters')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCountMonthlyCommissionsSums(criteria: MonthlyCommissionsSumsSearchCountCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/commissions/lastMonthsSumsSearchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchMonthlyCommissionsSums(\r\n\t\tcriteria: MonthlyCommissionsSumsSearchCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/commissions/lastMonthsSumsSearch')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic monthlyCommissionsSums(criteria: MonthlyCommissionsSumsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/commissions/lastMonthsSums')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic exportMonthlyCommissionsSums(criteria: MonthlyCommissionsSumsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/reporting/commissions/lastMonthsSums/export')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic userNotificationsSearch(criteria: UserNotificationsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/notifications/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic userNotificationsSearchCount(criteria: UserNotificationsSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/user/notifications/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic userNotificationToogle(usernotification: UserNotification): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestData = { state: usernotification.State, username: usernotification.Username };\r\n\t\tconst requestDataInJson = JSON.stringify(requestData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/user/notifications/' + usernotification.NotificationId + '/toogle'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getCodeListNotificationManagementTypes(): Observable> {\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/codes/notificationManagementTypes')!)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createManualPaymentRequest(paymentRequestCreate: PaymentRequestCreate): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(paymentRequestCreate);\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/manual')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchDocumentsForPayment(\r\n\t\tsearchDocumentsForPayment: SearchDocumentsForPaymentRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(searchDocumentsForPayment);\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/paymentRequest/searchDocumentsForPayment'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAdditionalRequiredFundingRequestDocuments(\r\n\t\tadditionalInvoicesRequiredForFunding: AdditionalInvoicesRequiredForFunding\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(additionalInvoicesRequiredForFunding);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/confirming/payments/fundingRequest/getAdditionalRequiredFundingRequestDocuments'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refusedConfirmingPaymentRequests(\r\n\t\tcriteria: RefusedConfirmingPaymentRequestsCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/refusedConfirmingPaymentRequests')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refusedConfirmingFundingRequests(\r\n\t\tcriteria: RefusedConfirmingFundingRequestsCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/refusedConfirmingFundingRequests')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic pendingConfirmingSuppliers(\r\n\t\tcriteria: PendingConfirmingSuppliersCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/pendingConfirmingSuppliers')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic pendingNonSEPAIBANs(criteria: PendingNonSEPAIBANsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/pendingNonSEPAIBANs')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic expiringContracts(criteria: ExpiringContractsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/expiringContracts')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic expiredContracts(criteria: ExpiredContractsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/expiredContracts')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refusedConfirmingPaymentRequestsCount(\r\n\t\tcriteria: RefusedConfirmingPaymentRequestsCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/refusedConfirmingPaymentRequestsCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic refusedConfirmingFundingRequestsCount(\r\n\t\tcriteria: RefusedConfirmingFundingRequestsCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/refusedConfirmingFundingRequestsCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic pendingConfirmingSuppliersCount(\r\n\t\tcriteria: PendingConfirmingSuppliersCriteria\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/pendingConfirmingSuppliersCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic pendingNonSEPAIBANsCount(criteria: PendingNonSEPAIBANsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/pendingNonSEPAIBANsCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic expiringContractsCount(criteria: ExpiringContractsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/expiringContractsCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic expiredContractsCount(criteria: ExpiredContractsCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/monitoring/expiredContractsCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic downloadIntegratedfile(fileId: string): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = {\r\n\t\t\theaders: requestHeaders,\r\n\t\t\t//https://stackoverflow.com/a/61618182\r\n\t\t\tresponseType: 'blob' as 'json',\r\n\t\t};\r\n\t\t//https://stackoverflow.com/questions/49319272/angular-5-httpclient-observe-and-responsetype-blob\r\n\t\thttpOptions['observe'] = 'response'; // trick to response blob correctly\r\n\t\tconst requestDataInJson = JSON.stringify(fileId);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/filesIntegration/downloadCopy')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: HttpResponse) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchCommissionRates(criteria: CommissionRatesSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tcriteria.PageNumber -= 1;\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/commissions/rates/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchCommissionRates(criteria: CommissionRatesSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/payments/commissions/rates/searchCount'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConfirmingContractComplementaryData(\r\n\t\tupdateConfirmingContractComplementaryData: UpdateConfirmingContractComplementaryData\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateConfirmingContractComplementaryData);\r\n\r\n\t\treturn this.http\r\n\t\t\t.put(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/contract/confirming/complementaryData'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updatePaymentRequestStateAndRemittanceId(\r\n\t\tinputDto: UpdatePaymentRequestStateAndRemittanceIdRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/payments/resync/updateStateAndRemittanceId'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updatePaymentRequestDocumentSpecificationWithDummy(\r\n\t\tinputDto: UpdatePaymentRequestDocumentSpecificationRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/payments/resync/updateDocumentSpecificationWithDummy'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createFundingRequestFromRemittanceId(\r\n\t\tinputDto: CreateFundingRequestFromRemittanceIdRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/funding/create/fromRemittanceId')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateAdditionalFundingDocumentsColumns(\r\n\t\tinputDto: UpdateAdditionalFundingDocumentsColumnsRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/funding/updateAdditionalDocumentsColumns'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic recalculateCommissionsByOperationType(\r\n\t\tinputDto: RecalculateCommissionsByOperationTypeRequest\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/payments/commissions/recalculate/byOperationType'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConfirmingConnectionSupplierExternalId(\r\n\t\tinputDto: UpdateConfirmingConnectionSupplierExternalId\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/connection/confirming/updateSupplierExternalId')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getAllAccessibleFinanciersForUser(): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(this.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/company/allFinanciers')!, httpOptions)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic addSystemAdminUser(inputDto: AddSystemAdminUserInput): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/systemAdminUsers')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic removeSystemAdminUser(username: string) {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.delete(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/systemAdminUsers?u=' + encodeURIComponent(username)\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic setSystemAdminUserReadOnlyRole(inputDto: SetUserRole): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/systemAdminUsers/setReadOnlyRole')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic removeSystemAdminUserReadOnlyRole(removeUserRole: RemoveUserRole): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(removeUserRole);\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/administration/systemAdminUsers/removeReadOnlyRole'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchPaymentDaySetup(inputDto: PaymentDaySetupSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tinputDto.PageNumber -= 1;\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/setup/days/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchPaymentDaySetup(inputDto: PaymentDaySetupSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\t// On server the Page number is 0 based\r\n\t\tinputDto.PageNumber -= 1;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/setup/days/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic createPaymentSetupDays(inputDto: PaymentDaySetupCreate): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/setup/days')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updatePaymentDays(inputDto: PaymentDaySetup): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.patch(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/payments/setup/days')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchSystemAdminUsers(inputDto: SystemAdminUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/systemAdminUsers/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchSystemAdminUsers(inputDto: SystemAdminUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/systemAdminUsers/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic searchActiveUsers(inputDto: ActiveUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/users/active/search')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic countSearchActiveUsers(inputDto: ActiveUsersSearchCriteria): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(inputDto);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/administration/users/active/searchCount')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getSepaConfigurations(criteria: SepaSearchCriteria): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(criteria);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/financier/getSepaConfiguration/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getPendingToApprovalNonSEPAIBAN(\r\n\t\tconfirmingContractId?: string,\r\n\t\tsupplierId?: string\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify({ confirmingContractId, supplierId });\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/financier/getPendingNonSepaIBAN/')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult>) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateIbanForNonSepaSupplierData(data: UpdateNonSepaSupplierData): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(data);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/financier/updateNonSEPAIBAN')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic approveOrRejectNonSEPAIBAN(data: ApproveOrRejectNonSepaData): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(data);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.URL, this.appContext.getAPIUrl() + '/financier/approveOrRejectNonSepaIBAN')!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getFactoringContractDocumentApprovers(\r\n\t\tfactoringContractId: string\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/factoring/factoringContractDocumentApprovers/' + factoringContractId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic getConfirmingContractDocumentApprovers(\r\n\t\tconfirmingContractId: string\r\n\t): Observable>> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\treturn this.http\r\n\t\t\t.get(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/confirming/confirmingContractDocumentApprovers/' + confirmingContractId\r\n\t\t\t\t)!,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateConfirmingContractDocumentApprovers(\r\n\t\tupdateDocumentApprovers: UpdateConfirmingContractDocumentApproversDto\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateDocumentApprovers);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/confirming/confirmingContractDocumentApprovers'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic updateFactoringContractDocumentApprovers(\r\n\t\tupdateDocumentApprovers: UpdateFactoringContractDocumentApproversDto\r\n\t): Observable> {\r\n\t\tlet requestHeaders = this.setAuthorizationHeader(new HttpHeaders({ 'Content-Type': 'application/json' }));\r\n\t\tconst httpOptions = { headers: requestHeaders };\r\n\r\n\t\tconst requestDataInJson = JSON.stringify(updateDocumentApprovers);\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(\r\n\t\t\t\tthis.domSanitizer.sanitize(\r\n\t\t\t\t\tSecurityContext.URL,\r\n\t\t\t\t\tthis.appContext.getAPIUrl() + '/contract/factoring/factoringContractDocumentApprovers'\r\n\t\t\t\t)!,\r\n\t\t\t\trequestDataInJson,\r\n\t\t\t\thttpOptions\r\n\t\t\t)\r\n\t\t\t.pipe(\r\n\t\t\t\tmap((response: OperationResult) => {\r\n\t\t\t\t\treturn response;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tprivate setAuthorizationHeader(headers: HttpHeaders): HttpHeaders {\r\n\t\tif (!headers) {\r\n\t\t\theaders = new HttpHeaders({\r\n\t\t\t\t'Content-Type': 'application/json',\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tlet token = this.appContext.getToken();\r\n\t\tif (!!token) {\r\n\t\t\theaders = headers.append('Authorization', 'Bearer ' + token);\r\n\t\t}\r\n\t\treturn headers;\r\n\t}\r\n\r\n\tprivate jsonToQueryString(obj): string {\r\n\t\tvar parameters: string[] = [];\r\n\t\tfor (var property in obj) {\r\n\t\t\tif (obj.hasOwnProperty(property)) {\r\n\t\t\t\tparameters.push(encodeURI(property + '=' + obj[property]));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn parameters.join('&');\r\n\t}\r\n}\r\n","import { EventEmitter, Injectable, Output, SecurityContext } from '@angular/core';\r\nimport { Environment } from '../models/common/environment';\r\nimport { User } from '../models/User/user';\r\nimport { Document } from '../models/document/document';\r\nimport { APP_CONFIG, InitFileModel } from '../models/common/init-file.model';\r\nimport { Inject } from '@angular/core';\r\nimport { UserRole } from '../models/enums/user-role';\r\nimport * as lodash from 'lodash';\r\nimport { EifLoggedUser } from '../models/User/eif-logged-user.type';\r\nimport { SplitToken, TokensPerRole } from '../models/User/tokens-per-role';\r\nimport { CompanyProfile } from '../models/enums/company-profile';\r\nimport { ProductType } from '../models/enums/product-type';\r\nimport { RouteProcessingService } from './routing/route-processing.service';\r\nimport { OperationResult } from '../models/server-result/operation-result';\r\nimport { Observable } from 'rxjs';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\nconst eifClientToken = 'EIF_CLIENT_Token';\r\nconst eifClientTokenTimeToLiveInMinutes = 'EIF_CLIENT_TokenTimeToLiveInMinutes';\r\nconst eifClientTokenToBeExpiredWarningInMinutes = 'EIF_CLIENT_TokenToBeExpiredWarningInMinutes';\r\nconst eifClientAppVersion = 'EIF_CLIENT_AppVersion';\r\nconst eifApiUrl = 'EIF_API_URL';\r\nconst eifGlobalizationApiUrl = 'EIF_GLOBALIZATION_API_URL';\r\nconst eifAuditApiUrl = 'EIF_AUDIT_API_URL';\r\nconst eifLanguageCode = 'EIF_LANGUAGE_CODE';\r\nconst eifTranslations = 'EIF_TRANSLATIONS';\r\nconst eifSelectedDocuments = 'EIF_SELECTED_DOCUMENTS';\r\nconst eifFundingSelectedDocuments = 'EIF_FUNDING_SELECTED_DOCUMENTS';\r\nconst eifLoggedUserProfiles = 'EIF_LOGGED_USER_PROFILES';\r\n\r\n@Injectable()\r\nexport class AppContextService {\r\n\tprivate appFileConfig: InitFileModel;\r\n\r\n\t@Output() changeAppContext: EventEmitter = new EventEmitter();\r\n\r\n\tconstructor(\r\n\t\t@Inject(APP_CONFIG) config: InitFileModel,\r\n\t\tprivate routeProcessingService: RouteProcessingService,\r\n\t\tprivate domSanitizer: DomSanitizer\r\n\t) {\r\n\t\tthis.appFileConfig = config;\r\n\t\tthis.initializeLoggedUserData();\r\n\t}\r\n\r\n\tpublic testChange(action: string) {\r\n\t\tthis.changeAppContext.emit(action);\r\n\t}\r\n\r\n\tpublic getToken(): string | null {\r\n\t\tconst userSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\tlet userAssociatedData: EifLoggedUser | null = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\treturn userAssociatedData.Token;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic getTokenBasedOnUrlUserIndex(url: string): string | null {\r\n\t\tlet userSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (userSessionIndex == null)\r\n\t\t\t//try get it from url (used in guards, when url is copy paste on a new tab)\r\n\t\t\tuserSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(url);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\tlet userAssociatedData: EifLoggedUser | null = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\treturn userAssociatedData.Token;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic setRefreshedTokens(username: string, tokens: SplitToken[]): void {\r\n\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\r\n\t\tlet newLoggedUserData: Array = [];\r\n\r\n\t\tfor (let index = 0; index < existingLoggedUserData.length; index++) {\r\n\t\t\tlet uData = existingLoggedUserData[index];\r\n\r\n\t\t\tif (uData.Username.toLowerCase() == username.toLowerCase()) {\r\n\t\t\t\tif (\r\n\t\t\t\t\tuData.MainRole == UserRole.SystemAdmin ||\r\n\t\t\t\t\tuData.MainRole == UserRole.Buyer ||\r\n\t\t\t\t\tuData.MainRole == UserRole.Supplier ||\r\n\t\t\t\t\tuData.MainRole == UserRole.Financier\r\n\t\t\t\t) {\r\n\t\t\t\t\tuData.Token = tokens.find((t) => t.Role == uData.MainRole)?.JwtToken || '';\r\n\t\t\t\t\tnewLoggedUserData.push(uData);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconsole.warn('[appContextService]::setRefreshedTokens: found stored user state different from the requested user. Resetting...');\r\n\t\t\t\tthis.removeSession();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(newLoggedUserData));\r\n\t}\r\n\r\n\tpublic setTokenTimeToLiveInMinutes(tokenTimeToLive: string): void {\r\n\t\tlocalStorage.setItem(eifClientTokenTimeToLiveInMinutes, tokenTimeToLive);\r\n\t}\r\n\r\n\tpublic getTokenTimeToLive(): number | null {\r\n\t\tlet timeValue = localStorage.getItem(eifClientTokenTimeToLiveInMinutes);\r\n\t\treturn timeValue != null ? parseFloat(timeValue) : null;\r\n\t}\r\n\r\n\tpublic getTokenToBeExpiredWarningInMinutes(): number | null {\r\n\t\tlet timeValue = localStorage.getItem(eifClientTokenToBeExpiredWarningInMinutes);\r\n\t\treturn timeValue != null ? parseFloat(timeValue) : null;\r\n\t}\r\n\r\n\tpublic getTokenTimeToLiveOrDefault(): number {\r\n\t\tlet timeValue = localStorage.getItem(eifClientTokenTimeToLiveInMinutes);\r\n\t\treturn timeValue != null ? parseFloat(timeValue) : 20;\r\n\t}\r\n\r\n\tpublic getTokenToBeExpiredWarningInMinutesOrDefault(): number {\r\n\t\tlet timeValue = localStorage.getItem(eifClientTokenToBeExpiredWarningInMinutes);\r\n\t\treturn timeValue != null ? parseFloat(timeValue) : 1;\r\n\t}\r\n\r\n\tpublic setTokenToBeExpiredWarningInMinutes(tokenToBeExpiredWarningInMinutes: string): void {\r\n\t\tlocalStorage.setItem(eifClientTokenToBeExpiredWarningInMinutes, tokenToBeExpiredWarningInMinutes);\r\n\t}\r\n\r\n\tpublic getAppVersion(): string | null {\r\n\t\tlet appVersion = localStorage.getItem(eifClientAppVersion);\r\n\t\treturn appVersion;\r\n\t}\r\n\r\n\tpublic setAppVersion(appVersion: string): void {\r\n\t\tlocalStorage.setItem(eifClientAppVersion, appVersion);\r\n\t}\r\n\r\n\tpublic getEnvironment(): Environment {\r\n\t\tconst strEnvironment = localStorage.getItem('EIF_ENVIRONMENT');\r\n\t\tif (strEnvironment) {\r\n\t\t\treturn JSON.parse(strEnvironment) as Environment;\r\n\t\t} else {\r\n\t\t\tthrow new Error('AppContextService::No environment found..');\r\n\t\t}\r\n\t}\r\n\r\n\tpublic setAPIUrl(apiUrl: string): void {\r\n\t\tlocalStorage.setItem(eifApiUrl, apiUrl);\r\n\t}\r\n\r\n\tpublic getAPIUrl(): string {\r\n\t\tconst env: Environment = this.getEnvironment();\r\n\t\treturn env.ApiUrl;\r\n\t}\r\n\r\n\tpublic setGlobalizationAPIUrl(apiUrl: string): void {\r\n\t\tlocalStorage.setItem(eifGlobalizationApiUrl, apiUrl);\r\n\t}\r\n\r\n\tpublic getGlobalizationAPIUrl(): string {\r\n\t\tconst env: Environment = this.getEnvironment();\r\n\t\treturn env.GlobalizationApiUrl;\r\n\t}\r\n\r\n\tpublic setAuditAPIUrl(apiUrl: string): void {\r\n\t\tlocalStorage.setItem(eifAuditApiUrl, apiUrl);\r\n\t}\r\n\r\n\tpublic getAuditAPIUrl(): string {\r\n\t\tconst env: Environment = this.getEnvironment();\r\n\t\treturn env.AuditApiUrl;\r\n\t}\r\n\r\n\tpublic setApplicationLanguageCode(languageCode: string): void {\r\n\t\tif (languageCode) {\r\n\t\t\tlocalStorage.setItem(eifLanguageCode, languageCode);\r\n\t\t} else {\r\n\t\t\tlocalStorage.setItem(eifLanguageCode, this.getDefaultLanguageCode());\r\n\t\t}\r\n\t}\r\n\r\n\tpublic getLoggedUser(): User | null {\r\n\t\tconst userSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\tlet userAssociatedData: EifLoggedUser | null = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\treturn new User(userAssociatedData.UserData);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic getLoggedUserAsync(): Observable> {\r\n\t\tconst user = this.getLoggedUser();\r\n\t\tlet response = new OperationResult();\r\n\t\tresponse.Data = user!;\r\n\t\treturn new Observable((subscriber) => subscriber.next(response));\r\n\t}\r\n\r\n\tpublic getLoggedUserAssociatedRole(): string | null {\r\n\t\tconst userSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\tlet userAssociatedData: EifLoggedUser | null = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\treturn userAssociatedData.MainRole;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic getLoggedUserBasedOnUrlUserIndex(url: string): User | null {\r\n\t\tlet userSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (userSessionIndex == null)\r\n\t\t\t//try get it from url (used in guards, when url is copy paste on a new tab)\r\n\t\t\tuserSessionIndex = this.routeProcessingService.getUrlUserIndexBasedOnUrl(url);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\tlet userAssociatedData: EifLoggedUser | null = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\treturn new User(userAssociatedData.UserData);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic getApplicationLanguageCode(): string {\r\n\t\tconst strLanguageCode = localStorage.getItem(eifLanguageCode);\r\n\t\tif (strLanguageCode) {\r\n\t\t\treturn strLanguageCode;\r\n\t\t} else {\r\n\t\t\tlet browserLanguage = this.getBrowserLanguage();\r\n\r\n\t\t\tif (browserLanguage.toLowerCase().startsWith('pt')) {\r\n\t\t\t\treturn 'pt';\r\n\t\t\t} else {\r\n\t\t\t\treturn 'en';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic getBrowserLanguage(): string {\r\n\t\tconst browserLang: string = navigator.language;\r\n\t\treturn browserLang;\r\n\t}\r\n\r\n\tpublic getDefaultCountryCode(): string {\r\n\t\treturn 'PT';\r\n\t}\r\n\r\n\tpublic getDefaultLanguageCode(): string {\r\n\t\treturn 'en';\r\n\t}\r\n\r\n\tpublic getDefaultLanguageCodeForContractRegistration(): string {\r\n\t\treturn 'pt';\r\n\t}\r\n\r\n\tpublic getDefaultTimeZone(): string {\r\n\t\treturn 'Europe/Lisbon';\r\n\t}\r\n\r\n\tpublic getCurrentLanguage(): string {\r\n\t\treturn this.getApplicationLanguageCode();\r\n\t}\r\n\r\n\t// //\r\n\t// // Default language when no other extrapolation can be done\r\n\t// // either from navigator.language or loggedUser languageCode\r\n\t// // TODO: read this 'ClientDefaultLanguage' from json file in application bootstrap\r\n\t// public getClientDefaultLanguage(): string {\r\n\t// return 'en';\r\n\t// }\r\n\r\n\t//\r\n\t// Displays an Id (number) nest to each label (database attribute in translation table)\r\n\t// facilitates resource identification for translation purposes\r\n\t// TODO: read this boolean 'displayIdWithResourceLabels' from json file in application bootstrap\r\n\tpublic displayIdWithResourceLabels(): boolean {\r\n\t\tlet showLableId: boolean = this.appFileConfig?.showLableId ?? false;\r\n\t\treturn showLableId;\r\n\t}\r\n\r\n\t// TODO: read this value 'numberOfRecordsPerPage' from json file in application bootstrap\r\n\tpublic getNumberOfRecordsPerPage(): number {\r\n\t\treturn 25;\r\n\t}\r\n\r\n\t//\r\n\t// TODO: Translations should not be handled this way - use a Singleton or static Service\r\n\tpublic getTranslations(): any {\r\n\t\tconst strTranslations = localStorage.getItem(eifTranslations);\r\n\t\tif (strTranslations) {\r\n\t\t\treturn JSON.parse(strTranslations);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\r\n\tpublic setTranslations(translations: any): void {\r\n\t\tlocalStorage.setItem(eifTranslations, JSON.stringify(translations));\r\n\t}\r\n\r\n\tpublic resetTranslations(): void {\r\n\t\ttry {\r\n\t\t\tlocalStorage.setItem(eifTranslations, JSON.stringify({}));\r\n\t\t} catch (ex) {\r\n\t\t\tconsole.error(ex);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic setSelectedDocumentsInClient(documents: Document[], page: number): boolean {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\t\t\tlet userAssociatedData = existingLoggedUserData.find((u: EifLoggedUser) => u.SessionIndex.toString() == userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tconst pageDocs =\r\n\t\t\t\t\t\tuserAssociatedData != null && userAssociatedData.EifSelectedDocuments\r\n\t\t\t\t\t\t\t? JSON.parse(userAssociatedData.EifSelectedDocuments)\r\n\t\t\t\t\t\t\t: {};\r\n\t\t\t\t\tpageDocs[page] = documents;\r\n\t\t\t\t\tuserAssociatedData.EifSelectedDocuments = JSON.stringify(pageDocs);\r\n\t\t\t\t\t// Store the complete array into local storage\r\n\t\t\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(existingLoggedUserData));\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error setting selected documents - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error setting selected documents - invalid user session index');\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic setSelectedFundingRequestDocumentsInClient(documents: Document[], page: number): boolean {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\t\t\tlet userAssociatedData = existingLoggedUserData.find((u: EifLoggedUser) => u.SessionIndex.toString() == userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tconst pageDocs =\r\n\t\t\t\t\t\tuserAssociatedData != null && userAssociatedData.EifFundingSelectedDocuments\r\n\t\t\t\t\t\t\t? JSON.parse(userAssociatedData.EifFundingSelectedDocuments)\r\n\t\t\t\t\t\t\t: {};\r\n\t\t\t\t\tpageDocs[page] = documents;\r\n\t\t\t\t\tuserAssociatedData.EifFundingSelectedDocuments = JSON.stringify(pageDocs);\r\n\t\t\t\t\t// Store the complete array into local storage\r\n\t\t\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(existingLoggedUserData));\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error setting selected documents for funding - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error setting selected documents for funding - invalid user session index');\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic resetSelectedDocumentsInClient(): boolean {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\t\t\tlet userAssociatedData = existingLoggedUserData.find((u: EifLoggedUser) => u.SessionIndex.toString() == userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tuserAssociatedData.EifSelectedDocuments = JSON.stringify({});\r\n\r\n\t\t\t\t\t// Store the complete array into local storage\r\n\t\t\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(existingLoggedUserData));\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error reseting selected documents - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error reseting selected documents - invalid user session index');\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic resetSelectedFundingRequestDocumentsInClient(): boolean {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\t\t\tlet userAssociatedData = existingLoggedUserData.find((u: EifLoggedUser) => u.SessionIndex.toString() == userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tuserAssociatedData.EifFundingSelectedDocuments = JSON.stringify({});\r\n\r\n\t\t\t\t\t// Store the complete array into local storage\r\n\t\t\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(existingLoggedUserData));\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error reseting selected documents for funding - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error reseting selected documents for funding - invalid user session index');\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic getSelectedDocumentsInClient(): Document[] {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet userAssociatedData = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tconst docsSelectedPerPage =\r\n\t\t\t\t\t\tuserAssociatedData != null && userAssociatedData.EifSelectedDocuments\r\n\t\t\t\t\t\t\t? JSON.parse(userAssociatedData.EifSelectedDocuments)\r\n\t\t\t\t\t\t\t: [];\r\n\t\t\t\t\tlet docsInAllPages: Document[] = [];\r\n\r\n\t\t\t\t\t// eslint-disable-next-line guard-for-in\r\n\t\t\t\t\tfor (const docsInPage in docsSelectedPerPage) {\r\n\t\t\t\t\t\tdocsInAllPages = docsInAllPages.concat(docsSelectedPerPage[docsInPage]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn docsInAllPages;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error getting selected documents - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\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} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error getting selected documents - invalid user session index');\r\n\t\treturn [];\r\n\t}\r\n\r\n\tpublic getSelectedFundingRequestDocumentsInClient(): Document[] {\r\n\t\tlet userSessionIndex: string | null = this.routeProcessingService.getUrlUserIndexBasedOnUrl(window['base-href']);\r\n\r\n\t\tif (!!userSessionIndex) {\r\n\t\t\ttry {\r\n\t\t\t\tlet userAssociatedData = this.getUserAssociatedDataByUserSessionIndex(userSessionIndex);\r\n\r\n\t\t\t\tif (!!userAssociatedData) {\r\n\t\t\t\t\tconst docsSelectedPerPage =\r\n\t\t\t\t\t\tuserAssociatedData != null && userAssociatedData.EifFundingSelectedDocuments\r\n\t\t\t\t\t\t\t? JSON.parse(userAssociatedData.EifFundingSelectedDocuments)\r\n\t\t\t\t\t\t\t: [];\r\n\t\t\t\t\tlet docsInAllPages: Document[] = [];\r\n\r\n\t\t\t\t\t// eslint-disable-next-line guard-for-in\r\n\t\t\t\t\tfor (const docsInPage in docsSelectedPerPage) {\r\n\t\t\t\t\t\tdocsInAllPages = docsInAllPages.concat(docsSelectedPerPage[docsInPage]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn docsInAllPages;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.warn(\r\n\t\t\t\t\t\t'Error getting selected documents for funding - user data not found for session index: ' +\r\n\t\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, userSessionIndex)\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} catch (ex) {\r\n\t\t\t\tconsole.error(ex);\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconsole.warn('Error getting selected documents for funding - invalid user session index');\r\n\t\treturn [];\r\n\t}\r\n\r\n\t// reset app context\r\n\t// remove all items from the session storage\r\n\tpublic removeSession(): void {\r\n\t\tlocalStorage.removeItem(eifClientToken);\r\n\t\tlocalStorage.removeItem(eifLoggedUserProfiles);\r\n\t\tlocalStorage.removeItem(eifSelectedDocuments);\r\n\t\tlocalStorage.removeItem(eifFundingSelectedDocuments);\r\n\t}\r\n\r\n\t// reset app context, that previously user localstorage\r\n\tpublic resetOldLocalStorageData(): void {\r\n\t\tlocalStorage.removeItem('EIF_SETTINGS_EXPIRED_DATE');\r\n\t\t// [FLC-566] PR: Ensure removal of legacy keys.\r\n\t\tlocalStorage.removeItem('EIF_LOGGED_USERS');\r\n\t\tlocalStorage.removeItem('EIF_LOGGED_USER');\r\n\t\tsessionStorage.removeItem('EIF_LOGGED_USER');\r\n\t}\r\n\r\n\tpublic setLoggedUserProfile(user: User) {\r\n\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\tlet newLoggedUserData: Array = [];\r\n\r\n\t\tfor (let index = 0; index < existingLoggedUserData.length; index++) {\r\n\t\t\tlet userObjCopy = new User(JSON.stringify(user));\r\n\t\t\tlet uData = existingLoggedUserData[index];\r\n\r\n\t\t\tif (uData.Username.toLowerCase() == userObjCopy.Username?.toLowerCase()) {\r\n\t\t\t\tif (uData.MainRole == UserRole.SystemAdmin) {\r\n\t\t\t\t\tuserObjCopy.IsBuyer = true;\r\n\t\t\t\t\tuserObjCopy.IsSystemAdmin = true;\r\n\t\t\t\t\tuserObjCopy.IsFinancier = true;\r\n\t\t\t\t\tuserObjCopy.IsSupplier = true;\r\n\r\n\t\t\t\t\tuData.UserData = JSON.stringify(userObjCopy);\r\n\t\t\t\t\tnewLoggedUserData.push(uData);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} else if (uData.MainRole == UserRole.Buyer) {\r\n\t\t\t\t\tuserObjCopy.IsBuyer = true;\r\n\t\t\t\t\tuserObjCopy.IsSystemAdmin = false;\r\n\t\t\t\t\tuserObjCopy.IsFinancier = false;\r\n\t\t\t\t\tuserObjCopy.IsSupplier = false;\r\n\r\n\t\t\t\t\tlodash.remove(userObjCopy.CompanyProfiles, function (p: string) {\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\tp == CompanyProfile.Supplier + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Supplier + ProductType.Confirming ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Financier + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Financier + ProductType.Confirming\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tuData.UserData = JSON.stringify(userObjCopy);\r\n\t\t\t\t\tnewLoggedUserData.push(uData);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} else if (uData.MainRole == UserRole.Supplier) {\r\n\t\t\t\t\tuserObjCopy.IsBuyer = false;\r\n\t\t\t\t\tuserObjCopy.IsSystemAdmin = false;\r\n\t\t\t\t\tuserObjCopy.IsFinancier = false;\r\n\t\t\t\t\tuserObjCopy.IsSupplier = true;\r\n\r\n\t\t\t\t\tlodash.remove(userObjCopy.CompanyProfiles, function (p: string) {\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\tp == CompanyProfile.Buyer + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Buyer + ProductType.Confirming ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Financier + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Financier + ProductType.Confirming\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tuData.UserData = JSON.stringify(userObjCopy);\r\n\t\t\t\t\tnewLoggedUserData.push(uData);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} else if (uData.MainRole == UserRole.Financier) {\r\n\t\t\t\t\tuserObjCopy.IsBuyer = false;\r\n\t\t\t\t\tuserObjCopy.IsSystemAdmin = false;\r\n\t\t\t\t\tuserObjCopy.IsFinancier = true;\r\n\t\t\t\t\tuserObjCopy.IsSupplier = false;\r\n\r\n\t\t\t\t\tlodash.remove(userObjCopy.CompanyProfiles, function (p: string) {\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\tp == CompanyProfile.Buyer + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Buyer + ProductType.Confirming ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Supplier + ProductType.Factoring ||\r\n\t\t\t\t\t\t\tp == CompanyProfile.Supplier + ProductType.Confirming\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tuData.UserData = JSON.stringify(userObjCopy);\r\n\t\t\t\t\tnewLoggedUserData.push(uData);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconsole.warn(\r\n\t\t\t\t\t'[appContextService]::updateLoggedUserProfiles: found stored user state different from the requested user. Resetting...'\r\n\t\t\t\t);\r\n\t\t\t\tthis.removeSession();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(newLoggedUserData));\r\n\t}\r\n\r\n\tpublic getLoggedUserData(username: string): EifLoggedUser[] {\r\n\t\tlet existingLoggedUserData: Array = this.readLoggedUserData();\r\n\t\tif (\r\n\t\t\t!!existingLoggedUserData &&\r\n\t\t\texistingLoggedUserData.length > 0 &&\r\n\t\t\texistingLoggedUserData.some((u: EifLoggedUser) => u.Username?.toLowerCase() != username?.toLowerCase())\r\n\t\t) {\r\n\t\t\tconsole.warn('[appContextService]::getLoggedUserData: found stored user state different from the requested user. Resetting...');\r\n\t\t\tthis.removeSession();\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\treturn existingLoggedUserData || [];\r\n\t}\r\n\r\n\tprivate initializeLoggedUserData() {\r\n\t\tlet loggedUserProfilesState = localStorage.getItem(eifLoggedUserProfiles);\r\n\r\n\t\tif (!loggedUserProfilesState) {\r\n\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify([]));\r\n\t\t}\r\n\r\n\t\t// [FLC-566] PR: Ensure removal of legacy key previously used to store user state for multiple users.\r\n\t\tlocalStorage.removeItem('EIF_LOGGED_USERS');\r\n\t}\r\n\r\n\tpublic getUserSessionIndexFromUsername(username: string): string {\r\n\t\tlet userAssociatedData: Array = this.getLoggedUserData(username);\r\n\r\n\t\tif (!!userAssociatedData) {\r\n\t\t\tlet currentMinUserIndex: number | undefined = lodash.min(userAssociatedData.map((u: EifLoggedUser) => u.SessionIndex));\r\n\r\n\t\t\tif (currentMinUserIndex != undefined) {\r\n\t\t\t\treturn currentMinUserIndex.toString();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn '0';\r\n\t}\r\n\r\n\tpublic setUserAssociatedTokensOnLoginFromUsername(username: string, tokensPerRole: TokensPerRole): void {\r\n\t\tlet userAssociatedData: Array = this.getLoggedUserData(username);\r\n\r\n\t\tif (userAssociatedData.length == 0) {\r\n\t\t\t//user not logged in\r\n\t\t\tlet newUserAssociatedData: Array = [];\r\n\t\t\tlet sortedTokensPerRole = lodash.sortBy(tokensPerRole.SplitTokens, function (t: SplitToken) {\r\n\t\t\t\tt.Role;\r\n\t\t\t});\r\n\r\n\t\t\tfor (let index = 0; index < sortedTokensPerRole.length; index++) {\r\n\t\t\t\tconst tokenPerRole = tokensPerRole.SplitTokens[index];\r\n\r\n\t\t\t\tlet eifLoggedUserData = {\r\n\t\t\t\t\tUsername: username,\r\n\t\t\t\t\tSessionIndex: index,\r\n\t\t\t\t\tUserData: JSON.stringify({}),\r\n\t\t\t\t\tToken: tokenPerRole.JwtToken,\r\n\t\t\t\t\tMainRole: tokenPerRole.Role,\r\n\t\t\t\t};\r\n\r\n\t\t\t\tnewUserAssociatedData.push(eifLoggedUserData);\r\n\t\t\t}\r\n\r\n\t\t\twindow['base-href'] = '/private/u/0/';\r\n\r\n\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(newUserAssociatedData));\r\n\t\t} //(userAssociatedData.length > 0) rewrite information based on new login information (data in back-end could have changed)\r\n\t\telse {\r\n\t\t\tlet newUserAssociatedData: Array = [];\r\n\t\t\tlet currentMaxUserIndex: number | undefined = lodash.max(userAssociatedData.map((u: EifLoggedUser) => u.SessionIndex));\r\n\t\t\tlet nextSessionUserIndex = currentMaxUserIndex != undefined ? currentMaxUserIndex + 1 : 0;\r\n\r\n\t\t\tlet sortedTokensPerRole = lodash.sortBy(tokensPerRole.SplitTokens, function (t: SplitToken) {\r\n\t\t\t\tt.Role;\r\n\t\t\t});\r\n\r\n\t\t\tfor (let index = 0; index < sortedTokensPerRole.length; index++) {\r\n\t\t\t\tconst tokenPerRole = tokensPerRole.SplitTokens[index];\r\n\r\n\t\t\t\t//see if user has this role\r\n\t\t\t\tif (userAssociatedData.some((r) => r.MainRole == tokenPerRole.Role)) {\r\n\t\t\t\t\tlet userDataAssociatedWithRole = userAssociatedData.find((r) => r.MainRole == tokenPerRole.Role);\r\n\r\n\t\t\t\t\tlet eifLoggedUserData = {\r\n\t\t\t\t\t\tUsername: username,\r\n\t\t\t\t\t\tSessionIndex: userDataAssociatedWithRole?.SessionIndex, //reserve index given to previous role for this user\r\n\t\t\t\t\t\tUserData: JSON.stringify({}),\r\n\t\t\t\t\t\tToken: tokenPerRole.JwtToken,\r\n\t\t\t\t\t\tMainRole: tokenPerRole.Role,\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tnewUserAssociatedData.push(eifLoggedUserData);\r\n\t\t\t\t} //new role\r\n\t\t\t\telse {\r\n\t\t\t\t\tlet eifLoggedUserData = {\r\n\t\t\t\t\t\tUsername: username,\r\n\t\t\t\t\t\tSessionIndex: nextSessionUserIndex,\r\n\t\t\t\t\t\tUserData: JSON.stringify({}),\r\n\t\t\t\t\t\tToken: tokenPerRole.JwtToken,\r\n\t\t\t\t\t\tMainRole: tokenPerRole.Role,\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tnewUserAssociatedData.push(eifLoggedUserData);\r\n\t\t\t\t\tnextSessionUserIndex = nextSessionUserIndex + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlet thisUserNewMinSessionIdx = lodash.min(newUserAssociatedData.map((u: EifLoggedUser) => u.SessionIndex));\r\n\t\t\twindow['base-href'] = '/private/u/' + thisUserNewMinSessionIdx!.toString() + '/';\r\n\r\n\t\t\tlocalStorage.setItem(eifLoggedUserProfiles, JSON.stringify(newUserAssociatedData));\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Allow specifying the current session token in order to facilitate identifying which profile is being used\r\n\t * in case the user has more than one.\r\n\t * @param token Token corresponding to the selected user profile.\r\n\t */\r\n\tpublic setClientToken(token: string): void {\r\n\t\tif (!token) {\r\n\t\t\tconsole.warn('[appContextService]::setClientToken: token is required. Resetting...');\r\n\t\t\tthis.removeSession();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlet existingLoggedUserData = this.readLoggedUserData();\r\n\t\tif (\r\n\t\t\t!!existingLoggedUserData &&\r\n\t\t\texistingLoggedUserData.length > 0 &&\r\n\t\t\texistingLoggedUserData.some((u: EifLoggedUser) => u.Token === token)\r\n\t\t) {\r\n\t\t\tlocalStorage.setItem(eifClientToken, token);\r\n\t\t} else {\r\n\t\t\tconsole.warn('[appContextService]::setClientToken: cannot set token before defining the user profile data. Resetting...');\r\n\t\t\tthis.removeSession();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate readLoggedUserData(): Array {\r\n\t\tlet storageSavedCurrentLoggedUsersData: string | null = localStorage.getItem(eifLoggedUserProfiles);\r\n\t\tif (storageSavedCurrentLoggedUsersData != null) {\r\n\t\t\treturn JSON.parse(storageSavedCurrentLoggedUsersData) as Array;\r\n\t\t}\r\n\r\n\t\treturn [];\r\n\t}\r\n\r\n\tprivate getUserAssociatedDataByUserSessionIndex(userSessionIndex: string): EifLoggedUser | null {\r\n\t\tlet existingLoggedUserData = this.readLoggedUserData();\r\n\r\n\t\treturn existingLoggedUserData.find((u: EifLoggedUser) => u.SessionIndex.toString() == userSessionIndex) || null;\r\n\t}\r\n\r\n\t//###### BEGIN User Resource Translation Option ######\r\n\r\n\tprivate getResourceTranslationOptionStorageKey(user: User) {\r\n\t\treturn `EIF_USER_RESOURCE_TRANSLATION_OPTION_${btoa(user?.Username!)}`;\r\n\t}\r\n\r\n\tpublic displayResourceCodesForLoggedUser(): boolean {\r\n\t\tconst loggedUser = this.getLoggedUser();\r\n\t\tif (!!loggedUser && loggedUser.IsSystemAdmin) {\r\n\t\t\tconst storageKey = this.getResourceTranslationOptionStorageKey(loggedUser);\r\n\t\t\tconst resourceTranslationOption = localStorage.getItem(storageKey);\r\n\t\t\tif (!!resourceTranslationOption && resourceTranslationOption === 'OFF') {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\t/**\r\n\t * Validates the stored option for resource translation for the logged user, or the system default if applicable.\r\n\t * @returns true if the logged user should see translted resources, otherwise false.\r\n\t */\r\n\tpublic shouldLoggedUserSeeTranslatedResources(): boolean {\r\n\t\tif (this.displayResourceCodesForLoggedUser()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\t/**\r\n\t * Stores the selected option indicating wether or not the logged user should see translated resources.\r\n\t * @description By default all users see translated resources. If otherwise specified, resource codes can be displayed instead for authorized users.\r\n\t * @param seeTranslatedResources Indicates wether or not the logged user should see translated resources.\r\n\t */\r\n\tpublic storeResourcesTranslationOptionForLoggedUser(seeTranslatedResources: boolean): void {\r\n\t\tconst loggedUser = this.getLoggedUser();\r\n\t\tif (loggedUser === null) {\r\n\t\t\tconsole.debug(\r\n\t\t\t\t'Logged user is null, cannot store the Resource Translation Option. The system will translate all resources upon rendering.'\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (loggedUser.IsSystemAdmin) {\r\n\t\t\tconst resourceTranslationOption = seeTranslatedResources ? 'ON' : 'OFF';\r\n\t\t\tconst storageKey = this.getResourceTranslationOptionStorageKey(loggedUser);\r\n\t\t\tlocalStorage.setItem(storageKey, resourceTranslationOption);\r\n\t\t\tconsole.debug(`Stored Resource Translation Option: ${resourceTranslationOption} for logged user.`);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate clearResourceTranslationOptionStoredForLoggedUser(): void {\r\n\t\tconst loggedUser = this.getLoggedUser();\r\n\t\tif (loggedUser === null) {\r\n\t\t\tconsole.debug(\r\n\t\t\t\t'Logged user is null, cannot remove stored Resource Translation Option. The system will translate all resources upon rendering.'\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (loggedUser.IsSystemAdmin) {\r\n\t\t\tconst storageKey = this.getResourceTranslationOptionStorageKey(loggedUser);\r\n\t\t\tlocalStorage.removeItem(storageKey);\r\n\t\t\tconsole.debug(`Removed Resource Translation Option stored for logged user.`);\r\n\t\t}\r\n\t}\r\n\r\n\t//###### END User Resource Translation Option ######\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { Router } from '@angular/router';\r\nimport { ServerApiService } from '../../server-api/server-api.service';\r\nimport { NotificationService } from '../notification/notification.service';\r\nimport { LogService } from '../log/log.service';\r\nimport { TokensPerRole } from '../../models/User/tokens-per-role';\r\nimport { User } from '../../models/User/user';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { EifLoggedUser } from '../../models/User/eif-logged-user.type';\r\nimport { UtilitiesService } from '../utils/utilities.service';\r\n\r\n@Injectable()\r\nexport class LoginService {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate router: Router,\r\n\t\tprivate serverApiService: ServerApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate logger: LogService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tpublic getUserInfoOnLoginSuccess(username: string, tokensPerRole: TokensPerRole, returnUrl: string | null): void {\r\n\t\tthis.getUserInfo(username, () => {\r\n\t\t\t// onValidUser\r\n\t\t\tif (tokensPerRole.SplitTokens.length > 1) {\r\n\t\t\t\tlet destinationUrl = '/required-action/users/roleSelection' + (!!returnUrl ? '?returnUrl=' + returnUrl : '');\r\n\t\t\t\tthis.router.navigateByUrl(destinationUrl);\r\n\t\t\t} else {\r\n\t\t\t\tthis.appContext.setClientToken(tokensPerRole.SplitTokens[0].JwtToken);\r\n\t\t\t\tthis.router.navigateByUrl(returnUrl || '/private/u/' + this.appContext.getUserSessionIndexFromUsername(username) + '/home');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpublic switchLoggedUserProfile(userData: EifLoggedUser): Promise {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tthis.getUserInfo(userData?.Username, () => {\r\n\t\t\t\t// onValidUser\r\n\t\t\t\tthis.appContext.setClientToken(userData.Token);\r\n\t\t\t\tthis.router\r\n\t\t\t\t\t.navigateByUrl('/private/u/' + userData.SessionIndex + '/home', {\r\n\t\t\t\t\t\tonSameUrlNavigation: 'reload',\r\n\t\t\t\t\t\treplaceUrl: true,\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(() => {\r\n\t\t\t\t\t\tresolve(userData);\r\n\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t}, 100);\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tprivate getUserInfo(username: string, onValidUserCallback: Function) {\r\n\t\tthis.serverApiService.getUserInfo(username).subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tif (operationResult.IsValid && !!operationResult.Data) {\r\n\t\t\t\t\tthis.appContext.setLoggedUserProfile(operationResult.Data);\r\n\t\t\t\t\tthis.appContext.setApplicationLanguageCode(operationResult.Data?.LanguageCode);\r\n\r\n\t\t\t\t\tonValidUserCallback();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst operationErrors = this.utilitiesService.GetDistinctOperationErrors(operationResult.Errors);\r\n\t\t\t\t\tthis.notificationService.addErrors(operationErrors);\r\n\t\t\t\t\tthis.logger.error('[LoginService]::getUserInfo: Multiple operation errors>', operationErrors);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tthis.notificationService.addDanger(httpErrorResponse.message);\r\n\t\t\t\tthis.logger.error('[LoginService]::getUserInfo: HttpErrorResponse>', httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { OperationError } from '../../models/server-result/operation-error';\r\nimport { ErrorDetailCode } from '../../models/enums/error-detail-code';\r\nimport { UserMfaAuthenticator } from '../../models/User/mfa/user-mfa-configuration/user-mfa-authenticator';\r\nimport { MfaLoginData, MfaLoginDataWithToken } from '../../models/User/mfa/mfa-tokens/mfa-login-data';\r\nimport { TokensPerRole } from '../../models/User/tokens-per-role';\r\nimport { MfaType } from '../../models/enums/mfa-type';\r\nimport { LoginService } from './login.service';\r\n\r\nconst eifClientMfaToken = 'EIF_CLIENT_MFA';\r\n\r\n@Injectable()\r\nexport class MfaLoginService implements OnDestroy {\r\n\tconstructor(private appContext: AppContextService, private router: Router, private loginService: LoginService) {}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis.removeMfaToken();\r\n\t}\r\n\r\n\tpublic handleMfaLoginRequiredError(username: string, mfaLoginRequiredError: OperationError, returnUrl: string | null): void {\r\n\t\tif (!username || !mfaLoginRequiredError || mfaLoginRequiredError.Code !== ErrorDetailCode.MFA_LOGIN_REQUIRED) {\r\n\t\t\tthis.cancelMfaLogin();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst mfaToken = mfaLoginRequiredError.Values[0];\r\n\t\tconst userMfaAuthenticators = JSON.parse(mfaLoginRequiredError.Values[1]) as UserMfaAuthenticator[];\r\n\t\tconst userLanguageCode = mfaLoginRequiredError.Values[2];\r\n\r\n\t\tif (!mfaToken || !userMfaAuthenticators || userMfaAuthenticators.length === 0) {\r\n\t\t\tthis.cancelMfaLogin();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setMfaToken(mfaToken);\r\n\t\tthis.appContext.setApplicationLanguageCode(userLanguageCode);\r\n\r\n\t\tconst mfaLoginData: MfaLoginData = {\r\n\t\t\tUsername: username,\r\n\t\t\tUserMfaAuthenticators: userMfaAuthenticators,\r\n\t\t\tReturnUrl: returnUrl,\r\n\t\t};\r\n\t\tconst selectedUserMfaAuthenticator = userMfaAuthenticators.find((userMfa) => userMfa.IsSelected);\r\n\r\n\t\tconst mfaPageUrl = this.getNextMfaPageUrl(mfaLoginData, selectedUserMfaAuthenticator);\r\n\t\tthis.router.navigateByUrl(mfaPageUrl);\r\n\t}\r\n\r\n\tpublic getMfaLoginDataFromRoute(route: ActivatedRoute): Promise {\r\n\t\treturn new Promise((resolve) => {\r\n\t\t\troute.queryParams.subscribe((params) => {\r\n\t\t\t\tlet dataWithToken: MfaLoginDataWithToken | null = null;\r\n\r\n\t\t\t\tconst mfaLoginData = JSON.parse(atob(decodeURIComponent(params['state']))) as MfaLoginData;\r\n\r\n\t\t\t\tlet selectedMfaAuthenticator: UserMfaAuthenticator | undefined = undefined;\r\n\t\t\t\tif ('sel' in params && !!params['sel']) {\r\n\t\t\t\t\tselectedMfaAuthenticator = JSON.parse(atob(decodeURIComponent(params['sel']))) as UserMfaAuthenticator;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (this.isValidMfaLoginData(mfaLoginData)) {\r\n\t\t\t\t\tconst mfaToken = this.getMfaToken();\r\n\t\t\t\t\tif (!!mfaToken) {\r\n\t\t\t\t\t\tif (!selectedMfaAuthenticator) {\r\n\t\t\t\t\t\t\tselectedMfaAuthenticator = mfaLoginData.UserMfaAuthenticators.find((userMfa) => userMfa.IsSelected);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdataWithToken = {\r\n\t\t\t\t\t\t\tMfaToken: mfaToken,\r\n\t\t\t\t\t\t\tMfaLoginData: mfaLoginData,\r\n\t\t\t\t\t\t\tSelectedMfaAuthenticator: selectedMfaAuthenticator,\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tresolve(dataWithToken);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!dataWithToken?.MfaToken) {\r\n\t\t\t\t\tthis.cancelMfaLogin();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tpublic goToNextMfaPage(mfaLoginData: MfaLoginData, selectedUserMfaAuthenticator: UserMfaAuthenticator | undefined = undefined): void {\r\n\t\tif (!this.isValidMfaLoginData(mfaLoginData)) {\r\n\t\t\tthis.cancelMfaLogin();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst mfaPageUrl = this.getNextMfaPageUrl(mfaLoginData, selectedUserMfaAuthenticator);\r\n\t\tthis.router.navigateByUrl(mfaPageUrl);\r\n\t}\r\n\r\n\tpublic cancelMfaLogin(): void {\r\n\t\tthis.removeMfaToken();\r\n\t\tthis.appContext.setApplicationLanguageCode('');\r\n\t\tthis.appContext.removeSession();\r\n\t\tthis.router.navigateByUrl('/public/login');\r\n\t}\r\n\r\n\tpublic handleMfaLoginSuccess(mfaLoginData: MfaLoginData, tokensPerRole: TokensPerRole): void {\r\n\t\tif (!this.isValidMfaLoginData(mfaLoginData) || !tokensPerRole) {\r\n\t\t\tthis.cancelMfaLogin();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.appContext.setUserAssociatedTokensOnLoginFromUsername(mfaLoginData.Username!, tokensPerRole);\r\n\t\tthis.removeMfaToken();\r\n\t\tthis.loginService.getUserInfoOnLoginSuccess(mfaLoginData.Username!, tokensPerRole, mfaLoginData.ReturnUrl);\r\n\t}\r\n\r\n\tpublic setMfaToken(mfaToken: string): void {\r\n\t\tif (!mfaToken) {\r\n\t\t\tthrow new Error('[MfaLoginService]::setMfaTokenMissing required MFA token.');\r\n\t\t}\r\n\r\n\t\tsessionStorage.setItem(eifClientMfaToken, mfaToken);\r\n\t}\r\n\r\n\tpublic getMfaToken(): string | null {\r\n\t\treturn sessionStorage.getItem(eifClientMfaToken);\r\n\t}\r\n\r\n\tprivate removeMfaToken(): void {\r\n\t\tsessionStorage.removeItem(eifClientMfaToken);\r\n\t}\r\n\r\n\tprivate getNextMfaPageUrl(\r\n\t\tmfaLoginData: MfaLoginData,\r\n\t\tselectedUserMfaAuthenticator: UserMfaAuthenticator | undefined = undefined\r\n\t): string {\r\n\t\tconst paramState = encodeURIComponent(btoa(JSON.stringify(mfaLoginData)));\r\n\r\n\t\tlet url: string;\r\n\t\tif (!!selectedUserMfaAuthenticator) {\r\n\t\t\tconst paramSel = encodeURIComponent(btoa(JSON.stringify(selectedUserMfaAuthenticator)));\r\n\r\n\t\t\tif (\r\n\t\t\t\tselectedUserMfaAuthenticator.MfaTypeName === MfaType.OTP &&\r\n\t\t\t\t!mfaLoginData.UserMfaAuthenticators.some((userMfa) => userMfa.MfaTypeName === MfaType.OTP && userMfa.IsActive)\r\n\t\t\t) {\r\n\t\t\t\turl = `/public/mfa-setup-otp?state=${paramState}&sel=${paramSel}`;\r\n\t\t\t} else {\r\n\t\t\t\turl = `/public/mfa-verify?state=${paramState}&sel=${paramSel}`;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\turl = `/public/mfa-select?state=${paramState}`;\r\n\t\t}\r\n\r\n\t\treturn url;\r\n\t}\r\n\r\n\tprivate isValidMfaLoginData(mfaLoginData: MfaLoginData): boolean {\r\n\t\tif (\r\n\t\t\t!!mfaLoginData &&\r\n\t\t\t!!mfaLoginData.Username &&\r\n\t\t\t!!mfaLoginData.UserMfaAuthenticators &&\r\n\t\t\tmfaLoginData.UserMfaAuthenticators.length > 0 &&\r\n\t\t\t!!this.getMfaToken()\r\n\t\t) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, Subject, Subscription, timer } from 'rxjs';\r\nimport { AppContextService } from '../app-context.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class SessionExpirationTimeoutService {\r\n\tprivate countTimeoutExpired = 0;\r\n\tprivate countTimeoutExpiredWarning = 0;\r\n\tprivate serviceId: string = 'idleTimeoutSvc-' + Math.floor(Math.random() * 10000);\r\n\tprivate resetOnTrigger: Boolean = false;\r\n\tprivate timerSubscription: Subscription;\r\n\tprivate timer: Observable;\r\n\tpublic timeoutExpired: Subject = new Subject();\r\n\tprivate timeoutMilliseconds = 20 * 60 * 1000; //default 20 min\r\n\r\n\tprivate timerWaringSubscription: Subscription;\r\n\tprivate timerWaring: Observable;\r\n\tpublic timeoutExpiredWarning: Subject = new Subject();\r\n\tprivate timeoutWarningMilliseconds = this.timeoutMilliseconds - 60000; //default -1 minute than expiration time\r\n\r\n\tconstructor(private appContext: AppContextService) {\r\n\t\tlet tokenTimeToLive = this.appContext.getTokenTimeToLive();\r\n\t\tlet tokenTimeToLiveValue = tokenTimeToLive != null ? tokenTimeToLive : 20;\r\n\r\n\t\tlet tokenToBeExpiredWarningInMinutes = this.appContext.getTokenToBeExpiredWarningInMinutes();\r\n\t\tlet tokenToBeExpiredWarningInMinutesValue = tokenToBeExpiredWarningInMinutes != null ? tokenToBeExpiredWarningInMinutes : 1;\r\n\r\n\t\tthis.timeoutMilliseconds = tokenTimeToLiveValue * 60 * 1000;\r\n\t\tthis.timeoutWarningMilliseconds = (tokenTimeToLiveValue - tokenToBeExpiredWarningInMinutesValue) * 60 * 1000;\r\n\r\n\t\tthis.timeoutExpired.subscribe((n) => {\r\n\t\t\tconsole.log('timeoutExpired subject next.. ' + n.toString());\r\n\t\t});\r\n\r\n\t\tthis.timeoutExpiredWarning.subscribe((n) => {\r\n\t\t\tconsole.log('timeoutExpiredWarning subject next.. ' + n.toString());\r\n\t\t});\r\n\r\n\t\tthis.startTimer();\r\n\t}\r\n\r\n\tprivate setSubscription() {\r\n\t\tconsole.log('setSubscription()');\r\n\r\n\t\tif (this.timerSubscription) this.timerSubscription.unsubscribe();\r\n\r\n\t\tif (this.timerWaringSubscription) this.timerWaringSubscription.unsubscribe();\r\n\r\n\t\tthis.timer = timer(this.timeoutMilliseconds);\r\n\t\tthis.timerSubscription = this.timer.subscribe((n) => {\r\n\t\t\tthis.timerComplete(n);\r\n\t\t});\r\n\r\n\t\tthis.timerWaring = timer(this.timeoutWarningMilliseconds);\r\n\t\tthis.timerWaringSubscription = this.timerWaring.subscribe((k) => {\r\n\t\t\tthis.timerWarningComplete(k);\r\n\t\t});\r\n\t}\r\n\r\n\tpublic startTimer() {\r\n\t\tthis.countTimeoutExpired = 0;\r\n\t\tthis.countTimeoutExpiredWarning = 0;\r\n\r\n\t\tif (this.timerSubscription || this.timerWaringSubscription) {\r\n\t\t\tthis.stopTimer();\r\n\t\t}\r\n\t\tthis.setSubscription();\r\n\t}\r\n\r\n\tpublic stopTimer() {\r\n\t\tif (this.timerSubscription) this.timerSubscription.unsubscribe();\r\n\r\n\t\tif (this.timerWaringSubscription) this.timerWaringSubscription.unsubscribe();\r\n\t}\r\n\r\n\tpublic resetTimer() {\r\n\t\tthis.startTimer();\r\n\t}\r\n\r\n\tprivate timerComplete(n: number) {\r\n\t\tconsole.log('timerComplete n:' + n.toString());\r\n\r\n\t\tthis.timeoutExpired.next(++this.countTimeoutExpired);\r\n\r\n\t\tif (this.resetOnTrigger) {\r\n\t\t\tthis.startTimer();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate timerWarningComplete(n: number) {\r\n\t\tconsole.log('timerWarningComplete n:' + n.toString());\r\n\r\n\t\tthis.timeoutExpiredWarning.next(++this.countTimeoutExpiredWarning);\r\n\r\n\t\tif (this.resetOnTrigger) {\r\n\t\t\tthis.startTimer();\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, Subject } from 'rxjs';\r\nimport { filter } from 'rxjs/operators';\r\nimport { BroadcastMessage } from '../../models/broadcast/broadcast-message';\r\nimport { BroadcastMessageType } from '../../models/broadcast/broadcast-message-type';\r\n\r\n//based on the work of: https://dev.to/rfornal/chrome-communication-between-tabs-12bg\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class SessionStatusBroadcastService {\r\n\tbroadcastChannel: any;\r\n\tonMessage = new Subject();\r\n\r\n\tconstructor() {\r\n\t\tthis.initialize();\r\n\t}\r\n\r\n\tinitialize() {\r\n\t\tconst name: string = 'timmer-monitor-channel';\r\n\t\tthis.broadcastChannel = new BroadcastChannel(name);\r\n\t\tthis.broadcastChannel.onmessage = (message) => this.onMessage.next(message.data);\r\n\t}\r\n\r\n\tpublish(message: BroadcastMessage): void {\r\n\t\tthis.broadcastChannel.postMessage(message);\r\n\t}\r\n\r\n\tmessagesOfTypes(types: BroadcastMessageType[]): Observable {\r\n\t\treturn this.onMessage.pipe(filter((message) => types.indexOf(message.type) >= 0));\r\n\t}\r\n\r\n\tmessagesOfType(type: BroadcastMessageType): Observable {\r\n\t\treturn this.onMessage.pipe(filter((message) => message.type === type));\r\n\t}\r\n}\r\n","/* eslint-disable guard-for-in */\r\nimport { Injectable } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { LoginApiService } from '../../server-api/login-api.service';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ClientConfigurations } from '../../models/configurations/client-configurations';\r\nimport { TranslateService } from '../translate/translate.service';\r\n\r\n@Injectable()\r\nexport class ConfigurationsService {\r\n\t// Constructor\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate loginApiService: LoginApiService,\r\n\t\tprivate translationService: TranslateService\r\n\t) {}\r\n\r\n\tpublic initConfigurations(): Promise {\r\n\t\treturn new Promise((resolve) => {\r\n\t\t\tthis.appContext.resetOldLocalStorageData();\r\n\r\n\t\t\tthis.loginApiService.getClientConfigurations().subscribe({\r\n\t\t\t\tnext: (response: OperationResult) => {\r\n\t\t\t\t\tthis.appContext.setAppVersion(response.Data.AppVersion);\r\n\t\t\t\t\tthis.appContext.setTokenTimeToLiveInMinutes(response.Data.TokenTimeToLiveInMinutes.toString());\r\n\t\t\t\t\tthis.appContext.setTokenToBeExpiredWarningInMinutes(response.Data.TokenToBeExpiredWarningInMinutes.toString());\r\n\r\n\t\t\t\t\tthis.translationService.initTranslations().then((response) => {\r\n\t\t\t\t\t\tresolve();\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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.translationService.initTranslations();\r\n\r\n\t\t\t\t\tresolve();\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n\tname: 'currencyFormatter',\r\n\tpure: false,\r\n})\r\nexport class CurrencyFormatterPipe implements PipeTransform {\r\n\tprivate DECIMAL_SEPARATOR_COMMA: string = ',';\r\n\tprivate DECIMAL_SEPARATOR_PERIOD: string = '.';\r\n\tprivate THOUSANDS_SEPARATOR: string = '.';\r\n\r\n\tconstructor() {}\r\n\r\n\ttransform(value: number, currency: string | null = null): string | null {\r\n\t\tif (value == null || value == undefined) return null;\r\n\r\n\t\tlet numDecimalPlaces: number = 2;\r\n\t\tlet valueToFormat = value.toString();\r\n\r\n\t\tif (valueToFormat.indexOf(this.DECIMAL_SEPARATOR_COMMA) === -1 && valueToFormat.indexOf(this.DECIMAL_SEPARATOR_PERIOD) === -1) {\r\n\t\t\tvalueToFormat = (+value * 100).toString();\r\n\t\t\treturn this.formatNumber(valueToFormat, null);\r\n\t\t} else {\r\n\t\t\t//check if padding is needed to insure proper comma positioning\r\n\t\t\tlet commaPositionindex = valueToFormat\r\n\t\t\t\t.replace(this.DECIMAL_SEPARATOR_PERIOD, this.DECIMAL_SEPARATOR_COMMA)\r\n\t\t\t\t.indexOf(this.DECIMAL_SEPARATOR_COMMA);\r\n\t\t\tlet decimalPlaces = valueToFormat.substring(commaPositionindex + 1);\r\n\r\n\t\t\tlet numberOfMissingDecimalPlaces = numDecimalPlaces - decimalPlaces.length;\r\n\r\n\t\t\tif (numberOfMissingDecimalPlaces > 0) {\r\n\t\t\t\tfor (let i = 0; i < numberOfMissingDecimalPlaces; i++) valueToFormat += '0';\r\n\t\t\t}\r\n\r\n\t\t\tlet finalValue = this.formatNumber(valueToFormat, null);\r\n\t\t\treturn finalValue;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate formatNumber(value: string, currency: string | null): string {\r\n\t\tvar reRemoveLeftTrailingZeros: RegExp = new RegExp('^0+');\r\n\t\tvar reNonDigits: RegExp = new RegExp('\\\\D', 'g');\r\n\t\tvar reReplaceCurrencySymbol: RegExp | null = currency != null ? new RegExp(currency, 'g') : null;\r\n\r\n\t\tvar isNegativeValue = value.startsWith('-');\r\n\r\n\t\tlet newVal = value.toString().replace(reNonDigits, '');\r\n\r\n\t\tif (currency != null) newVal = newVal.replace(reReplaceCurrencySymbol!, '');\r\n\r\n\t\tnewVal = newVal.replace(reRemoveLeftTrailingZeros, '');\r\n\r\n\t\tif (newVal.length === 0) {\r\n\t\t\tnewVal = '0' + this.DECIMAL_SEPARATOR_COMMA + '00';\r\n\t\t} else if (newVal.length === 1) {\r\n\t\t\tnewVal = '0' + this.DECIMAL_SEPARATOR_COMMA + '0' + newVal;\r\n\t\t} else if (newVal.length === 2) {\r\n\t\t\tnewVal = '0' + this.DECIMAL_SEPARATOR_COMMA + newVal;\r\n\t\t} else {\r\n\t\t\tnewVal = newVal.substring(0, newVal.length - 2) + this.DECIMAL_SEPARATOR_COMMA + newVal.substring(newVal.length - 2, newVal.length);\r\n\t\t}\r\n\r\n\t\t//based on : http://plnkr.co/edit/rKq8yCoNhwXFozKsKPZf?p=preview\r\n\r\n\t\tlet [integer, fraction = ''] = (newVal || '').split(this.DECIMAL_SEPARATOR_COMMA);\r\n\r\n\t\tinteger = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, this.THOUSANDS_SEPARATOR);\r\n\r\n\t\tlet finalVal = integer + this.DECIMAL_SEPARATOR_COMMA + fraction;\r\n\r\n\t\treturn isNegativeValue ? '-' + finalVal : finalVal;\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AppContextService } from './app-context.service';\r\nimport { CurrencyPipe } from '@angular/common';\r\n\r\n@Pipe({\r\n\tname: 'currencyLocale',\r\n\tpure: false,\r\n})\r\n// TODO: JT 2018-08: refactor this pipe: use exported available locales; use default locale and digitsInfo in an export or appContext\r\nexport class CurrencyLocalePipe implements PipeTransform {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate currencyPipe: CurrencyPipe\r\n\t) {}\r\n\r\n\ttransform(value: number, currency: string, digitsInfo: string | null = null): any {\r\n\t\tif (!currency) return value;\r\n\r\n\t\tlet language = 'pt'; // defaults to pt\r\n\r\n\t\tif (!digitsInfo) digitsInfo = '1.2-2'; // defaults to min integer positions 1, min integer decimal pos 2\r\n\r\n\t\tconst locale = language;\r\n\t\tlet result = this.currencyPipe.transform(value, currency, 'code', digitsInfo, locale);\r\n\r\n\t\t//without bellow code, the value, when negative, comer like -EUR 6,00 for example.\r\n\t\t//the code bellow switches minus(.) by the unit code. The code uses the fact that the 'code' is used for the monetary infor, instead of the symbol\r\n\t\tif (result?.trim().startsWith('-')) {\r\n\t\t\tresult = result.replace('-', '');\r\n\t\t\tresult = result.replace(currency, '').trim();\r\n\t\t\tresult = currency + ' -' + result;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AppContextService } from './app-context.service';\r\nimport { DatePipe } from '@angular/common';\r\n\r\n@Pipe({\r\n\tname: 'dateLocale',\r\n\tpure: false,\r\n})\r\n// TODO: JT 2018-08: refactor this pipe: use exported available locales; use default locale and date format in an export or appContext\r\nexport class DateLocalePipe implements PipeTransform {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate datePipe: DatePipe\r\n\t) {}\r\n\r\n\ttransform(value: Date, format: string | null = null, timeZone: string | null = null): any {\r\n\t\tif (!value) return;\r\n\r\n\t\tconst availableLocales: string[] = ['pt', 'en'];\r\n\r\n\t\tlet language = this.appContext.getCurrentLanguage().toLowerCase();\r\n\r\n\t\tif (availableLocales.indexOf(language) === -1) language = 'pt'; // defaults to pt\r\n\t\tif (!format) format = 'yyyy/MM/dd';\r\n\r\n\t\tconst locale = language;\r\n\t\treturn this.datePipe.transform(value, format, timeZone == null ? undefined : timeZone, locale);\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AppContextService } from './app-context.service';\r\nimport { DatePipe } from '@angular/common';\r\n\r\n@Pipe({\r\n\tname: 'dateTimeLocale',\r\n\tpure: false,\r\n})\r\n// TODO: JT 2018-08: refactor this pipe: use exported available locales; use default locale and date format in an export or appContext\r\nexport class DateTimeLocalePipe implements PipeTransform {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate datePipe: DatePipe\r\n\t) {}\r\n\r\n\ttransform(value: Date, format: string | null = null, timeZone: string | null = null): any {\r\n\t\tif (!value) return;\r\n\r\n\t\tconst availableLocales: string[] = ['pt', 'en'];\r\n\r\n\t\tlet language = this.appContext.getCurrentLanguage().toLowerCase();\r\n\r\n\t\tif (availableLocales.indexOf(language) === -1) language = 'pt'; // defaults to pt\r\n\t\tif (!format) format = 'yyyy/MM/dd HH:mm';\r\n\r\n\t\tconst locale = language;\r\n\r\n\t\t//data from database comes in UTC, so the date must end with a Z (The Z stands for the Zero timezone, as it is offset by 0 from the Coordinated Universal Time (UTC).)\r\n\t\tvar reDateTimeEndsWithZ = new RegExp('Z$', 'i');\r\n\r\n\t\tlet valueToConsider = value.toString();\r\n\r\n\t\tif (valueToConsider.search(reDateTimeEndsWithZ) == -1) {\r\n\t\t\tvalueToConsider = valueToConsider + 'Z';\r\n\t\t} else {\r\n\t\t\tvalueToConsider = valueToConsider.toUpperCase();\r\n\t\t}\r\n\t\tlet transformedDateTime = this.datePipe.transform(valueToConsider, format, timeZone == null ? undefined : timeZone, locale);\r\n\r\n\t\treturn transformedDateTime;\r\n\t}\r\n}\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { APP_CONFIG, InitFileModel } from '../../models/common/init-file.model';\r\n\r\n//https://github.com/angulartics/angulartics2/issues/315\r\n\r\ndeclare let gtag: Function;\r\ndeclare var window: any;\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class GoogleAnalyticsService {\r\n\tprivate initFile: InitFileModel;\r\n\r\n\tconstructor(@Inject(DOCUMENT) document: any, @Inject(APP_CONFIG) config: InitFileModel) {\r\n\t\tthis.initFile = config;\r\n\t}\r\n\r\n\tpublic eventEmitter(\r\n\t\teventName: string,\r\n\t\teventCategory: string,\r\n\t\teventAction: string,\r\n\t\teventLabel: string | null = null,\r\n\t\teventValue: number | null = null\r\n\t) {\r\n\t\tif (typeof gtag === 'undefined') return;\r\n\r\n\t\tgtag('event', eventName, {\r\n\t\t\teventCategory: eventCategory,\r\n\t\t\teventLabel: eventLabel,\r\n\t\t\teventAction: eventAction,\r\n\t\t\teventValue: eventValue,\r\n\t\t});\r\n\t}\r\n\r\n\tpublic navigationEndEmitter(pageRelativeUrl: string) {\r\n\t\tif (typeof gtag === 'undefined') return;\r\n\r\n\t\tgtag('config', this.initFile.googleAnalytics.Key, {\r\n\t\t\tpage_path: pageRelativeUrl,\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadGoogleAnalytics(): void {\r\n\t\t// injecting GA main script asynchronously\r\n\t\tconst script = document.createElement('script');\r\n\t\tscript.src = `https://www.googletagmanager.com/gtag/js?id=${this.initFile.googleAnalytics.Key}`;\r\n\t\tscript.async = true;\r\n\t\tdocument.body.appendChild(script);\r\n\r\n\t\t// preparing GA API to be usable even before the async script is loaded\r\n\t\twindow.dataLayer = window.dataLayer || [];\r\n\t\twindow.gtag = function () {\r\n\t\t\twindow.dataLayer.push(arguments);\r\n\t\t};\r\n\t\tgtag('js', new Date());\r\n\r\n\t\t// tracking current url at app bootstrap\r\n\t\tgtag('config', '${this.initFile.googleAnalytics.Key}');\r\n\t}\r\n\r\n\tpublic startTracking() {\r\n\t\tif (this.initFile?.googleAnalytics && this.initFile?.googleAnalytics?.Active) {\r\n\t\t\tthis.loadGoogleAnalytics();\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { User } from '../../models/User/user';\r\n\r\n@Injectable()\r\nexport class GuardService {\r\n\tconstructor(private appContext: AppContextService) {}\r\n\r\n\tpublic checkPrivateAuthentication(): User | null {\r\n\t\tconst token = this.appContext.getToken();\r\n\t\tconst loggedUser = this.appContext.getLoggedUser();\r\n\r\n\t\tif (!token || token == 'undefined' || token == 'null') {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tif (!loggedUser || !loggedUser.HasActiveMfa) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn loggedUser;\r\n\t}\r\n\r\n\tpublic checkPrivateAuthenticationByUserSessionIndex(stateUrl: string): User | null {\r\n\t\tconst token = this.appContext.getTokenBasedOnUrlUserIndex(stateUrl);\r\n\t\tconst loggedUser = this.appContext.getLoggedUserBasedOnUrlUserIndex(stateUrl);\r\n\r\n\t\tif (!token || token == 'undefined' || token == 'null') {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tif (!loggedUser || !loggedUser.HasActiveMfa) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn loggedUser;\r\n\t}\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { InterceptorMessage } from '../interceptor-message/interceptor-message';\r\nimport { InterceptorMessageService } from '../interceptor-message/interceptor-message.service';\r\nimport { distinct } from 'rxjs/operators';\r\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\r\nimport { InformationModalComponent } from '../../shared-components/modals/information/information-modal.component';\r\n\r\n@Component({\r\n\tselector: 'app-interceptor-message-listener',\r\n\ttemplateUrl: 'interceptor-message-listener.component.html',\r\n\tstyleUrls: ['interceptor-message-listener.component.css'],\r\n})\r\nexport class InterceptorMessageListenerComponent {\r\n\tconstructor(private interceptorMessageService: InterceptorMessageService, private modalService: NgbModal) {\r\n\t\tconst event = this.interceptorMessageService.onInterceptorMessage();\r\n\r\n\t\tevent\r\n\t\t\t.pipe(\r\n\t\t\t\tdistinct((m: InterceptorMessage) => {\r\n\t\t\t\t\treturn m.httpCode + '/' + m.type; //not only httpCode but also message type, just in case different httpCodes generate different type notifications, depending on some condition\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t\t.subscribe((notification) => {\r\n\t\t\t\tconst infoModalRef = this.modalService.open(InformationModalComponent, { size: 'lg' });\r\n\r\n\t\t\t\tinfoModalRef.componentInstance.title = notification.title;\r\n\t\t\t\tinfoModalRef.componentInstance.content = notification.message;\r\n\t\t\t\tinfoModalRef.componentInstance.confirmActionText = notification.confirmActionText;\r\n\t\t\t\tinfoModalRef.componentInstance.msgType = notification.type;\r\n\r\n\t\t\t\tinfoModalRef.result\r\n\t\t\t\t\t.then(notification.confirmAction, notification.cancelAction)\r\n\t\t\t\t\t.catch((error) => console.error('Error from modal' + error));\r\n\t\t\t});\r\n\t}\r\n}\r\n","export enum InterceptorMessageType {\r\n\tsuccess,\r\n\tinfo,\r\n\twarning,\r\n\tdanger,\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\nimport { Observer, Observable } from 'rxjs';\r\nimport { InterceptorMessage } from './interceptor-message';\r\nimport { InterceptorMessageType } from './interceptor-message-type';\r\n\r\n@Injectable()\r\nexport class InterceptorMessageService {\r\n\tprivate InterceptorMessageObservable: Observable;\r\n\tprivate InterceptorMessageObserver: Observer;\r\n\r\n\tconstructor() {\r\n\t\tthis.InterceptorMessageObservable = new Observable((observer: Observer) => {\r\n\t\t\tthis.InterceptorMessageObserver = observer;\r\n\t\t});\r\n\t}\r\n\r\n\tpublic addInfo(\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: () => void,\r\n\t\tcancelAction: () => void\r\n\t): boolean {\r\n\t\treturn this.add(\r\n\t\t\ttitle,\r\n\t\t\tmessage,\r\n\t\t\thttpCode,\r\n\t\t\tconfirmActionText,\r\n\t\t\tcancelActionText,\r\n\t\t\tconfirmAction,\r\n\t\t\tcancelAction,\r\n\t\t\tInterceptorMessageType.info\r\n\t\t);\r\n\t}\r\n\r\n\tpublic addSuccess(\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: () => void,\r\n\t\tcancelAction: () => void\r\n\t): boolean {\r\n\t\treturn this.add(\r\n\t\t\ttitle,\r\n\t\t\tmessage,\r\n\t\t\thttpCode,\r\n\t\t\tconfirmActionText,\r\n\t\t\tcancelActionText,\r\n\t\t\tconfirmAction,\r\n\t\t\tcancelAction,\r\n\t\t\tInterceptorMessageType.success\r\n\t\t);\r\n\t}\r\n\r\n\tpublic addDanger(\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: () => void,\r\n\t\tcancelAction: () => void\r\n\t): boolean {\r\n\t\treturn this.add(\r\n\t\t\ttitle,\r\n\t\t\tmessage,\r\n\t\t\thttpCode,\r\n\t\t\tconfirmActionText,\r\n\t\t\tcancelActionText,\r\n\t\t\tconfirmAction,\r\n\t\t\tcancelAction,\r\n\t\t\tInterceptorMessageType.danger\r\n\t\t);\r\n\t}\r\n\tpublic addWarning(\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: () => void,\r\n\t\tcancelAction: () => void\r\n\t): boolean {\r\n\t\treturn this.add(\r\n\t\t\ttitle,\r\n\t\t\tmessage,\r\n\t\t\thttpCode,\r\n\t\t\tconfirmActionText,\r\n\t\t\tcancelActionText,\r\n\t\t\tconfirmAction,\r\n\t\t\tcancelAction,\r\n\t\t\tInterceptorMessageType.warning\r\n\t\t);\r\n\t}\r\n\r\n\tprivate add(\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: () => void,\r\n\t\tcancelAction: () => void,\r\n\t\ttype?: InterceptorMessageType\r\n\t): boolean {\r\n\t\tconst aux = type === undefined || type == null ? InterceptorMessageType.info : type;\r\n\t\tif (!this.InterceptorMessageObserver) return false;\r\n\r\n\t\tthis.InterceptorMessageObserver.next(\r\n\t\t\tnew InterceptorMessage(type || aux, title, message, httpCode, confirmActionText, cancelActionText, confirmAction, cancelAction)\r\n\t\t);\r\n\t\treturn true;\r\n\t}\r\n\r\n\tpublic onInterceptorMessage(): Observable {\r\n\t\treturn this.InterceptorMessageObservable;\r\n\t}\r\n}\r\n","import { InterceptorMessageType } from './interceptor-message-type';\r\n\r\nexport class InterceptorMessage {\r\n\t_type: InterceptorMessageType;\r\n\ttitle: string;\r\n\tmessage: string;\r\n\thttpCode: string;\r\n\tconfirmActionText: string;\r\n\tcancelActionText: string;\r\n\tconfirmAction: (x: any) => void;\r\n\tcancelAction: (x: any) => void;\r\n\r\n\tget type(): string {\r\n\t\treturn InterceptorMessageType[this._type];\r\n\t}\r\n\r\n\tconstructor(\r\n\t\ttype: InterceptorMessageType,\r\n\t\ttitle: string,\r\n\t\tmessage: string,\r\n\t\thttpCode: string,\r\n\t\tconfirmActionText: string,\r\n\t\tcancelActionText: string,\r\n\t\tconfirmAction: (x: any) => void,\r\n\t\tcancelAction: (x: any) => void\r\n\t) {\r\n\t\tthis.title = title;\r\n\t\tthis.message = message;\r\n\t\tthis.confirmActionText = confirmActionText;\r\n\t\tthis.cancelActionText = cancelActionText;\r\n\t\tthis.confirmAction = confirmAction;\r\n\t\tthis.cancelAction = cancelAction;\r\n\t\tthis._type = type;\r\n\t\tthis.httpCode = httpCode;\r\n\t}\r\n}\r\n","import { throwError, Observable } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\nimport { LogPublisher, LogConsole, LogLocalStorage, LogWebApi, LogPublisherConfig } from './log-publishers';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { map, catchError } from 'rxjs/operators';\r\n\r\nconst PUBLISHERS_FILE = 'assets/json/log-publishers.json';\r\n\r\n@Injectable()\r\nexport class LogPublishersService {\r\n\tconstructor(private http: HttpClient) {\r\n\t\tthis.buildPublishers();\r\n\t}\r\n\r\n\tpublishers: LogPublisher[] = [];\r\n\r\n\tbuildPublishers(): void {\r\n\t\tlet logPub: LogPublisher;\r\n\r\n\t\tthis.getLoggers().subscribe((response) => {\r\n\t\t\tfor (let pub of response.filter((p) => p.isActive)) {\r\n\t\t\t\tswitch (pub.loggerName.toLowerCase()) {\r\n\t\t\t\t\tcase 'console':\r\n\t\t\t\t\t\tlogPub = new LogConsole();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'localstorage':\r\n\t\t\t\t\t\tlogPub = new LogLocalStorage();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'webapi':\r\n\t\t\t\t\t\tlogPub = new LogWebApi(this.http);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Set location, if any, of the logging\r\n\t\t\t\tlogPub.location = pub.loggerLocation;\r\n\t\t\t\t// Add publisher to array\r\n\t\t\t\tthis.publishers.push(logPub);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t/*\r\n return this.http.post(this.location, record, options).pipe(\r\n map(response => response),\r\n catchError(this.handleErrors),);\r\n\r\n*/\r\n\tgetLoggers(): Observable {\r\n\t\treturn this.http.get(PUBLISHERS_FILE).pipe(\r\n\t\t\tmap((response) => response),\r\n\t\t\tcatchError(this.handleErrors)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate handleErrors(error: any): Observable {\r\n\t\tlet errors: string[] = [];\r\n\t\tlet msg: string = '';\r\n\r\n\t\tmsg = 'Status: ' + error.status;\r\n\t\tmsg += ' - Status Text: ' + error.statusText;\r\n\t\tif (error) {\r\n\t\t\tmsg += ' - Exception Message: ' + error.exceptionMessage;\r\n\t\t}\r\n\r\n\t\terrors.push(msg);\r\n\r\n\t\tconsole.error('An error occurred', errors);\r\n\r\n\t\treturn throwError(() => errors);\r\n\t}\r\n}\r\n","import { throwError, of as observableOf, Observable } from 'rxjs';\r\nimport { catchError, map } from 'rxjs/operators';\r\nimport { LogEntry } from './log.service';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\n\r\nexport abstract class LogPublisher {\r\n\tlocation: string;\r\n\r\n\tabstract log(record: LogEntry): Observable;\r\n\tabstract clear(): Observable;\r\n}\r\n\r\nexport class LogConsole extends LogPublisher {\r\n\tlog(record: LogEntry): Observable {\r\n\t\t// Log to the console\r\n\t\tconsole.log(record.buildLogString());\r\n\r\n\t\treturn observableOf(true);\r\n\t}\r\n\r\n\tclear(): Observable {\r\n\t\tconsole.clear();\r\n\r\n\t\treturn observableOf(true);\r\n\t}\r\n}\r\n\r\nexport class LogLocalStorage extends LogPublisher {\r\n\tconstructor() {\r\n\t\tsuper();\r\n\r\n\t\tthis.location = 'logging';\r\n\t}\r\n\r\n\tgetAll(): Observable {\r\n\t\tlet values: LogEntry[];\r\n\r\n\t\tlet item = localStorage.getItem(this.location);\r\n\r\n\t\t// Retrieve all values from local storage\r\n\t\tvalues = item != null ? JSON.parse(item) : [];\r\n\r\n\t\treturn observableOf(values);\r\n\t}\r\n\r\n\tlog(record: LogEntry): Observable {\r\n\t\tlet ret: boolean = false;\r\n\t\tlet values: LogEntry[];\r\n\r\n\t\ttry {\r\n\t\t\tlet item = localStorage.getItem(this.location);\r\n\t\t\tvalues = item != null ? JSON.parse(item) : [];\r\n\t\t\t// Add new log entry to the array\r\n\t\t\tvalues.push(record);\r\n\t\t\t// Store the complete array into local storage\r\n\t\t\tlocalStorage.setItem(this.location, JSON.stringify(values));\r\n\t\t} catch (ex) {\r\n\t\t\tconsole.error(ex);\r\n\t\t}\r\n\r\n\t\treturn observableOf(ret);\r\n\t}\r\n\r\n\tclear(): Observable {\r\n\t\tlocalStorage.removeItem(this.location);\r\n\t\treturn observableOf(true);\r\n\t}\r\n}\r\n\r\nexport class LogPublisherConfig {\r\n\tloggerName: string;\r\n\tloggerLocation: string;\r\n\tisActive: boolean;\r\n}\r\n\r\nexport class LogWebApi extends LogPublisher {\r\n\tconstructor(private http: HttpClient) {\r\n\t\tsuper();\r\n\r\n\t\tthis.location = 'http://localhost:56590/api/log';\r\n\t}\r\n\r\n\tlog(record: LogEntry): Observable {\r\n\t\tlet headers = new HttpHeaders({ 'Content-Type': 'application/json' });\r\n\t\tlet options = { headers: headers };\r\n\r\n\t\treturn this.http.post(this.location, record, options).pipe(\r\n\t\t\tmap((response) => response),\r\n\t\t\tcatchError(this.handleErrors)\r\n\t\t);\r\n\t}\r\n\r\n\tclear(): Observable {\r\n\t\t// TODO: Call Web API to clear all log entries\r\n\t\treturn observableOf(true);\r\n\t}\r\n\r\n\tprivate handleErrors(error: any): Observable {\r\n\t\tlet errors: string[] = [];\r\n\t\tlet msg: string = '';\r\n\r\n\t\tmsg = 'Status: ' + error.status;\r\n\t\tmsg += ' - Status Text: ' + error.statusText;\r\n\t\tif (error.json()) {\r\n\t\t\tmsg += ' - Exception Message: ' + error.json().exceptionMessage;\r\n\t\t}\r\n\r\n\t\terrors.push(msg);\r\n\r\n\t\tconsole.error('An error occurred', errors);\r\n\r\n\t\treturn throwError(() => errors);\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { LogPublisher } from './log-publishers';\r\nimport { LogPublishersService } from './log-publishers.service';\r\n\r\nexport enum LogLevel {\r\n\tAll = 0,\r\n\tDebug = 1,\r\n\tInfo = 2,\r\n\tWarn = 3,\r\n\tError = 4,\r\n\tFatal = 5,\r\n\tOff = 6,\r\n}\r\n\r\nexport class LogEntry {\r\n\t// Public properties\r\n\tentryDate: Date = new Date();\r\n\tmessage = '';\r\n\tlevel: LogLevel = LogLevel.Debug;\r\n\textraInfo: any[] = [];\r\n\tlogWithDate = true;\r\n\r\n\tbuildLogString(): string {\r\n\t\tlet ret = '';\r\n\r\n\t\tif (this.logWithDate) {\r\n\t\t\tret = new Date() + ' - ';\r\n\t\t}\r\n\t\tret += 'Type: ' + LogLevel[this.level];\r\n\t\tret += ' - Message: ' + this.message;\r\n\t\tif (this.extraInfo.length) {\r\n\t\t\tret += ' - Extra Info: ' + this.formatParams(this.extraInfo);\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}\r\n\r\n\tprivate formatParams(params: any[]): string {\r\n\t\tlet ret: string = params.join(',');\r\n\r\n\t\t// eslint-disable-next-line eqeqeq\r\n\t\tif (params.some((p) => typeof p == 'object')) {\r\n\t\t\tret = '';\r\n\t\t\tfor (const item of params) {\r\n\t\t\t\tret += JSON.stringify(item) + ',';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}\r\n}\r\n\r\n@Injectable()\r\nexport class LogService {\r\n\tconstructor(private publishersService: LogPublishersService) {\r\n\t\t// Set all the publishers into the local array\r\n\t\tthis.publishers = this.publishersService.publishers;\r\n\t}\r\n\r\n\t// Public properties\r\n\tlevel: LogLevel = LogLevel.All;\r\n\tlogWithDate = true;\r\n\tpublishers: LogPublisher[];\r\n\r\n\tprivate shouldLog(level: LogLevel): boolean {\r\n\t\tlet ret = false;\r\n\r\n\t\tif (this.level !== LogLevel.Off && level >= this.level) {\r\n\t\t\tret = true;\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}\r\n\r\n\tdebug(msg: string, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.Debug, optionalParams);\r\n\t}\r\n\r\n\tinfo(msg: string, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.Info, optionalParams);\r\n\t}\r\n\r\n\twarn(msg: string, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.Warn, optionalParams);\r\n\t}\r\n\r\n\terror(msg: string, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.Error, optionalParams);\r\n\t}\r\n\r\n\tfatal(msg: string, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.Debug, optionalParams);\r\n\t}\r\n\r\n\tlog(msg: any, ...optionalParams: any[]) {\r\n\t\tthis.writeToLog(msg, LogLevel.All, optionalParams);\r\n\t}\r\n\r\n\tclear(): void {\r\n\t\tfor (const logger of this.publishers) {\r\n\t\t\tlogger.clear();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate writeToLog(msg: string, level: LogLevel, params: any[]) {\r\n\t\tif (this.shouldLog(level)) {\r\n\t\t\tconst entry: LogEntry = new LogEntry();\r\n\r\n\t\t\tentry.message = msg;\r\n\t\t\tentry.level = level;\r\n\t\t\tentry.extraInfo = params;\r\n\t\t\tentry.logWithDate = this.logWithDate;\r\n\r\n\t\t\t// Log the value to all publishers\r\n\t\t\tfor (const logger of this.publishers) {\r\n\t\t\t\tlogger.log(entry).subscribe((response) => {\r\n\t\t\t\t\t// console.log(response)\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class LoggerUserDataChangedNotificationService {\r\n\tisLoggedUserDataChanged: boolean;\r\n\r\n\tloggedUserDataChanged: Subject = new Subject();\r\n\r\n\tconstructor() {\r\n\t\tthis.loggedUserDataChanged.subscribe((value) => {\r\n\t\t\tthis.isLoggedUserDataChanged = value;\r\n\t\t});\r\n\t}\r\n\r\n\tinformLoggedUserDataChanged(value: boolean) {\r\n\t\tthis.loggedUserDataChanged.next(value);\r\n\t}\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { NotificationService } from '../notification/notification.service';\r\nimport { Notification } from '../notification/notification';\r\nimport { delay } from 'rxjs/operators';\r\nimport { NotificationType } from '../notification/notification-type';\r\n\r\n@Component({\r\n\tselector: 'app-notification-listener',\r\n\ttemplateUrl: 'notification-listener.component.html',\r\n\tstyleUrls: ['notification-listener.component.css'],\r\n})\r\nexport class NotificationListenerComponent {\r\n\tnotifications: Array;\r\n\r\n\tconstructor(private notificationService: NotificationService) {\r\n\t\tthis.notifications = [];\r\n\r\n\t\tconst event = this.notificationService.onNotification();\r\n\t\tevent.subscribe((notification) => {\r\n\t\t\tthis.notifications.push(notification);\r\n\t\t});\r\n\r\n\t\tevent.pipe(delay(5000)).subscribe(() => {\r\n\t\t\tthis.notifications.shift();\r\n\t\t});\r\n\t}\r\n\r\n\tcloseAlert(notification: Notification) {\r\n\t\t//TODO: JT 2018-07-26 this is removing always the first notification; must find the notification in the array this.notifications ans then remove it\r\n\r\n\t\tthis.notifications.shift();\r\n\t}\r\n\r\n\tprotected getIconClass(notification: Notification) {\r\n\t\tif (\r\n\t\t\tnotification?.type === NotificationType[NotificationType.danger].toString() ||\r\n\t\t\tnotification?.type === NotificationType[NotificationType.warning].toString()\r\n\t\t) {\r\n\t\t\treturn 'fal fa-exclamation-triangle';\r\n\t\t} else {\r\n\t\t\treturn 'fal fa-info-circle';\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\t\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{{ notification.message }}\r\n\t\t\t
    \r\n\t\t
    \r\n\t\r\n\r\n","export enum NotificationType {\r\n\tsuccess,\r\n\tinfo,\r\n\twarning,\r\n\tdanger,\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\nimport { Notification } from './notification';\r\nimport { NotificationType } from './notification-type';\r\nimport { Observer, Observable } from 'rxjs';\r\nimport { share } from 'rxjs/operators';\r\nimport { OperationError } from '../../models/server-result/operation-error';\r\n\r\n@Injectable()\r\nexport class NotificationService {\r\n\tprivate notificationObservable: Observable;\r\n\tprivate notificationObserver: Observer;\r\n\r\n\tconstructor() {\r\n\t\tthis.notificationObservable = Observable.create((observer: Observer) => {\r\n\t\t\tthis.notificationObserver = observer;\r\n\t\t}).pipe(share());\r\n\t}\r\n\tpublic addInfo(message: string): void {\r\n\t\tthis.add(message, NotificationType.info);\r\n\t}\r\n\r\n\tpublic addSuccess(message: string): void {\r\n\t\tthis.add(message, NotificationType.success);\r\n\t}\r\n\r\n\tpublic addDanger(message: string): void {\r\n\t\tthis.add(message, NotificationType.danger);\r\n\t}\r\n\tpublic addWarning(message: string): void {\r\n\t\tthis.add(message, NotificationType.warning);\r\n\t}\r\n\tpublic addErrors(errors: OperationError[]): void {\r\n\t\terrors?.forEach((error: OperationError) => {\r\n\t\t\tthis.addDanger(error.Code + ': ' + error.Field);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate add(message: string, type?: NotificationType) {\r\n\t\tconst aux = type === undefined || type == null ? NotificationType.info : type;\r\n\t\tthis.notificationObserver.next(new Notification(message, type || aux));\r\n\t}\r\n\r\n\tpublic onNotification(): Observable {\r\n\t\treturn this.notificationObservable;\r\n\t}\r\n}\r\n","import { NotificationType } from './notification-type';\r\n\r\nexport class Notification {\r\n\t_type: NotificationType;\r\n\tmessage: string;\r\n\tget type(): string {\r\n\t\treturn NotificationType[this._type];\r\n\t}\r\n\r\n\tconstructor(message: string, type: NotificationType) {\r\n\t\tthis.message = message;\r\n\t\tthis._type = type;\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AppContextService } from './app-context.service';\r\nimport { DecimalPipe } from '@angular/common';\r\n\r\n@Pipe({\r\n\tname: 'numberLocale',\r\n\tpure: false,\r\n})\r\n// TODO: JT 2018-08: refactor this pipe: use exported available locales; use default locale and digitsInfo in an export or appContext\r\nexport class NumberLocalePipe implements PipeTransform {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate numberPipe: DecimalPipe\r\n\t) {}\r\n\ttransform(value: number, digitsInfo: string | null = null): any {\r\n\t\tif (!value) return;\r\n\r\n\t\tconst availableLocales: string[] = ['pt', 'en'];\r\n\r\n\t\tlet language = this.appContext.getCurrentLanguage().toLowerCase();\r\n\r\n\t\tif (availableLocales.indexOf(language) === -1) language = 'pt'; // defaults to pt\r\n\t\tif (!digitsInfo) digitsInfo = '1.2-10'; // defaults to min integer positions 1, min integer decimal pos 2\r\n\r\n\t\tconst locale = language;\r\n\t\treturn this.numberPipe.transform(value, digitsInfo, locale);\r\n\t}\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'percentFormatter',\r\n pure: false,\r\n})\r\nexport class PercentFormatterPipe implements PipeTransform {\r\n transform(value: number): string | null {\r\n if (value == null || isNaN(value)) return null;\r\n\r\n return `${value.toFixed(1)} %`;\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { ServerErrors } from '../../models/enums/server-errors';\r\nimport { OperationError } from '../../models/server-result/operation-error';\r\nimport { User } from '../../models/User/user';\r\n\r\n@Injectable()\r\nexport class ResourceMappingService {\r\n\tpublic ChangeErrorCodesBasedOnUserRole(errors: OperationError[], loggedUser: User | null): OperationError[] {\r\n\t\tif (loggedUser == null) return errors;\r\n\r\n\t\tif (!loggedUser.IsSystemAdmin && loggedUser.IsSupplier && errors?.length > 0) {\r\n\t\t\tfor (let index = 0; index < errors.length; index++) {\r\n\t\t\t\terrors[index].Code = this.remapListErrorCodesForSupplier(errors[index].Code);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn errors;\r\n\t}\r\n\r\n\tprivate remapListErrorCodesForSupplier(resourceCode: string): string {\r\n\t\tif (resourceCode === ServerErrors.ValueToAdvanceExceedsAvailableConnectionAmount) {\r\n\t\t\treturn ServerErrors.ValueToAdvanceExceedsAvailableConnectionAmountSupplier;\r\n\t\t} else if (resourceCode === ServerErrors.ValueToAdvanceExceedsAvailableContractAmount) {\r\n\t\t\treturn ServerErrors.ValueToAdvanceExceedsAvailableContractAmountSupplier;\r\n\t\t} else if (resourceCode === ServerErrors.ValueToPayExceedsAvailableContractAmount) {\r\n\t\t\treturn ServerErrors.ValueToPayExceedsAvailableContractAmountSupplier;\r\n\t\t} else if (resourceCode === ServerErrors.ValueToAdvanceResultsInInvalidCaptiveAmount) {\r\n\t\t\treturn ServerErrors.ValueToAdvanceResultsInInvalidCaptiveAmountSupplier;\r\n\t\t} else if (resourceCode === ServerErrors.ValueToPayResultsInInvalidCaptiveAmount) {\r\n\t\t\treturn ServerErrors.ValueToPayResultsInInvalidCaptiveAmountSupplier;\r\n\t\t} else return resourceCode;\r\n\t}\r\n}\r\n","/* eslint-disable guard-for-in */\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class RouteProcessingService {\r\n\t// Constructor\r\n\tconstructor() {}\r\n\r\n\tpublic getUrlUserIndexBasedOnUrl(url: string): string | null {\r\n\t\tif (url != null && url != undefined) {\r\n\t\t\tif (url != '/public/login' && !url.startsWith('/required-action/')) {\r\n\t\t\t\tlet expression = new RegExp(/\\/u\\/[0-9]{1,}\\//);\r\n\r\n\t\t\t\tlet result = url.match(expression);\r\n\r\n\t\t\t\tif (!!result) {\r\n\t\t\t\t\tlet replaceExp = new RegExp(/\\//, 'g');\r\n\r\n\t\t\t\t\tlet userSessionIndex = result[0].replace('u', '').replace(replaceExp, '');\r\n\t\t\t\t\treturn userSessionIndex;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn '0';\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n}\r\n","/* eslint-disable guard-for-in */\r\nimport { Injectable, Inject } from '@angular/core';\r\nimport { NavigationStart, ResolveStart, Router } from '@angular/router';\r\nimport { RouteProcessingService } from './route-processing.service';\r\n\r\n@Injectable()\r\nexport class RoutingService {\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tprivate routeProcessingService: RouteProcessingService\r\n\t) {\r\n\t\t// within our constructor we can define our subscription\r\n\t\t// and then decide what to do when this event is triggered.\r\n\t\t// in this case I simply update my route string.\r\n\t\trouter.events.subscribe((routerEvent) => {\r\n\t\t\tif (routerEvent instanceof NavigationStart) {\r\n\t\t\t\t// console.log('routerEvent.url '+routerEvent.url);\r\n\r\n\t\t\t\tif (\r\n\t\t\t\t\t!routerEvent.url.startsWith('/private/u/') &&\r\n\t\t\t\t\t!routerEvent.url.startsWith('/required-action/users/roleSelection') &&\r\n\t\t\t\t\t!routerEvent.url.startsWith('/required-action/documentation/acceptance') &&\r\n\t\t\t\t\trouterEvent.url.startsWith('/private/')\r\n\t\t\t\t) {\r\n\t\t\t\t\tlet userIndx = this.routeProcessingService.getUrlUserIndexBasedOnUrl(this.router.url);\r\n\r\n\t\t\t\t\tif (!!userIndx) this.router.navigateByUrl(routerEvent.url.replace('/private/', '/private/u/' + userIndx + '/'));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n","import { DomSanitizer } from '@angular/platform-browser';\r\nimport { PipeTransform, Pipe, SecurityContext } from '@angular/core';\r\n\r\n@Pipe({ name: 'safeHtml' })\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n\tconstructor(private sanitizer: DomSanitizer) {}\r\n\ttransform(value) {\r\n\t\treturn this.sanitizer.bypassSecurityTrustHtml(value);\r\n\t}\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { BehaviorSubject, Subject, fromEvent } from 'rxjs';\r\nimport { distinctUntilChanged, map, takeUntil } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class ScreenWidthDetectorService implements OnDestroy {\r\n\tprivate _unsubscriber$: Subject = new Subject();\r\n\tpublic onScreenWidthUpdated$: BehaviorSubject = new BehaviorSubject(0);\r\n\r\n\tconstructor() {\r\n\t\tthis.updateScreenWidth(window.innerWidth);\r\n\t\tfromEvent(window, 'resize')\r\n\t\t\t.pipe(\r\n\t\t\t\tmap(() => window.innerWidth),\r\n\t\t\t\tdistinctUntilChanged(),\r\n\t\t\t\ttakeUntil(this._unsubscriber$)\r\n\t\t\t)\r\n\t\t\t.subscribe((screenWidth) => this.updateScreenWidth(screenWidth));\r\n\t}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis._unsubscriber$.next(null);\r\n\t\tthis._unsubscriber$.complete();\r\n\t}\r\n\r\n\tprivate updateScreenWidth(screenWidth: number) {\r\n\t\tscreenWidth = Math.max(screenWidth, 0);\r\n\t\tthis.onScreenWidthUpdated$.next(screenWidth);\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ScreenWidthDetectorService } from './screen-width-detector.service';\r\n\r\n/**\r\n * Based on the angular/flex-layout using the grid media sizes from Bootstrap 4.0,\r\n * this service listens for changes reported by the ScreenWidthDetectorService and\r\n * allows validating specific Bootstrap window breakpoints on the following scale,\r\n * from smaller to larger: XS, SM, MD, LG and XL.\r\n */\r\n@Injectable()\r\nexport class ScreenWidthListenerService {\r\n\tprivate screenWidth: number = 0;\r\n\tprivate sizes: any = {\r\n\t\tXS: {\r\n\t\t\tmin: 0,\r\n\t\t\tmax: 575.98,\r\n\t\t},\r\n\t\tSM: {\r\n\t\t\tmin: 576,\r\n\t\t\tmax: 767.98,\r\n\t\t},\r\n\t\tMD: {\r\n\t\t\tmin: 768,\r\n\t\t\tmax: 991.98,\r\n\t\t},\r\n\t\tLG: {\r\n\t\t\tmin: 992,\r\n\t\t\tmax: 1199.98,\r\n\t\t},\r\n\t\tXL: {\r\n\t\t\tmin: 1200,\r\n\t\t},\r\n\t};\r\n\r\n\tconstructor(private screenWidthDetector: ScreenWidthDetectorService) {\r\n\t\tthis.screenWidthDetector.onScreenWidthUpdated$.subscribe((screenWidth: number) => {\r\n\t\t\tthis.screenWidth = screenWidth;\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is less than SM, which is between 0 and XS max width.\r\n\t */\r\n\tget isLessThanSM(): boolean {\r\n\t\treturn this.screenWidth < this.sizes.SM.min;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is less than MD, which is between 0 and SM max width.\r\n\t */\r\n\tget isLessThanMD(): boolean {\r\n\t\treturn this.screenWidth < this.sizes.MD.min;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is less than LG, which is between 0 and MD max width.\r\n\t */\r\n\tget isLessThanLG(): boolean {\r\n\t\treturn this.screenWidth < this.sizes.LG.min;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is less than XL, which is between 0 and LG max width.\r\n\t */\r\n\tget isLessThanXL(): boolean {\r\n\t\treturn this.screenWidth < this.sizes.XL.min;\r\n\t}\r\n\r\n\t/**\r\n\t/**\r\n\t * @returns true if the screen width is greater than XS, which is greater than or equal to SM min width.\r\n\t */\r\n\tget isGreaterThanXS(): boolean {\r\n\t\treturn this.screenWidth > this.sizes.XS.max;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is greater than SM, which is greater than or equal to MD min width.\r\n\t */\r\n\tget isGreaterThanSM(): boolean {\r\n\t\treturn this.screenWidth > this.sizes.SM.max;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is greater than MD, which is greater than or equal to LG min width.\r\n\t */\r\n\tget isGreaterThanMD(): boolean {\r\n\t\treturn this.screenWidth > this.sizes.MD.max;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is greater than LG, which is greater than or equal to XL min width.\r\n\t */\r\n\tget isGreaterThanLG(): boolean {\r\n\t\treturn this.screenWidth > this.sizes.LG.max;\r\n\t}\r\n\r\n\t/**\r\n\t * @returns true if the screen width is greater than a specific size. Useful when requiring media breaks greater than XL.\r\n\t */\r\n\tpublic isGreaterThanSize(size: number): boolean {\r\n\t\treturn (!!size || size === 0) && this.screenWidth > size;\r\n\t}\r\n}\r\n","import { NgModule, Pipe, PipeTransform } from '@angular/core';\r\nimport { TranslateService } from './translate.service';\r\n\r\n@Pipe({\r\n\tname: 'translate',\r\n\tpure: false,\r\n})\r\nexport class TranslatePipe implements PipeTransform {\r\n\tconstructor(private translateService: TranslateService) {}\r\n\r\n\ttransform(value: string, resourceType: string, languageCode: string): any {\r\n\t\tif (!value) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// return 'value from pipe';\r\n\t\tif (!languageCode) {\r\n\t\t\tif (!resourceType) {\r\n\t\t\t\treturn this.translateService.translate(value?.toLocaleLowerCase());\r\n\t\t\t} else {\r\n\t\t\t\treturn this.translateService.translate(value?.toLocaleLowerCase(), resourceType);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (!resourceType) {\r\n\t\t\t\treturn this.translateService.translateByLanguage(value?.toLocaleLowerCase(), languageCode);\r\n\t\t\t} else {\r\n\t\t\t\treturn this.translateService.translateByLanguage(value?.toLocaleLowerCase(), languageCode, resourceType);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@NgModule({\r\n\tdeclarations: [TranslatePipe],\r\n\texports: [TranslatePipe],\r\n})\r\nexport class TranslateModule {}\r\n","/* eslint-disable guard-for-in */\r\nimport { Injectable, SecurityContext } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { AllResourcesResponse } from '../../models/resources/all-resources-response';\r\nimport { NotificationService } from '../notification/notification.service';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { GlobalizationApiService } from '../../server-api/globalization-api.service';\r\nimport { UtilitiesService } from '../utils/utilities.service';\r\n\r\n@Injectable()\r\nexport class TranslateService {\r\n\tprivate static DEFAULT_AVAILABLE_LANGUAGES: Array = ['en', 'pt', 'es'];\r\n\r\n\tprivate currentLanguage: string;\r\n\tprivate translations: any = {};\r\n\tprivate serverAvailableLanguages: any; // ['en','pt','en-US','pt-BR',...]\r\n\r\n\t// Constructor\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate globalizationApiService: GlobalizationApiService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate domSanitizer: DomSanitizer,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {}\r\n\r\n\tinitTranslations(): Promise {\r\n\t\treturn new Promise((resolve) => {\r\n\t\t\tconst resourceTypes: string[] = [\r\n\t\t\t\t'client',\r\n\t\t\t\t'CountryCode',\r\n\t\t\t\t'list-role',\r\n\t\t\t\t'list-paymentRequestState',\r\n\t\t\t\t'list-documentPaymentRequestState',\r\n\t\t\t\t'list-paymentState',\r\n\t\t\t\t'list-approvalState',\r\n\t\t\t\t'list-docType',\r\n\t\t\t\t'list-relationState',\r\n\t\t\t\t'list-connectionState',\r\n\t\t\t\t'list-contractState',\r\n\t\t\t\t'list-errorCodes',\r\n\t\t\t\t'list-fundingRequestState',\r\n\t\t\t\t'list-documentAdvanceState',\r\n\t\t\t\t'pdf',\r\n\t\t\t\t'list-uploadedDocumentRecordState',\r\n\t\t\t\t'list-fileIntegrationState',\r\n\t\t\t\t'list-integrationFileType',\r\n\t\t\t\t'list-fileIntegrationDecision',\r\n\t\t\t\t'list-companyInviteTicketStatus',\r\n\t\t\t\t'list-timeZones',\r\n\t\t\t\t'list-DocumentNamesLabel',\r\n\t\t\t\t'list-DownloadDocNames',\r\n\t\t\t\t'list-uploadedSupplierRecordState',\r\n\t\t\t\t'list-uploadedSupplierYesNo',\r\n\t\t\t\t'list-faqsCategory',\r\n\t\t\t\t'list-commissionType',\r\n\t\t\t\t'list-commissionOperationType',\r\n\t\t\t\t'list-commissionUnit',\r\n\t\t\t\t'list-contractProductCode',\r\n\t\t\t\t'list-creditAssignmentState',\r\n\t\t\t\t'list-creditAssignmentDocumentState',\r\n\t\t\t\t'list-advanceRequestState',\r\n\t\t\t\t'list-advanceRequestType',\r\n\t\t\t\t'list-fundingRequestType',\r\n\t\t\t\t'list-creditAssignmentType',\r\n\t\t\t\t'list-errorDetailCodes',\r\n\t\t\t\t'list-errorDetailFileFieldNames',\r\n\t\t\t\t'SupplierRecordsUploadExcelTemplate',\r\n\t\t\t\t'DocumentRecordsUploadExcelTemplate',\r\n\t\t\t\t'list-notificationsManagementType',\r\n\t\t\t\t'list-notificationsManagementState',\r\n\t\t\t\t'list-confirmingContractSubType',\r\n\t\t\t\t'list-confirmingContractRuleType',\r\n\t\t\t\t'FactoringDocumentRecordsUploadExcelTemplate',\r\n\t\t\t\t'list-pendingNonSepaStatus',\r\n\t\t\t\t'list-companyRole',\r\n\t\t\t\t'list-companyProfile',\r\n\t\t\t\t'list-audit-status',\r\n\t\t\t\t'list-ResourceValidationStatus',\r\n\t\t\t\t'list-ResourceTemplateStatus',\r\n\t\t\t\t'list-ResourceDeleteValidationStatus',\r\n\t\t\t];\r\n\r\n\t\t\tthis.globalizationApiService.getAvailableLanguages().subscribe({\r\n\t\t\t\tnext: (response: OperationResult) => {\r\n\t\t\t\t\tthis.serverAvailableLanguages = response.Data;\r\n\r\n\t\t\t\t\tthis.globalizationApiService.getTranslations().subscribe({\r\n\t\t\t\t\t\tnext: (translationsResult: OperationResult) => {\r\n\t\t\t\t\t\t\tif (translationsResult.IsValid) {\r\n\t\t\t\t\t\t\t\tthis.processValidTranslationsFromServer(translationsResult);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.processInvalidTranslationsFromServer(translationsResult);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tresolve();\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\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\t\tthis.serverAvailableLanguages = { Languages: TranslateService.DEFAULT_AVAILABLE_LANGUAGES };\r\n\t\t\t\t\tthis.currentLanguage = this.getValidServerLanguageFromCode(this.currentLanguage);\r\n\t\t\t\t\tconsole.log('using language:' + this.domSanitizer.sanitize(SecurityContext.HTML, this.currentLanguage));\r\n\t\t\t\t\tthis.loadResourcesFromServer(this.currentLanguage, resourceTypes);\r\n\t\t\t\t\tconsole.error(\r\n\t\t\t\t\t\t'Error getting getting available languages from server...defaulting to en,pt..',\r\n\t\t\t\t\t\tthis.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse)\r\n\t\t\t\t\t);\r\n\t\t\t\t\tresolve();\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tprivate translateLangResourceTypeKey(languageCode: string, resourceType: string, key: string): string {\r\n\t\t// TODO: Pleeeeease remove this 2 if statements by providing a singleton service something like module.forRoot()...\r\n\t\tthis.currentLanguage = this.appContext.getCurrentLanguage().toLowerCase();\r\n\r\n\t\tconst lowKey = key?.toLocaleLowerCase();\r\n\r\n\t\tif (!languageCode) languageCode = this.currentLanguage;\r\n\r\n\t\tif (!this.translations || !this.translations[languageCode]) {\r\n\t\t\tthis.translations = this.appContext.getTranslations();\r\n\t\t}\r\n\r\n\t\tif (!this.translations) {\r\n\t\t\treturn languageCode + '.' + resourceType + '.' + lowKey;\r\n\t\t}\r\n\t\tif (!this.translations[languageCode]) {\r\n\t\t\treturn languageCode + '.' + resourceType + '.' + lowKey;\r\n\t\t}\r\n\t\tif (!this.translations[languageCode][resourceType]) {\r\n\t\t\treturn resourceType + '.' + lowKey;\r\n\t\t}\r\n\t\tif (!this.translations[languageCode][resourceType][lowKey]) {\r\n\t\t\treturn lowKey;\r\n\t\t}\r\n\r\n\t\tconst translatedKey = this.translations[languageCode][resourceType][lowKey].value;\r\n\t\tconst keyId = '(' + this.translations[languageCode][resourceType][lowKey].id + ')';\r\n\r\n\t\tif (this.appContext.displayIdWithResourceLabels()) {\r\n\t\t\treturn keyId + translatedKey;\r\n\t\t} else if (this.appContext.displayResourceCodesForLoggedUser()) {\r\n\t\t\treturn key;\r\n\t\t} else {\r\n\t\t\treturn translatedKey;\r\n\t\t}\r\n\t}\r\n\r\n\tpublic translate(key: string, resourceType: string = 'client'): string {\r\n\t\treturn this.translateLangResourceTypeKey(this.currentLanguage, resourceType, key);\r\n\t}\r\n\r\n\tpublic translateByLanguage(key: string, languageCode: string = this.currentLanguage, resourceType: string = 'client'): string {\r\n\t\treturn this.translateLangResourceTypeKey(languageCode, resourceType, key);\r\n\t}\r\n\r\n\t//\r\n\t// returns true or false if languageCode exists is server languageCodes array\r\n\tprivate isLanguageInServerList(languageCode: string): boolean {\r\n\t\tif (!languageCode) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!this.serverAvailableLanguages) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!this.serverAvailableLanguages['Languages']) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (this.serverAvailableLanguages['Languages'].length === 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn this.serverAvailableLanguages['Languages'].indexOf(languageCode) > -1;\r\n\t}\r\n\r\n\t//\r\n\t// Tries to get a possible language that exists in server\r\n\t// 'en-US' will return 'en' if 'en' exists in server (when detecting using navigator.language)\r\n\t// 'EN' will return 'en' since server side is lowercase\r\n\t// 'xpto' will return default system language as in appContext: AppContextService\r\n\tprivate getValidServerLanguageFromCode(candidateLanguageCode: string): string {\r\n\t\t// the language is in the server list\r\n\t\tif (this.isLanguageInServerList(candidateLanguageCode)) {\r\n\t\t\treturn candidateLanguageCode; // the language is in the server array for languages\r\n\t\t}\r\n\r\n\t\t// en-US, es-CO, pt-BR - try to get the main language (without the variant -BR..-US..) (es, pt, er)\r\n\t\tif (candidateLanguageCode?.includes('-')) {\r\n\t\t\tcandidateLanguageCode = candidateLanguageCode.substring(0, candidateLanguageCode.indexOf('-'));\r\n\t\t}\r\n\r\n\t\t// set to lowerCase (PT instead of pt, EN -> wn) since server side is lower case\r\n\t\tcandidateLanguageCode = candidateLanguageCode?.toLowerCase();\r\n\r\n\t\tif (this.isLanguageInServerList(candidateLanguageCode)) {\r\n\t\t\treturn candidateLanguageCode;\r\n\t\t}\r\n\r\n\t\t// return client default language\r\n\t\treturn this.appContext.getApplicationLanguageCode();\r\n\t}\r\n\r\n\tpublic processValidTranslationsFromServer(allResourcesResult: OperationResult) {\r\n\t\t// (MAP) ...maybe we will need to map server result; after that we must have the structure as follows\r\n\t\t/*\r\n {pt: {…}, en: {…}}\r\n pt: {client: {…}, pdf: {…}}\r\n translations[\"en\"][\"client\"][\"login.password\"] is {value: \"Password for login\", id: 4}\r\n translations[][][]\r\n */\r\n\t\t// this.logTranslations(translations);\r\n\r\n\t\t//reset translations\r\n\t\tthis.translations = {};\r\n\t\tthis.appContext.resetTranslations();\r\n\r\n\t\tlet allResources = allResourcesResult.Data;\r\n\r\n\t\tlet allLanguageCodes = allResources.Resources.map((r) => r.LanguageCode).filter((x, i, a) => a.indexOf(x) == i);\r\n\r\n\t\tallLanguageCodes.forEach((language) => {\r\n\t\t\tlet allResourceTypes = allResourcesResult.Data.Resources.filter((r) => r.LanguageCode == language)\r\n\t\t\t\t.map((r) => r.ResourceTypes)\r\n\t\t\t\t.map((t) => t[0]);\r\n\t\t\tlet distinctResourceTypesNames = allResourceTypes.map((rt) => rt.ResourceType).filter((x, i, a) => a.indexOf(x) == i);\r\n\r\n\t\t\tif (!this.translations[language]) {\r\n\t\t\t\tthis.translations[language] = {};\r\n\t\t\t}\r\n\r\n\t\t\tdistinctResourceTypesNames.forEach((resourceTypeName) => {\r\n\t\t\t\tif (!this.translations[language][resourceTypeName]) {\r\n\t\t\t\t\tthis.translations[language][resourceTypeName] = {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet flattenedArrayOfResourcesTypes = [].concat.apply(\r\n\t\t\t\t\t[],\r\n\t\t\t\t\tallResources.Resources.filter((r) => r.LanguageCode == language).map((r) => r.ResourceTypes)\r\n\t\t\t\t);\r\n\r\n\t\t\t\tlet resourcesForThisLanguageCode = flattenedArrayOfResourcesTypes.filter((r) => r.ResourceType == resourceTypeName);\r\n\r\n\t\t\t\tfor (let resourceIndex = 0; resourceIndex < resourcesForThisLanguageCode.length; resourceIndex++) {\r\n\t\t\t\t\tconst resource = resourcesForThisLanguageCode[resourceIndex];\r\n\r\n\t\t\t\t\tlet resourceTypeCode = resource.Code.toLocaleLowerCase();\r\n\t\t\t\t\tlet resourceTypeTranslation = resource.ResourceTranslation;\r\n\r\n\t\t\t\t\tthis.translations[language][resourceTypeName][resourceTypeCode] = {};\r\n\t\t\t\t\tthis.translations[language][resourceTypeName][resourceTypeCode].value = resourceTypeTranslation.Value;\r\n\t\t\t\t\tthis.translations[language][resourceTypeName][resourceTypeCode].id = resourceTypeTranslation.CodeAlias;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t// this.logTranslations(translations);\r\n\t\t// save translations in local storage\r\n\t\tthis.appContext.setTranslations(this.translations);\r\n\t}\r\n\r\n\tprivate processInvalidTranslationsFromServer(allResourcesResult: OperationResult) {\r\n\t\tthis.notificationService.addErrors(this.utilitiesService.GetDistinctOperationErrors(allResourcesResult.Errors));\r\n\t}\r\n\r\n\tprivate loadResourcesFromServer(languageCode: string | null, resourceTypes: string[] | null) {\r\n\t\tthis.globalizationApiService.getTranslationsByResourceType(resourceTypes, languageCode).subscribe({\r\n\t\t\tnext: (translationsResult: OperationResult) => {\r\n\t\t\t\tif (translationsResult.IsValid) {\r\n\t\t\t\t\tthis.processValidTranslationsFromServer(translationsResult);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.processInvalidTranslationsFromServer(translationsResult);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('Error getting resources from server..', this.domSanitizer.sanitize(SecurityContext.HTML, httpErrorResponse));\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { OperationError } from '../../models/server-result/operation-error';\r\nimport { TimeZoneValue } from '../../models/common/time-zone-value';\r\n\r\n@Injectable()\r\nexport class UtilitiesService {\r\n\tpublic Guid(): string {\r\n\t\tfunction s4() {\r\n\t\t\treturn Math.floor((1 + Math.random()) * 0x10000)\r\n\t\t\t\t.toString(16)\r\n\t\t\t\t.substring(1);\r\n\t\t}\r\n\r\n\t\treturn s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\r\n\t}\r\n\r\n\tpublic FormatNumberWithCurrency(value: number, currency: string, language: string) {\r\n\t\tconst locale = language === 'pt' ? 'pt-PT' : language === 'en' ? 'en-US' : 'es-ES';\r\n\t\tconst extendedParams = { currencyDisplay: 'code' };\r\n\t\treturn new Intl.NumberFormat(locale, {\r\n\t\t\tstyle: 'currency',\r\n\t\t\tminimumIntegerDigits: 1,\r\n\t\t\tcurrency,\r\n\t\t\t...extendedParams,\r\n\t\t}).format(value);\r\n\t}\r\n\r\n\tpublic TransformFromPipedValue(value: string, currency: string | null = null): number | 0 {\r\n\t\tif (!value) return 0;\r\n\r\n\t\tlet reRemoveLeftTrailingZeros = new RegExp('^0+');\r\n\t\tlet reNonDigits = new RegExp('\\\\D', 'g');\r\n\t\tlet reReplaceCurrencySymbol = currency == null ? null : new RegExp(currency, 'g');\r\n\r\n\t\tlet newVal = value.toString().replace(reNonDigits, '');\r\n\r\n\t\tif (currency != null) newVal = newVal.replace(reReplaceCurrencySymbol!, '');\r\n\r\n\t\tnewVal = newVal.replace(reRemoveLeftTrailingZeros, '');\r\n\r\n\t\tif (newVal.length === 0) {\r\n\t\t\tnewVal = '0,00';\r\n\t\t} else if (newVal.length === 1) {\r\n\t\t\tnewVal = '0,0' + newVal;\r\n\t\t} else if (newVal.length === 2) {\r\n\t\t\tnewVal = '0,' + newVal;\r\n\t\t} else {\r\n\t\t\tnewVal = newVal.substring(0, newVal.length - 2) + ',' + newVal.substring(newVal.length - 2, newVal.length);\r\n\t\t}\r\n\r\n\t\tlet finalValue = +newVal.toString().replace(',', '.');\r\n\t\treturn finalValue;\r\n\t}\r\n\r\n\tpublic validateOnlyNumbers(e) {\r\n\t\tif (e.keyCode >= 48 && e.keyCode <= 57) {\r\n\t\t\t// we have a number\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tpublic openBlobNewWindow(blobObject: Blob): void {\r\n\t\twindow.open(URL.createObjectURL(blobObject));\r\n\t}\r\n\r\n\tpublic openBlobNewWindowWithName(blobObject: Blob | null, filename: string, nonIE_DownloadInsteadOpenWindow: boolean = true): void {\r\n\t\tif (blobObject !== null) {\r\n\t\t\tif (nonIE_DownloadInsteadOpenWindow) {\r\n\t\t\t\tvar blobURL = URL.createObjectURL(blobObject);\r\n\t\t\t\tvar anchor = document.createElement('a');\r\n\t\t\t\tanchor.download = filename;\r\n\t\t\t\tanchor.href = encodeURI(blobURL);\r\n\t\t\t\tanchor.click();\r\n\t\t\t\tanchor.remove();\r\n\t\t\t} else {\r\n\t\t\t\twindow.open(URL.createObjectURL(blobObject));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic base64ToBlob(base64Content: string, contentType: string) {\r\n\t\tconst base64 = base64Content;\r\n\t\tconst binary_string = atob(base64);\r\n\t\tconst len = binary_string.length;\r\n\t\tconst bytes = new Uint8Array(len);\r\n\t\tfor (let i = 0; i < len; i++) {\r\n\t\t\tbytes[i] = binary_string.charCodeAt(i);\r\n\t\t}\r\n\r\n\t\tlet blob = new Blob([bytes.buffer], { type: contentType });\r\n\t\treturn blob;\r\n\t}\r\n\r\n\tpublic GetDistinctOperationErrors(errors: OperationError[]): OperationError[] {\r\n\t\t//Only show distinct Error Codes\r\n\t\tlet distinctErrors: OperationError[] = [];\r\n\r\n\t\tif (errors?.length > 0) {\r\n\t\t\tfor (let errorIndex = 0; errorIndex < errors.length; errorIndex++) {\r\n\t\t\t\tconst error = errors[errorIndex];\r\n\r\n\t\t\t\tif (distinctErrors.findIndex((e) => e.Code == error.Code) === -1) distinctErrors.push(error);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn distinctErrors;\r\n\t}\r\n\r\n\tpublic GetDistinct(entities: T[], comparerFunc: (value1: T, value2: T) => boolean): T[] {\r\n\t\t//Only show distinct Error Codes\r\n\t\tlet distinctEntities: T[] = [];\r\n\r\n\t\tfor (let entitiesIndex = 0; entitiesIndex < entities.length; entitiesIndex++) {\r\n\t\t\tconst entityAtIndex = entities[entitiesIndex];\r\n\r\n\t\t\tif (distinctEntities.findIndex((e) => comparerFunc(e, entityAtIndex)) === -1) distinctEntities.push(entityAtIndex);\r\n\t\t}\r\n\r\n\t\treturn distinctEntities;\r\n\t}\r\n\r\n\tpublic ObjectDeepCopy(objectToCopy: T): T | null {\r\n\t\tlet clonedObject: T | null = null;\r\n\r\n\t\t//https://stackoverflow.com/questions/122102/what-is-the-most-efficient-way-to-deep-clone-an-object-in-javascript\r\n\r\n\t\tclonedObject = JSON.parse(JSON.stringify(objectToCopy));\r\n\r\n\t\treturn clonedObject;\r\n\t}\r\n\r\n\tpublic GetOrderedTimeZoneValues(valuesList: TimeZoneValue[], orderDesc: boolean, languageCode?: string): TimeZoneValue[] {\r\n\t\tlet sortOrderFunc = function (a: number, b: number): number {\r\n\t\t\tif (orderDesc) {\r\n\t\t\t\treturn b < a ? -1 : b > a ? 1 : 0;\r\n\t\t\t} else {\r\n\t\t\t\treturn a < b ? -1 : a > b ? 1 : 0;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tlet orderByFunc = function (timeZone1: TimeZoneValue, timeZone2: TimeZoneValue): number {\r\n\t\t\tvar code1 = timeZone1.Offset;\r\n\t\t\tvar code2 = timeZone2.Offset;\r\n\t\t\treturn sortOrderFunc(code1, code2);\r\n\t\t};\r\n\r\n\t\tif (!!valuesList && valuesList.length > 0) {\r\n\t\t\tvaluesList.sort(function (timeZone1, timeZone2) {\r\n\t\t\t\treturn orderByFunc(timeZone1, timeZone2);\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn valuesList;\r\n\t}\r\n\r\n\tpublic getDistinctValues(valuesList: string[]): string[] {\r\n\t\treturn valuesList.filter((x, i, a) => a.indexOf(x) == i);\r\n\t}\r\n\r\n\tpublic stringIsNullOrEmpty(value: string | null) {\r\n\t\tif (value == null || value == undefined) return true;\r\n\r\n\t\treturn value.trim() == '';\r\n\t}\r\n\r\n\tpublic numberIsNullOrZero(value: number | null) {\r\n\t\tif (value == null || value == undefined) return true;\r\n\r\n\t\treturn value == 0;\r\n\t}\r\n\r\n\tpublic notEmpty(value: TValue | null | undefined): value is TValue {\r\n\t\treturn value !== null && value !== undefined;\r\n\t}\r\n\r\n\tpublic wait(ms) {\r\n\t\tvar start = new Date().getTime();\r\n\t\tvar end = start;\r\n\t\twhile (end < start + ms) {\r\n\t\t\tend = new Date().getTime();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic compareString(str1: string, str2: string): number {\r\n\t\treturn str1 < str2 ? -1 : str1 > str2 ? 1 : 0;\r\n\t}\r\n\r\n\tpublic padLeft(num: string, size: number, char: string): string {\r\n\t\tlet s = num + '';\r\n\t\twhile (s.length < size) s = char + s;\r\n\t\treturn s;\r\n\t}\r\n\r\n\tpublic padRight(num: string, size: number, char: string): string {\r\n\t\tlet s = num + '';\r\n\t\twhile (s.length < size) s += char;\r\n\t\treturn s;\r\n\t}\r\n\r\n\tpublic localeUsesAmPmTime(langCode) {\r\n\t\tconst hourPart = new Intl.DateTimeFormat(langCode, {\r\n\t\t\thour: 'numeric',\r\n\t\t})\r\n\t\t\t.formatToParts(\r\n\t\t\t\t// PR: Dummy date. The point is to check how 13:00 is formatted, if as 1 (pm) or 13.\r\n\t\t\t\tnew Date(2020, 0, 1, 13)\r\n\t\t\t)\r\n\t\t\t.find((part) => part.type === 'hour');\r\n\r\n\t\tif (!hourPart || !hourPart.value) {\r\n\t\t\t// PR: Fallback to the pt-PT which uses 24-hour format, not am/pm.\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn hourPart.value.length != 2;\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class CommonValidationsService {\r\n\tpublic emailIsValid(value): boolean {\r\n\t\t//https://stackoverflow.com/a/46181\r\n\t\t// [EIF-890] ->\r\n\t\t// PR: Discards email domains beginning or ending with any special char (.-com, .com.br-, ...).\r\n\t\t// \t\t Requires domain names with at least 2 chars.\r\n\t\tlet w3cEmailValidationRegex =\r\n\t\t\t/^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\t\tlet isValid = w3cEmailValidationRegex.test(value);\r\n\r\n\t\treturn isValid;\r\n\t}\r\n\r\n\tpublic userNameIsValid(value): boolean {\r\n\t\treturn !!value && value.length > 1;\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { AppContextService } from '../app-context.service';\r\nimport { User } from '../../models/User/user';\r\nimport { NotificationService } from '../notification/notification.service';\r\nimport { Router } from '@angular/router';\r\nimport { TranslateService } from '../translate/translate.service';\r\n\r\n/**\r\n * Validates if the logged User is allowed to execute a specific action or navigate with a specific URL,\r\n * and displays an error message if the user is not allowed to do so.\r\n */\r\n@Injectable()\r\nexport class ExecutionPermissionValidatorService {\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate notificationService: NotificationService,\r\n\t\tprivate translateService: TranslateService,\r\n\t\tprivate router: Router\r\n\t) {}\r\n\r\n\t/**\r\n\t * Executes a specific action if the logged user has specific permissions.\r\n\t * @param permissionValidator Function to validate user permissions. Must receive the logged user as first parameter.\r\n\t * @param action Action the user wants to execute.\r\n\t */\r\n\tpublic executeIfAllowed(permissionValidator: Function, action: Function): void {\r\n\t\tconst loggedUser: User | null = this.appContext.getLoggedUser();\r\n\t\tif (!!loggedUser && !!permissionValidator(loggedUser)) {\r\n\t\t\taction();\r\n\t\t} else {\r\n\t\t\tthis.showUnauthorizedMessage();\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Navigates to a specific resource via URL if the logged user has specific permissions.\r\n\t * @param permissionValidator Function to validate user permissions. Must receive the logged user as first parameter.\r\n\t * @param destinationUrl Resource to which the user wants to navigate.\r\n\t */\r\n\tpublic navigateIfAllowed(permissionValidator: Function, destinationUrl: string): void {\r\n this.executeIfAllowed(permissionValidator, () => {\r\n this.router.navigateByUrl(destinationUrl);\r\n });\r\n\t}\r\n\r\n\tprivate showUnauthorizedMessage(): void {\r\n\t\tconst message = this.translateService.translate('UNAUTHORIZED', 'list-errorCodes');\r\n\t\tthis.notificationService.addDanger(message);\r\n\t}\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { NgForm } from '@angular/forms';\r\nimport { UtilitiesService } from '../utils/utilities.service';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class FormValidatorService implements OnDestroy {\r\n\tprivate formRecords: Array = new Array();\r\n\tprivate _subscriptions: Array = new Array();\r\n\r\n\tconstructor(private utilitiesService: UtilitiesService) {}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tif (this._subscriptions.length) {\r\n\t\t\tlet subscription: Subscription | undefined;\r\n\t\t\twhile (subscription = this._subscriptions.pop()) {\r\n\t\t\t\tsetTimeout((sub: Subscription) => sub.unsubscribe(), 250, subscription);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.formRecords = new Array();\r\n\t}\r\n\r\n\tpublic registerForm(form: NgForm) {\r\n\t\tif (!form) throw new Error('Cannot register a null or undefined form.');\r\n\r\n\t\tif (!form.name) {\r\n\t\t\tconst uuid = this.utilitiesService.Guid();\r\n\t\t\tform.name = `recordedform_${uuid}`;\r\n\t\t}\r\n\t\tconst formName = form.name!.toString();\r\n\r\n\t\tif (this.formRecords.find((x) => x.FormName === formName)) {\r\n\t\t\tthrow new Error('Cannot register duplicate form.');\r\n\t\t}\r\n\r\n\t\t// PR: Just load the FormRecord without controls.\r\n\t\t// NgForm is template driven and async. It may take longer to load all the necessary controls.\r\n\t\tthis.formRecords.push(new FormRecord(formName));\r\n\t}\r\n\r\n\tpublic validateForm(form: NgForm): boolean {\r\n\t\tconst formControlRecords = this.ensureFormControls(form);\r\n\r\n\t\tlet anyHasErrors = false;\r\n\t\tfor (let i = 0; i < formControlRecords.length; i++) {\r\n\t\t\tconst formControlRecord = formControlRecords[i];\r\n\t\t\tform.controls[formControlRecord.ControlName].updateValueAndValidity();\r\n\t\t\tif (!this.validateFormControl(form, formControlRecord)) {\r\n\t\t\t\tanyHasErrors = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn !anyHasErrors;\r\n\t}\r\n\r\n\tpublic formControlHasError(form: NgForm, controlName: string, error: string): boolean {\r\n\t\tif (!form) throw new Error('Cannot validate a null or undefined form.');\r\n\t\tif (!controlName) throw new Error('Invalid parameter: controlName');\r\n\t\tif (!error) throw new Error('Invalid parameter: error');\r\n\r\n\t\tconst formRecord = this.getFormRecord(form);\r\n\t\t// PR: Only check errors after validating the form at least once.\r\n\t\tif (!formRecord) return false;\r\n\t\tconst formControlRecord = formRecord.controls.find((x) => x.ControlName === controlName);\r\n\t\t// PR: Only check errors after validating the form at least once.\r\n\t\tif (!formControlRecord) return false;\r\n\r\n\t\treturn formControlRecord.hasError(error);\r\n\t}\r\n\r\n\tprivate validateFormControl(form: NgForm, formControlRecord: FormControlRecord): boolean {\r\n\t\tif (form.controls[formControlRecord.ControlName].errors) {\r\n\t\t\tfor (const error in form.controls[formControlRecord.ControlName].errors) {\r\n\t\t\t\tformControlRecord.addError(error);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tformControlRecord.clearErrors();\r\n\t\t}\r\n\r\n\t\treturn !formControlRecord.hasErrors();\r\n\t}\r\n\r\n\tprivate getFormRecord(form: NgForm): FormRecord | undefined {\r\n\t\tconst formName = form.name?.toString();\r\n\t\t// PR: The form may have not yet been registered or initialized properly.\r\n\t\tif (!formName) return undefined;\r\n\t\treturn this.formRecords.find((x) => x.FormName === formName);\r\n\t}\r\n\r\n\tprivate ensureFormControls(form: NgForm): Array {\r\n\t\tconst formRecord = this.getFormRecord(form);\r\n\t\tif (!formRecord) throw new Error('Cannot use an unregistered form.');\r\n\r\n\t\tif (!formRecord.controls.length) {\r\n\t\t\tif (!form.controls) throw new Error('Cannot use a form without controls.');\r\n\r\n\t\t\tfor (const control in form.controls) {\r\n\t\t\t\tconst formControlRecord = new FormControlRecord(control);\r\n\t\t\t\tformRecord.controls.push(formControlRecord);\r\n\t\t\t\tconst sub = form.controls[control].valueChanges.subscribe((_) => {\r\n\t\t\t\t\tthis.validateFormControl(form, formControlRecord);\r\n\t\t\t\t});\r\n\t\t\t\tthis._subscriptions.push(sub);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn formRecord.controls;\r\n\t}\r\n}\r\n\r\nclass FormRecord {\r\n\tprivate _controls: Array;\r\n\tpublic FormName: string;\r\n\r\n\tconstructor(formName: string) {\r\n\t\tthis.FormName = formName;\r\n\t\tthis._controls = new Array();\r\n\t}\r\n\r\n\tget controls(): Array {\r\n\t\treturn this._controls;\r\n\t}\r\n\r\n\tpublic registerControl(controlName: string): void {\r\n\t\tif (this._controls.findIndex((x) => x.ControlName === controlName) === -1) {\r\n\t\t\tthis._controls.push(new FormControlRecord(controlName));\r\n\t\t}\r\n\t}\r\n}\r\n\r\nclass FormControlRecord {\r\n\tprivate errors: Array;\r\n\tpublic ControlName: string;\r\n\r\n\tconstructor(controlName: string) {\r\n\t\tthis.ControlName = controlName;\r\n\t\tthis.errors = new Array();\r\n\t}\r\n\r\n\tpublic addError(error: string): void {\r\n\t\tif (this.errors.findIndex((x) => x === error) === -1) {\r\n\t\t\tthis.errors.push(error);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic hasError(error: string): boolean {\r\n\t\treturn this.errors.findIndex((x) => x === error) > -1;\r\n\t}\r\n\r\n\tpublic hasErrors(): boolean {\r\n\t\treturn this.errors.length > 0;\r\n\t}\r\n\r\n\tpublic clearErrors(): void {\r\n\t\twhile (this.errors.length) {\r\n\t\t\tthis.errors.pop();\r\n\t\t}\r\n\t}\r\n}\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'eif-child-component-request-indicator',\r\n\ttemplateUrl: 'child-component-request-indicator.component.html',\r\n\tstyleUrls: ['child-component-request-indicator.component.css'],\r\n})\r\nexport class ChildComponentRequestIndicatorComponent {\r\n\t@Input() public visible: boolean;\r\n\t@Input() public blockUI: boolean;\r\n\t@Input() public componentId: string;\r\n\tpublic requestIndicatorMessage: string = 'request-indicator.defaultMessage';\r\n\r\n\tconstructor() {}\r\n}\r\n","\r\n\t\r\n\r\n\r\n\r\n\t
    \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\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\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\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\t
    \r\n\t\t\t{{ requestIndicatorMessage | translate }}\r\n\t\t
    \r\n\t
    \r\n\r\n","import { Component, Input } from '@angular/core';\r\nimport { Company } from '../../models/companies/company';\r\n\r\n@Component({\r\n\tselector: 'eif-company-card-minimal',\r\n\ttemplateUrl: './company-card-minimal.component.html',\r\n\tstyleUrls: ['./company-card-minimal.component.css'],\r\n})\r\nexport class CompanyCardMinimalComponent {\r\n\t@Input() company: Company;\r\n\t@Input() showCompanyImage: boolean;\r\n}\r\n","
    \r\n\t\r\n\t\t\r\n\t
    \r\n\t
    \r\n\t\t\r\n\t\t\t{{ company?.Name }}\r\n\t\t
    \r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ company?.CountryCode }} \r\n\t\t\t\t{{ company?.VatNumber }}\r\n\t\t\t
    \r\n\t\t
    \r\n\t\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { Company } from '../../models/companies/company';\r\nimport { CompanyLogo } from '../../models/companies/company-logo';\r\nimport { OperationResult } from '../../models/server-result/operation-result';\r\nimport { User } from '../../models/User/user';\r\nimport { ServerApiService } from '../../server-api/server-api.service';\r\nimport { AppContextService } from '../../services/app-context.service';\r\n\r\n@Component({\r\n\tselector: 'eif-company-card',\r\n\ttemplateUrl: './company-card.component.html',\r\n\tstyleUrls: ['./company-card.component.css'],\r\n})\r\nexport class CompanyCardComponent implements OnInit {\r\n\t@Input() company: Company;\r\n\r\n\tprivate loggedUser: User | null = new User();\r\n\r\n\tconstructor(\r\n\t\tprivate serverApiService: ServerApiService, \r\n\t\tprivate appContext: AppContextService, \r\n\t\tprivate sanitizer: DomSanitizer\r\n\t) {}\r\n\r\n\tngOnInit() {\r\n\t\tthis.appContext.getLoggedUserAsync().subscribe((userResult) => {\r\n\t\t\tthis.loggedUser = userResult.Data;\r\n\t\t\tif (this.company.Id) {\r\n\t\t\t\tthis.getCompanyLogo(this.company.Id);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprotected get inThisCompany(): boolean {\r\n\t\tif (this.loggedUser?.Companies) {\r\n\t\t\treturn !!this.loggedUser.Companies.find((c) => c.Id === this.company.Id);\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprotected get canSeeCompanyRelationsLink(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (this.loggedUser?.IsBuyer && this.loggedUser?.IsCompanyAdmin && this.inThisCompany) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprotected get canSeeCompanyUsersLink(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (this.loggedUser?.IsCompanyAdmin && this.inThisCompany) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprotected get canSeeCompanyDetailsLink(): boolean {\r\n\t\tif (this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (this.inThisCompany) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprotected get canSeeCompanyContractsLink(): boolean {\r\n\t\tif (this.company.IsFinancier && this.loggedUser?.IsSystemAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\tprivate getCompanyLogo(companyId: string) {\r\n\t\tconst serviceCall = this.serverApiService.getCompanyLogo(companyId);\r\n\r\n\t\tserviceCall.subscribe({\r\n\t\t\tnext: (operationResult: OperationResult) => {\r\n\t\t\t\tthis.company.CompanyLogo = operationResult.Data;\r\n\t\t\t},\r\n\t\t\terror: (httpErrorResponse: HttpErrorResponse) => {\r\n\t\t\t\tconsole.error('error: ' + httpErrorResponse.message);\r\n\t\t\t},\r\n\t\t});\r\n\t}\r\n\r\n\tprotected sanitizeUrl(url: string) {\r\n\t\treturn this.sanitizer.bypassSecurityTrustUrl(url);\r\n\t}\r\n}\r\n","
    \r\n\t
    \r\n\t\t\r\n\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t\t\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    {{ company?.Name }}
    \r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{{ company?.CountryCode }} {{ company?.VatNumber }}\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\t\r\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{{ company?.LanguageCode }}\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\t
    \r\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{{ company?.TimeZone | translate: 'list-timeZones' }}\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\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{{ company?.AddressLine1 }}
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{{ company?.ZipCode }}\r\n\t\t\t\t\t\t{{ company?.City }}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t{{ company?.AddressLine2 }}
    \r\n\t\t\t\t\t{{ company?.AddressLine3 }}
    \r\n\t\t\t\t
    \r\n\t\t\t\r\n\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
    \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\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\r\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
    \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\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\r\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 { Injectable } from '@angular/core';\r\nimport { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';\r\nimport { formatDate } from '@angular/common';\r\nimport { AppContextService } from '../../services/app-context.service';\r\n\r\nconst I18N_VALUES = {\r\n\ten: {\r\n\t\tweekdays: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],\r\n\t\tmonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\r\n\t\tweekLabel: 'week',\r\n\t},\r\n\tfr: {\r\n\t\tweekdays: ['Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa', 'Di'],\r\n\t\tmonths: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Aou', 'Sep', 'Oct', 'Nov', 'Déc'],\r\n\t\tweekLabel: 'sem',\r\n\t},\r\n\tpt: {\r\n\t\tweekdays: ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],\r\n\t\tmonths: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],\r\n\t\tweekLabel: 'sem',\r\n\t},\r\n\tes: {\r\n\t\tweekdays: ['Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb', 'Dom'],\r\n\t\tmonths: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],\r\n\t\tweekLabel: 'sem',\r\n\t},\r\n};\r\n\r\n// Define custom service providing the months and weekdays translations\r\n@Injectable()\r\nexport class DateRangePickerInternationalizationI18n extends NgbDatepickerI18n {\r\n\tprivate language: string = 'en';\r\n\r\n\tconstructor(private appContext: AppContextService) {\r\n\t\tsuper();\r\n\r\n\t\tconst availableLocales: string[] = ['pt', 'en', 'es'];\r\n\r\n\t\tthis.updateCurrentLanguage();\r\n\r\n\t\tif (availableLocales.indexOf(this.language) === -1) this.language = 'en'; // defaults to en\r\n\t}\r\n\r\n\tgetWeekdayLabel(weekday: number): string {\r\n\t\tthis.updateCurrentLanguage();\r\n\t\treturn I18N_VALUES[this.language].weekdays[weekday - 1];\r\n\t}\r\n\r\n\tgetWeekdayShortName(weekday: number): string {\r\n\t\tthis.updateCurrentLanguage();\r\n\t\treturn I18N_VALUES[this.language].weekdays[weekday - 1];\r\n\t}\r\n\r\n\tgetMonthShortName(month: number): string {\r\n\t\tthis.updateCurrentLanguage();\r\n\t\treturn I18N_VALUES[this.language].months[month - 1];\r\n\t}\r\n\r\n\tgetMonthFullName(month: number): string {\r\n\t\tthis.updateCurrentLanguage();\r\n\t\treturn this.getMonthShortName(month);\r\n\t}\r\n\r\n\tgetDayAriaLabel(date: NgbDateStruct): string {\r\n\t\tlet format = 'yyyy/MM/dd';\r\n\r\n\t\t//https://github.com/ng-bootstrap/ng-bootstrap/blob/master/src/datepicker/datepicker-i18n.ts\r\n\t\tconst jsDate = new Date(date.year, date.month - 1, date.day);\r\n\t\tlet formatedDate = formatDate(jsDate, format, this.language);\r\n\r\n\t\treturn formatedDate;\r\n\t}\r\n\r\n\tupdateCurrentLanguage() {\r\n\t\tthis.language = this.appContext.getCurrentLanguage().toLowerCase();\r\n\t}\r\n}\r\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { NgbDateStruct, NgbCalendar, NgbInputDatepicker, NgbDate } from '@ng-bootstrap/ng-bootstrap';\r\nimport { DatePipe } from '@angular/common';\r\n\r\nconst equals = (one: NgbDateStruct | null, two: NgbDateStruct | null) =>\r\n\tone && two && two.year === one.year && two.month === one.month && two.day === one.day;\r\n\r\nconst before = (one: NgbDateStruct | null, two: NgbDateStruct | null) =>\r\n\t!one || !two\r\n\t\t? false\r\n\t\t: one.year === two.year\r\n\t\t? one.month === two.month\r\n\t\t\t? one.day === two.day\r\n\t\t\t\t? false\r\n\t\t\t\t: one.day < two.day\r\n\t\t\t: one.month < two.month\r\n\t\t: one.year < two.year;\r\n\r\nconst after = (one: NgbDateStruct | null, two: NgbDateStruct | null) =>\r\n\t!one || !two\r\n\t\t? false\r\n\t\t: one.year === two.year\r\n\t\t? one.month === two.month\r\n\t\t\t? one.day === two.day\r\n\t\t\t\t? false\r\n\t\t\t\t: one.day > two.day\r\n\t\t\t: one.month > two.month\r\n\t\t: one.year > two.year;\r\n\r\n@Component({\r\n\tselector: 'eif-date-range-picker',\r\n\ttemplateUrl: './date-range-picker.component.html',\r\n\tstyleUrls: ['./date-range-picker.component.css'],\r\n\thost: {\r\n\t\t'(document:mousedown)': 'onClick($event)',\r\n\t},\r\n})\r\nexport class DateRangePickerComponent implements OnInit {\r\n\t@Input() hasDefaultTwoMonthsRange: boolean = false;\r\n\t@Output() dateRangeSelected = new EventEmitter();\r\n\t@ViewChild('dp', { static: true }) dataRangePicker: NgbInputDatepicker;\r\n\r\n\thoveredDate: NgbDateStruct;\r\n\r\n\tfromDate: NgbDateStruct | null;\r\n\ttoDate: NgbDateStruct | null;\r\n\tfromDateFormatted: Date | null;\r\n\ttoDateFormatted: Date | null;\r\n\tcalendar: NgbCalendar;\r\n\r\n\tconstructor(calendar: NgbCalendar, private datePipe: DatePipe, private _eref: ElementRef) {\r\n\t\tthis.calendar = calendar\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tif (this.hasDefaultTwoMonthsRange) {\r\n\t\t this.fromDate = this.calendar.getPrev(this.calendar.getToday(), 'm', 2);\r\n\t\t this.toDate = this.calendar.getToday();\r\n\t\r\n\t\t this.fromDateFormatted = new Date(this.fromDate.year, this.fromDate.month - 1, this.fromDate.day);\r\n\t\t this.toDateFormatted = new Date(this.toDate.year, this.toDate.month - 1, this.toDate.day);\r\n\r\n\t\t this.dateRangeSelected.emit([this.fromDate, this.toDate]);\r\n\t\t}\r\n\t}\r\n\r\n\tonDateSelection(date: NgbDateStruct) {\r\n\t\t//console.log('DateRangePickerComponent::onDateSelection');\r\n\t\tif (!this.fromDate && !this.toDate) {\r\n\t\t\tthis.fromDate = date;\r\n\t\t} else if (this.fromDate && !this.toDate && after(date, this.fromDate)) {\r\n\t\t\tthis.toDate = date;\r\n\t\t} else {\r\n\t\t\tthis.toDate = null;\r\n\t\t\tthis.fromDate = date;\r\n\t\t}\r\n\r\n\t\tif (this.fromDate && this.toDate) {\r\n\t\t\tthis.dateRangeSelected.emit([this.fromDate, this.toDate]);\r\n\t\t\tthis.fromDateFormatted = new Date(this.fromDate.year, this.fromDate.month - 1, this.fromDate.day);\r\n\t\t\tthis.toDateFormatted = new Date(this.toDate.year, this.toDate.month - 1, this.toDate.day);\r\n\t\t\tthis.dataRangePicker.close();\r\n\t\t}\r\n\t}\r\n\r\n\tonClick(event) {\r\n\t\t//console.log('DateRangePickerComponent::onClick');\r\n\t\t//console.log(event);\r\n\r\n\t\tif (!this._eref.nativeElement.contains(event.target)) {\r\n\t\t\t//console.log('DateRangePickerComponent::!this._eref.nativeElement.contains(event.target)');\r\n\t\t\t//console.log(event.target);\r\n\r\n\t\t\tthis.dataRangePicker.close();\r\n\t\t}\r\n\r\n\t\t//if (this._eref.nativeElement.contains(event.target)) {\r\n\t\t//console.log('DateRangePickerComponent:: OK this._eref.nativeElement.contains(event.target)');\r\n\t\t//console.log(event.target);\r\n\t\t//}\r\n\t}\r\n\r\n\tisHovered = (date) => this.fromDate && !this.toDate && this.hoveredDate && after(date, this.fromDate) && before(date, this.hoveredDate);\r\n\tisInside = (date) => after(date, this.fromDate) && before(date, this.toDate);\r\n\tisFrom = (date) => equals(date, this.fromDate);\r\n\tisTo = (date) => equals(date, this.toDate);\r\n\r\n\tpublic resetDates() {\r\n\t\tthis.fromDate = null;\r\n\t\tthis.toDate = null;\r\n\t\tthis.fromDateFormatted = null;\r\n\t\tthis.fromDateFormatted = null;\r\n\t\t//console.log('DateRangePickerComponent::resetDates');\r\n\t}\r\n\r\n\tpublic setDates(from: NgbDateStruct, to: NgbDateStruct) {\r\n\t\t//console.log('DateRangePickerComponent::setDates');\r\n\r\n\t\tlet df: NgbDate = {\r\n\t\t\tday: from.day,\r\n\t\t\tmonth: from.month,\r\n\t\t\tyear: from.year,\r\n\t\t};\r\n\r\n\t\tlet dt: NgbDate = {\r\n\t\t\tday: to.day,\r\n\t\t\tmonth: to.month,\r\n\t\t\tyear: to.year,\r\n\t\t};\r\n\r\n\t\tthis.dataRangePicker.dateSelect.emit(df);\r\n\t\tthis.dataRangePicker.dateSelect.emit(dt);\r\n\t}\r\n}\r\n","\r\n\t{{ fromDateFormatted | dateLocale }}\r\n\t{{ toDateFormatted | dateLocale }}\r\n\r\n\r\n\r\n
    \r\n\t\r\n\t\t\r\n\t
    \r\n\r\n\r\n\r\n\t\r\n\t\t{{ date.day }}\r\n\t\r\n\r\n","import { AfterViewInit, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\r\nimport { NgbDateStruct, NgbTimeStruct } from '@ng-bootstrap/ng-bootstrap';\r\nimport { AppContextService } from '../../services/app-context.service';\r\nimport { UtilitiesService } from '../../services/utils/utilities.service';\r\nimport { NgForm, NgModel } from '@angular/forms';\r\nimport { FormValidatorService } from '../../services/validations/form-validator.service';\r\n\r\n@Component({\r\n\tselector: 'eif-date-time-picker',\r\n\ttemplateUrl: './date-time-picker.component.html',\r\n\tstyleUrls: ['./date-time-picker.component.css'],\r\n})\r\nexport class DateTimePickerComponent implements AfterViewInit {\r\n\t@ViewChild('control') control: NgModel;\r\n\t@Output() dateTimeSelected = new EventEmitter();\r\n\t@Input() required: boolean = false;\r\n\t@Input() label: string = '';\r\n\t@Input() controlName: string = '';\r\n\t@Input() form: NgForm;\r\n\t@Input() formValidator: FormValidatorService;\r\n\r\n\tprotected dateStruct: NgbDateStruct;\r\n\tprotected timeStruct: NgbTimeStruct;\r\n\tprotected datetime: Date;\r\n\tprotected meridian: boolean = false;\r\n\r\n\tconstructor(\r\n\t\tprivate appContext: AppContextService,\r\n\t\tprivate utilitiesService: UtilitiesService\r\n\t) {\r\n\t\tconst languageCode = this.appContext.getCurrentLanguage().toLowerCase();\r\n\t\tthis.meridian = this.utilitiesService.localeUsesAmPmTime(languageCode);\r\n\t}\r\n\r\n\tngAfterViewInit() {\r\n\t\tif (this.form) {\r\n\t\t\tthis.form.addControl(this.control);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic onDateChange(event: NgbDateStruct) {\r\n\t\tthis.setDate();\r\n\t}\r\n\r\n\tpublic onTimeChange(event: NgbTimeStruct) {\r\n\t\tthis.setDate();\r\n\t}\r\n\r\n\tprotected controlHasError(error: string): boolean {\r\n\t\tif (!this.form || !this.formValidator) return false;\r\n\r\n\t\treturn this.formValidator.formControlHasError(this.form, this.controlName, error);\r\n\t}\r\n\r\n\tprivate setDate() {\r\n\t\tif (!this.timeStruct) {\r\n\t\t\tconst date = new Date();\r\n\t\t\tthis.timeStruct = {\r\n\t\t\t\thour: date.getHours(),\r\n\t\t\t\tminute: date.getMinutes(),\r\n\t\t\t\tsecond: date.getSeconds(),\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (this.dateStruct) {\r\n\t\t\tthis.datetime = new Date(\r\n\t\t\t\tthis.dateStruct.year,\r\n\t\t\t\tthis.dateStruct.month - 1,\r\n\t\t\t\tthis.dateStruct.day,\r\n\t\t\t\tthis.timeStruct.hour,\r\n\t\t\t\tthis.timeStruct.minute,\r\n\t\t\t\tthis.timeStruct.second\r\n\t\t\t);\r\n\r\n\t\t\tthis.dateTimeSelected.emit(this.datetime);\r\n\t\t}\r\n\t}\r\n}\r\n","\r\n\r\n
    \r\n\t\r\n\t\t\r\n\t
    \r\n\r\n\r\n