@fad-producto-portal/ng-fad-signature-fea 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/fad-signature-fea/signature-summary/rejected.svg +19 -19
- package/assets/images/fad-signature-fea/signature-summary/send.svg +10 -10
- package/esm2022/lib/components/document-approval-list/document-approval-list.component.mjs +3 -3
- package/esm2022/lib/components/generic-error-fea/generic-error-fea.component.mjs +3 -3
- package/esm2022/lib/components/signature-summary/signature-summary.component.mjs +3 -3
- package/esm2022/lib/components/upload-e-signature/upload-e-signature.component.mjs +66 -54
- package/esm2022/lib/components/validate-signature/validate-signature.component.mjs +1 -1
- package/esm2022/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.mjs +2 -1
- package/esm2022/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.mjs +3 -1
- package/esm2022/lib/models/configuration/upload-e-signature/upload-e-signature-configuration.interface.mjs +1 -1
- package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs +77 -62
- package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs.map +1 -1
- package/lib/components/upload-e-signature/upload-e-signature.component.d.ts +3 -3
- package/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.d.ts +2 -1
- package/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.d.ts +1 -1
- package/lib/models/configuration/upload-e-signature/upload-e-signature-configuration.interface.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fad-producto-portal-ng-fad-signature-fea.mjs","sources":["../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/document-approval-list/document-approval-lis-tconfiguration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/generic-error-fea/configuration-generic-error-fea.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/upload-e-signature/configuration-upload-e-signature.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/validate-rfc/configuration-validate-rfc.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/validate-signature/validate-signature.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/pdf-viewer-fea/pdf-viewer-fea-configuration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/document-approval-list/document-approval-list-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/document-approval-list/document-approval-list-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/generic-error-fea/generic-error-fea-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/generic-error-fea/generic-error-fea-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-rfc/validate-rfc-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-rfc/validate-rfc-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-signature/validate-signature-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-signature/validate-signature-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-rfc/validate-rfc.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-rfc/validate-rfc.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/document-approval-list/document-approval-list.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/document-approval-list/document-approval-list.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/upload-e-signature/upload-e-signature.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/upload-e-signature/upload-e-signature.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/generic-error-fea/generic-error-fea.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/generic-error-fea/generic-error-fea.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-signature/validate-signature.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-signature/validate-signature.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/signature-summary/signature-summary-configuration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/signature-summary/signature-summary.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/signature-summary/signature-summary.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/ng-fad-signature-fea.module.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/public-api.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/fad-producto-portal-ng-fad-signature-fea.ts"],"sourcesContent":["import { IDocumentApprovalListConfiguration } from \"../../../models\";\r\n\r\nexport const DOCUMENT_APPROVAL_LIST_DEFAULT: IDocumentApprovalListConfiguration = {\r\n\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n sendTo: 'Enviado por',\r\n seeDocument: 'Ver documento',\r\n hideDocument: 'Ocultar documento',\r\n download:'Descargar',\r\n pages: 'Páginas'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/document-approval-list/',\r\n }\r\n};\r\n","import { IGenericErrorFeaConfiguration } from \"../../../models\";\r\n\r\nexport const GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT: IGenericErrorFeaConfiguration = {\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n title: 'Aviso',\r\n instruction: 'No existe un documento que corresponda a este URL (la dirección web). Si copiaste y pegaste la dirección, es posible que hayas cometido un error. Asegúrate de que no sobren o falten caracteres e intenta nuevamente.'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/generic-error-fea/',\r\n }\r\n};\r\n","import { IUploadESignatureConfiguration } from \"../../../models\";\r\n\r\nexport const UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT: IUploadESignatureConfiguration = {\r\n services: {\r\n reject: { loader: true, error: true },\r\n sign: { loader: true, error: true }\r\n },\r\n credentials: {\r\n key: 'JJQUfgm0i5MJ70NI',\r\n iv: 'uxQKO3FiCiht0uVU'\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n documents: {\r\n backgroundColor: '#f5f5f5',\r\n borderRadius: '15px'\r\n },\r\n upload: {\r\n backgroundColor: '#f4f6fa',\r\n borderRadius: '10px',\r\n border: '2px dashed var(--fad-portal-common-legends-tertiary)',\r\n button: {\r\n backgroundColor: '#e3e7f0',\r\n borderRadius: '50px',\r\n hover: '#cbd7f5'\r\n }\r\n },\r\n file: {\r\n borderRadius: '10px',\r\n img: {\r\n backgroundColor: '#f5f5f5'\r\n }\r\n }\r\n },\r\n legends: {\r\n documents: {\r\n pages: {\r\n singular: 'Página',\r\n plural: 'Páginas'\r\n },\r\n status: {\r\n approved: 'Aprobado',\r\n rejected: 'Rechazado'\r\n },\r\n title: {\r\n plural: 'Documentos para enviar (#TOTAL_DOCS)',\r\n singular: 'Documento #STATUS_DOC para firma',\r\n approved: 'aprobado',\r\n rejected: 'rechazado'\r\n }\r\n },\r\n eSignature: {\r\n cer: {\r\n instruction: 'Selecciona o arrastra el archivo .CER',\r\n label: 'Certificado .CER',\r\n upload: 'Subir .CER'\r\n },\r\n key: {\r\n instruction: 'Selecciona o arrastra el archivo .KEY',\r\n label: 'Llave privada .KEY',\r\n upload: 'Subir .KEY'\r\n },\r\n password: {\r\n hide: 'OCULTAR',\r\n label: 'Ingresa la contraseña de tu e.firma',\r\n show: 'MOSTRAR'\r\n },\r\n title: 'Ingresa tu e.firma para firmar los documentos',\r\n upload: 'Seleccionar otro archivo'\r\n },\r\n sign: {\r\n button: {\r\n reject: {\r\n plural: 'Rechazar documentos',\r\n singular: 'Rechazar documento'\r\n },\r\n sign: {\r\n plural: 'Firmar documentos',\r\n singular: 'Firmar documento'\r\n }\r\n },\r\n validate: {\r\n plural: 'Valido que he leído y he aceptado firmar los documentos',\r\n singular: 'Valido que he leído y he aceptado firmar el documento'\r\n }\r\n }\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/upload-e-signature/',\r\n }\r\n};\r\n","import { IValidateRfcConfiguration } from \"../../../models\";\r\n\r\nexport const SIGNATURE_FEA_CONFIGURATION_DEFAULT: IValidateRfcConfiguration = {\r\n\r\n maxCharacters: 13,\r\n regexRFC: '^[A-ZÑ&]{3,4}[0-9]{6}[A-V1-9][A-Z1-9][0-9A]$',\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n title: 'Código de validación',\r\n description: 'Ingresa tu RFC para comenzar la firma',\r\n buttonLegend: 'Validar'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/validate-rfc/',\r\n }\r\n};\r\n","import { IValidateSignatureConfiguration } from \"../../../models\";\r\n\r\nexport const VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT: IValidateSignatureConfiguration = {\r\n services: {\r\n signerStatusFea: { loader: true, error: true }\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/validate-signature/',\r\n }\r\n};\r\n","import { IPdfViewerFeaConfiguration } from \"../../../models\";\r\n\r\nexport const PDF_VIEWER_FEA_DEFAULT: IPdfViewerFeaConfiguration = {\r\n\r\n pdfMini:{\r\n configuration:{\r\n scrollIntoView: true\r\n }\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n \r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/pdf-viewer-fea/',\r\n }\r\n};\r\n","export enum DocumentApprovalListErrorCode {\r\n \r\n SERVICE = -1,\r\n HTTP = -2,\r\n ERROR_PDF = -3,\r\n\r\n}\r\n","import { DocumentApprovalListErrorCode } from \"./document-approval-list-error-code\";\r\n\r\nexport const getDocumentApprovalListErrorDescription = (code: DocumentApprovalListErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"PDF error\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum GenericErrorFeaErrorCode {\r\n}\r\n","import { GenericErrorFeaErrorCode } from \"./generic-error-fea-error-code\";\r\n\r\nexport const getGenericErrorFeaErrorDescription = (code: GenericErrorFeaErrorCode) => {\r\n switch (code) {\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum UploadESignatureErrorCode {\r\n SERVICE = -1,\r\n HTTP = -2,\r\n NO_DOCUMENTS = -3,\r\n FORMAT_CER = -4,\r\n FORMAT_KEY = -5,\r\n MULTIPLE_FILES = -6,\r\n ERROR_BASE_64 = -7,\r\n NO_SIGNER_ID = -8,\r\n NO_RFC = -9,\r\n}\r\n","import { UploadESignatureErrorCode } from \"./upload-e-signature-error-code\";\r\n\r\nexport const getUploadESignatureErrorDescription = (code:UploadESignatureErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"Los documentos a procesar son requeridos\";\r\n case -4:\r\n return \"El formato del archivo seleccionado no es .cer\";\r\n case -5:\r\n return \"El formato del archivo seleccionado no es .key\";\r\n case -6:\r\n return \"Solo puedes seleccionar un archivo\";\r\n case -7:\r\n return \"Error al convertir el archivo a base 64\";\r\n case -8:\r\n return \"El ID del firmante es requerido\";\r\n case -9:\r\n return \"El RFC del firmante es requerido\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum ValidateRFCErrorCode {\r\n \r\n SERVICE = -1,\r\n HTTP = -2,\r\n REQUISITION_ID = -3,\r\n SIGNER_ID = -4\r\n\r\n}\r\n","import { ValidateRFCErrorCode } from \"./validate-rfc-error-code\";\r\n\r\nexport const getValidateRFCErrorDescription = (code: ValidateRFCErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"There is not requisitionId\";\r\n case -4:\r\n return \"There is not signerId\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum ValidateSignatureErrorCode {\r\n SERVICE = -1,\r\n HTTP = -2,\r\n NO_REQUISITION_ID = -3,\r\n NO_SIGNER_ID = -4,\r\n}\r\n","import { ValidateSignatureErrorCode } from \"./validate-signature-error-code\";\r\n\r\nexport const getValidateSignatureErrorDescription = (code: ValidateSignatureErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -2:\r\n return \"Requisition ID is required\";\r\n case -3:\r\n return \"Signer ID is required\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","import { ChangeDetectorRef, Component, Input, ViewChild } from '@angular/core';\r\nimport { DocumentApprovalFea } from '../../models';\r\nimport { NgFadPdfReaderService, ResponseSuccess } from '@fad-producto/ng-fad-pdf-reader';\r\nimport { SharedUtils } from '@fad-producto-portal/ng-fad-shared';\r\nimport { GeneralPdfViewerComponent as GeneralPdfViewerComponentModule, IPdfMiniViewConfiguration } from '@fad-producto-portal/ng-fad-viewer'\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { PDF_VIEWER_FEA_DEFAULT } from '../../constants';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-pdf-viewer-fea',\r\n templateUrl: './pdf-viewer-fea.component.html',\r\n styleUrls: ['./pdf-viewer-fea.component.scss'],\r\n providers: [NgFadPdfReaderService]\r\n})\r\nexport class PdfViewerFeaComponent {\r\n\r\n @Input() configuration!: string;\r\n @Input() file!: string\r\n @Input() index!: number; \r\n @Input() id!: string;\r\n \r\n pages: ResponseSuccess[] = []; \r\n page: number = 1;\r\n miniViewConfig = { scrollIntoView: false };\r\n height: number = 1000; \r\n @ViewChild(GeneralPdfViewerComponentModule) generalPdfViewerComponent!: GeneralPdfViewerComponentModule;\r\n\r\n constructor(private pdfService: NgFadPdfReaderService,private cdr: ChangeDetectorRef) {}\r\n\r\n ngOnInit(): void {\r\n if (this.file) {\r\n this.initializePdf(this.file);\r\n }\r\n }\r\n\r\n initializePdf(pdfBase64: string) {\r\n this.pdfService.initialize(pdfBase64, `pdf-${this.index}`);\r\n \r\n this.pdfService.pages.subscribe((res) => {\r\n if (res) {\r\n this.pages = [...this.pages, res]; \r\n }\r\n });\r\n }\r\n\r\n onPageChange(page: number) {\r\n this.page = page;\r\n }\r\n\r\n scrollToPage(page: number) {\r\n this.generalPdfViewerComponent.scrollToPage(page);\r\n }\r\n\r\n onLoadPage(data: ResponseSuccess) {\r\n if (data.page === 1) {\r\n const containerElement = document.getElementById(this.id) as HTMLElement;\r\n if (!containerElement) {\r\n return;\r\n }\r\n const observer = new MutationObserver(() => {\r\n const viewerElement = containerElement.querySelector(`#fad-viewer-page-v1-1`) as HTMLElement;\r\n \r\n if (viewerElement) {\r\n observer.disconnect(); \r\n const newHeight = viewerElement.clientHeight;\r\n \r\n if (this.height !== newHeight) {\r\n this.height = newHeight;\r\n this.cdr.detectChanges();\r\n }\r\n }\r\n });\r\n observer.observe(containerElement, { childList: true, subtree: true });\r\n }\r\n }\r\n \r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n PDF_VIEWER_FEA_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n \r\n\r\n}\r\n","<div class=\"pdf-viewer\" [id]=\"id\" [style.height.px]=\"height\">\r\n <ng-fad-viewer-general-pdf-viewer\r\n [pages]=\"pages\"\r\n (onpagechange)=\"onPageChange($event)\"\r\n (onloadpage)=\"onLoadPage($event)\">\r\n \r\n <ng-fad-viewer-pdf-mini-view\r\n miniView\r\n [configuration]=\"miniViewConfig\"\r\n [pages]=\"pages\"\r\n [page]=\"page\"\r\n (onpagechange)=\"scrollToPage($event)\"\r\n >\r\n </ng-fad-viewer-pdf-mini-view>\r\n \r\n </ng-fad-viewer-general-pdf-viewer>\r\n</div>","import { Component, ElementRef, EventEmitter, Input, Output, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { IValidateRfcConfiguration } from '../../models';\r\nimport { getValidateRFCErrorDescription, SIGNATURE_FEA_CONFIGURATION_DEFAULT, ValidateRFCErrorCode } from '../../constants';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { FadService, ResponseData, ValidateRFC } from '@fad-producto-portal/ng-fad-services';\r\nimport { ResponseError } from '@fad-producto-portal/ng-fad-shared';\r\nimport { finalize } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-validate-rfc',\r\n templateUrl: './validate-rfc.component.html',\r\n styleUrls: ['./validate-rfc.component.scss']\r\n})\r\nexport class ValidateRfcComponent implements OnInit {\r\n \r\n @Input() requisitionId: string = '';\r\n @Input() signerId: string = '';\r\n @Input() configuration!: IValidateRfcConfiguration;\r\n @Output() onerror = new EventEmitter<ResponseError>();\r\n @Output() oncomplete = new EventEmitter<ResponseData<ValidateRFC>>();\r\n @Output() onloader = new EventEmitter<boolean>();\r\n validationForm!: FormGroup;\r\n showComponent: boolean = true;\r\n \r\n constructor(private fb: FormBuilder, private hostContext: ElementRef,private route: ActivatedRoute, private fadService: FadService) {}\r\n\r\n ngOnInit() {\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n this.showComponent = this.validateData();\r\n this.initializeForm();\r\n\r\n }\r\n\r\n initializeForm(): void {\r\n const maxCharacters = this.configuration?.maxCharacters || 13;\r\n const rfcRegex = new RegExp(this.configuration?.regexRFC!);\r\n\r\n this.validationForm = this.fb.group({\r\n code: ['', [\r\n Validators.required,\r\n Validators.minLength(maxCharacters),\r\n Validators.maxLength(maxCharacters),\r\n Validators.pattern(rfcRegex)\r\n ]]\r\n });\r\n }\r\n\r\n onSubmit(): void {\r\n this.validateRFC();\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n SIGNATURE_FEA_CONFIGURATION_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n\r\n validateData() {\r\n if(!this.requisitionId) {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.REQUISITION_ID, getValidateRFCErrorDescription(ValidateRFCErrorCode.REQUISITION_ID) , 'ng-fad-portal-signature-fea-validate-rfc'));\r\n return false;\r\n }\r\n \r\n if(!this.signerId) {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.SIGNER_ID, getValidateRFCErrorDescription(ValidateRFCErrorCode.SIGNER_ID) , 'ng-fad-portal-signature-fea-validate-rfc'));\r\n return false;\r\n }\r\n \r\n return true;\r\n }\r\n\r\n validateRFC(){\r\n if( this.validationForm.valid ){\r\n console.error(\"Validar rfc \");\r\n\r\n const validateReq = {\r\n requisitionId: this.requisitionId,\r\n signerId: this.signerId,\r\n rfc: this.codeControl?.value\r\n };\r\n\r\n this.fadService.validateRfc(validateReq)\r\n .pipe(finalize(() => this.onloader.emit(false))) \r\n .subscribe({\r\n next: (response) => {\r\n if( response.success ){\r\n this.oncomplete.emit(response);\r\n }else{\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.SERVICE, response.error, 'ng-fad-portal-signature-fea-validate-rfc'));\r\n }\r\n },\r\n error: (error) => {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.HTTP, error.error, 'ng-fad-portal-signature-fea-validate-rfc'));\r\n }\r\n });\r\n }\r\n }\r\n\r\n onInputChange(event: any){\r\n const inputValue = event.target.value;\r\n this.validationForm.controls['code'].setValue(inputValue.toUpperCase(), { emitEvent: false });\r\n }\r\n\r\n get codeControl() {\r\n return this.validationForm.get('code') ?? null;\r\n }\r\n}\r\n","\r\n <div class=\"validation-container fad-container\" *ngIf=\"showComponent\">\r\n <div class=\"title\">{{ configuration.customization?.moduleCustomization?.legends?.title }}</div>\r\n <div class=\"fad-portal-subtitle\">{{ configuration.customization?.moduleCustomization?.legends?.description }}</div>\r\n <form [formGroup]=\"validationForm\" (ngSubmit)=\"onSubmit()\">\r\n <div class=\"fad-portal-container-input\">\r\n <input id=\"code\" type=\"text\" formControlName=\"code\" (input)=\"onInputChange($event)\" maxlength=\"{{ configuration.maxCharacters || 13 }}\" />\r\n </div>\r\n <ng-fad-portal-shared-form-errors \r\n [formData]=\"codeControl!\" \r\n [configuration]=\"configuration.formErrors?.configuration!\">\r\n </ng-fad-portal-shared-form-errors>\r\n \r\n <button type=\"submit\" class=\"fad-portal-primary\" [disabled]=\"validationForm.invalid\">\r\n {{ configuration.customization?.moduleCustomization?.legends?.buttonLegend }}\r\n </button>\r\n </form>\r\n </div>\r\n\r\n\r\n","import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\nimport { DocumentApprovalFea, IDocumentApprovalListConfiguration } from '../../models';\nimport { DOCUMENT_APPROVAL_LIST_DEFAULT, getDocumentApprovalListErrorDescription } from '../../constants';\nimport { FadService, RequisitionsFea, ResponseData, RequisitionFeaData, DocumentFea } from '@fad-producto-portal/ng-fad-services';\nimport { ActivatedRoute } from '@angular/router';\nimport { GeneralPdfViewerComponent as GeneralPdfViewerComponentModule, IPdfMiniViewConfiguration } from '@fad-producto-portal/ng-fad-viewer'\nimport { finalize, Subscription } from 'rxjs';\nimport { NgFadPdfReaderService, ResponseSuccess } from '@fad-producto/ng-fad-pdf-reader';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { ResponseError, SharedUtils } from '@fad-producto-portal/ng-fad-shared';\nimport { DocumentApprovalListErrorCode } from '../../constants';\n\n@Component({\n selector: 'ng-fad-signature-fea-document-approval-list',\n templateUrl: './document-approval-list.component.html',\n styleUrls: ['./document-approval-list.component.scss'],\n providers: [NgFadPdfReaderService]\n})\nexport class DocumentApprovalListComponent {\n \n @Input() configuration!: IDocumentApprovalListConfiguration;\n @Input() rfc!: string;\n @Output() onloader = new EventEmitter<boolean>();\n @Output() onevent = new EventEmitter<DocumentApprovalFea[]>();\n @Output() onerror: EventEmitter<ResponseError> = new EventEmitter();\n pagesMap: Map<string, ResponseSuccess[]> = new Map();\n requisitionsFea: RequisitionFeaData[] = [];\n documentsApprovalList: DocumentApprovalFea[] = [];\n approveAll: boolean = false;\n \n images = {\n inactive:{\n reject: '',\n approve: ''\n },\n active:{\n reject: '',\n approve: '' \n }\n }\n\n \n\n constructor( private hostContext: ElementRef, private fad: FadService,private cdr: ChangeDetectorRef,private pdfService: NgFadPdfReaderService ) {}\n \n \n ngOnInit() {\n console.log(this.configuration,this.rfc)\n this.setCustomizationStyle(this.hostContext.nativeElement);\n if (this.configuration?.pathDependencies?.imageDirectory) {\n this.images.inactive.reject = this.configuration.pathDependencies?.images?.inactiveReject ?? `${this.configuration.pathDependencies.imageDirectory}/inactiveReject.png`;\n this.images.inactive.approve = this.configuration.pathDependencies?.images?.inactiveApprove ?? `${this.configuration.pathDependencies.imageDirectory}/inactiveApprove.png`;\n this.images.active.reject = this.configuration.pathDependencies?.images?.activeReject ?? `${this.configuration.pathDependencies.imageDirectory}/activeReject.png`;\n this.images.active.approve = this.configuration.pathDependencies?.images?.activeApprove ?? `${this.configuration.pathDependencies.imageDirectory}/activeApprove.png`;\n this.cdr.detectChanges();\n }\n\n \n this.getRequisitionsRfc();\n }\n\n getRequisitionsRfc() {\n this.onloader.emit(true); \n \n this.fad.getRequisitionsRfc(this.rfc)\n .pipe(finalize(() => this.onloader.emit(false))) \n .subscribe({\n next: (res) => {\n if (res.success) { \n this.requisitionsFea = res.data.requisitions;\n this.documentsApprovalList = this.requisitionsFea.flatMap(requisition => \n requisition.documents.map(doc => ({\n doc: doc,\n id: doc.documentId,\n idRequisition: requisition.requisitionId,\n approved: undefined,\n isVisible: false\n }))\n );\n } else {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.SERVICE,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n },\n error: (error: HttpErrorResponse) => {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.HTTP,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n });\n }\n\n toggleApproval(document: DocumentApprovalFea) {\n document.approved = document.approved === true ? undefined : true;\n this.updateApproveAllState();\n }\n \n toggleRejection(document: DocumentApprovalFea) {\n document.approved = document.approved === false ? undefined : false;\n this.updateApproveAllState();\n }\n\n updateApproveAllState() {\n this.approveAll = this.documentsApprovalList.every(doc => doc.approved === true);\n }\n\n approveAllDocuments() {\n this.approveAll = !this.approveAll;\n this.documentsApprovalList.forEach(doc => doc.approved = this.approveAll ? true : undefined);\n }\n\n getApprovedCount(): number {\n return this.documentsApprovalList.filter(doc => doc.approved === true).length;\n }\n\n getRejectedCount(): number {\n return this.documentsApprovalList.filter(doc => doc.approved === false).length;\n }\n\n emitApprovedDocuments() {\n const approvedDocuments = this.documentsApprovalList.filter(doc => doc.approved !== undefined);\n console.log(approvedDocuments);\n this.onevent.emit(approvedDocuments);\n }\n\n seeDocumentFea(document: DocumentApprovalFea) {\n document.isVisible = !document.isVisible;\n\n if (document.isVisible && !document.doc?.file) {\n this.onloader.emit(true);\n this.fad.getDocumentFea(document.id!, { loader: true, error: true })\n .pipe(finalize(() => this.onloader.emit(false)))\n .subscribe({\n next: (res) => {\n if (document.doc) {\n document.doc.file = \"data:application/pdf;base64,\" + res.data.file; \n } else {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.SERVICE,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n },\n error: () => {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.HTTP,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n });\n }\n}\n\n downloadDocumentFea(document: DocumentApprovalFea) {\n this.onloader.emit(true); \n this.fad.getDocumentFea(document.id!)\n .pipe(finalize(() => this.onloader.emit(false))) \n .subscribe({\n next: async (res) => {\n if (res.success && res.data.file) {\n const byteCharacters = atob(res.data.file);\n const byteNumbers = new Array(byteCharacters.length).fill(0).map((_, i) => byteCharacters.charCodeAt(i));\n const byteArray = new Uint8Array(byteNumbers);\n const blob = new Blob([byteArray], { type: 'application/pdf' });\n await SharedUtils.downloadFile(blob,document.doc?.name!).then(res=>{\n\n }).catch(error=>{\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.ERROR_PDF,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.ERROR_PDF),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n })\n\n } else {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.SERVICE,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n },\n error: (error: HttpErrorResponse) => {\n this.onerror.emit(new ResponseError(\n DocumentApprovalListErrorCode.HTTP,\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\n 'ng-fad-portal-signature-fea-document-approval-list'\n ));\n }\n });\n }\n \n\n getDocumentId(id: string){\n return \"pdf\"+id!.replace(/-/g, '');\n }\n setCustomizationStyle(targetElement = document.documentElement): void {\n this.configuration = Utils.mergeConfiguration(\n new Configuration(),\n DOCUMENT_APPROVAL_LIST_DEFAULT,\n this.configuration\n );\n }\n}\n","\n <ng-container *ngFor=\"let requisition of requisitionsFea\">\n <div class=\"fad-portal-content\" >\n <div class=\"header\" >\n <div>\n <div class=\"fad-portal-title\">\n {{ requisition.name }} ({{requisition.documents.length}})\n </div>\n <div class=\"info\">\n {{configuration.customization?.moduleCustomization?.legends?.sendTo}} Alfredo Villanueva {{ requisition.sendBy }}\n </div>\n <div class=\"info\">\n {{ requisition.sendByEmail }}\n </div>\n </div>\n <div class=\"requisition-id\">\n <div class=\"fad-portal-content-bold\">ID {{ requisition.requisitionId }}</div>\n </div>\n </div>\n <div class=\"documents-container\">\n <ng-container *ngFor=\"let document of documentsApprovalList; let i = index\">\n <ng-container *ngIf=\"document.idRequisition === requisition.requisitionId\" >\n <div class=\"document\" >\n <div class=\"information\" >\n <div class=\"document-name fad-portal-content-bold\" >\n {{ document.doc?.name }}\n </div>\n <div class=\"validate\">\n \n <ng-fad-image-inline \n [src]=\"document.approved === false ? images.active.reject : images.inactive.reject\"\n (click)=\"toggleRejection(document)\">\n </ng-fad-image-inline>\n \n \n <ng-fad-image-inline \n [src]=\"document.approved === true ? images.active.approve : images.inactive.approve\"\n (click)=\"toggleApproval(document)\">\n </ng-fad-image-inline>\n </div>\n \n </div>\n <div class=\"actions\">\n <div>\n <div class=\"fad-portal-content-bold\" (click)=\"seeDocumentFea(document)\">\n {{ document.isVisible ? 'Ocultar documento' : 'Ver documento' }}\n </div>\n <div class=\"fad-portal-content-bold\" (click)=\"downloadDocumentFea(document)\">{{configuration.customization?.moduleCustomization?.legends?.download}}</div>\n </div>\n <div>\n {{ document.doc?.pages }} {{configuration.customization?.moduleCustomization?.legends?.pages}}\n </div>\n </div>\n\n <ng-fad-signature-fea-pdf-viewer-fea\n *ngIf=\"document.isVisible && document.doc?.file\"\n [file]=\"document.doc?.file\"\n [index]=\"i\"\n [id]=\"getDocumentId(document.id!)\"\n >\n </ng-fad-signature-fea-pdf-viewer-fea>\n \n </div>\n </ng-container>\n </ng-container>\n \n </div>\n \n </div>\n </ng-container>\n <div class=\"fad-portal-content selector-document\">\n <div class=\"document-status-bar\">\n \n <div *ngIf=\"getApprovedCount() === 0 && getRejectedCount() === 0\" class=\"document-status-message \">\n Aprueba los documentos para firmarlos con tu e.firma\n </div>\n \n \n <div *ngIf=\"getApprovedCount() > 0 || getRejectedCount() > 0\" class=\"document-status-content\">\n <div class=\"approve-all\">\n <ng-fad-image-inline \n [src]=\"approveAll ? images.active.approve : images.inactive.approve\"\n (click)=\"approveAllDocuments()\">\n </ng-fad-image-inline>\n <span (click)=\"approveAllDocuments()\">Aprobar todos los documentos ({{ documentsApprovalList.length }})</span>\n </div>\n \n \n <div class=\"document-counts\">\n <span *ngIf=\"getApprovedCount() > 0 && getRejectedCount() === 0\" class=\"fad-portal-informative-bold\">\n {{ getApprovedCount() }} documentos aprobados\n </span>\n <span *ngIf=\"getRejectedCount() > 0 && getApprovedCount() === 0\" class=\"fad-portal-informative-bold\">\n {{ getRejectedCount() }} documentos rechazados\n </span>\n \n <ng-container *ngIf=\"getApprovedCount() > 0 && getRejectedCount() > 0\" >\n <span class=\"fad-portal-informative-bold\">\n {{ getApprovedCount() }} documentos aprobados\n </span>\n <span class=\"fad-portal-informative-bold\">\n {{ getRejectedCount() }} documentos rechazados\n </span>\n </ng-container>\n </div>\n \n \n <button class=\"fad-portal-primary\" (click)=\"emitApprovedDocuments()\">Continuar</button>\n </div>\n </div>\n </div>\n \n\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { IUploadESignatureConfiguration, UploadESignatureComplete } from '../../models';\r\nimport { getUploadESignatureErrorDescription, UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT, UploadESignatureErrorCode } from '../../constants';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { ResponseError, SharedUtils } from '@fad-producto-portal/ng-fad-shared';\r\nimport { FadService, MifielService, SignatureFeaRequest, SignInternalFeaRequest } from '@fad-producto-portal/ng-fad-services';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { finalize } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-upload-e-signature',\r\n templateUrl: './upload-e-signature.component.html',\r\n styleUrls: ['./upload-e-signature.component.scss']\r\n})\r\nexport class UploadESignatureComponent implements OnInit {\r\n @Input() configuration!: IUploadESignatureConfiguration;\r\n @Input() documents: SignInternalFeaRequest[] = [];\r\n @Input() signerId!: string;\r\n @Input() rfc!: string;\r\n @Output() onerror = new EventEmitter<ResponseError>();\r\n @Output() onloader = new EventEmitter<boolean>();\r\n @Output() oncomplete = new EventEmitter<null | UploadESignatureComplete>();\r\n uploadImg!: string;\r\n checkOnImg!: string;\r\n checkOffImg!: string;\r\n fileImg!: string;\r\n formatCerList = ['cer'];\r\n formatKeyList = ['key'];\r\n form!: FormGroup;\r\n passwordInputType = 'password';\r\n documentPluralTitle!: string;\r\n documentSingularTitle!: string;\r\n isValidated = false;\r\n showComponent = true;\r\n\r\n constructor(private hostContext: ElementRef, private fb: FormBuilder,\r\n private fad: FadService, private mifiel: MifielService) {}\r\n\r\n ngOnInit(): void {\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n\r\n this.uploadImg = this.configuration.pathDependencies?.images?.upload || `${this.configuration.pathDependencies?.imageDirectory}upload.svg`;\r\n this.checkOnImg = this.configuration.pathDependencies?.images?.checkOn || `${this.configuration.pathDependencies?.imageDirectory}check-on.svg`;\r\n this.checkOffImg = this.configuration.pathDependencies?.images?.checkOff || `${this.configuration.pathDependencies?.imageDirectory}check-off.svg`;\r\n this.fileImg = this.configuration.pathDependencies?.images?.file || `${this.configuration.pathDependencies?.imageDirectory}file.svg`;\r\n\r\n this.showComponent = this.validateData();\r\n if (this.showComponent) {\r\n this.documentPluralTitle = this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.plural?.replace('#TOTAL_DOCS', this.documents?.length.toString())!; // poner longitud\r\n if (this.documents?.length === 1) {\r\n const status = this.documents[0].approved ? this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.approved! : this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.rejected!;\r\n this.documentSingularTitle = this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.singular?.replace('#STATUS_DOC', status)!; // poner longitud\r\n }\r\n\r\n this.initForm();\r\n }\r\n }\r\n\r\n validateData() {\r\n if(!this.documents || this.documents.length < 1) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_DOCUMENTS, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_DOCUMENTS), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n if(!this.signerId) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_SIGNER_ID, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_SIGNER_ID), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n if(!this.rfc) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_RFC, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_RFC), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n initForm() {\r\n this.form = this.fb.group({\r\n cer: [null, [Validators.required]],\r\n key: [null, [Validators.required]],\r\n password: [null, [Validators.required]]\r\n });\r\n }\r\n\r\n get cer() {\r\n return this.form.get('cer');\r\n }\r\n\r\n get key() {\r\n return this.form.get('key');\r\n }\r\n\r\n get password() {\r\n return this.form.get('password');\r\n }\r\n\r\n openFilePicker(fileInput: HTMLInputElement) {\r\n fileInput.click();\r\n }\r\n\r\n onFileChange(event: any, type: string) {\r\n const file = event.target.files[0];\r\n if (!file) return;\r\n\r\n if (event.target.files.length > 1) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.MULTIPLE_FILES, getUploadESignatureErrorDescription(UploadESignatureErrorCode.MULTIPLE_FILES), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n if (type === 'cer' && !/\\.cer$/.test(file.name)) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_CER, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_CER), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n if (type === 'key' && !/\\.key$/.test(file.name)) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_KEY, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_KEY), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n type === 'cer' ? this.cer?.setValue(file) : this.key?.setValue(file);\r\n }\r\n\r\n onfiledropped(files: FileList, type: string) {\r\n const file = files[0];\r\n type === 'cer' ? this.cer?.setValue(file) : this.key?.setValue(file);\r\n }\r\n\r\n onerrorDirective(event: ResponseError, type: string) {\r\n if (event.code === -1) this.onerror.emit(new ResponseError(UploadESignatureErrorCode.MULTIPLE_FILES, getUploadESignatureErrorDescription(UploadESignatureErrorCode.MULTIPLE_FILES), 'ng-fad-signature-fea-upload-e-signature'));\r\n if (event.code === -2 && type === 'cer') this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_CER, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_CER), 'ng-fad-signature-fea-upload-e-signature'));\r\n if (event.code === -2 && type === 'key') this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_KEY, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_KEY), 'ng-fad-signature-fea-upload-e-signature'));\r\n }\r\n\r\n changePaswordInputType() {\r\n this.passwordInputType = this.passwordInputType === 'text' ? 'password' : 'text';\r\n }\r\n\r\n savePassword(value: Event) {\r\n const inputElement = value.target as HTMLInputElement;\r\n this.password?.setValue(inputElement.value);\r\n }\r\n\r\n allIsRejected() {\r\n return this.documents.every(doc => doc.approved === false);\r\n }\r\n\r\n async signDocuments() {\r\n let canContinue: boolean | null = true;\r\n\r\n const rejectedDocuments = this.documents.filter((doc) => !doc.approved);\r\n if (rejectedDocuments.length > 0) {\r\n canContinue = await this.rejectDocuments(true);\r\n }\r\n\r\n if (!canContinue) return;\r\n\r\n this.onloader.emit(true);\r\n const cer = await this.getBase64File(this.cer?.value);\r\n this.onloader.emit(false);\r\n if (!cer) return;\r\n\r\n this.onloader.emit(true);\r\n const key = await this.getBase64File(this.key?.value);\r\n this.onloader.emit(false);\r\n if (!key) return;\r\n\r\n const aprrovedDocuments = this.documents.filter((doc) => doc.approved);\r\n\r\n const body: SignatureFeaRequest = {\r\n cer: cer.split(',')[1],\r\n key: key.split(',')[1],\r\n password: this.password?.value,\r\n documents: aprrovedDocuments,\r\n signerId: this.rfc\r\n }\r\n\r\n this.onloader.emit(true);\r\n\r\n this.fad.signFea(body, this.configuration.credentials?.key!, this.configuration.credentials?.iv!, this.configuration.services?.reject!).pipe(\r\n finalize(() => {\r\n this.onloader.emit(false);\r\n })\r\n ).subscribe({\r\n next: (res) => {\r\n if (res.success) {\r\n const certificate = this.mifiel.parseCertificate(body.cer);\r\n const data: UploadESignatureComplete = {\r\n cer: certificate!\r\n }\r\n\r\n this.oncomplete.emit(data);\r\n } else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.SERVICE,res.error, 'ng-fad-signature-fea-upload-e-signature'));;\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-upload-e-signature'));;\r\n },\r\n });\r\n\r\n }\r\n\r\n rejectDocuments(fromSign = false): Promise<boolean | null> {\r\n return new Promise((resolve, reject) => {\r\n const rejectedDocuments = this.documents.filter((doc) => !doc.approved);\r\n\r\n const body: SignatureFeaRequest = {\r\n cer: '',\r\n key: '',\r\n password: '',\r\n documents: rejectedDocuments.map(res => {\r\n return {\r\n id: res.id,\r\n idRequisition: res.idRequisition,\r\n }\r\n }),\r\n signerId: this.signerId\r\n }\r\n\r\n this.onloader.emit(true);\r\n\r\n\r\n this.fad.rejectFea(body, this.configuration.credentials?.key!, this.configuration.credentials?.iv!, this.configuration.services?.reject!).pipe(\r\n finalize(() => {\r\n this.onloader.emit(false);\r\n })\r\n ).subscribe({\r\n next: (res) => {\r\n if (res.success) {\r\n if (!fromSign) this.oncomplete.emit(null);\r\n resolve(true);\r\n } else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.SERVICE,res.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(null);\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(null);\r\n },\r\n });\r\n })\r\n }\r\n\r\n async onRejectDocument() {\r\n await this.rejectDocuments();\r\n }\r\n\r\n async getBase64File(file: File) {\r\n const data = await SharedUtils.fileToBase64(file).then(base64 => base64).catch(error => null);\r\n if (data) return data as string;\r\n else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.ERROR_BASE_64, getUploadESignatureErrorDescription(UploadESignatureErrorCode.ERROR_BASE_64), 'ng-fad-signature-fea-upload-e-signature'));\r\n return null;\r\n }\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(new Configuration(), UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT, this.configuration);\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-documents-background-color', this.configuration.customization?.moduleCustomization?.style?.documents?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-documents-border-radius', this.configuration.customization?.moduleCustomization?.style?.documents?.borderRadius, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-background-color', this.configuration.customization?.moduleCustomization?.style?.upload?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-border', this.configuration.customization?.moduleCustomization?.style?.upload?.border, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-border-radius', this.configuration.customization?.moduleCustomization?.style?.upload?.borderRadius, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-background-color', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-border-radius', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.borderRadius, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-hover', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.hover, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-file-border-radius', this.configuration.customization?.moduleCustomization?.style?.file?.borderRadius, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-file-img-background-color', this.configuration.customization?.moduleCustomization?.style?.file?.img?.backgroundColor, { targetElement });\r\n }\r\n}\r\n","<ng-container *ngIf=\"showComponent\">\r\n <div>\r\n <div *ngIf=\"documents.length > 1\" class=\"fad-portal-title-bold\">{{ documentPluralTitle }}</div>\r\n <div *ngIf=\"documents.length === 1\" class=\"fad-portal-title-bold\">{{ documentSingularTitle }}</div>\r\n\r\n <div class=\"container-document fad-portal-content\">\r\n <div *ngFor=\"let i of documents\" class=\"document\">\r\n <div>{{ i.doc.name }}</div>\r\n <div class=\"status fad-portal-content-bold\">{{ i.approved ? configuration.customization?.moduleCustomization?.legends?.documents?.status?.approved : configuration.customization?.moduleCustomization?.legends?.documents?.status?.rejected }}</div>\r\n <div class=\"pages\">{{ i.doc.pages }} {{ i.doc.pages > 1 ? configuration.customization?.moduleCustomization?.legends?.documents?.pages?.plural : configuration.customization?.moduleCustomization?.legends?.documents?.pages?.singular }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!allIsRejected()\">\r\n <div class=\"fad-portal-title-bold\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.title }}</div>\r\n\r\n <div>\r\n <div class=\"container-instruction-file\">\r\n <div class=\"fad-portal-content\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.label }}</div>\r\n <div *ngIf=\"cer?.value\" class=\"fad-portal-content select-file\" (click)=\"openFilePicker(fileCerInput)\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.upload }}</div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"!cer?.value\"\r\n class=\"container-upload\"\r\n (click)=\"openFilePicker(fileCerInput)\"\r\n dragDropDocument\r\n [formatList]=\"formatCerList\"\r\n [acceptMultipleFiles]=\"false\"\r\n (onfiledropped)=\"onfiledropped($event, 'cer')\"\r\n (onerror)=\"onerrorDirective($event, 'cer')\">\r\n <div class=\"fad-portal-content instruction\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.instruction }}</div>\r\n <div class=\"fad-portal-content-bold upload-btn\">\r\n <ng-fad-image-inline [src]=\"uploadImg\"></ng-fad-image-inline>\r\n <span>{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.upload }}</span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"cer?.value\" class=\"container-file\">\r\n <div class=\"document-img\">\r\n <img [src]=\"fileImg\" alt=\"\">\r\n </div>\r\n <div class=\"fad-portal-content\">{{ cer?.value.name }}</div>\r\n </div>\r\n\r\n <input type=\"file\" accept=\".cer\" #fileCerInput style=\"display: none\" (change)=\"onFileChange($event, 'cer')\">\r\n </div>\r\n\r\n <div>\r\n <div class=\"container-instruction-file\">\r\n <div class=\"fad-portal-content\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.label }}</div>\r\n <div *ngIf=\"key?.value\" class=\"fad-portal-content select-file\" (click)=\"openFilePicker(fileKeyInput)\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.upload }}</div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"!key?.value\"\r\n class=\"container-upload\"\r\n (click)=\"openFilePicker(fileKeyInput)\"\r\n dragDropDocument\r\n [formatList]=\"formatKeyList\"\r\n [acceptMultipleFiles]=\"false\"\r\n (onfiledropped)=\"onfiledropped($event, 'key')\"\r\n (onerror)=\"onerrorDirective($event, 'key')\">\r\n\r\n <div class=\"fad-portal-content instruction\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.instruction }}</div>\r\n <div class=\"fad-portal-content-bold upload-btn\">\r\n <ng-fad-image-inline [src]=\"uploadImg\"></ng-fad-image-inline>\r\n <span>{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.upload }}</span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"key?.value\" class=\"container-file\">\r\n <div class=\"document-img\">\r\n <img [src]=\"fileImg\" alt=\"\">\r\n </div>\r\n <div class=\"fad-portal-content\">{{ key?.value.name }}</div>\r\n </div>\r\n\r\n <input type=\"file\" accept=\".key\" #fileKeyInput style=\"display: none\" (change)=\"onFileChange($event, 'key')\">\r\n </div>\r\n\r\n <div class=\"fad-portal-container-input\">\r\n <label class=\"fad-portal-content\" for=\"\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.label }}</label>\r\n <div class=\"input-password\">\r\n <input [type]=\"passwordInputType\" (input)=\"savePassword($event)\">\r\n <div class=\"fad-portal-content-bold password-show\">\r\n <div *ngIf=\"passwordInputType === 'text'\" (click)=\"changePaswordInputType()\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.hide }}</div>\r\n <div *ngIf=\"passwordInputType === 'password'\" (click)=\"changePaswordInputType()\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.show }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <div></div>\r\n\r\n <div class=\"fad-portal-content container-confirm\">\r\n <div *ngIf=\"!allIsRejected()\" (click)=\"isValidated = !isValidated\">\r\n <div>\r\n <ng-fad-image-inline *ngIf=\"isValidated\" [src]=\"checkOnImg\"></ng-fad-image-inline>\r\n <ng-fad-image-inline *ngIf=\"!isValidated\" [src]=\"checkOffImg\"></ng-fad-image-inline>\r\n </div>\r\n <div *ngIf=\"documents.length === 1\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.validate?.singular }}</div>\r\n <div *ngIf=\"documents.length > 1\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.validate?.plural }}</div>\r\n </div>\r\n\r\n <div></div>\r\n\r\n <div class=\"action\">\r\n <button type=\"button\" *ngIf=\"documents.length === 1 && !allIsRejected()\" class=\"fad-portal-primary\" [disabled]=\"!form.valid || !isValidated\" (click)=\"signDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.sign?.singular }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length > 1 && !allIsRejected()\" class=\"fad-portal-primary\" [disabled]=\"!form.valid || !isValidated\" (click)=\"signDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.sign?.plural }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length === 1 && allIsRejected()\" class=\"fad-portal-primary\" (click)=\"onRejectDocument()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.reject?.singular }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length > 1 && allIsRejected()\" class=\"fad-portal-primary\" (click)=\"onRejectDocument()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.reject?.plural }}</button>\r\n </div>\r\n </div>\r\n</ng-container>\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT } from '../../constants';\r\nimport { IGenericErrorFeaConfiguration } from '../../models';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-generic-error-fea',\r\n templateUrl: './generic-error-fea.component.html',\r\n styleUrls: ['./generic-error-fea.component.scss']\r\n})\r\nexport class GenericErrorFeaComponent implements OnInit {\r\n @Input() configuration!: IGenericErrorFeaConfiguration;\r\n @Input() title!: string;\r\n @Input() instruction!: string;\r\n errorIgm!: string;\r\n\r\n ngOnInit(): void {\r\n this.setCustomizationStyle();\r\n this.errorIgm = this.configuration.pathDependencies?.images?.error || `${this.configuration.pathDependencies?.imageDirectory}error.svg`;\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(new Configuration(), GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT, this.configuration);\r\n }\r\n}\r\n","<ng-fad-image-inline [src]=\"errorIgm\"></ng-fad-image-inline>\r\n<div class=\"fad-portal-title-bold\">{{ title ? title : configuration.customization?.moduleCustomization?.legends?.title }}</div>\r\n<div class=\"fad-portal-content\">{{ instruction ? instruction : configuration.customization?.moduleCustomization?.legends?.instruction }}</div>\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { IValidateSignatureConfiguration } from '../../models';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { getValidateSignatureErrorDescription, VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT, ValidateSignatureErrorCode } from '../../constants';\r\nimport { FadService } from '@fad-producto-portal/ng-fad-services';\r\nimport { finalize } from 'rxjs';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ResponseError } from '@fad-producto-portal/ng-fad-shared';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-validate-signature',\r\n templateUrl: './validate-signature.component.html',\r\n styleUrls: ['./validate-signature.component.scss']\r\n})\r\nexport class ValidateSignatureComponent {\r\n @Input() configuration!: IValidateSignatureConfiguration;\r\n @Input() signerId!: string;\r\n @Input() requisitionId!: string;\r\n @Output() onloader = new EventEmitter<boolean>();\r\n @Output() onerror = new EventEmitter<ResponseError>();\r\n @Output() oncomplete = new EventEmitter<string>();\r\n @Output() onsigned = new EventEmitter<string>();\r\n\r\n constructor(private fad: FadService) { }\r\n\r\n ngOnInit(): void {\r\n this.setCustomizationStyle();\r\n const canContinue = this.validateData();\r\n if (canContinue) this.getSignerStatusFea();\r\n }\r\n\r\n validateData() {\r\n if (!this.requisitionId) {\r\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.NO_REQUISITION_ID, getValidateSignatureErrorDescription(ValidateSignatureErrorCode.NO_REQUISITION_ID), 'ng-fad-signature-fea-validate-signature'));\r\n return false;\r\n }\r\n\r\n if (!this.signerId) {\r\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.NO_SIGNER_ID, getValidateSignatureErrorDescription(ValidateSignatureErrorCode.NO_SIGNER_ID), 'ng-fad-signature-fea-validate-signature'));\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n getSignerStatusFea() {\r\n this.onloader.emit(true);\r\n this.fad.getSignerStatusFea(this.requisitionId, this.signerId, this.configuration.services?.signerStatusFea)\r\n .pipe(finalize(() => this.onloader.emit(false)))\r\n .subscribe({\r\n next: (res) => {\r\n if (res.success) {\r\n res.data === 'COMPLETED' ? this.onsigned.emit(res.data) : this.oncomplete.emit(res.data);\r\n } else {\r\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.SERVICE, res.error, 'ng-fad-signature-fea-validate-signature'));\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-validate-signature'));\r\n }\r\n })\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(new Configuration(), VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT, this.configuration);\r\n }\r\n}\r\n","","import { IDocumentApprovalListConfiguration, ISignatureSummaryConfiguration } from \"../../../models\";\r\n\r\nexport const SIGNATURE_SUMMARY_DEFAULT: ISignatureSummaryConfiguration = {\r\ndateFormat: 'es-MX',\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n signed:\"Documentos firmados\",\r\n rejected: \"Documentos rechazados\",\r\n legend: \"Te hemos enviado el resumen del proceso y el documento firmado a tu correo electrónico\",\r\n documentRejected: \"Documento rechazado\"\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/signature-summary/',\r\n }\r\n};\r\n","import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/core';\nimport { DocumentApprovalFea, ISignatureSummaryConfiguration } from '../../models';\nimport { SIGNATURE_SUMMARY_DEFAULT } from '../../constants/configuration/signature-summary/signature-summary-configuration.const';\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\n\n@Component({\n selector: 'ng-fad-signature-fea-signature-summary',\n templateUrl: './signature-summary.component.html',\n styleUrls: ['./signature-summary.component.scss']\n})\nexport class SignatureSummaryComponent {\n\n @Input() documentRequest!: DocumentApprovalFea[];\n @Input() configuration!: ISignatureSummaryConfiguration;\n @Output() oncomplete = new EventEmitter<any>();\n\n images = {\n reject: '',\n send: ''\n }\n signedCount = 0;\n rejectedCount = 0;\n isAllDocumentsRejected = true;\n currentDate: string = '';\n id = '';\n pdfsName = '';\n constructor( private hostContext: ElementRef ) {}\n\n\n ngOnInit() {\n console.log(this.documentRequest)\n this.setCustomizationStyle(this.hostContext.nativeElement);\n if (this.configuration?.pathDependencies?.imageDirectory) {\n this.images.reject = this.configuration.pathDependencies?.images?.reject ?? `${this.configuration.pathDependencies.imageDirectory}/rejected.svg`;\n this.images.send = this.configuration.pathDependencies?.images?.send ?? `${this.configuration.pathDependencies.imageDirectory}/send.svg`;\n \n }\n this.updateDocumentCounts();\n this.getPdfNames();\n this.setCurrentDate();\n }\n\n setCurrentDate() {\n const now = new Date();\n\n let hours = now.getHours();\n const minutes = now.getMinutes();\n const amPm = hours >= 12 ? 'PM' : 'AM';\n \n hours = hours % 12 || 12; \n \n const formattedMinutes = minutes < 10 ? '0' + minutes : minutes;\n this.currentDate = `${now.toLocaleDateString(this.configuration.dateFormat)} | ${hours}:${formattedMinutes} ${amPm}`;\n }\n \n\n updateDocumentCounts() {\n // Contar documentos firmados (approved: true)\n this.documentRequest.forEach((doc) =>{\n this.id= doc.id!;\n if(doc.approved){\n this.signedCount += 1;\n }else{\n this.rejectedCount += 1;\n }\n })\n console.log(this.documentRequest, this.signedCount,this.rejectedCount)\n if(this.signedCount > 0){\n this.isAllDocumentsRejected = false\n }else{\n this.isAllDocumentsRejected = true\n }\n \n }\n\n getPdfNames(){\n let currentFlag = '';\n let previewFlag = '';\n this.documentRequest.forEach((doc) =>{\n if(this.pdfsName === ''){\n this.pdfsName = doc.doc?.name.replace('.pdf','')!;\n currentFlag = doc.idRequisition!\n previewFlag = doc.idRequisition!\n }\n currentFlag = doc.idRequisition!;\n if(currentFlag !== previewFlag){\n this.pdfsName+= ','+doc.doc?.name.replace('.pdf','')!;\n currentFlag = doc.idRequisition!\n previewFlag = doc.idRequisition!\n }\n \n });\n }\n \n\n setCustomizationStyle(targetElement = document.documentElement): void {\n this.configuration = Utils.mergeConfiguration(\n new Configuration(),\n SIGNATURE_SUMMARY_DEFAULT,\n this.configuration\n );\n }\n\n}\n","<div class=\"fad-portal-content\">\n \n <ng-container *ngIf=\"!isAllDocumentsRejected\" >\n <ng-fad-image-inline\n [src]=\"images.send\"\n >\n </ng-fad-image-inline>\n <div class=\"fad-portal-title-bold\">\n {{pdfsName}}\n </div>\n <div class=\"fad-portal-content-bold date\">{{ currentDate }}</div>\n <div class=\"summary\">\n <div class=\"fad-portal-content-bold signeds\">\n <div>{{configuration.customization?.moduleCustomization?.legends?.signed}}</div>\n <div>{{signedCount}}</div>\n </div>\n <div class=\"line\">\n\n </div>\n <div class=\"fad-portal-content-bold rejecteds\">\n <div>{{configuration.customization?.moduleCustomization?.legends?.rejected}}</div>\n <div>{{rejectedCount}}</div>\n </div>\n </div>\n <div class=\"legends\">\n {{configuration.customization?.moduleCustomization?.legends?.legend}}\n </div>\n </ng-container>\n <ng-container *ngIf=\"isAllDocumentsRejected\" >\n <ng-fad-image-inline\n [src]=\"images.reject\"\n >\n </ng-fad-image-inline>\n <div class=\"document-rejected\"> {{configuration.customization?.moduleCustomization?.legends?.documentRejected}} </div>\n <div class=\"fad-portal-title-bold title-document\">\n {{pdfsName}}\n </div>\n <div class=\"id-requisition\">\n ID {{id}} | {{ currentDate }}\n </div>\n </ng-container>\n \n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NgFadSharedModule } from '@fad-producto-portal/ng-fad-shared';\r\nimport { NgFadImageInlineModule } from '@fad-producto/ng-fad-image-inline';\r\nimport { NgFadViewerModule } from '@fad-producto-portal/ng-fad-viewer';\r\nimport { PdfViewerFeaComponent } from './components/pdf-viewer-fea/pdf-viewer-fea.component';\r\n\r\n// components\r\nimport { ValidateRfcComponent } from './components/validate-rfc/validate-rfc.component';\r\nimport { DocumentApprovalListComponent } from './components/document-approval-list/document-approval-list.component';\r\nimport { UploadESignatureComponent } from './components/upload-e-signature/upload-e-signature.component';\r\nimport { GenericErrorFeaComponent } from './components/generic-error-fea/generic-error-fea.component';\r\nimport { ValidateSignatureComponent } from './components/validate-signature/validate-signature.component';\r\nimport { SignatureSummaryComponent } from './components/signature-summary/signature-summary.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n ValidateRfcComponent,\r\n DocumentApprovalListComponent,\r\n UploadESignatureComponent,\r\n PdfViewerFeaComponent,\r\n GenericErrorFeaComponent,\r\n ValidateSignatureComponent,\r\n SignatureSummaryComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NgFadSharedModule,\r\n NgFadImageInlineModule,\r\n NgFadViewerModule, \r\n ],\r\n exports: [\r\n ValidateRfcComponent,\r\n DocumentApprovalListComponent,\r\n UploadESignatureComponent,\r\n PdfViewerFeaComponent,\r\n GenericErrorFeaComponent,\r\n ValidateSignatureComponent,\r\n SignatureSummaryComponent\r\n ]\r\n})\r\nexport class NgFadSignatureFeaModule { }\r\n","/*\r\n * Public API Surface of ng-fad-signature-fea\r\n */\r\n\r\nexport * from './lib/ng-fad-signature-fea.module';\r\n\r\n// constants\r\nexport * from './lib/constants/index';\r\n\r\n// models\r\nexport * from './lib/models/index';\r\n\r\n// components\r\nexport * from './lib/components/validate-rfc/validate-rfc.component';\r\nexport * from './lib/components/document-approval-list/document-approval-list.component';\r\nexport * from './lib/components/upload-e-signature/upload-e-signature.component';\r\nexport * from './lib/components/pdf-viewer-fea/pdf-viewer-fea.component';\r\nexport * from './lib/components/generic-error-fea/generic-error-fea.component';\r\nexport *from './lib/components/validate-signature/validate-signature.component';\r\nexport * from './lib/components/signature-summary/signature-summary.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["GeneralPdfViewerComponentModule","i1","i2","i3","i4","i5.PdfViewerFeaComponent","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEa,MAAA,8BAA8B,GAAuC;AAEhF,IAAA,aAAa,EAAE;AACb,QAAA,mBAAmB,EAAE;AACn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BAAyB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAhBhC,YAAY;YACZ,mBAAmB;YACnB,iBAAiB;YACjB,sBAAsB;YACtB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAYR,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBA3BnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,6BAA6B;wBAC7B,yBAAyB;wBACzB,qBAAqB;wBACrB,wBAAwB;wBACxB,0BAA0B;wBAC1B,yBAAyB;AAC1B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,iBAAiB;wBACjB,sBAAsB;wBACtB,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,6BAA6B;wBAC7B,yBAAyB;wBACzB,qBAAqB;wBACrB,wBAAwB;wBACxB,0BAA0B;wBAC1B,yBAAyB;AAC1B,qBAAA;AACF,iBAAA,CAAA;;;AC3CD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fad-producto-portal-ng-fad-signature-fea.mjs","sources":["../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/document-approval-list/document-approval-lis-tconfiguration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/generic-error-fea/configuration-generic-error-fea.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/upload-e-signature/configuration-upload-e-signature.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/validate-rfc/configuration-validate-rfc.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/validate-signature/validate-signature.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/pdf-viewer-fea/pdf-viewer-fea-configuration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/document-approval-list/document-approval-list-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/document-approval-list/document-approval-list-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/generic-error-fea/generic-error-fea-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/generic-error-fea/generic-error-fea-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-rfc/validate-rfc-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-rfc/validate-rfc-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-signature/validate-signature-error-code.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/errors/validate-signature/validate-signature-error-description.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-rfc/validate-rfc.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-rfc/validate-rfc.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/document-approval-list/document-approval-list.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/document-approval-list/document-approval-list.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/upload-e-signature/upload-e-signature.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/upload-e-signature/upload-e-signature.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/generic-error-fea/generic-error-fea.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/generic-error-fea/generic-error-fea.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-signature/validate-signature.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/validate-signature/validate-signature.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/constants/configuration/signature-summary/signature-summary-configuration.const.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/signature-summary/signature-summary.component.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/components/signature-summary/signature-summary.component.html","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/lib/ng-fad-signature-fea.module.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/public-api.ts","../../../../projects/fad-producto-portal/ng-fad-signature-fea/src/fad-producto-portal-ng-fad-signature-fea.ts"],"sourcesContent":["import { IDocumentApprovalListConfiguration } from \"../../../models\";\r\n\r\nexport const DOCUMENT_APPROVAL_LIST_DEFAULT: IDocumentApprovalListConfiguration = {\r\n\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n sendTo: 'Enviado por',\r\n seeDocument: 'Ver documento',\r\n hideDocument: 'Ocultar documento',\r\n download:'Descargar',\r\n pages: 'Páginas'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/document-approval-list/',\r\n }\r\n};\r\n","import { IGenericErrorFeaConfiguration } from \"../../../models\";\r\n\r\nexport const GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT: IGenericErrorFeaConfiguration = {\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n title: 'Aviso',\r\n instruction: 'No existe un documento que corresponda a este URL (la dirección web). Si copiaste y pegaste la dirección, es posible que hayas cometido un error. Asegúrate de que no sobren o falten caracteres e intenta nuevamente.'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/generic-error-fea/',\r\n }\r\n};\r\n","import { IUploadESignatureConfiguration } from \"../../../models\";\r\n\r\nexport const UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT: IUploadESignatureConfiguration = {\r\n services: {\r\n reject: { loader: true, error: true },\r\n sign: { loader: true, error: true }\r\n },\r\n credentials: {\r\n key: 'JJQUfgm0i5MJ70NI',\r\n iv: 'uxQKO3FiCiht0uVU'\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n documents: {\r\n backgroundColor: '#f5f5f5',\r\n borderRadius: '15px'\r\n },\r\n upload: {\r\n backgroundColor: '#f4f6fa',\r\n borderRadius: '10px',\r\n border: '2px dashed var(--fad-portal-common-legends-tertiary)',\r\n button: {\r\n backgroundColor: '#e3e7f0',\r\n borderRadius: '50px',\r\n hover: '#cbd7f5'\r\n }\r\n },\r\n file: {\r\n borderRadius: '10px',\r\n img: {\r\n backgroundColor: '#f5f5f5'\r\n }\r\n }\r\n },\r\n legends: {\r\n documents: {\r\n pages: {\r\n singular: 'Página',\r\n plural: 'Páginas'\r\n },\r\n status: {\r\n approved: 'Aprobado',\r\n rejected: 'Rechazado'\r\n },\r\n title: {\r\n plural: 'Documentos para enviar (#TOTAL_DOCS)',\r\n singular: 'Documento #STATUS_DOC para firma',\r\n approved: 'aprobado',\r\n rejected: 'rechazado'\r\n }\r\n },\r\n eSignature: {\r\n cer: {\r\n instruction: 'Selecciona o arrastra el archivo .CER',\r\n label: 'Certificado .CER',\r\n upload: 'Subir .CER'\r\n },\r\n key: {\r\n instruction: 'Selecciona o arrastra el archivo .KEY',\r\n label: 'Llave privada .KEY',\r\n upload: 'Subir .KEY'\r\n },\r\n password: {\r\n hide: 'OCULTAR',\r\n label: 'Ingresa la contraseña de tu e.firma',\r\n show: 'MOSTRAR'\r\n },\r\n title: 'Ingresa tu e.firma para firmar los documentos',\r\n upload: 'Seleccionar otro archivo'\r\n },\r\n sign: {\r\n button: {\r\n reject: {\r\n plural: 'Rechazar documentos',\r\n singular: 'Rechazar documento'\r\n },\r\n sign: {\r\n plural: 'Firmar documentos',\r\n singular: 'Firmar documento'\r\n }\r\n },\r\n validate: {\r\n plural: 'Valido que he leído y he aceptado firmar los documentos',\r\n singular: 'Valido que he leído y he aceptado firmar el documento'\r\n }\r\n }\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/upload-e-signature/',\r\n }\r\n};\r\n","import { IValidateRfcConfiguration } from \"../../../models\";\r\n\r\nexport const SIGNATURE_FEA_CONFIGURATION_DEFAULT: IValidateRfcConfiguration = {\r\n\r\n maxCharacters: 13,\r\n regexRFC: '^[A-ZÑ&]{3,4}[0-9]{6}[A-V1-9][A-Z1-9][0-9A]$',\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n title: 'Código de validación',\r\n description: 'Ingresa tu RFC para comenzar la firma',\r\n buttonLegend: 'Validar'\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/validate-rfc/',\r\n }\r\n};\r\n","import { IValidateSignatureConfiguration } from \"../../../models\";\r\n\r\nexport const VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT: IValidateSignatureConfiguration = {\r\n services: {\r\n signerStatusFea: { loader: true, error: true }\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/validate-signature/',\r\n }\r\n};\r\n","import { IPdfViewerFeaConfiguration } from \"../../../models\";\r\n\r\nexport const PDF_VIEWER_FEA_DEFAULT: IPdfViewerFeaConfiguration = {\r\n\r\n pdfMini:{\r\n configuration:{\r\n scrollIntoView: true\r\n }\r\n },\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n \r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/pdf-viewer-fea/',\r\n }\r\n};\r\n","export enum DocumentApprovalListErrorCode {\r\n \r\n SERVICE = -1,\r\n HTTP = -2,\r\n ERROR_PDF = -3,\r\n\r\n}\r\n","import { DocumentApprovalListErrorCode } from \"./document-approval-list-error-code\";\r\n\r\nexport const getDocumentApprovalListErrorDescription = (code: DocumentApprovalListErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"PDF error\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum GenericErrorFeaErrorCode {\r\n}\r\n","import { GenericErrorFeaErrorCode } from \"./generic-error-fea-error-code\";\r\n\r\nexport const getGenericErrorFeaErrorDescription = (code: GenericErrorFeaErrorCode) => {\r\n switch (code) {\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum UploadESignatureErrorCode {\r\n SERVICE = -1,\r\n HTTP = -2,\r\n NO_DOCUMENTS = -3,\r\n FORMAT_CER = -4,\r\n FORMAT_KEY = -5,\r\n MULTIPLE_FILES = -6,\r\n ERROR_BASE_64 = -7,\r\n NO_SIGNER_ID = -8,\r\n NO_RFC = -9,\r\n PASSWORD_ERROR = -10,\r\n}\r\n","import { UploadESignatureErrorCode } from \"./upload-e-signature-error-code\";\r\n\r\nexport const getUploadESignatureErrorDescription = (code:UploadESignatureErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"Los documentos a procesar son requeridos\";\r\n case -4:\r\n return \"El formato del archivo seleccionado no es .cer\";\r\n case -5:\r\n return \"El formato del archivo seleccionado no es .key\";\r\n case -6:\r\n return \"Solo puedes seleccionar un archivo\";\r\n case -7:\r\n return \"Error al convertir el archivo a base 64\";\r\n case -8:\r\n return \"El ID del firmante es requerido\";\r\n case -9:\r\n return \"El RFC del firmante es requerido\";\r\n case -10:\r\n return \"La contraseña es incorrecta\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum ValidateRFCErrorCode {\r\n \r\n SERVICE = -1,\r\n HTTP = -2,\r\n REQUISITION_ID = -3,\r\n SIGNER_ID = -4\r\n\r\n}\r\n","import { ValidateRFCErrorCode } from \"./validate-rfc-error-code\";\r\n\r\nexport const getValidateRFCErrorDescription = (code: ValidateRFCErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -3:\r\n return \"There is not requisitionId\";\r\n case -4:\r\n return \"There is not signerId\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","export enum ValidateSignatureErrorCode {\r\n SERVICE = -1,\r\n HTTP = -2,\r\n NO_REQUISITION_ID = -3,\r\n NO_SIGNER_ID = -4,\r\n}\r\n","import { ValidateSignatureErrorCode } from \"./validate-signature-error-code\";\r\n\r\nexport const getValidateSignatureErrorDescription = (code: ValidateSignatureErrorCode) => {\r\n switch (code) {\r\n case -1:\r\n return \"Service error\";\r\n case -2:\r\n return \"HTTP error\";\r\n case -2:\r\n return \"Requisition ID is required\";\r\n case -3:\r\n return \"Signer ID is required\";\r\n default:\r\n return 'Unknown error';\r\n }\r\n};\r\n","import { ChangeDetectorRef, Component, Input, ViewChild } from '@angular/core';\r\nimport { DocumentApprovalFea } from '../../models';\r\nimport { NgFadPdfReaderService, ResponseSuccess } from '@fad-producto/ng-fad-pdf-reader';\r\nimport { SharedUtils } from '@fad-producto-portal/ng-fad-shared';\r\nimport { GeneralPdfViewerComponent as GeneralPdfViewerComponentModule, IPdfMiniViewConfiguration } from '@fad-producto-portal/ng-fad-viewer'\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { PDF_VIEWER_FEA_DEFAULT } from '../../constants';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-pdf-viewer-fea',\r\n templateUrl: './pdf-viewer-fea.component.html',\r\n styleUrls: ['./pdf-viewer-fea.component.scss'],\r\n providers: [NgFadPdfReaderService]\r\n})\r\nexport class PdfViewerFeaComponent {\r\n\r\n @Input() configuration!: string;\r\n @Input() file!: string\r\n @Input() index!: number; \r\n @Input() id!: string;\r\n \r\n pages: ResponseSuccess[] = []; \r\n page: number = 1;\r\n miniViewConfig = { scrollIntoView: false };\r\n height: number = 1000; \r\n @ViewChild(GeneralPdfViewerComponentModule) generalPdfViewerComponent!: GeneralPdfViewerComponentModule;\r\n\r\n constructor(private pdfService: NgFadPdfReaderService,private cdr: ChangeDetectorRef) {}\r\n\r\n ngOnInit(): void {\r\n if (this.file) {\r\n this.initializePdf(this.file);\r\n }\r\n }\r\n\r\n initializePdf(pdfBase64: string) {\r\n this.pdfService.initialize(pdfBase64, `pdf-${this.index}`);\r\n \r\n this.pdfService.pages.subscribe((res) => {\r\n if (res) {\r\n this.pages = [...this.pages, res]; \r\n }\r\n });\r\n }\r\n\r\n onPageChange(page: number) {\r\n this.page = page;\r\n }\r\n\r\n scrollToPage(page: number) {\r\n this.generalPdfViewerComponent.scrollToPage(page);\r\n }\r\n\r\n onLoadPage(data: ResponseSuccess) {\r\n if (data.page === 1) {\r\n const containerElement = document.getElementById(this.id) as HTMLElement;\r\n if (!containerElement) {\r\n return;\r\n }\r\n const observer = new MutationObserver(() => {\r\n const viewerElement = containerElement.querySelector(`#fad-viewer-page-v1-1`) as HTMLElement;\r\n \r\n if (viewerElement) {\r\n observer.disconnect(); \r\n const newHeight = viewerElement.clientHeight;\r\n \r\n if (this.height !== newHeight) {\r\n this.height = newHeight;\r\n this.cdr.detectChanges();\r\n }\r\n }\r\n });\r\n observer.observe(containerElement, { childList: true, subtree: true });\r\n }\r\n }\r\n \r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n PDF_VIEWER_FEA_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n \r\n\r\n}\r\n","<div class=\"pdf-viewer\" [id]=\"id\" [style.height.px]=\"height\">\r\n <ng-fad-viewer-general-pdf-viewer\r\n [pages]=\"pages\"\r\n (onpagechange)=\"onPageChange($event)\"\r\n (onloadpage)=\"onLoadPage($event)\">\r\n \r\n <ng-fad-viewer-pdf-mini-view\r\n miniView\r\n [configuration]=\"miniViewConfig\"\r\n [pages]=\"pages\"\r\n [page]=\"page\"\r\n (onpagechange)=\"scrollToPage($event)\"\r\n >\r\n </ng-fad-viewer-pdf-mini-view>\r\n \r\n </ng-fad-viewer-general-pdf-viewer>\r\n</div>","import { Component, ElementRef, EventEmitter, Input, Output, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { IValidateRfcConfiguration } from '../../models';\r\nimport { getValidateRFCErrorDescription, SIGNATURE_FEA_CONFIGURATION_DEFAULT, ValidateRFCErrorCode } from '../../constants';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { FadService, ResponseData, ValidateRFC } from '@fad-producto-portal/ng-fad-services';\r\nimport { ResponseError } from '@fad-producto-portal/ng-fad-shared';\r\nimport { finalize } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-validate-rfc',\r\n templateUrl: './validate-rfc.component.html',\r\n styleUrls: ['./validate-rfc.component.scss']\r\n})\r\nexport class ValidateRfcComponent implements OnInit {\r\n \r\n @Input() requisitionId: string = '';\r\n @Input() signerId: string = '';\r\n @Input() configuration!: IValidateRfcConfiguration;\r\n @Output() onerror = new EventEmitter<ResponseError>();\r\n @Output() oncomplete = new EventEmitter<ResponseData<ValidateRFC>>();\r\n @Output() onloader = new EventEmitter<boolean>();\r\n validationForm!: FormGroup;\r\n showComponent: boolean = true;\r\n \r\n constructor(private fb: FormBuilder, private hostContext: ElementRef,private route: ActivatedRoute, private fadService: FadService) {}\r\n\r\n ngOnInit() {\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n this.showComponent = this.validateData();\r\n this.initializeForm();\r\n\r\n }\r\n\r\n initializeForm(): void {\r\n const maxCharacters = this.configuration?.maxCharacters || 13;\r\n const rfcRegex = new RegExp(this.configuration?.regexRFC!);\r\n\r\n this.validationForm = this.fb.group({\r\n code: ['', [\r\n Validators.required,\r\n Validators.minLength(maxCharacters),\r\n Validators.maxLength(maxCharacters),\r\n Validators.pattern(rfcRegex)\r\n ]]\r\n });\r\n }\r\n\r\n onSubmit(): void {\r\n this.validateRFC();\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n SIGNATURE_FEA_CONFIGURATION_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n\r\n validateData() {\r\n if(!this.requisitionId) {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.REQUISITION_ID, getValidateRFCErrorDescription(ValidateRFCErrorCode.REQUISITION_ID) , 'ng-fad-portal-signature-fea-validate-rfc'));\r\n return false;\r\n }\r\n \r\n if(!this.signerId) {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.SIGNER_ID, getValidateRFCErrorDescription(ValidateRFCErrorCode.SIGNER_ID) , 'ng-fad-portal-signature-fea-validate-rfc'));\r\n return false;\r\n }\r\n \r\n return true;\r\n }\r\n\r\n validateRFC(){\r\n if( this.validationForm.valid ){\r\n console.error(\"Validar rfc \");\r\n\r\n const validateReq = {\r\n requisitionId: this.requisitionId,\r\n signerId: this.signerId,\r\n rfc: this.codeControl?.value\r\n };\r\n\r\n this.fadService.validateRfc(validateReq)\r\n .pipe(finalize(() => this.onloader.emit(false))) \r\n .subscribe({\r\n next: (response) => {\r\n if( response.success ){\r\n this.oncomplete.emit(response);\r\n }else{\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.SERVICE, response.error, 'ng-fad-portal-signature-fea-validate-rfc'));\r\n }\r\n },\r\n error: (error) => {\r\n this.onerror.emit(new ResponseError(ValidateRFCErrorCode.HTTP, error.error, 'ng-fad-portal-signature-fea-validate-rfc'));\r\n }\r\n });\r\n }\r\n }\r\n\r\n onInputChange(event: any){\r\n const inputValue = event.target.value;\r\n this.validationForm.controls['code'].setValue(inputValue.toUpperCase(), { emitEvent: false });\r\n }\r\n\r\n get codeControl() {\r\n return this.validationForm.get('code') ?? null;\r\n }\r\n}\r\n","\r\n <div class=\"validation-container fad-container\" *ngIf=\"showComponent\">\r\n <div class=\"title\">{{ configuration.customization?.moduleCustomization?.legends?.title }}</div>\r\n <div class=\"fad-portal-subtitle\">{{ configuration.customization?.moduleCustomization?.legends?.description }}</div>\r\n <form [formGroup]=\"validationForm\" (ngSubmit)=\"onSubmit()\">\r\n <div class=\"fad-portal-container-input\">\r\n <input id=\"code\" type=\"text\" formControlName=\"code\" (input)=\"onInputChange($event)\" maxlength=\"{{ configuration.maxCharacters || 13 }}\" />\r\n </div>\r\n <ng-fad-portal-shared-form-errors \r\n [formData]=\"codeControl!\" \r\n [configuration]=\"configuration.formErrors?.configuration!\">\r\n </ng-fad-portal-shared-form-errors>\r\n \r\n <button type=\"submit\" class=\"fad-portal-primary\" [disabled]=\"validationForm.invalid\">\r\n {{ configuration.customization?.moduleCustomization?.legends?.buttonLegend }}\r\n </button>\r\n </form>\r\n </div>\r\n\r\n\r\n","import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { DocumentApprovalFea, IDocumentApprovalListConfiguration } from '../../models';\r\nimport { DOCUMENT_APPROVAL_LIST_DEFAULT, getDocumentApprovalListErrorDescription } from '../../constants';\r\nimport { FadService, RequisitionsFea, ResponseData, RequisitionFeaData, DocumentFea } from '@fad-producto-portal/ng-fad-services';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { GeneralPdfViewerComponent as GeneralPdfViewerComponentModule, IPdfMiniViewConfiguration } from '@fad-producto-portal/ng-fad-viewer'\r\nimport { finalize, Subscription } from 'rxjs';\r\nimport { NgFadPdfReaderService, ResponseSuccess } from '@fad-producto/ng-fad-pdf-reader';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { ResponseError, SharedUtils } from '@fad-producto-portal/ng-fad-shared';\r\nimport { DocumentApprovalListErrorCode } from '../../constants';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-document-approval-list',\r\n templateUrl: './document-approval-list.component.html',\r\n styleUrls: ['./document-approval-list.component.scss'],\r\n providers: [NgFadPdfReaderService]\r\n})\r\nexport class DocumentApprovalListComponent {\r\n \r\n @Input() configuration!: IDocumentApprovalListConfiguration;\r\n @Input() rfc!: string;\r\n @Output() onloader = new EventEmitter<boolean>();\r\n @Output() onevent = new EventEmitter<DocumentApprovalFea[]>();\r\n @Output() onerror: EventEmitter<ResponseError> = new EventEmitter();\r\n pagesMap: Map<string, ResponseSuccess[]> = new Map();\r\n requisitionsFea: RequisitionFeaData[] = [];\r\n documentsApprovalList: DocumentApprovalFea[] = [];\r\n approveAll: boolean = false;\r\n \r\n images = {\r\n inactive:{\r\n reject: '',\r\n approve: ''\r\n },\r\n active:{\r\n reject: '',\r\n approve: '' \r\n }\r\n }\r\n\r\n \r\n\r\n constructor( private hostContext: ElementRef, private fad: FadService,private cdr: ChangeDetectorRef,private pdfService: NgFadPdfReaderService ) {}\r\n \r\n \r\n ngOnInit() {\r\n console.log(this.configuration,this.rfc)\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n if (this.configuration?.pathDependencies?.imageDirectory) {\r\n this.images.inactive.reject = this.configuration.pathDependencies?.images?.inactiveReject ?? `${this.configuration.pathDependencies.imageDirectory}/inactiveReject.png`;\r\n this.images.inactive.approve = this.configuration.pathDependencies?.images?.inactiveApprove ?? `${this.configuration.pathDependencies.imageDirectory}/inactiveApprove.png`;\r\n this.images.active.reject = this.configuration.pathDependencies?.images?.activeReject ?? `${this.configuration.pathDependencies.imageDirectory}/activeReject.png`;\r\n this.images.active.approve = this.configuration.pathDependencies?.images?.activeApprove ?? `${this.configuration.pathDependencies.imageDirectory}/activeApprove.png`;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n \r\n this.getRequisitionsRfc();\r\n }\r\n\r\n getRequisitionsRfc() {\r\n this.onloader.emit(true); \r\n \r\n this.fad.getRequisitionsRfc(this.rfc)\r\n .pipe(finalize(() => this.onloader.emit(false))) \r\n .subscribe({\r\n next: (res) => {\r\n if (res.success) { \r\n this.requisitionsFea = res.data.requisitions;\r\n this.documentsApprovalList = this.requisitionsFea.flatMap(requisition => \r\n requisition.documents.map(doc => ({\r\n doc: doc,\r\n id: doc.documentId,\r\n idRequisition: requisition.requisitionId,\r\n approved: undefined,\r\n isVisible: false\r\n }))\r\n );\r\n } else {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.SERVICE,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.HTTP,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n });\r\n }\r\n\r\n toggleApproval(document: DocumentApprovalFea) {\r\n document.approved = document.approved === true ? undefined : true;\r\n this.updateApproveAllState();\r\n }\r\n \r\n toggleRejection(document: DocumentApprovalFea) {\r\n document.approved = document.approved === false ? undefined : false;\r\n this.updateApproveAllState();\r\n }\r\n\r\n updateApproveAllState() {\r\n this.approveAll = this.documentsApprovalList.every(doc => doc.approved === true);\r\n }\r\n\r\n approveAllDocuments() {\r\n this.approveAll = !this.approveAll;\r\n this.documentsApprovalList.forEach(doc => doc.approved = this.approveAll ? true : undefined);\r\n }\r\n\r\n getApprovedCount(): number {\r\n return this.documentsApprovalList.filter(doc => doc.approved === true).length;\r\n }\r\n\r\n getRejectedCount(): number {\r\n return this.documentsApprovalList.filter(doc => doc.approved === false).length;\r\n }\r\n\r\n emitApprovedDocuments() {\r\n const approvedDocuments = this.documentsApprovalList.filter(doc => doc.approved !== undefined);\r\n console.log(approvedDocuments);\r\n this.onevent.emit(approvedDocuments);\r\n }\r\n\r\n seeDocumentFea(document: DocumentApprovalFea) {\r\n document.isVisible = !document.isVisible;\r\n\r\n if (document.isVisible && !document.doc?.file) {\r\n this.onloader.emit(true);\r\n this.fad.getDocumentFea(document.id!, { loader: true, error: true })\r\n .pipe(finalize(() => this.onloader.emit(false)))\r\n .subscribe({\r\n next: (res) => {\r\n if (document.doc) {\r\n document.doc.file = \"data:application/pdf;base64,\" + res.data.file; \r\n } else {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.SERVICE,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n },\r\n error: () => {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.HTTP,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n });\r\n }\r\n}\r\n\r\n downloadDocumentFea(document: DocumentApprovalFea) {\r\n this.onloader.emit(true); \r\n this.fad.getDocumentFea(document.id!)\r\n .pipe(finalize(() => this.onloader.emit(false))) \r\n .subscribe({\r\n next: async (res) => {\r\n if (res.success && res.data.file) {\r\n const byteCharacters = atob(res.data.file);\r\n const byteNumbers = new Array(byteCharacters.length).fill(0).map((_, i) => byteCharacters.charCodeAt(i));\r\n const byteArray = new Uint8Array(byteNumbers);\r\n const blob = new Blob([byteArray], { type: 'application/pdf' });\r\n await SharedUtils.downloadFile(blob,document.doc?.name!).then(res=>{\r\n\r\n }).catch(error=>{\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.ERROR_PDF,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.ERROR_PDF),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n })\r\n\r\n } else {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.SERVICE,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.SERVICE),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(\r\n DocumentApprovalListErrorCode.HTTP,\r\n getDocumentApprovalListErrorDescription(DocumentApprovalListErrorCode.HTTP),\r\n 'ng-fad-portal-signature-fea-document-approval-list'\r\n ));\r\n }\r\n });\r\n }\r\n \r\n\r\n getDocumentId(id: string){\r\n return \"pdf\"+id!.replace(/-/g, '');\r\n }\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n DOCUMENT_APPROVAL_LIST_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n}\r\n","\r\n <ng-container *ngFor=\"let requisition of requisitionsFea\">\r\n <div class=\"fad-portal-content\" >\r\n <div class=\"header\" >\r\n <div>\r\n <div class=\"fad-portal-title\">\r\n {{ requisition.name }} ({{requisition.documents.length}})\r\n </div>\r\n <div class=\"info\">\r\n {{configuration.customization?.moduleCustomization?.legends?.sendTo}} Alfredo Villanueva {{ requisition.sendBy }}\r\n </div>\r\n <div class=\"info\">\r\n {{ requisition.sendByEmail }}\r\n </div>\r\n </div>\r\n <div class=\"requisition-id\">\r\n <div class=\"fad-portal-content-bold\">ID {{ requisition.requisitionId }}</div>\r\n </div>\r\n </div>\r\n <div class=\"documents-container\">\r\n <ng-container *ngFor=\"let document of documentsApprovalList; let i = index\">\r\n <ng-container *ngIf=\"document.idRequisition === requisition.requisitionId\" >\r\n <div class=\"document\" >\r\n <div class=\"information\" >\r\n <div class=\"document-name fad-portal-content-bold\" >\r\n {{ document.doc?.name }}\r\n </div>\r\n <div class=\"validate\">\r\n \r\n <ng-fad-image-inline \r\n [src]=\"document.approved === false ? images.active.reject : images.inactive.reject\"\r\n (click)=\"toggleRejection(document)\">\r\n </ng-fad-image-inline>\r\n \r\n \r\n <ng-fad-image-inline \r\n [src]=\"document.approved === true ? images.active.approve : images.inactive.approve\"\r\n (click)=\"toggleApproval(document)\">\r\n </ng-fad-image-inline>\r\n </div>\r\n \r\n </div>\r\n <div class=\"actions\">\r\n <div>\r\n <div class=\"fad-portal-content-bold\" (click)=\"seeDocumentFea(document)\">\r\n {{ document.isVisible ? 'Ocultar documento' : 'Ver documento' }}\r\n </div>\r\n <div class=\"fad-portal-content-bold\" (click)=\"downloadDocumentFea(document)\">{{configuration.customization?.moduleCustomization?.legends?.download}}</div>\r\n </div>\r\n <div>\r\n {{ document.doc?.pages }} {{configuration.customization?.moduleCustomization?.legends?.pages}}\r\n </div>\r\n </div>\r\n\r\n <ng-fad-signature-fea-pdf-viewer-fea\r\n *ngIf=\"document.isVisible && document.doc?.file\"\r\n [file]=\"document.doc?.file\"\r\n [index]=\"i\"\r\n [id]=\"getDocumentId(document.id!)\"\r\n >\r\n </ng-fad-signature-fea-pdf-viewer-fea>\r\n \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n <div class=\"fad-portal-content selector-document\">\r\n <div class=\"document-status-bar\">\r\n \r\n <div *ngIf=\"getApprovedCount() === 0 && getRejectedCount() === 0\" class=\"document-status-message \">\r\n Aprueba los documentos para firmarlos con tu e.firma\r\n </div>\r\n \r\n \r\n <div *ngIf=\"getApprovedCount() > 0 || getRejectedCount() > 0\" class=\"document-status-content\">\r\n <div class=\"approve-all\">\r\n <ng-fad-image-inline \r\n [src]=\"approveAll ? images.active.approve : images.inactive.approve\"\r\n (click)=\"approveAllDocuments()\">\r\n </ng-fad-image-inline>\r\n <span (click)=\"approveAllDocuments()\">Aprobar todos los documentos ({{ documentsApprovalList.length }})</span>\r\n </div>\r\n \r\n \r\n <div class=\"document-counts\">\r\n <span *ngIf=\"getApprovedCount() > 0 && getRejectedCount() === 0\" class=\"fad-portal-informative-bold\">\r\n {{ getApprovedCount() }} documentos aprobados\r\n </span>\r\n <span *ngIf=\"getRejectedCount() > 0 && getApprovedCount() === 0\" class=\"fad-portal-informative-bold\">\r\n {{ getRejectedCount() }} documentos rechazados\r\n </span>\r\n \r\n <ng-container *ngIf=\"getApprovedCount() > 0 && getRejectedCount() > 0\" >\r\n <span class=\"fad-portal-informative-bold\">\r\n {{ getApprovedCount() }} documentos aprobados\r\n </span>\r\n <span class=\"fad-portal-informative-bold\">\r\n {{ getRejectedCount() }} documentos rechazados\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n \r\n <button class=\"fad-portal-primary\" (click)=\"emitApprovedDocuments()\">Continuar</button>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n\r\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { IUploadESignatureConfiguration, UploadESignatureComplete } from '../../models';\r\nimport { getUploadESignatureErrorDescription, UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT, UploadESignatureErrorCode } from '../../constants';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { ResponseError, SharedUtils } from '@fad-producto-portal/ng-fad-shared';\r\nimport { FadService, MifielService, SignatureFeaRequest, SignInternalFeaRequest } from '@fad-producto-portal/ng-fad-services';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\nimport { finalize } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-upload-e-signature',\r\n templateUrl: './upload-e-signature.component.html',\r\n styleUrls: ['./upload-e-signature.component.scss']\r\n})\r\nexport class UploadESignatureComponent implements OnInit {\r\n @Input() configuration!: IUploadESignatureConfiguration;\r\n @Input() documents: SignInternalFeaRequest[] = [];\r\n @Input() signerId!: string;\r\n @Input() rfc!: string;\r\n @Output() onerror = new EventEmitter<ResponseError>();\r\n @Output() onloader = new EventEmitter<boolean>();\r\n @Output() oncomplete = new EventEmitter<null | UploadESignatureComplete>();\r\n uploadImg!: string;\r\n checkOnImg!: string;\r\n checkOffImg!: string;\r\n fileImg!: string;\r\n formatCerList = ['cer'];\r\n formatKeyList = ['key'];\r\n form!: FormGroup;\r\n passwordInputType = 'password';\r\n documentPluralTitle!: string;\r\n documentSingularTitle!: string;\r\n isValidated = false;\r\n showComponent = true;\r\n\r\n constructor(private hostContext: ElementRef, private fb: FormBuilder,\r\n private fad: FadService, private mifiel: MifielService) {}\r\n\r\n ngOnInit(): void {\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n\r\n this.uploadImg = this.configuration.pathDependencies?.images?.upload || `${this.configuration.pathDependencies?.imageDirectory}upload.svg`;\r\n this.checkOnImg = this.configuration.pathDependencies?.images?.checkOn || `${this.configuration.pathDependencies?.imageDirectory}check-on.svg`;\r\n this.checkOffImg = this.configuration.pathDependencies?.images?.checkOff || `${this.configuration.pathDependencies?.imageDirectory}check-off.svg`;\r\n this.fileImg = this.configuration.pathDependencies?.images?.file || `${this.configuration.pathDependencies?.imageDirectory}file.svg`;\r\n\r\n this.showComponent = this.validateData();\r\n if (this.showComponent) {\r\n this.documentPluralTitle = this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.plural?.replace('#TOTAL_DOCS', this.documents?.length.toString())!; // poner longitud\r\n if (this.documents?.length === 1) {\r\n const status = this.documents[0].approved ? this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.approved! : this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.rejected!;\r\n this.documentSingularTitle = this.configuration.customization?.moduleCustomization?.legends?.documents?.title?.singular?.replace('#STATUS_DOC', status)!; // poner longitud\r\n }\r\n\r\n this.initForm();\r\n }\r\n }\r\n\r\n validateData() {\r\n if(!this.documents || this.documents.length < 1) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_DOCUMENTS, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_DOCUMENTS), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n if(!this.signerId) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_SIGNER_ID, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_SIGNER_ID), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n if(!this.rfc) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.NO_RFC, getUploadESignatureErrorDescription(UploadESignatureErrorCode.NO_RFC), 'ng-fad-signature-fea-upload-e-signature'));\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n initForm() {\r\n this.form = this.fb.group({\r\n cer: [null, [Validators.required]],\r\n key: [null, [Validators.required]],\r\n password: [null, [Validators.required]]\r\n });\r\n }\r\n\r\n get cer() {\r\n return this.form.get('cer');\r\n }\r\n\r\n get key() {\r\n return this.form.get('key');\r\n }\r\n\r\n get password() {\r\n return this.form.get('password');\r\n }\r\n\r\n openFilePicker(fileInput: HTMLInputElement) {\r\n fileInput.click();\r\n }\r\n\r\n onFileChange(event: any, type: string) {\r\n const file = event.target.files[0];\r\n if (!file) return;\r\n\r\n if (event.target.files.length > 1) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.MULTIPLE_FILES, getUploadESignatureErrorDescription(UploadESignatureErrorCode.MULTIPLE_FILES), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n if (type === 'cer' && !/\\.cer$/.test(file.name)) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_CER, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_CER), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n if (type === 'key' && !/\\.key$/.test(file.name)) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_KEY, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_KEY), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n type === 'cer' ? this.cer?.setValue(file) : this.key?.setValue(file);\r\n }\r\n\r\n onfiledropped(files: FileList, type: string) {\r\n const file = files[0];\r\n type === 'cer' ? this.cer?.setValue(file) : this.key?.setValue(file);\r\n }\r\n\r\n onerrorDirective(event: ResponseError, type: string) {\r\n if (event.code === -1) this.onerror.emit(new ResponseError(UploadESignatureErrorCode.MULTIPLE_FILES, getUploadESignatureErrorDescription(UploadESignatureErrorCode.MULTIPLE_FILES), 'ng-fad-signature-fea-upload-e-signature'));\r\n if (event.code === -2 && type === 'cer') this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_CER, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_CER), 'ng-fad-signature-fea-upload-e-signature'));\r\n if (event.code === -2 && type === 'key') this.onerror.emit(new ResponseError(UploadESignatureErrorCode.FORMAT_KEY, getUploadESignatureErrorDescription(UploadESignatureErrorCode.FORMAT_KEY), 'ng-fad-signature-fea-upload-e-signature'));\r\n }\r\n\r\n changePaswordInputType() {\r\n this.passwordInputType = this.passwordInputType === 'text' ? 'password' : 'text';\r\n }\r\n\r\n savePassword(value: Event) {\r\n const inputElement = value.target as HTMLInputElement;\r\n this.password?.setValue(inputElement.value);\r\n }\r\n\r\n allIsRejected() {\r\n return this.documents.every(doc => doc.approved === false);\r\n }\r\n\r\n async onSignDocuments() {\r\n const aprovedDocuments = this.documents.filter((doc) => doc.approved);\r\n const rejectedDocuments = this.documents.filter((doc) => !doc.approved);\r\n let cer: null | UploadESignatureComplete = null;\r\n\r\n if (aprovedDocuments.length > 0) {\r\n const response = await this.signDocuments();\r\n if (!response) return;\r\n cer = response;\r\n }\r\n\r\n if (rejectedDocuments.length > 0) {\r\n const response = await this.rejectDocuments();\r\n if (!response) return;\r\n }\r\n\r\n this.oncomplete.emit(cer);\r\n\r\n }\r\n\r\n async signDocuments(): Promise<null | UploadESignatureComplete> {\r\n return new Promise(async (resolve, reject) => {\r\n this.onloader.emit(true);\r\n const cer = await this.getBase64File(this.cer?.value);\r\n this.onloader.emit(false);\r\n if (!cer) reject(null);\r\n\r\n this.onloader.emit(true);\r\n const key = await this.getBase64File(this.key?.value);\r\n this.onloader.emit(false);\r\n if (!key) reject(null);\r\n\r\n const aprrovedDocuments = this.documents.filter((doc) => doc.approved);\r\n\r\n const data: SignatureFeaRequest = {\r\n cer: cer!.split(',')[1],\r\n key: key!.split(',')[1],\r\n password: this.password?.value,\r\n documents: aprrovedDocuments,\r\n signerId: this.rfc\r\n }\r\n\r\n const body = await this.mifiel.getSignBody(data);\r\n if (!body) {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.PASSWORD_ERROR, getUploadESignatureErrorDescription(UploadESignatureErrorCode.PASSWORD_ERROR), 'ng-fad-signature-fea-upload-e-signature'));\r\n return;\r\n }\r\n\r\n this.onloader.emit(true);\r\n this.fad.signFea(body!, this.configuration.credentials?.key!, this.configuration.credentials?.iv!, this.configuration.services?.reject!).pipe(\r\n finalize(() => {\r\n this.onloader.emit(false);\r\n })\r\n ).subscribe({\r\n next: (res) => {\r\n if (res.success) {\r\n const certificate = this.mifiel.parseCertificate(data.cer);\r\n\r\n const cer: UploadESignatureComplete = {\r\n cer: certificate!\r\n }\r\n\r\n resolve(cer);\r\n } else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.SERVICE,res.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(null);\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(null);\r\n },\r\n });\r\n\r\n })\r\n }\r\n\r\n rejectDocuments(): Promise<boolean> {\r\n return new Promise((resolve, reject) => {\r\n const rejectedDocuments = this.documents.filter((doc) => !doc.approved);\r\n\r\n const body: SignatureFeaRequest = {\r\n cer: '',\r\n key: '',\r\n password: '',\r\n documents: rejectedDocuments.map(res => {\r\n return {\r\n id: res.id,\r\n idRequisition: res.idRequisition,\r\n }\r\n }),\r\n signerId: this.signerId\r\n }\r\n\r\n this.onloader.emit(true);\r\n\r\n this.fad.rejectFea(body, this.configuration.credentials?.key!, this.configuration.credentials?.iv!, this.configuration.services?.reject!).pipe(\r\n finalize(() => {\r\n this.onloader.emit(false);\r\n })\r\n ).subscribe({\r\n next: (res) => {\r\n if (res.success) {\r\n resolve(true);\r\n } else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.SERVICE,res.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(false);\r\n }\r\n },\r\n error: (error: HttpErrorResponse) => {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-upload-e-signature'));\r\n reject(false);\r\n },\r\n });\r\n })\r\n }\r\n\r\n async getBase64File(file: File) {\r\n const data = await SharedUtils.fileToBase64(file).then(base64 => base64).catch(error => null);\r\n if (data) return data as string;\r\n else {\r\n this.onerror.emit(new ResponseError(UploadESignatureErrorCode.ERROR_BASE_64, getUploadESignatureErrorDescription(UploadESignatureErrorCode.ERROR_BASE_64), 'ng-fad-signature-fea-upload-e-signature'));\r\n return null;\r\n }\r\n }\r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(new Configuration(), UPLOAD_E_SIGNATURE_CONFIGURATION_DEFAULT, this.configuration);\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-documents-background-color', this.configuration.customization?.moduleCustomization?.style?.documents?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-documents-border-radius', this.configuration.customization?.moduleCustomization?.style?.documents?.borderRadius, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-background-color', this.configuration.customization?.moduleCustomization?.style?.upload?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-border', this.configuration.customization?.moduleCustomization?.style?.upload?.border, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-border-radius', this.configuration.customization?.moduleCustomization?.style?.upload?.borderRadius, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-background-color', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.backgroundColor, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-border-radius', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.borderRadius, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-upload-button-hover', this.configuration.customization?.moduleCustomization?.style?.upload?.button?.hover, { targetElement });\r\n\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-file-border-radius', this.configuration.customization?.moduleCustomization?.style?.file?.borderRadius, { targetElement });\r\n Utils.setVariableCss('--fad-signature-fea-e-signature-file-img-background-color', this.configuration.customization?.moduleCustomization?.style?.file?.img?.backgroundColor, { targetElement });\r\n }\r\n}\r\n","<ng-container *ngIf=\"showComponent\">\r\n <div>\r\n <div *ngIf=\"documents.length > 1\" class=\"fad-portal-title-bold\">{{ documentPluralTitle }}</div>\r\n <div *ngIf=\"documents.length === 1\" class=\"fad-portal-title-bold\">{{ documentSingularTitle }}</div>\r\n\r\n <div class=\"container-document fad-portal-content\">\r\n <div *ngFor=\"let i of documents\" class=\"document\">\r\n <div>{{ i.doc.name }}</div>\r\n <div class=\"status fad-portal-content-bold\">{{ i.approved ? configuration.customization?.moduleCustomization?.legends?.documents?.status?.approved : configuration.customization?.moduleCustomization?.legends?.documents?.status?.rejected }}</div>\r\n <div class=\"pages\">{{ i.doc.pages }} {{ i.doc.pages > 1 ? configuration.customization?.moduleCustomization?.legends?.documents?.pages?.plural : configuration.customization?.moduleCustomization?.legends?.documents?.pages?.singular }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!allIsRejected()\">\r\n <div class=\"fad-portal-title-bold\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.title }}</div>\r\n\r\n <div>\r\n <div class=\"container-instruction-file\">\r\n <div class=\"fad-portal-content\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.label }}</div>\r\n <div *ngIf=\"cer?.value\" class=\"fad-portal-content select-file\" (click)=\"openFilePicker(fileCerInput)\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.upload }}</div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"!cer?.value\"\r\n class=\"container-upload\"\r\n (click)=\"openFilePicker(fileCerInput)\"\r\n dragDropDocument\r\n [formatList]=\"formatCerList\"\r\n [acceptMultipleFiles]=\"false\"\r\n (onfiledropped)=\"onfiledropped($event, 'cer')\"\r\n (onerror)=\"onerrorDirective($event, 'cer')\">\r\n <div class=\"fad-portal-content instruction\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.instruction }}</div>\r\n <div class=\"fad-portal-content-bold upload-btn\">\r\n <ng-fad-image-inline [src]=\"uploadImg\"></ng-fad-image-inline>\r\n <span>{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.cer?.upload }}</span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"cer?.value\" class=\"container-file\">\r\n <div class=\"document-img\">\r\n <img [src]=\"fileImg\" alt=\"\">\r\n </div>\r\n <div class=\"fad-portal-content\">{{ cer?.value.name }}</div>\r\n </div>\r\n\r\n <input type=\"file\" accept=\".cer\" #fileCerInput style=\"display: none\" (change)=\"onFileChange($event, 'cer')\">\r\n </div>\r\n\r\n <div>\r\n <div class=\"container-instruction-file\">\r\n <div class=\"fad-portal-content\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.label }}</div>\r\n <div *ngIf=\"key?.value\" class=\"fad-portal-content select-file\" (click)=\"openFilePicker(fileKeyInput)\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.upload }}</div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"!key?.value\"\r\n class=\"container-upload\"\r\n (click)=\"openFilePicker(fileKeyInput)\"\r\n dragDropDocument\r\n [formatList]=\"formatKeyList\"\r\n [acceptMultipleFiles]=\"false\"\r\n (onfiledropped)=\"onfiledropped($event, 'key')\"\r\n (onerror)=\"onerrorDirective($event, 'key')\">\r\n\r\n <div class=\"fad-portal-content instruction\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.instruction }}</div>\r\n <div class=\"fad-portal-content-bold upload-btn\">\r\n <ng-fad-image-inline [src]=\"uploadImg\"></ng-fad-image-inline>\r\n <span>{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.key?.upload }}</span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"key?.value\" class=\"container-file\">\r\n <div class=\"document-img\">\r\n <img [src]=\"fileImg\" alt=\"\">\r\n </div>\r\n <div class=\"fad-portal-content\">{{ key?.value.name }}</div>\r\n </div>\r\n\r\n <input type=\"file\" accept=\".key\" #fileKeyInput style=\"display: none\" (change)=\"onFileChange($event, 'key')\">\r\n </div>\r\n\r\n <div class=\"fad-portal-container-input\" [formGroup]=\"form\">\r\n <label class=\"fad-portal-content\" for=\"\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.label }}</label>\r\n <div class=\"input-password\">\r\n <input [type]=\"passwordInputType\" (input)=\"savePassword($event)\" formControlName=\"password\"/>\r\n <div class=\"fad-portal-content-bold password-show\">\r\n <div *ngIf=\"passwordInputType === 'text'\" (click)=\"changePaswordInputType()\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.hide }}</div>\r\n <div *ngIf=\"passwordInputType === 'password'\" (click)=\"changePaswordInputType()\">{{ configuration.customization?.moduleCustomization?.legends?.eSignature?.password?.show }}</div>\r\n </div>\r\n <ng-fad-portal-shared-form-errors [formData]=\"password!\" [configuration]=\"configuration.formErrors?.configuration!\"></ng-fad-portal-shared-form-errors>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <div></div>\r\n\r\n <div class=\"fad-portal-content container-confirm\">\r\n <div *ngIf=\"!allIsRejected()\" (click)=\"isValidated = !isValidated\">\r\n <div>\r\n <ng-fad-image-inline *ngIf=\"isValidated\" [src]=\"checkOnImg\"></ng-fad-image-inline>\r\n <ng-fad-image-inline *ngIf=\"!isValidated\" [src]=\"checkOffImg\"></ng-fad-image-inline>\r\n </div>\r\n <div *ngIf=\"documents.length === 1\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.validate?.singular }}</div>\r\n <div *ngIf=\"documents.length > 1\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.validate?.plural }}</div>\r\n </div>\r\n\r\n <div></div>\r\n\r\n <div class=\"action\">\r\n <button type=\"button\" *ngIf=\"documents.length === 1 && !allIsRejected()\" class=\"fad-portal-primary\" [disabled]=\"!form.valid || !isValidated\" (click)=\"onSignDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.sign?.singular }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length > 1 && !allIsRejected()\" class=\"fad-portal-primary\" [disabled]=\"!form.valid || !isValidated\" (click)=\"onSignDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.sign?.plural }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length === 1 && allIsRejected()\" class=\"fad-portal-primary\" (click)=\"onSignDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.reject?.singular }}</button>\r\n <button type=\"button\" *ngIf=\"documents.length > 1 && allIsRejected()\" class=\"fad-portal-primary\" (click)=\"onSignDocuments()\">{{ configuration.customization?.moduleCustomization?.legends?.sign?.button?.reject?.plural }}</button>\r\n </div>\r\n </div>\r\n</ng-container>\r\n","import { Component, Input, OnInit } from '@angular/core';\nimport { GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT } from '../../constants';\nimport { IGenericErrorFeaConfiguration } from '../../models';\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\n\n@Component({\n selector: 'ng-fad-signature-fea-generic-error-fea',\n templateUrl: './generic-error-fea.component.html',\n styleUrls: ['./generic-error-fea.component.scss']\n})\nexport class GenericErrorFeaComponent implements OnInit {\n @Input() configuration!: IGenericErrorFeaConfiguration;\n @Input() title!: string;\n @Input() instruction!: string;\n errorIgm!: string;\n\n ngOnInit(): void {\n this.setCustomizationStyle();\n this.errorIgm = this.configuration.pathDependencies?.images?.error || `${this.configuration.pathDependencies?.imageDirectory}error.svg`;\n }\n\n setCustomizationStyle(targetElement = document.documentElement): void {\n this.configuration = Utils.mergeConfiguration(new Configuration(), GENERIC_ERROR_FEA_CONFIGURATION_DEFAULT, this.configuration);\n }\n}\n","<ng-fad-image-inline [src]=\"errorIgm\"></ng-fad-image-inline>\n<div class=\"fad-portal-title-bold\">{{ title ? title : configuration.customization?.moduleCustomization?.legends?.title }}</div>\n<div class=\"fad-portal-content\">{{ instruction ? instruction : configuration.customization?.moduleCustomization?.legends?.instruction }}</div>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { IValidateSignatureConfiguration } from '../../models';\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\nimport { getValidateSignatureErrorDescription, VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT, ValidateSignatureErrorCode } from '../../constants';\nimport { FadService } from '@fad-producto-portal/ng-fad-services';\nimport { finalize } from 'rxjs';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { ResponseError } from '@fad-producto-portal/ng-fad-shared';\n\n@Component({\n selector: 'ng-fad-signature-fea-validate-signature',\n templateUrl: './validate-signature.component.html',\n styleUrls: ['./validate-signature.component.scss']\n})\nexport class ValidateSignatureComponent {\n @Input() configuration!: IValidateSignatureConfiguration;\n @Input() signerId!: string;\n @Input() requisitionId!: string;\n @Output() onloader = new EventEmitter<boolean>();\n @Output() onerror = new EventEmitter<ResponseError>();\n @Output() oncomplete = new EventEmitter<string>();\n @Output() onsigned = new EventEmitter<string>();\n\n constructor(private fad: FadService) { }\n\n ngOnInit(): void {\n this.setCustomizationStyle();\n const canContinue = this.validateData();\n if (canContinue) this.getSignerStatusFea();\n }\n\n validateData() {\n if (!this.requisitionId) {\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.NO_REQUISITION_ID, getValidateSignatureErrorDescription(ValidateSignatureErrorCode.NO_REQUISITION_ID), 'ng-fad-signature-fea-validate-signature'));\n return false;\n }\n\n if (!this.signerId) {\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.NO_SIGNER_ID, getValidateSignatureErrorDescription(ValidateSignatureErrorCode.NO_SIGNER_ID), 'ng-fad-signature-fea-validate-signature'));\n return false;\n }\n\n return true;\n }\n\n getSignerStatusFea() {\n this.onloader.emit(true);\n this.fad.getSignerStatusFea(this.requisitionId, this.signerId, this.configuration.services?.signerStatusFea)\n .pipe(finalize(() => this.onloader.emit(false)))\n .subscribe({\n next: (res) => {\n if (res.success) {\n res.data === 'COMPLETED' ? this.onsigned.emit(res.data) : this.oncomplete.emit(res.data);\n } else {\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.SERVICE, res.error, 'ng-fad-signature-fea-validate-signature'));\n }\n },\n error: (error: HttpErrorResponse) => {\n this.onerror.emit(new ResponseError(ValidateSignatureErrorCode.HTTP, error.error, 'ng-fad-signature-fea-validate-signature'));\n }\n })\n }\n\n setCustomizationStyle(targetElement = document.documentElement): void {\n this.configuration = Utils.mergeConfiguration(new Configuration(), VALIDATE_SIGNATURE_CONFIGURATION_DEFAULT, this.configuration);\n }\n}\n","","import { IDocumentApprovalListConfiguration, ISignatureSummaryConfiguration } from \"../../../models\";\r\n\r\nexport const SIGNATURE_SUMMARY_DEFAULT: ISignatureSummaryConfiguration = {\r\ndateFormat: 'es-MX',\r\n customization: {\r\n moduleCustomization: {\r\n style: {\r\n },\r\n legends: {\r\n signed:\"Documentos firmados\",\r\n rejected: \"Documentos rechazados\",\r\n legend: \"Te hemos enviado el resumen del proceso y el documento firmado a tu correo electrónico\",\r\n documentRejected: \"Documento rechazado\"\r\n }\r\n }\r\n },\r\n pathDependencies: {\r\n imageDirectory: 'assets/images/fad-signature-fea/signature-summary/',\r\n }\r\n};\r\n","import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/core';\r\nimport { DocumentApprovalFea, ISignatureSummaryConfiguration } from '../../models';\r\nimport { SIGNATURE_SUMMARY_DEFAULT } from '../../constants/configuration/signature-summary/signature-summary-configuration.const';\r\nimport { Configuration } from '@fad-producto-portal/fad-common/models/core';\r\nimport { Utils } from '@fad-producto-portal/fad-common/utils/utils';\r\n\r\n@Component({\r\n selector: 'ng-fad-signature-fea-signature-summary',\r\n templateUrl: './signature-summary.component.html',\r\n styleUrls: ['./signature-summary.component.scss']\r\n})\r\nexport class SignatureSummaryComponent {\r\n\r\n @Input() documentRequest!: DocumentApprovalFea[];\r\n @Input() configuration!: ISignatureSummaryConfiguration;\r\n @Output() oncomplete = new EventEmitter<any>();\r\n\r\n images = {\r\n reject: '',\r\n send: ''\r\n }\r\n signedCount = 0;\r\n rejectedCount = 0;\r\n isAllDocumentsRejected = true;\r\n currentDate: string = '';\r\n id = '';\r\n pdfsName = '';\r\n constructor( private hostContext: ElementRef ) {}\r\n\r\n\r\n ngOnInit() {\r\n console.log(this.documentRequest)\r\n this.setCustomizationStyle(this.hostContext.nativeElement);\r\n if (this.configuration?.pathDependencies?.imageDirectory) {\r\n this.images.reject = this.configuration.pathDependencies?.images?.reject ?? `${this.configuration.pathDependencies.imageDirectory}/rejected.svg`;\r\n this.images.send = this.configuration.pathDependencies?.images?.send ?? `${this.configuration.pathDependencies.imageDirectory}/send.svg`;\r\n \r\n }\r\n this.updateDocumentCounts();\r\n this.getPdfNames();\r\n this.setCurrentDate();\r\n }\r\n\r\n setCurrentDate() {\r\n const now = new Date();\r\n\r\n let hours = now.getHours();\r\n const minutes = now.getMinutes();\r\n const amPm = hours >= 12 ? 'PM' : 'AM';\r\n \r\n hours = hours % 12 || 12; \r\n \r\n const formattedMinutes = minutes < 10 ? '0' + minutes : minutes;\r\n this.currentDate = `${now.toLocaleDateString(this.configuration.dateFormat)} | ${hours}:${formattedMinutes} ${amPm}`;\r\n }\r\n \r\n\r\n updateDocumentCounts() {\r\n // Contar documentos firmados (approved: true)\r\n this.documentRequest.forEach((doc) =>{\r\n this.id= doc.id!;\r\n if(doc.approved){\r\n this.signedCount += 1;\r\n }else{\r\n this.rejectedCount += 1;\r\n }\r\n })\r\n console.log(this.documentRequest, this.signedCount,this.rejectedCount)\r\n if(this.signedCount > 0){\r\n this.isAllDocumentsRejected = false\r\n }else{\r\n this.isAllDocumentsRejected = true\r\n }\r\n \r\n }\r\n\r\n getPdfNames(){\r\n let currentFlag = '';\r\n let previewFlag = '';\r\n this.documentRequest.forEach((doc) =>{\r\n if(this.pdfsName === ''){\r\n this.pdfsName = doc.doc?.name.replace('.pdf','')!;\r\n currentFlag = doc.idRequisition!\r\n previewFlag = doc.idRequisition!\r\n }\r\n currentFlag = doc.idRequisition!;\r\n if(currentFlag !== previewFlag){\r\n this.pdfsName+= ','+doc.doc?.name.replace('.pdf','')!;\r\n currentFlag = doc.idRequisition!\r\n previewFlag = doc.idRequisition!\r\n }\r\n \r\n });\r\n }\r\n \r\n\r\n setCustomizationStyle(targetElement = document.documentElement): void {\r\n this.configuration = Utils.mergeConfiguration(\r\n new Configuration(),\r\n SIGNATURE_SUMMARY_DEFAULT,\r\n this.configuration\r\n );\r\n }\r\n\r\n}\r\n","<div class=\"fad-portal-content\">\r\n \r\n <ng-container *ngIf=\"!isAllDocumentsRejected\" >\r\n <ng-fad-image-inline\r\n [src]=\"images.send\"\r\n >\r\n </ng-fad-image-inline>\r\n <div class=\"fad-portal-title-bold\">\r\n {{pdfsName}}\r\n </div>\r\n <div class=\"fad-portal-content-bold date\">{{ currentDate }}</div>\r\n <div class=\"summary\">\r\n <div class=\"fad-portal-content-bold signeds\">\r\n <div>{{configuration.customization?.moduleCustomization?.legends?.signed}}</div>\r\n <div>{{signedCount}}</div>\r\n </div>\r\n <div class=\"line\">\r\n\r\n </div>\r\n <div class=\"fad-portal-content-bold rejecteds\">\r\n <div>{{configuration.customization?.moduleCustomization?.legends?.rejected}}</div>\r\n <div>{{rejectedCount}}</div>\r\n </div>\r\n </div>\r\n <div class=\"legends\">\r\n {{configuration.customization?.moduleCustomization?.legends?.legend}}\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isAllDocumentsRejected\" >\r\n <ng-fad-image-inline\r\n [src]=\"images.reject\"\r\n >\r\n </ng-fad-image-inline>\r\n <div class=\"document-rejected\"> {{configuration.customization?.moduleCustomization?.legends?.documentRejected}} </div>\r\n <div class=\"fad-portal-title-bold title-document\">\r\n {{pdfsName}}\r\n </div>\r\n <div class=\"id-requisition\">\r\n ID {{id}} | {{ currentDate }}\r\n </div>\r\n </ng-container>\r\n \r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NgFadSharedModule } from '@fad-producto-portal/ng-fad-shared';\r\nimport { NgFadImageInlineModule } from '@fad-producto/ng-fad-image-inline';\r\nimport { NgFadViewerModule } from '@fad-producto-portal/ng-fad-viewer';\r\nimport { PdfViewerFeaComponent } from './components/pdf-viewer-fea/pdf-viewer-fea.component';\r\n\r\n// components\r\nimport { ValidateRfcComponent } from './components/validate-rfc/validate-rfc.component';\r\nimport { DocumentApprovalListComponent } from './components/document-approval-list/document-approval-list.component';\r\nimport { UploadESignatureComponent } from './components/upload-e-signature/upload-e-signature.component';\r\nimport { GenericErrorFeaComponent } from './components/generic-error-fea/generic-error-fea.component';\r\nimport { ValidateSignatureComponent } from './components/validate-signature/validate-signature.component';\r\nimport { SignatureSummaryComponent } from './components/signature-summary/signature-summary.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n ValidateRfcComponent,\r\n DocumentApprovalListComponent,\r\n UploadESignatureComponent,\r\n PdfViewerFeaComponent,\r\n GenericErrorFeaComponent,\r\n ValidateSignatureComponent,\r\n SignatureSummaryComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NgFadSharedModule,\r\n NgFadImageInlineModule,\r\n NgFadViewerModule, \r\n ],\r\n exports: [\r\n ValidateRfcComponent,\r\n DocumentApprovalListComponent,\r\n UploadESignatureComponent,\r\n PdfViewerFeaComponent,\r\n GenericErrorFeaComponent,\r\n ValidateSignatureComponent,\r\n SignatureSummaryComponent\r\n ]\r\n})\r\nexport class NgFadSignatureFeaModule { }\r\n","/*\r\n * Public API Surface of ng-fad-signature-fea\r\n */\r\n\r\nexport * from './lib/ng-fad-signature-fea.module';\r\n\r\n// constants\r\nexport * from './lib/constants/index';\r\n\r\n// models\r\nexport * from './lib/models/index';\r\n\r\n// components\r\nexport * from './lib/components/validate-rfc/validate-rfc.component';\r\nexport * from './lib/components/document-approval-list/document-approval-list.component';\r\nexport * from './lib/components/upload-e-signature/upload-e-signature.component';\r\nexport * from './lib/components/pdf-viewer-fea/pdf-viewer-fea.component';\r\nexport * from './lib/components/generic-error-fea/generic-error-fea.component';\r\nexport *from './lib/components/validate-signature/validate-signature.component';\r\nexport * from './lib/components/signature-summary/signature-summary.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["GeneralPdfViewerComponentModule","i1","i2","i3","i4","i5","i5.PdfViewerFeaComponent"],"mappings":";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