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E7B73B,KAAK83B,SACLf,GAAc,WAAU/2B,KAAK83B,UAE7B93B,KAAKk1B,iBACL6B,GAAc,mBAAkB/2B,KAAKk1B,mBAErCl1B,KAAKu1B,OAASv1B,KAAK+3B,MAAQ/3B,KAAKg4B,WAAah4B,KAAKi4B,YAClDlB,GAAa,KACb/2B,KAAKu1B,QACLwB,GAAc,SAAQ/2B,KAAKu1B,SAE3Bv1B,KAAK+3B,OACLhB,GAAc,SAAQ/2B,KAAK+3B,QAE3B/3B,KAAKg4B,YACLjB,GAAc,cAAa/2B,KAAKg4B,aAEhCh4B,KAAKi4B,WACLlB,GAAc,aAAY/2B,KAAKi4B,aAE/Bj4B,KAAKm1B,eAAiBn1B,KAAKo1B,eAC3B2B,GAAc,iBAAgB/2B,KAAKk4B,eAC/Bl4B,KAAKm1B,gBACL4B,GAAc,kBAAiB/2B,KAAKm1B,iBAEpCn1B,KAAKo1B,cACL2B,GAAc,gBAAe/2B,KAAKo1B,gBAGtCp1B,KAAK00B,eACL10B,KAAK61B,UAAUhW,SAASC,KAAOiX,EAG/B/2B,KAAK81B,OAAOC,cAAcoC,IAAMpB,CA8BxC,EAEJ3C,SAAqBgE,UAAI,0BAAwFhE,EAAoB,EACrIA,EAAqBiE,UADkFz4B,MAAE,MACJw0B,EAAoB1zB,yDADhB,GACgB,KADlBd,KAAE04B,gBAAF14B,MAAE24B,EAAF34B,WAAEsG,k/BAAFtG,MAAE,gBACiuC,KADnuCA,MAAE,wDACorC,oBA3SvxCw0B,CAAoB,KA6XpBoE,EAAiB,MAAvB,MAAMA,EACFh4B,iBACI,MAAO,CACHi4B,SAAUD,EAElB,EAEJA,SAAkBJ,UAAI,0BAAwFI,EAAiB,EAC/HA,EAAkBE,UA3FqF94B,MAAE,MA2FM44B,IAC/GA,EAAkBG,UA5FqF/4B,MAAE,UA4FmCqH,QATtIuxB,CAAiB","names":["i0","CuentasFondos","constructor","clipboardService","this","afi","copyCuenta","cuenta","popover","copyFromContent","numero","setTimeout","static","_angular_core__WEBPACK_IMPORTED_MODULE_2__","selectors","FondoInversionService","afiRepository","getPersonalCustomerAccounts","getCustomerFunds","obtenerFondosClientes","getPromotor","identification","obtenerPromotor","getTipoDeAportes","isPersonalCustomer","obtenerCuentasCp","getClienteMovements","fechaInicio","fechaFin","cuentas","obtenerMovimientosClientes","pipe","map","movimientos","_angular_core__WEBPACK_IMPORTED_MODULE_3__","factory","enlineaBackendUrl","environment","CanalesRepository","http","createNewUserFiduciary","newUser","isUserCanales","isUserAdmin","createUserRequest","user","mapFromNewUserToNewUserDTO","sendEmail","post","createNewUser","editUserFiduciary","updatedUser","id","editUserRequest","patch","editUser","lockUser","userGuid","unLockUser","getUser","get","getUserFiduciary","birthDate","profile","roles","province","identificationType","rest","userCode","Date","toISOString","profileId","rolesId","role","provinceId","identificationTypeId","_angular_core__WEBPACK_IMPORTED_MODULE_1__","routes","path","component","DashboardComponent","router","modalService","usuarioRepository","ngOnInit","currentRoute","url","currentOption","setCurrentOption","selectedOption","showUlList","isShowingUlList","openConfigModal","bsModalRef","show","ModalDashboardSelectComponent","class","initialState","OptionArray","products","IsFromConfiguration","core","ctx","data","title","children","loadChildren","Promise","then","m","DashboardModule","PersonalCustomerDashboardModule","loadComponent","c","AgentsDashboardComponent","DashboardRoutingModule","RouterModule","CommonModule","UniHeadingModule","UniMenuModule","BsDropdownModule","InsuranceReportDropdown","ClaimsService","claimsRepository","fileHandlerService","getClaims","claimsFilter","getStatus","getVehicleShops","getClaimsVehicle","sinisterId","getClaimsAssociatedOrders","inspectionNumber","getClaimsThirdParties","getClaimInsureds","contractorCustomerCode","getClaimsAffectedPersons","s","insureds","getAssets","policyIdentification","certificateNumber","getClaimsReport","first","subscribe","openPdfInNewTab","_angular_core__WEBPACK_IMPORTED_MODULE_4__","ReservesRepository","paramsService","getReservesPolicies","getAccountTypes","Dropdown","getReserves","reservesFilter","spinner","params","mapRequestParams","getReservesDetail","accountCode","getReservesReport","account","companyCode","startDate","endDate","responseType","__decorate","Cacheable","tslib_es6","Observable","ReservesService","reservesRepository","report","BalancesGraphicComponent","balances","agingBalance","_balances","balanceValues","axisY","series","labels","axisX","setChartOptions","ngAfterViewInit","chartOptions","chart","type","locales","defaultLocale","toolbar","export","csv","filename","headerCategory","png","svg","height","colors","plotOptions","pie","customScale","dataLabels","enabled","legend","position","fontSize","yaxis","style","xaxis","tooltip","y","formatter","value","formatCurrency","BalancesGraphicModule","UniChartComponent","PorfolioDistributionRepository","getMonedas","getPorfolioDistributions","currencyCode","tslib__WEBPACK_IMPORTED_MODULE_5__","PorfolioDistributionService","agingBalanceRepository","AccountStatementRepository","getStatementsDropdown","getAccountStatement","accountStatementFilter","getStatements","AccountStatement","customerInformation","cliente","firstName","lastName","policyInformation","policyFormatted","productCode","policyNumber","getAccountStatementReport","accountStatementReportFilter","sendEmailNotification","request","AccountStatementService","accountStatementRepository","AccountStatementStatus","CreditNotesRepository","getEstatus","getDocumentTypes","getTiposIdentificcion","getCreditNotes","polizaFilter","creditNotes","dateFormat","creditNote","documentTypeDescription","documentType","contractorInformation","fullName","invoiceInformation","validity","validityStart","format","parseISO","validityEnd","formattedPolicy","getHealthPolicies","getCreditNotesReport","creditNotesReportFilter","sendEmailCreditNote","CreditNotesService","creditNotesRepository","OnlinePaymentRepository","getInvoices","filter","isForOnlinePayment","invoices","invoice","invoiceAmountToPay","currencyBalance","policy","getDollarExchangeRate","getBanks","payInvoices","payment","currencyTypeCode","cardTypeCode","paymentRest","body","getCreditCardTypeCode","typeCode","CreditCardType","getPolicyTypes","name","code","PolicyTypePayment","_angular_core__WEBPACK_IMPORTED_MODULE_5__","PaymentReceiptRepository","getPaymentReceipts","paymentReceiptFilter","paymentReceipts","receipt","emissionDate","contractor","getPaymentReceiptTypes","getPaymentReceiptReport","receiptNumber","sendPaymentReceiptEmail","paymentReceiptRequest","tslib__WEBPACK_IMPORTED_MODULE_7__","PaymentReceiptService","paymentReceiptRepository","paymentReceipt","RenewVehicleRepository","getChassis","getVehicle","vehicleFilter","model","brand","joinDateRange","toString","renewVehicle","loJackIds","cancelVehicle","getVehicleReport","operationId","RenewVehicleService","loJackId","MyPoliciesRepository","getMyPolicies","identificationTypeCode","getPolicyDetail","getAssociatedPolicies","getPolicyCoverages","MyPoliciesService","userRepository","myPoliciesRepository","getInfoClienteActual","switchMap","identificacion","tipoIdentificacion","codigoSeguros","NameFormComponent","formBuilder","rgvsiSharedService","changeDetectorRef","group","clientName","markAsTouched","isPersonalClient","result","nameTypeControl","setValue","nombres","lastNameTypeControl","apellidos","ngAfterViewChecked","detectChanges","writeValue","emitEvent","registerOnChange","fn","valueChanges","registerOnTouched","onTouched","setDisabledState","isDisabled","disable","onlySelf","enable","_angular_core__WEBPACK_IMPORTED_MODULE_6__","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","decls","FullIdentificationPipe","transform","identificationNumber","split","IdentificationTypeCodeMap","pure","RGVSISharedRepository","getIdentificationTypes","getCurrencyTypes","getMonths","of","date","getYears","currentYear","getFullYear","Array","from","length","_","i","getCurrentUserPolicies","policyType","getCurrentUserVIPEPolicies","generateVehicleIdentificationNumberReport","vin","getVinsByPolicyNumber","BalanceAgeDetailRange","BalanceAgeDetailGraphic","Range","CurrencyCode","BalanceAgeDetailAmount","getCurrentUserVehiclePolices","vehicles","vehicleType","description","getCurrentUserPendingInvoicePolicies","pendingInvoicesPolicies","pendingInvoice","policyName","customerName","getCurrentUserVehiclePolicies","RGVSISharedService","rgvsiSharedRepository","FormPolicyCategory","getUserPolicies","metadata","tipoInfo","TipoInfo","isClient","includes","formPolicyCategory","formCategoryMap","bind","BalanceAgeDetailRangeService","BalanceAgeDetailGraphicAmount","mapVehiculeInspectionCertToDropOptions","vehicule","veh","InsurancesSearchTerm","PolicyType","FormPolicyTypes","RGSVISharedModule","provideNgxMask","validation","imports","ReactiveFormsModule","SharedModule","UniFormFieldModule","UniInputModule","UniSelectModule","FormSharedModule","Service","aplicationOdontograma","FormularioAutorizacionesService","autorizacionesRepository","AplicationInsight","ReplaySubject","codigoRemitente","codigoTratante","telefono","email","codigoDiagnostico","observacion","$autorizacion","$requiredFields","getCurrentUser","$currentUser","currentUser","searchCurrentUser","getAutorizacion","getCamposRequeridos","getMotivosAnulacion","$razonesAnulacion","motivosAnulacion","next","getPrestacionesAprobadas","$prestacionesAprobadas","getPrestacionesRechazadas","$prestacionesRechazadas","newAutorizacion","autorizacion","Autorizacion","fecha","requiredFields","updateAutorizacion","iniciarCaso","Subject","validarCobertura","compania","companiaSucursal","afiliado","servicio","codigo","idInteraccion","Object","assign","setCamposRequeridos","camposObtenidos","error","crearCaso","requireOdontogram","usuarioRole","some","nombre","UserRoleName","numeroCaso","logEvent","Identificacion","Nombre","nombreCompleto","Compania","companiaNombre","CodigoPrestador","codigoPrestador","trim","startOdotograma","Data","window","open","location","href","crearAutorizacion","nuevaAutorizacion","$getPrestacionesAprobadas","$getPrestacionesRechazadas","numeroAutorizacion","cancelCase","cancelarCaso","casoCancelado","downloadReporte","tipoReporte","obtenerReporteARS","response","blob","Blob","FileSaver","camposRequeridos","parseCamposRequeridos","forEach","campoRequerido","prestacionesAprobadas","getPrestacionesNegadas","prestacionesNegadas","_angular_core__WEBPACK_IMPORTED_MODULE_11__","HistoricoCarnetRepository","getHistoricoCarnets","numeroIdentificacion","contractNumber","numeroContrato","getCarnet","carnet","dependentFullName","dependentFirstName","dependentLastName","ownerFullName","ownerFirstName","ownerLastName","historical","history","getPlanes","printCarnet","HistoricoCarnetService","historicoCarnetRepository","EstadoCuentaClienteRepository","getEstadoCuentaCliente","estadoCuentaParams","EstadoCuentaClientService","estadoCuentaClienteRepository","FacturasRepository","getFacturaTypes","getFacturaStatus","getFacturasQuantities","facturas","sendCreditNoteEmail","sendFacturaEmail","getFacturas","facturasRequest","facturasDtos","facturaDto","identificacionDtoValues","fullIdentification","period","fechaDesde","fechaHasta","getDetalleFacturas","detalleFacturasFilter","factura","getFacturasReport","reportFilter","HttpParams","fromObject","getNotaCreditoReport","numeroFactura","FacturasService","facturaRepository","facturasFilter","tipoFactura","tipoDocumento","contrato","AfiliadoProducto","AfiliadoProductoCode","AcselService","createElementByForm","tagName","idElement","nameElement","urlElement","methodElement","element","document","createElement","method","action","createElementByTextarea","innerText","setAttribute","mapQuoteTypeFromServer","quoteType","codClient","codCli","idePol","codType","codTipo","issueType","tipoEmision","issueDescription","descripcionEmision","issueName","nombreEmision","intermediaryCode","codigoIntermediario","codProd","priceInText","mensajeEmision","mapBusinessRuleFromServer","businessRule","codRule","codRegla","valorComparacion","rule","regla","dataType","tipoDato","descripcion","mapVehicleFromServer","vehicleData","idModel","idModelo","idBrand","idMarca","idType","idTipo","accion","excluded","excluido","discount","descuento","inactive","estaInactivo","marca","tipo","getBicycles","baseUrl","getBicycle","idBicycle","getPets","getPet","idPet","getClientById","getClientBlackList","blackListUrl","getCompanyByRnc","rnc","getCountries","getCoupon","coupon","getDocumentLink","getElectronicEquipments","getFinancialInstitutions","getIntermediaries","codInter","getMunicipality","getProvinces","getQuotePolicy","quoteId","getQuoteTypes","getQuoteBusinessRule","businessRules","getSectors","municipality","getPolicy","policyId","getQuote","getVehicleBrands","getVehicleData","modelId","getVehicleModels","brandId","getPaymentForm","ideProp","paymentType","urlAprobado","urlCancelado","urlDeclinado","tipoPago","issuePolicy","issueCertificate","parentPolicy","numeroCotizacion","processQuoteData","quoteData","postpaymentGateways","payloadHash","iplusPayForm","iPlusUrl","iPlusPayTextarea","appendChild","submit","requestInspectionVideo","requestQuoteApprove","requestQuotePayment","setQuote","console","warn","vehiculo","put","uploadDocument","formData","transactionType","operationType","uploadTuition","sendInvoiceToClient","invoiceId","validateChasis","chasis","CodProducts","IdentificationType","BreadcrumLinkOptionComponent","CreditCardComponent","BehaviorSubject","CreditCardMasks","creditCardNumberSource","asObservable","creditCardNumber","expirationDate","newExpirationDate","dividedDate","slice","creditCardNumber$","cardNumber","creditCardType","getCreditCardType","currentCreditCardNumber","currentCreditCardType","creditCardMask","DATE_FORMAT","NuevoUsuarioAdminCorporativo","NotificacionAporte","FiltroAutorizacion","ReportFormat","SearchByDropDownComponent","searchTerm","UntypedFormControl","createCustomInputControlValueAccessor","PhonePipe","firstSlice","secondSlice","thirdSlice","SwitchMultiCasePipe","cases","switchOption","CategoriasRepository","obtenerCategorias","overwrite","categorias","results","obtenerCategoriaRoles","RolesRepository","getRoles","getRolesFiduciaria","GetRolesByPerfilId","getOpciones","opciones","saveRol","rol","updateRol","deleteRol","delete","SharedOptionsRepository","getSexs","getMaritalStatus","getPersonByIdentification","getCompanyAlly","SharedOptionsService","sharedOptionsRepository","EmailFormatValidator","validator","test","emailCheck","invalid","validate","NG_VALIDATORS","PhoneFormatValidator","phoneCheck","UniCardsGroupComponent","UniCheckboxComponent","checked","_checked","_controlValueAccessorChangeFn","required","validators","ngControl","control","_required","hasOwnProperty","valueAccessor","_onTouched","disabled","onCheckboxChange","_angular_core__WEBPACK_IMPORTED_MODULE_0__","getRandomValues","rnds8","Uint8Array","rng","crypto","msCrypto","Error","esm_browser_validate","uuid","REGEX","byteToHex","push","substr","esm_browser_v4","v4","options","buf","offset","rnds","random","stringify","arr","arguments","undefined","toLowerCase","TypeError","PdfJsViewerComponent","onBeforePrint","EventEmitter","onAfterPrint","onDocumentLoad","onPageChange","externalWindow","showSpinner","openFile","download","viewBookmark","print","fullScreen","find","useOnlyCssZoom","errorOverride","errorAppend","diagnosticLogs","page","_page","PDFViewerApplication","pdfSrc","_src","PDFViewerApplicationOptions","pdfViewerOptions","viewerTab","iframe","nativeElement","contentWindow","pdfViewer","receiveMessage","viewerEvent","viewerId","event","param","emit","addEventListener","loadPdf","refresh","closed","externalWindowOptions","write","fileUrl","viewerUrl","encodeURIComponent","URL","createObjectURL","viewerFolder","downloadFileName","endsWith","startDownload","startPrint","lastPage","rotatecw","rotateccw","cursor","scroll","spread","locale","zoom","nameddest","pagemode","errorMessage","src","ɵfac","ɵcmp","_c0","_t","PdfJsViewerModule","ngModule","ɵmod","ɵinj"],"sourceRoot":"webpack:///","sources":["./src/app/AFI/CuentasFondos/cuentasFondos.component.html","./src/app/AFI/CuentasFondos/cuentasFondos.component.ts","./src/app/AFI/FondoInversion/fondo-inversion.service.ts","./src/app/Canales/Shared/Repositories/canales.repository.ts","./src/app/Dashboard/dashboard.component.html","./src/app/Dashboard/dashboard-routing.module.ts","./src/app/Dashboard/dashboard.component.ts","./src/app/Dashboard/dashboard.module.ts","./src/app/RGVSI/BankingInsurance/InsuranceReport/Types/Enums/insurance-report-dropdown.enum.ts","./src/app/RGVSI/Claims/SearchClaims/Services/claims.service.ts","./src/app/RGVSI/ClientsAndPolicies/Reserves/Repositories/reserves.repository.ts","./src/app/RGVSI/ClientsAndPolicies/Reserves/Services/reserves.service.ts","./src/app/RGVSI/Indicators/PorfolioDistribution/Components/BalancesGraphic/balances-graphic.component.ts","./src/app/RGVSI/Indicators/PorfolioDistribution/Components/BalancesGraphic/balances-graphic.component.html","./src/app/RGVSI/Indicators/PorfolioDistribution/Components/BalancesGraphic/balances-graphic.module.ts","./src/app/RGVSI/Indicators/PorfolioDistribution/Repositories/portfolio-distribution.repository.ts","./src/app/RGVSI/Indicators/PorfolioDistribution/Services/portfolio-distribution.service.ts","./src/app/RGVSI/InvoicesAndCollections/AccountStatement/Repositories/account-statement.repository.ts","./src/app/RGVSI/InvoicesAndCollections/AccountStatement/Services/account-statement.service.ts","./src/app/RGVSI/InvoicesAndCollections/AccountStatement/Types/Enums/account-statement-status.enum.ts","./src/app/RGVSI/InvoicesAndCollections/CreditNotes/Repositories/credit-notes.repository.ts","./src/app/RGVSI/InvoicesAndCollections/CreditNotes/Services/credit-notes.service.ts","./src/app/RGVSI/InvoicesAndCollections/OnlinePayment/Repositories/online-payment.repository.ts","./src/app/RGVSI/InvoicesAndCollections/OnlinePayment/Types/Enums/policy-type-payment.enum.ts","./src/app/RGVSI/InvoicesAndCollections/PaymentReceipt/Repositories/payment-receipt.repository.ts","./src/app/RGVSI/InvoicesAndCollections/PaymentReceipt/Services/payment-receipt.service.ts","./src/app/RGVSI/Lojack/RenewVehicle/Repositories/renew-vehicle.repository.ts","./src/app/RGVSI/Lojack/RenewVehicle/Services/renew-vehicle.service.ts","./src/app/RGVSI/PersonalClient/MyPolices/Repositories/my-policies.repository.ts","./src/app/RGVSI/PersonalClient/MyPolices/Services/my-policies.service.ts","./src/app/RGVSI/Shared/Components/NameForm/name-form.component.ts","./src/app/RGVSI/Shared/Components/NameForm/name-form.component.html","./src/app/RGVSI/Shared/Pipes/full-identification.pipe.ts","./src/app/RGVSI/Shared/Repositories/rgvsishared.repository.ts","./src/app/RGVSI/Shared/Services/rgvsishared.service.ts","./src/app/RGVSI/Shared/Types/Enums/dropdown.enum.ts","./src/app/RGVSI/Shared/Types/Enums/insurances-search-term.enum.ts","./src/app/RGVSI/Shared/Types/Enums/policy-type.enum.ts","./src/app/RGVSI/Shared/rgsvishared.module.ts","./src/app/SaludLocal/Autorizaciones/Formulario/Types/service.enum.ts","./src/app/SaludLocal/Autorizaciones/Formulario/formulario.service.ts","./src/app/SaludLocal/ContratosAfiliados/HistoricoCarnet/Repositories/historico-carnet.repository.ts","./src/app/SaludLocal/ContratosAfiliados/HistoricoCarnet/Services/historico-carnet.service.ts","./src/app/SaludLocal/FacturacionCobranza/EstadoCuentaCliente/Repositories/estado-cuenta-cliente.repository.ts","./src/app/SaludLocal/FacturacionCobranza/EstadoCuentaCliente/Services/estado-cuenta-cliente.service.ts","./src/app/SaludLocal/FacturacionCobranza/Facturas/Repositories/facturas.repository.ts","./src/app/SaludLocal/FacturacionCobranza/Facturas/Services/facturas.service.ts","./src/app/SaludLocal/shared/Types/afiliado-producto.enum.ts","./src/app/Unit/services/acsel.service.ts","./src/app/Unit/shared/enums/codProducts.enum.ts","./src/app/Unit/shared/enums/identification-type.enum.ts","./src/shared/Components/BreadcrumLinkComponent/breadcrum-link-option.component.html","./src/shared/Components/BreadcrumLinkComponent/breadcrum-link-option.component.ts","./src/shared/Components/CreditCard/credit-card.component.html","./src/shared/Components/CreditCard/credit-card.component.ts","./src/shared/Constantes/date.constants.ts","./src/shared/Entities/AFI/Administracion/UsuarioCorporativo/nuevoUsuarioAdminCorporativo.entity.ts","./src/shared/Entities/AFI/NotificacionAportes/notificacionAporte.entity.ts","./src/shared/Entities/Autorizaciones/autorizacion.entity.ts","./src/shared/Entities/Autorizaciones/filtroAutorizaciones.entity.ts","./src/shared/Enums/report-format.constants.ts","./src/shared/FormShared/Components/SearchByDropDown/search-by-drop-down.component.ts","./src/shared/FormShared/Components/SearchByDropDown/search-by-drop-down.component.html","./src/shared/Pipes/phone.pipe.ts","./src/shared/Pipes/switch-multi-case.pipe.ts","./src/shared/Repositories/categorias.repository.ts","./src/shared/Repositories/roles.repository.ts","./src/shared/Repositories/shared-options.repository.ts","./src/shared/Services/shared-options.service.ts","./src/shared/Validators/email-format.validator.ts","./src/shared/Validators/phone-format.validator.ts","./src/ui/components/cards-group/cards-group.component.html","./src/ui/components/cards-group/cards-group.component.ts","./src/ui/forms/checkbox/checkbox.component.ts","./src/ui/forms/checkbox/checkbox.component.html","./node_modules/uuid/dist/esm-browser/rng.js","./node_modules/uuid/dist/esm-browser/regex.js","./node_modules/uuid/dist/esm-browser/validate.js","./node_modules/uuid/dist/esm-browser/stringify.js","./node_modules/uuid/dist/esm-browser/v4.js","./node_modules/ng2-pdfjs-viewer/fesm2020/ng2-pdfjs-viewer.mjs"],"sourcesContent":["
\n
\n
\n Instrucciones de Consignación de Fondos\n
\n

Cuentas para depósitos por tipos de fondos de inversión

\n Descargar PDF\n
\n
\n\n
\n
\n
\n
\n
{{ fondo.fondo.nombre }}
\n
\n RNC: {{ fondo.fondo.rnc }}\n
\n
\n
\n
\n
\n
\n \n \"cuenta.banco\"\n
\n
\n Tipo de Cuenta:\n
\n {{ cuenta.tipo }}\n
\n
\n No. de Cuenta:\n
\n {{ cuenta.numero }}\n\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n Una vez transferidos los fondos debe remitir a su ejecutivo de negocios de AFI Universal y a la siguiente dirección\n inversionesafi@universal.com.do el comprobante de transacción para\n fines de registro.\n
\n
\n \n
\n","import { Component } from \"@angular/core\";\nimport { ClipboardService } from \"ngx-clipboard\";\n\nimport afi from \"@assets/constantes/afi.json\";\n\n@Component({\n templateUrl: \"./cuentasFondos.component.html\",\n styleUrls: [\"./cuentasFondos.component.scss\"],\n})\nexport class CuentasFondos {\n constructor(private clipboardService: ClipboardService) {}\n\n fondosInversion = afi.fondosInversion;\n\n copyCuenta(cuenta) {\n cuenta.popover = false;\n this.clipboardService.copyFromContent(cuenta.numero);\n setTimeout(() => {\n cuenta.popover = true;\n });\n }\n}\n","\nimport { Injectable } from \"@angular/core\";\nimport { Observable, map } from \"rxjs\";\n\nimport afi from \"@assets/constantes/afi.json\";\n\nimport { CuentaCp } from \"@shared/Entities/AFI/cuenta.entity\";\nimport { Promotor } from \"@shared/Entities/AFI/promotor.entity\";\n\nimport { ClientMovement, FondoCliente } from \"@AFI/Types/Interfaces/client-movements.interface\";\n\nimport { AFIRepository } from \"../afi.repository\";\nimport { PersonalCustomerAccount } from \"../Types/Interfaces/fondo-inversion.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class FondoInversionService {\n constructor(private afiRepository: AFIRepository) {}\n\n public getPersonalCustomerAccounts(): Observable {\n return this.afiRepository.getPersonalCustomerAccounts();\n }\n\n public getCustomerFunds(): Observable {\n return this.afiRepository.obtenerFondosClientes();\n }\n\n public getPromotor(identification: string): Observable {\n return this.afiRepository.obtenerPromotor(identification);\n }\n\n public getTipoDeAportes(isPersonalCustomer: boolean): any {\n return isPersonalCustomer ? afi.personal.notificacionAportes.tiposAporte : afi.corporativo.notificacionAportes.tiposAporte;\n }\n\n public obtenerCuentasCp(): Observable {\n return this.afiRepository.getPersonalCustomerAccounts();\n }\n\n public getClienteMovements(fechaInicio: Date, fechaFin: Date, cuentas: string[]): Observable {\n return this.afiRepository.obtenerMovimientosClientes(fechaInicio, fechaFin, cuentas).pipe(\n map((movimientos) => {\n return movimientos;\n })\n );\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { Usuario } from \"@shared/Entities/Usuario/usuario.entity\";\n\nimport { EditUserRequest, NewUser, NewUserDTO } from \"../Types/new-user\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable()\nexport class CanalesRepository {\n constructor(private http: HttpClient) {}\n\n public createNewUserFiduciary(newUser: NewUser, isUserCanales: boolean = false, isUserAdmin = false): Observable {\n const newUserDTO: NewUserDTO = this.mapFromNewUserToNewUserDTO(newUser);\n const createUserRequest = {\n user: newUserDTO,\n sendEmail: true,\n isUserCanales,\n isUserAdmin,\n };\n return this.http.post(`${enlineaBackendUrl}/api/fiduciary/admin/create-user`, createUserRequest);\n }\n\n public createNewUser(newUser: NewUser, isUserCanales: boolean = false, isUserAdmin = false): Observable {\n const newUserDTO: NewUserDTO = this.mapFromNewUserToNewUserDTO(newUser);\n const createUserRequest = {\n user: newUserDTO,\n sendEmail: true,\n isUserCanales,\n isUserAdmin,\n };\n return this.http.post(`${enlineaBackendUrl}/api/admin/users`, createUserRequest);\n }\n\n public editUserFiduciary(updatedUser: NewUser, id: number): Observable {\n const editUserRequest: EditUserRequest = { ...this.mapFromNewUserToNewUserDTO(updatedUser), id };\n return this.http.patch(`${enlineaBackendUrl}/api/fiduciary/admin/edit-user`, editUserRequest);\n }\n\n public editUser(updatedUser: NewUser, id: number): Observable {\n const editUserRequest: EditUserRequest = { ...this.mapFromNewUserToNewUserDTO(updatedUser), id };\n return this.http.patch(`${enlineaBackendUrl}/api/admin/users`, editUserRequest);\n }\n\n public lockUser(userGuid: string): Observable {\n return this.http.patch(`${enlineaBackendUrl}/api/admin/users/Credentials/Lock/${userGuid}`, {});\n }\n\n public unLockUser(userGuid: string): Observable {\n return this.http.patch(`${enlineaBackendUrl}/api/admin/users/Credentials/Unlock/${userGuid}`, {});\n }\n\n public getUser(userGuid: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Usuarios/${userGuid}`);\n }\n\n public getUserFiduciary(userGuid: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/fiduciaria/FiduciariaUsuarios/${userGuid}`);\n }\n\n private mapFromNewUserToNewUserDTO({ birthDate, profile, roles, province, identificationType, ...rest }: NewUser): NewUserDTO {\n return {\n ...rest,\n userCode: rest.userCode || \"\",\n birthDate: birthDate instanceof Date ? birthDate.toISOString() : birthDate,\n profileId: profile.id,\n rolesId: roles.map((role) => role.id),\n provinceId: province.id,\n identificationTypeId: identificationType,\n };\n }\n}\n","
\n
\n
\n
\n

Resumen de Productos

\n
\n
\n
\n Seleccionar: \n 1\"\n class=\"config-icon-button\"\n (click)=\"openConfigModal()\"\n src=\"/assets/images/config-icon.svg\"\n alt=\"config-item\"\n />\n \n
\n
\n
\n
\n \n {{ currentOption }}\n \n\n
\n
    \n
  • \n Salud Local\n
  • \n
  • \n Riesgos Generales\n
  • \n
  • \n Fondos de Inversión\n
  • \n
\n
\n
\n
\n
\n\n
\n \n
\n
\n
\n","import { NgModule } from \"@angular/core\";\nimport { Routes, RouterModule } from \"@angular/router\";\n\nimport { DashboardComponent } from \"./dashboard.component\";\n\nconst routes: Routes = [\n {\n path: \"\",\n component: DashboardComponent,\n data: {\n title: \"Dashboard\",\n },\n children: [\n {\n path: \"rgvsi\",\n data: {\n title: \"RGVSI\",\n },\n loadChildren: () => import(\"../RGVSI/Dashboard/dashboard.module\").then((m) => m.DashboardModule),\n },\n {\n path: \"salud\",\n data: {\n title: \"Salud\",\n },\n loadChildren: () => import(\"../SaludLocal/Dashboard/dashboard.module\").then((m) => m.DashboardModule),\n },\n {\n path: \"afi\",\n data: {\n title: \"AFI\",\n },\n loadChildren: () =>\n import(\"../AFI/PersonalCustomerDashboard/personal-customer-dashboard.module\").then(\n (m) => m.PersonalCustomerDashboardModule\n ),\n },\n ],\n },\n {\n path: \"agentes\",\n children: [\n {\n path: \"salud\",\n loadComponent: () =>\n import(\"../SaludLocal/AgentsDashboard/agents-dashboard.component\").then((c) => c.AgentsDashboardComponent),\n },\n {\n path: \"rgvsi\",\n loadComponent: () =>\n import(\"../RGVSI/AgentsDashboard/agents-dashboard.component\").then((c) => c.AgentsDashboardComponent),\n },\n ],\n },\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardRoutingModule {}\n","import { Component, OnInit } from \"@angular/core\";\nimport { Router } from \"@angular/router\";\nimport { BsModalRef, BsModalService } from \"ngx-bootstrap/modal\";\n\nimport { ModalDashboardSelectComponent } from \"@shared/Components/UserDashboardModalSelect/modal-dashboard-select.component\";\nimport { UserProduct } from \"@shared/Interfaces/user-products.interface\";\nimport { UsuariosRepository } from \"@shared/Repositories/usuarios.repository\";\n\nconst afiRoute = \"/portales/dashboard/afi\";\nconst saludRoute = \"/portales/dashboard/salud\";\n\n@Component({\n selector: \"app-dashboard\",\n templateUrl: \"./dashboard.component.html\",\n styleUrls: [\"./dashboard.component.scss\"],\n})\nexport class DashboardComponent implements OnInit {\n public isShowingUlList: boolean = true;\n public currentOption: string;\n public bsModalRef: BsModalRef;\n\n public products: UserProduct[] = [];\n\n constructor(private router: Router, private modalService: BsModalService, private usuarioRepository: UsuariosRepository) {}\n\n public ngOnInit(): void {\n // this.usuarioRepository.getUserProducts().subscribe((products) => {\n // this.products = products;\n // });\n const currentRoute = this.router.url;\n if (currentRoute === afiRoute) {\n this.currentOption = \"Fondos de inversión\";\n } else if (currentRoute === saludRoute) {\n this.currentOption = \"Salud local\";\n } else {\n this.currentOption = \"Riesgos generales\";\n }\n }\n\n public setCurrentOption(selectedOption: string): string {\n this.showUlList();\n return (this.currentOption = selectedOption);\n }\n public showUlList(): void {\n this.isShowingUlList = !this.isShowingUlList;\n }\n public openConfigModal(): void {\n this.bsModalRef = this.modalService.show(ModalDashboardSelectComponent, {\n class: \"modal-md\",\n initialState: {\n OptionArray: this.products,\n IsFromConfiguration: true,\n },\n });\n }\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { RouterModule } from \"@angular/router\";\nimport { UniHeadingModule, UniMenuModule } from \"@universal-ui\";\nimport { BsDropdownModule } from \"ngx-bootstrap/dropdown\";\n\nimport { BillingMenuComponent } from \"./Components/BillingMenu/billing-menu.component\";\nimport { DashboardRoutingModule } from \"./dashboard-routing.module\";\nimport { DashboardComponent } from \"./dashboard.component\";\n\n@NgModule({\n declarations: [DashboardComponent, BillingMenuComponent],\n imports: [CommonModule, DashboardRoutingModule, RouterModule, UniHeadingModule, UniMenuModule, BsDropdownModule.forRoot()],\n exports: [BillingMenuComponent],\n})\nexport class DashboardModule {}\n","export enum InsuranceReportDropdown {\n TIPMVBCS = \"TIPMVBCS\",\n STSCERT = \"STSCERT\",\n STSSIN = \"STSSIN\",\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first, map } from \"rxjs/operators\";\n\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { Insureds } from \"@RGVSI/Shared/Types/Interfaces/customer.interface\";\n\nimport { ClaimsRepository } from \"../Repositories/claims.repository\";\nimport { AssetCertificateDetail, associatedOrders, thirdParties, Vehicles } from \"../Types/Interfaces/claims-detail.interface\";\nimport { ClaimsFilter } from \"../Types/Interfaces/claims-filter.interface\";\nimport { Claims } from \"../Types/Interfaces/claims.interface\";\nimport { OptionType } from \"../Types/Interfaces/option-type.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class ClaimsService {\n constructor(private claimsRepository: ClaimsRepository, private fileHandlerService: FileHandlerService) {}\n\n public getClaims(claimsFilter: ClaimsFilter): Observable {\n return this.claimsRepository.getClaims(claimsFilter);\n }\n\n public getStatus(): Observable {\n return this.claimsRepository.getStatus();\n }\n\n public getVehicleShops(): Observable {\n return this.claimsRepository.getVehicleShops();\n }\n\n public getClaimsVehicle(sinisterId: string): Observable {\n return this.claimsRepository.getClaimsVehicle(sinisterId);\n }\n\n public getClaimsAssociatedOrders(sinisterId: string, inspectionNumber: string): Observable {\n return this.claimsRepository.getClaimsAssociatedOrders(sinisterId, inspectionNumber);\n }\n\n public getClaimsThirdParties(sinisterId: string, inspectionNumber: string): Observable {\n return this.claimsRepository.getClaimsThirdParties(sinisterId, inspectionNumber);\n }\n\n public getClaimInsureds(sinisterId: string, contractorCustomerCode: string): Observable {\n return this.claimsRepository.getClaimsAffectedPersons(sinisterId, contractorCustomerCode).pipe(map((s) => s.insureds));\n }\n\n public getAssets(\n sinisterId: string,\n policyIdentification: string,\n certificateNumber: string\n ): Observable {\n return this.claimsRepository.getAssets(sinisterId, policyIdentification, certificateNumber);\n }\n\n public getClaimsReport(claimsFilter: ClaimsFilter): void {\n this.claimsRepository.getClaimsReport(claimsFilter).pipe(first()).subscribe(this.fileHandlerService.openPdfInNewTab);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nconst { enlineaBackendUrl } = environment;\n\nimport { Dropdown } from \"@RGVSI/Shared/Types/Enums/dropdown.enum\";\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { ReservesFilter } from \"../Types/Interfaces/reserves-filter.interface\";\nimport { Reserves, ReservesDetail } from \"../Types/Interfaces/reserves.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class ReservesRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n @Cacheable()\n public getReservesPolicies(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Beneficiaries/Policies`);\n }\n\n public getAccountTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.VIPEAccountType}`);\n }\n\n @Cacheable()\n public getReserves(reservesFilter: ReservesFilter, spinner: boolean): Observable {\n const params = this.paramsService.mapRequestParams(reservesFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/ReserveAccountStatements?spinner=${spinner}`, { params });\n }\n\n public getReservesDetail(accountCode: string): Observable {\n const params = this.paramsService.mapRequestParams({ accountCode });\n return this.http.get(`${enlineaBackendUrl}/api/insurances/ReserveAccountStatements/Balances`, { params });\n }\n\n public getReservesReport(account: string, companyCode: string, startDate: Date, endDate: Date): Observable {\n const params = this.paramsService.mapRequestParams({ account, companyCode, startDate, endDate });\n return this.http.get(`${enlineaBackendUrl}/api/insurances/ReserveAccountStatements/Report`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { ReservesRepository } from \"../Repositories/reserves.repository\";\nimport { ReservesFilter } from \"../Types/Interfaces/reserves-filter.interface\";\nimport { Reserves, ReservesDetail } from \"../Types/Interfaces/reserves.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class ReservesService {\n constructor(private reservesRepository: ReservesRepository, private fileHandlerService: FileHandlerService) {}\n public getReservesPolicies(): Observable {\n return this.reservesRepository.getReservesPolicies();\n }\n\n public getAccountTypes(): Observable {\n return this.reservesRepository.getAccountTypes();\n }\n\n public getReserves(reservesFilter: ReservesFilter, spinner = true): Observable {\n return this.reservesRepository.getReserves(reservesFilter, spinner);\n }\n\n public getReservesDetail(accountCode: string): Observable {\n return this.reservesRepository.getReservesDetail(accountCode);\n }\n\n public getReservesReport(account: string, companyCode: string, startDate: Date, endDate: Date): void {\n this.reservesRepository\n .getReservesReport(account, companyCode, startDate, endDate)\n .pipe(first())\n .subscribe((report) => {\n this.fileHandlerService.openPdfInNewTab(report);\n });\n }\n}\n","import { formatCurrency } from \"@angular/common\";\nimport { AfterViewInit, Component, Input } from \"@angular/core\";\nimport { UniChartOptions } from \"@universal-ui\";\n\nimport locales from \"@assets/graph/locales.json\";\n\nimport { PorfolioDistribution } from \"../../Types/Interfaces/portfolio-distribution.interface\";\n\n@Component({\n selector: \"app-balances-graphic\",\n templateUrl: \"./balances-graphic.component.html\",\n})\nexport class BalancesGraphicComponent implements AfterViewInit {\n public series: ApexAxisChartSeries | ApexNonAxisChartSeries = [];\n public colors = [\"#74B2F4\", \"#4C7EED\", \"#3A5879\", \"#80A4F7\", \"#B9CB87\", \"#74B204\", \"#EFCF6E\"];\n public labels: string[];\n\n private _balances: PorfolioDistribution[];\n\n public readonly title = \"Gráfico de Distribución de Cartera por Producto\";\n\n @Input() public set balances(agingBalance: PorfolioDistribution[]) {\n if (agingBalance) {\n this._balances = agingBalance;\n const balanceValues = agingBalance.map(({ axisY }) => +axisY);\n this.series = balanceValues;\n this.labels = agingBalance.map(({ axisX }) => axisX);\n this.setChartOptions();\n }\n }\n\n public chartOptions: Partial = {};\n\n public ngAfterViewInit(): void {\n this.setChartOptions();\n }\n\n public setChartOptions(): void {\n this.chartOptions = {\n chart: {\n ...this.chartOptions?.chart,\n type: \"donut\",\n locales: [locales.es],\n defaultLocale: \"es\",\n toolbar: {\n export: {\n csv: {\n filename: this.title,\n headerCategory: \"Período\",\n },\n png: {\n filename: this.title,\n },\n svg: {\n filename: this.title,\n },\n },\n },\n height: 500,\n },\n colors: this.colors,\n plotOptions: {\n pie: {\n customScale: 0.95,\n },\n },\n dataLabels: {\n enabled: true,\n },\n legend: {\n show: true,\n position: \"bottom\",\n fontSize: \"13px\",\n },\n yaxis: {\n labels: {\n style: {\n fontSize: \"12px\",\n },\n },\n },\n xaxis: {\n labels: {\n style: {\n fontSize: \"12px\",\n },\n },\n },\n tooltip: {\n y: {\n formatter: function (value) {\n return formatCurrency(value, \"en-US\", \"$\", \"DOP\");\n },\n },\n },\n series: this.series,\n labels: this.labels,\n };\n }\n}\n","\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { UniChartComponent } from \"@universal-ui\";\n\nimport { BalancesGraphicComponent } from \"./balances-graphic.component\";\n\n@NgModule({\n declarations: [BalancesGraphicComponent],\n imports: [CommonModule, UniChartComponent],\n exports: [BalancesGraphicComponent],\n})\nexport class BalancesGraphicModule {}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { Dropdown } from \"@salud/shared/Types/dropdown.enum\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { PorfolioDistribution } from \"../Types/Interfaces/portfolio-distribution.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable()\nexport class PorfolioDistributionRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getMonedas(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.monedaSeguro}`);\n }\n\n @Cacheable()\n public getPorfolioDistributions(currencyCode: string): Observable {\n const params = this.paramsService.mapRequestParams({ currencyCode });\n return this.http.get(\n `${enlineaBackendUrl}/api/insurances/Indicators/PortfolioDistributionChartByProducts`,\n { params }\n );\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { PorfolioDistributionRepository } from \"../Repositories/portfolio-distribution.repository\";\nimport { PorfolioDistribution } from \"../Types/Interfaces/portfolio-distribution.interface\";\n\n@Injectable()\nexport class PorfolioDistributionService {\n constructor(private agingBalanceRepository: PorfolioDistributionRepository) {}\n\n public getMonedas(): Observable {\n return this.agingBalanceRepository.getMonedas();\n }\n\n public getPorfolioDistributions(currencyCode: string): Observable {\n return this.agingBalanceRepository.getPorfolioDistributions(currencyCode);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nconst { enlineaBackendUrl } = environment;\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { AccountStatementFilter, AccountStatementReportFilter } from \"../Types/Interfaces/account-statement-filter.interface\";\nimport { AccountStatement, AccountStatementEmail } from \"../Types/Interfaces/account-statement.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class AccountStatementRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getStatementsDropdown(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/AccountStatements/AccountStatementsTypes`);\n }\n\n public getAccountStatement(accountStatementFilter: AccountStatementFilter): Observable {\n const params = this.paramsService.mapRequestParams(accountStatementFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/AccountStatements`, { params }).pipe(\n map((getStatements) => {\n return getStatements.map((AccountStatement) => ({\n ...AccountStatement,\n customerInformation: {\n ...AccountStatement.customerInformation,\n cliente: `${AccountStatement.customerInformation?.firstName || \"\"} ${\n AccountStatement.customerInformation?.lastName || \"\"\n }`,\n },\n policyInformation: {\n ...AccountStatement.policyInformation,\n policyFormatted: `${AccountStatement.policyInformation?.productCode || \"\"}-${\n AccountStatement.policyInformation?.policyNumber || \"\"\n }`,\n },\n }));\n })\n );\n }\n\n public getAccountStatementReport(accountStatementReportFilter: AccountStatementReportFilter): Observable {\n const params = this.paramsService.mapRequestParams(accountStatementReportFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/AccountStatements/Report`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n\n public sendEmailNotification(request: AccountStatementEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/insurance/accountstatement/email`, request);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { AccountStatementRepository } from \"../Repositories/account-statement.repository\";\nimport { AccountStatementFilter, AccountStatementReportFilter } from \"../Types/Interfaces/account-statement-filter.interface\";\nimport { AccountStatement, AccountStatementEmail } from \"../Types/Interfaces/account-statement.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class AccountStatementService {\n constructor(private accountStatementRepository: AccountStatementRepository, private fileHandlerService: FileHandlerService) {}\n\n public getStatementsDropdown(): Observable {\n return this.accountStatementRepository.getStatementsDropdown();\n }\n\n public getAccountStatement(accountStatementFilter: AccountStatementFilter): Observable {\n return this.accountStatementRepository.getAccountStatement(accountStatementFilter);\n }\n\n public getAccountStatementReport(accountStatementReportFilter: AccountStatementReportFilter): void {\n this.accountStatementRepository\n .getAccountStatementReport(accountStatementReportFilter)\n .pipe(first())\n .subscribe((report) => {\n this.fileHandlerService.openPdfInNewTab(report);\n });\n }\n\n public sendEmailNotification(request: AccountStatementEmail): Observable {\n return this.accountStatementRepository.sendEmailNotification(request);\n }\n}\n","export enum AccountStatementStatus {\n Actual = \"N\",\n Historico = \"S\",\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { format, parseISO } from \"date-fns\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { Dropdown } from \"@salud/shared/Types/dropdown.enum\";\n\nconst { enlineaBackendUrl } = environment;\n\nimport { CreditNotesFilter, CreditNotesReportFilter } from \"../Types/Interfaces/credit-notes-filter.interface\";\nimport { CreditNotes } from \"../Types/Interfaces/credit-notes.interface\";\nimport { CreditNoteEmail } from \"../Types/Interfaces/CreditNoteEmail.interface\";\nimport { DropdownSeguros } from \"../Types/Interfaces/dropdown-seguros.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class CreditNotesRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getEstatus(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices/Status`);\n }\n\n public getDocumentTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices/GetInvoiceDocumentTypes`);\n }\n\n public getTiposIdentificcion(): Observable {\n return this.http.get(\n `${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.TipoIdentificacionSeguro}`\n );\n }\n\n public getCreditNotes(polizaFilter: CreditNotesFilter): Observable {\n const params = this.paramsService.mapRequestParams(polizaFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices`, { params }).pipe(\n map((creditNotes) => {\n const dateFormat = \"dd/MM/yyyy\";\n return creditNotes.map((creditNote) => ({\n ...creditNote,\n documentTypeDescription: creditNote.documentType === \"F\" ? \"Factura\" : \"Nota de Crédito\",\n contractorInformation: {\n ...creditNote.contractorInformation,\n fullName: `${creditNote.contractorInformation?.firstName} ${creditNote.contractorInformation?.lastName}`,\n },\n invoiceInformation: {\n ...creditNote.invoiceInformation,\n validity:\n (creditNote?.invoiceInformation?.validityStart\n ? `${format(parseISO(creditNote?.invoiceInformation?.validityStart), dateFormat)}`\n : \"\") +\n ` - ` +\n (creditNote?.invoiceInformation?.validityEnd\n ? `${format(parseISO(creditNote?.invoiceInformation?.validityEnd), dateFormat)}`\n : \"\"),\n validityStart: creditNote?.invoiceInformation?.validityStart\n ? format(parseISO(creditNote?.invoiceInformation?.validityStart), dateFormat)\n : \"\",\n },\n policyInformation: {\n ...creditNote.policyInformation,\n formattedPolicy: `${creditNote.policyInformation.productCode}-${creditNote.policyInformation.policyNumber}`,\n },\n }));\n })\n );\n }\n\n public getHealthPolicies(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices/InspireProducts`);\n }\n\n public getCreditNotesReport(creditNotesReportFilter: CreditNotesReportFilter): Observable {\n const params = this.paramsService.mapRequestParams(creditNotesReportFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices/InvoiceReport`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n\n public sendEmailCreditNote(request: CreditNoteEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/insurance/CreditNotes/email`, request);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { CreditNotesRepository } from \"../Repositories/credit-notes.repository\";\nimport { CreditNotesFilter, CreditNotesReportFilter } from \"../Types/Interfaces/credit-notes-filter.interface\";\nimport { CreditNotes } from \"../Types/Interfaces/credit-notes.interface\";\nimport { CreditNoteEmail } from \"../Types/Interfaces/CreditNoteEmail.interface\";\nimport { DropdownSeguros } from \"../Types/Interfaces/dropdown-seguros.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class CreditNotesService {\n constructor(private creditNotesRepository: CreditNotesRepository, private fileHandlerService: FileHandlerService) {}\n\n public getEstatus(): Observable {\n return this.creditNotesRepository.getEstatus();\n }\n public getDocumentTypes(): Observable {\n return this.creditNotesRepository.getDocumentTypes();\n }\n public getCreditNotes(polizaFilter: CreditNotesFilter): Observable {\n return this.creditNotesRepository.getCreditNotes(polizaFilter);\n }\n\n public getHealthPolicies(): Observable {\n return this.creditNotesRepository.getHealthPolicies();\n }\n\n public getCreditNotesReport(creditNotesReportFilter: CreditNotesReportFilter): void {\n this.creditNotesRepository\n .getCreditNotesReport(creditNotesReportFilter)\n .pipe(first())\n .subscribe((report) => {\n this.fileHandlerService.openPdfInNewTab(report);\n });\n }\n\n public sendEmailCreditNote(request: CreditNoteEmail): Observable {\n return this.creditNotesRepository.sendEmailCreditNote(request);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { CreditCardType } from \"@salud/FacturacionCobranza/PagoEnLinea/Types/Enums/credit-card-type.enum\";\n\nimport { Dropdown } from \"@RGVSI/Shared/Types/Enums/dropdown.enum\";\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\nimport { PolicyInvoicesFilter, PolicyInvoice, InvoiceInformation } from \"@RGVSI/Shared/Types/Interfaces/policy-invoice.interface\";\n\nimport { PolicyTypePayment } from \"../Types/Enums/policy-type-payment.enum\";\nimport { Payment, PaymentDto, PaymentResponse } from \"../Types/Interfaces/payment.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable()\nexport class OnlinePaymentRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getInvoices(filter: PolicyInvoicesFilter): Observable {\n const params = this.paramsService.mapRequestParams({ ...filter, isForOnlinePayment: true });\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Invoices`, { params }).pipe(\n map((invoices) => {\n return invoices.map((invoice) => {\n return {\n ...invoice,\n contractorInformation: {\n ...invoice.contractorInformation,\n fullName: `${invoice.contractorInformation.firstName} ${invoice.contractorInformation.lastName}`,\n },\n invoiceInformation: {\n ...invoice.invoiceInformation,\n invoiceAmountToPay: invoice.invoiceInformation.currencyBalance,\n },\n policyInformation: {\n ...invoice.policyInformation,\n\n policy: `${invoice.policyInformation.productCode}-${invoice.policyInformation.policyNumber}`,\n },\n };\n });\n })\n );\n }\n\n public getDollarExchangeRate(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/ExchangeRates/dollar`);\n }\n\n public getBanks(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.Banks}`);\n }\n\n public payInvoices(invoices: InvoiceInformation[], payment: Payment, currencyTypeCode: string): Observable {\n const { cardTypeCode, ...paymentRest } = payment;\n const body: PaymentDto = {\n invoices,\n ...paymentRest,\n currencyTypeCode,\n cardTypeCode: this.getCreditCardTypeCode(cardTypeCode),\n };\n return this.http.post(`${enlineaBackendUrl}/api/seguros/OnlinePayment`, body);\n }\n\n private getCreditCardTypeCode(typeCode: string): string {\n const insurancesTypes = {\n [CreditCardType.Visa]: \"Visa\",\n [CreditCardType.MasterCard]: \"MCAR\",\n [CreditCardType.Amex]: \"AMEX\",\n };\n return insurancesTypes[typeCode];\n }\n\n public getPolicyTypes(): { name: string; code: string }[] {\n return [\n { name: \"Riesgos Generales\", code: PolicyTypePayment[\"Riesgos Generales\"] },\n { name: \"Personas\", code: PolicyTypePayment.Persona },\n ];\n }\n}\n","export enum PolicyTypePayment {\n Persona = \"PER\",\n \"Riesgos Generales\" = \"RG\",\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { format, parseISO } from \"date-fns\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { InsuranceReceiptEmailRequest } from \"../Types/Interfaces/payment-receipt-email.interface\";\nimport { PaymentReceiptFilter } from \"../Types/Interfaces/payment-receipt-filter.interface\";\nimport { PaymentReceipt } from \"../Types/Interfaces/payment-receipt.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class PaymentReceiptRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getPaymentReceipts(paymentReceiptFilter: PaymentReceiptFilter): Observable {\n const params = this.paramsService.mapRequestParams(paymentReceiptFilter);\n return this.http.get(`${enlineaBackendUrl}/api/seguros/PaymentReceipt/GetFacturasRecibos`, { params }).pipe(\n map((paymentReceipts) => {\n return paymentReceipts.map((receipt) => {\n return {\n ...receipt,\n emissionDate: format(parseISO(receipt.emissionDate), \"dd/MM/yyyy\"),\n policy: { ...receipt.policy, policy: `${receipt.policy?.productCode}-${receipt.policy?.policyNumber}` },\n contractor: {\n ...receipt.contractor,\n fullName: `${receipt.contractor?.name} ${\n receipt.contractor?.lastName !== receipt.contractor?.name ? receipt.contractor?.lastName : \"\"\n }`,\n },\n };\n });\n })\n );\n }\n\n @Cacheable()\n public getPaymentReceiptTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/PaymentReceipt/ReceiptTypes?spinner=false`);\n }\n\n public getPaymentReceiptReport(receiptNumber: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/PaymentReceipt/Report/${receiptNumber || \"\"}`, {\n responseType: \"blob\",\n });\n }\n\n public sendPaymentReceiptEmail(paymentReceiptRequest: InsuranceReceiptEmailRequest): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/insurance/receipt/email`, paymentReceiptRequest);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { PaymentReceiptRepository } from \"../Repositories/payment-receipt.repository\";\nimport { InsuranceReceiptEmailRequest } from \"../Types/Interfaces/payment-receipt-email.interface\";\nimport { PaymentReceiptFilter } from \"../Types/Interfaces/payment-receipt-filter.interface\";\nimport { PaymentReceipt } from \"../Types/Interfaces/payment-receipt.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class PaymentReceiptService {\n constructor(private paymentReceiptRepository: PaymentReceiptRepository, private fileHandlerService: FileHandlerService) {}\n\n public getPaymentReceipts(paymentReceiptFilter: PaymentReceiptFilter): Observable {\n return this.paymentReceiptRepository.getPaymentReceipts(paymentReceiptFilter);\n }\n public getPaymentReceiptTypes(): Observable {\n return this.paymentReceiptRepository.getPaymentReceiptTypes();\n }\n\n public getPaymentReceiptReport(receiptNumber: string): Observable {\n return this.paymentReceiptRepository\n .getPaymentReceiptReport(receiptNumber)\n .pipe(map(this.fileHandlerService.openPdfInNewTab));\n }\n\n public sendPaymentReceiptEmail(paymentReceipt: InsuranceReceiptEmailRequest): Observable {\n return this.paymentReceiptRepository.sendPaymentReceiptEmail(paymentReceipt);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\nimport { joinDateRange } from \"@shared/Utils/format-api-date.util\";\n\nimport { Dropdown } from \"@RGVSI/Shared/Types/Enums/dropdown.enum\";\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\nimport { VIN } from \"@RGVSI/Shared/Types/Interfaces/vin.interface\";\n\nimport { RenewVehicleFilter } from \"../Types/Interfaces/renew-vehicle-filter.interface\";\nimport { RenewVehicle, RenewVehicleResponse } from \"../Types/Interfaces/renew-vehicle.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class RenewVehicleRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getStatus(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.VehicleStatus}`);\n }\n\n public getChassis(policy: string): Observable {\n const params = this.paramsService.mapRequestParams({ policy });\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Certificates/Vehicles`, { params });\n }\n\n public getVehicle(vehicleFilter: RenewVehicleFilter): Observable {\n const params = this.paramsService.mapRequestParams(vehicleFilter);\n return this.http.get(`${enlineaBackendUrl}/api/insurances/lojack/Vehicles`, { params }).pipe(\n map((policy) => {\n return policy.map((policy) => ({\n ...policy,\n model: `${policy.brand}-${policy.model}`,\n fullName: `${policy.firstName} ${policy?.lastName}`,\n validity: joinDateRange(policy.startDate?.toString(), policy.endDate?.toString()),\n }));\n })\n );\n }\n\n public renewVehicle(loJackIds: number[]): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/insurances/lojack/Vehicles/Renew`, {\n loJackIds,\n });\n }\n\n public cancelVehicle(loJackIds: number[]): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/insurances/lojack/Vehicles/Cancel`, {\n loJackIds,\n });\n }\n\n public getVehicleReport(operationId: number): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/lojack/Invoices/report/${operationId}`, {\n responseType: \"blob\" as \"json\",\n });\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { DropdownOption } from \"@RGVSI/Shared/Types/Interfaces/dropdown-option.interface\";\n\nimport { RenewVehicleRepository } from \"../Repositories/renew-vehicle.repository\";\nimport { RenewVehicleFilter } from \"../Types/Interfaces/renew-vehicle-filter.interface\";\nimport { RenewVehicle, RenewVehicleResponse } from \"../Types/Interfaces/renew-vehicle.interface\";\nimport { VIN } from \"@RGVSI/Shared/Types/Interfaces/vin.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class RenewVehicleService {\n constructor(private RenewVehicleRepository: RenewVehicleRepository, private fileHandlerService: FileHandlerService) {}\n\n public getStatus(): Observable {\n return this.RenewVehicleRepository.getStatus();\n }\n\n public getChassis(policy: string): Observable {\n return this.RenewVehicleRepository.getChassis(policy);\n }\n\n public getVehicle(vehicleFilter: RenewVehicleFilter): Observable {\n return this.RenewVehicleRepository.getVehicle(vehicleFilter);\n }\n\n public renewVehicle(loJackId: number[]): Observable {\n return this.RenewVehicleRepository.renewVehicle(loJackId);\n }\n\n public cancelVehicle(loJackId: number[]): Observable {\n return this.RenewVehicleRepository.cancelVehicle(loJackId);\n }\n\n public getVehicleReport(operationId: number): void {\n this.RenewVehicleRepository.getVehicleReport(operationId).pipe(first()).subscribe(this.fileHandlerService.openPdfInNewTab);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { CertificateCoverage } from \"@RGVSI/ClientsAndPolicies/Certificates/Types/Interfaces/base-certificate.interface\";\nimport { DetailedPolicy, Policy } from \"@RGVSI/Shared/Types/Interfaces/policy.interface\";\n\nimport { AssociatedPolicy } from \"../Types/associated-policy.interface\";\nimport { PolicyCoveragesFilter } from \"../Types/policy-coverages-filter.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class MyPoliciesRepository {\n constructor(private paramsService: ParamsService, private http: HttpClient) {}\n\n @Cacheable()\n public getMyPolicies(\n {\n identification,\n identificationTypeCode,\n }: {\n identificationTypeCode: string;\n identification: string;\n },\n spinner: boolean = true\n ): Observable {\n const params = this.paramsService.mapRequestParams({\n identification,\n identificationTypeCode,\n });\n return this.http.get(`${enlineaBackendUrl}/api/seguros/Policies?spinner=${spinner}`, { params });\n }\n\n @Cacheable()\n public getPolicyDetail(policyIdentification: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/Policies/${policyIdentification}`);\n }\n\n @Cacheable()\n public getAssociatedPolicies(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/Policies/AssociatedPolicies`);\n }\n\n @Cacheable()\n public getPolicyCoverages(filter: PolicyCoveragesFilter): Observable {\n const params = this.paramsService.mapRequestParams(filter);\n return this.http.get(`${enlineaBackendUrl}/api/seguros/Policies/PolicyCoverages`, { params });\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { switchMap } from \"rxjs/operators\";\n\nimport { UsuariosRepository } from \"@shared/Repositories/usuarios.repository\";\n\nimport { CertificateCoverage } from \"@RGVSI/ClientsAndPolicies/Certificates/Types/Interfaces/base-certificate.interface\";\nimport { DetailedPolicy, Policy } from \"@RGVSI/Shared/Types/Interfaces/policy.interface\";\n\nimport { MyPoliciesRepository } from \"../Repositories/my-policies.repository\";\nimport { AssociatedPolicy } from \"../Types/associated-policy.interface\";\nimport { PolicyCoveragesFilter } from \"../Types/policy-coverages-filter.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class MyPoliciesService {\n constructor(private userRepository: UsuariosRepository, private myPoliciesRepository: MyPoliciesRepository) {}\n\n public getMyPolicies({ spinner } = { spinner: true }): Observable {\n return this.userRepository.getInfoClienteActual().pipe(\n switchMap((user) => {\n const identification = user.identificacion;\n const identificationType = user.tipoIdentificacion.codigoSeguros;\n return this.myPoliciesRepository.getMyPolicies({ identification, identificationTypeCode: identificationType }, spinner);\n })\n );\n }\n\n public getPolicyDetail(policyIdentification: string): Observable {\n return this.myPoliciesRepository.getPolicyDetail(policyIdentification);\n }\n\n public getAssociatedPolicies(): Observable {\n return this.myPoliciesRepository.getAssociatedPolicies();\n }\n\n public getPolicyCoverages(filter: PolicyCoveragesFilter): Observable {\n return this.myPoliciesRepository.getPolicyCoverages(filter);\n }\n}\n","import { Component, AfterViewChecked, ChangeDetectorRef, AfterViewInit, forwardRef } from \"@angular/core\";\nimport { AbstractControl, ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormBuilder } from \"@angular/forms\";\nimport { switchMap, filter } from \"rxjs\";\n\nimport { UsuariosRepository } from \"@shared/Repositories/usuarios.repository\";\n\nimport { RGVSISharedService } from \"@RGVSI/Shared/Services/rgvsishared.service\";\n\n@Component({\n selector: \"app-name-form\",\n templateUrl: \"./name-form.component.html\",\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NameFormComponent),\n multi: true,\n },\n ],\n})\nexport class NameFormComponent implements ControlValueAccessor, AfterViewChecked, AfterViewInit {\n constructor(\n private formBuilder: UntypedFormBuilder,\n private rgvsiSharedService: RGVSISharedService,\n private usuarioRepository: UsuariosRepository,\n private readonly changeDetectorRef: ChangeDetectorRef\n ) {}\n\n public clientName = this.formBuilder.group({\n firstName: [],\n lastName: [],\n });\n\n public onTouched = (): void => {\n this.clientName.markAsTouched();\n };\n\n public ngAfterViewInit(): void {\n this.rgvsiSharedService.isPersonalClient\n .pipe(\n filter((isPersonalClient) => isPersonalClient === true),\n switchMap(() => this.usuarioRepository.getInfoClienteActual())\n )\n .subscribe((result) => {\n this.nameTypeControl.setValue(result?.nombres);\n this.lastNameTypeControl.setValue(result?.apellidos);\n });\n }\n\n public ngAfterViewChecked(): void {\n this.changeDetectorRef.detectChanges();\n }\n\n public writeValue(value: Record): void {\n if (value) {\n this.clientName.setValue(value, { emitEvent: true });\n }\n }\n\n public registerOnChange(fn: (value: Record) => void): void {\n this.clientName.valueChanges.subscribe(fn);\n }\n\n public registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n public setDisabledState(isDisabled: boolean): void {\n isDisabled\n ? this.clientName.disable({ emitEvent: false, onlySelf: true })\n : this.clientName.enable({ emitEvent: false, onlySelf: true });\n }\n\n public get nameTypeControl(): AbstractControl {\n return this.clientName.get(\"firstName\");\n }\n\n public get lastNameTypeControl(): AbstractControl {\n return this.clientName.get(\"lastName\");\n }\n}\n","
\n
\n \n Nombre(s) del Asegurado:\n \n \n
\n
\n \n Apellido(s) del Asegurado:\n \n \n
\n
\n","import { Pipe, PipeTransform } from \"@angular/core\";\n\nimport { IdentificationTypeCodeMap } from \"../Utils/identification-types-map\";\n\n@Pipe({\n name: \"fullIdentification\",\n})\nexport class FullIdentificationPipe implements PipeTransform {\n public transform(value: string): string {\n const [identificationType, identificationNumber] = value.split(\"-\");\n const mappedIdentificationType = IdentificationTypeCodeMap[identificationType] || identificationType;\n return `${mappedIdentificationType}-${identificationNumber}`;\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { Dropdown } from \"../Types/Enums/dropdown.enum\";\nimport { DropdownOption } from \"../Types/Interfaces/dropdown-option.interface\";\nimport { VehiculeInspectionCertificate } from \"../Types/Interfaces/policy-invoice.interface\";\nimport { PendingInvoicePolicy } from \"../Types/Interfaces/policy.interface\";\nimport date from \"../Utils/date.json\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable()\nexport class RGVSISharedRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n @Cacheable()\n public getIdentificationTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/TipoIdentificaciones/Insurance`);\n }\n\n @Cacheable()\n public getCurrencyTypes(): Observable {\n return this.http.get(\n `${enlineaBackendUrl}/api/insurances/Common/Dropdown/${Dropdown.Currency}?spinner=false`\n );\n }\n\n public getMonths(): Observable {\n return of(date.months);\n }\n\n public getYears(): Observable {\n const currentYear = new Date().getFullYear();\n return of(Array.from({ length: 15 }, (_, i) => (currentYear - i).toString()));\n }\n\n @Cacheable()\n public getCurrentUserPolicies(policyType?: string): Observable {\n const params = this.paramsService.mapRequestParams({ policyType });\n return this.http.get(`${enlineaBackendUrl}/api/seguros/Policies/PolicyNumbers?spinner=false`, { params });\n }\n\n @Cacheable()\n public getCurrentUserVIPEPolicies(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/Beneficiaries/Policies`);\n }\n\n public generateVehicleIdentificationNumberReport(vin: string): Observable {\n const params = this.paramsService.mapRequestParams({ vin });\n return this.http.get(`${enlineaBackendUrl}/api/seguros/VehicleInspectionCertificates/Report`, {\n params,\n responseType: \"blob\",\n });\n }\n\n public getVinsByPolicyNumber(policy: string): Observable<{ vin: string }[]> {\n const params = this.paramsService.mapRequestParams({ policy });\n return this.http.get<{ vin: string }[]>(`${enlineaBackendUrl}/api/insurances/Certificates/Vehicles`, { params });\n }\n\n public BalanceAgeDetailRange(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Insurances/BalanceAgeDetail/Ranges`);\n }\n\n public BalanceAgeDetailGraphic(Range: number, CurrencyCode: string): Observable {\n const params = this.paramsService.mapRequestParams({ Range, CurrencyCode });\n return this.http.get(`${enlineaBackendUrl}/api/Insurances/BalanceAgeDetail/Graphic`, {\n params,\n });\n }\n\n public BalanceAgeDetailAmount(CurrencyCode: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/insurances/BalanceAgeDetail/Amounts/${CurrencyCode}`);\n }\n\n @Cacheable()\n public getCurrentUserVehiclePolices(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/VehicleInspectionCertificates`).pipe(\n map((vehicles) => {\n return vehicles.map(\n ({ policyNumber, vehicleType }: VehiculeInspectionCertificate): DropdownOption => ({\n code: policyNumber,\n description: policyNumber,\n type: vehicleType,\n })\n );\n })\n );\n }\n\n @Cacheable()\n public getCurrentUserPendingInvoicePolicies(policyType?: string): Observable {\n const params = this.paramsService.mapRequestParams({ policyType });\n\n return this.http\n .get(`${enlineaBackendUrl}/api/seguros/Policies/PendingInvoices?spinner=false`, { params })\n .pipe(\n map((pendingInvoicesPolicies) => {\n return pendingInvoicesPolicies.map(\n (pendingInvoice): DropdownOption => ({\n code: pendingInvoice.policy,\n description: pendingInvoice.policyName,\n type: null,\n name: pendingInvoice.customerName,\n })\n );\n })\n );\n }\n\n @Cacheable()\n public getCurrentUserVehiclePolicies(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/seguros/VehicleInspectionCertificates`);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { TipoInfo } from \"@shared/Enums/tipo-info.enum\";\nimport { UsuariosRepository } from \"@shared/Repositories/usuarios.repository\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { RGVSISharedRepository } from \"../Repositories/rgvsishared.repository\";\nimport { FormPolicyCategory } from \"../Types/Enums/policy-type.enum\";\nimport { DropdownOption } from \"../Types/Interfaces/dropdown-option.interface\";\nimport { VehiculeInspectionCertificate } from \"../Types/Interfaces/policy-invoice.interface\";\nimport { VIN } from \"../Types/Interfaces/vin.interface\";\n\nexport interface GetCurrentPoliciesParams {\n formPolicyCategory: FormPolicyCategory;\n policyType?: string;\n}\n\n@Injectable()\nexport class RGVSISharedService {\n constructor(\n private rgvsiSharedRepository: RGVSISharedRepository,\n private usuarioRepository: UsuariosRepository,\n private fileHandlerService: FileHandlerService\n ) {}\n\n public readonly formCategoryMap = {\n [FormPolicyCategory.VIPE]: this.getCurrentUserVIPEPolicies,\n [FormPolicyCategory.GENERAL]: this.getUserPolicies,\n [FormPolicyCategory.VEHICLE]: this.getCurrentUserVehiclePolices,\n [FormPolicyCategory.PENDING_INVOICES]: this.getCurrentUserPendingInvoicePolicies,\n };\n\n public get isPersonalClient(): Observable {\n return this.usuarioRepository.getInfoClienteActual().pipe(\n map((user) => {\n const tipoInfo = user?.metadata?.tipoInfo;\n return tipoInfo === TipoInfo.PersonalClient;\n })\n );\n }\n\n public get isClient(): Observable {\n return this.usuarioRepository.getInfoClienteActual().pipe(\n map((user) => {\n const tipoInfo = user?.metadata?.tipoInfo;\n const clientTipoInfo = [TipoInfo.CorporativeClient, TipoInfo.PersonalClient];\n return clientTipoInfo.includes(tipoInfo);\n })\n );\n }\n\n public getIdentificationTypes(): Observable {\n return this.rgvsiSharedRepository.getIdentificationTypes();\n }\n\n public getCurrencyTypes(): Observable {\n return this.rgvsiSharedRepository.getCurrencyTypes();\n }\n\n public getCurrentUserPolicies({\n policyType,\n formPolicyCategory = FormPolicyCategory.GENERAL,\n }: GetCurrentPoliciesParams): Observable {\n const currentPolicyCategory = formPolicyCategory || FormPolicyCategory.GENERAL;\n return this.formCategoryMap[currentPolicyCategory].bind(this)(policyType);\n }\n\n public getUserPolicies(policyType?: string): Observable {\n return this.rgvsiSharedRepository.getCurrentUserPolicies(policyType);\n }\n\n public getCurrentUserVIPEPolicies(): Observable {\n return this.rgvsiSharedRepository.getCurrentUserVIPEPolicies();\n }\n\n public getCurrentUserVehiclePolices(): Observable {\n return this.rgvsiSharedRepository.getCurrentUserVehiclePolices();\n }\n\n public getCurrentUserPendingInvoicePolicies(policyType?: string): Observable {\n return this.rgvsiSharedRepository.getCurrentUserPendingInvoicePolicies(policyType);\n }\n\n public getMonths(): Observable {\n return this.rgvsiSharedRepository.getMonths();\n }\n\n public getYears(): Observable {\n return this.rgvsiSharedRepository.getYears();\n }\n\n public generateVehicleIdentificationNumberReport(vin: string): Observable {\n return this.rgvsiSharedRepository\n .generateVehicleIdentificationNumberReport(vin)\n .pipe(map(this.fileHandlerService.openPdfInNewTab));\n }\n\n public getVinsByPolicyNumber(policy: string): Observable {\n return this.rgvsiSharedRepository.getVinsByPolicyNumber(policy);\n }\n\n public BalanceAgeDetailRangeService(): Observable {\n return this.rgvsiSharedRepository.BalanceAgeDetailRange();\n }\n\n public BalanceAgeDetailGraphic(Range: number, CurrencyCode: string): Observable {\n return this.rgvsiSharedRepository.BalanceAgeDetailGraphic(Range, CurrencyCode);\n }\n\n public BalanceAgeDetailGraphicAmount(CurrencyCode: string): Observable {\n return this.rgvsiSharedRepository.BalanceAgeDetailAmount(CurrencyCode);\n }\n\n public getCurrentUserVehiclePolicies(): Observable {\n return this.rgvsiSharedRepository.getCurrentUserVehiclePolicies().pipe(map(this.mapVehiculeInspectionCertToDropOptions));\n }\n\n private mapVehiculeInspectionCertToDropOptions(vehicule: VehiculeInspectionCertificate[]): DropdownOption[] {\n return vehicule.map(\n (veh: VehiculeInspectionCertificate): DropdownOption => ({\n code: veh.policyNumber,\n description: veh.policyNumber,\n type: veh.vehicleType,\n })\n );\n }\n}\n","export enum Dropdown {\n Currency = \"TIPOMON\",\n IdentificationType = \"TIPOID\",\n Banks = \"UXBCOS\",\n LegalStatus = \"STSLEG\",\n Colores = \"COLOR\",\n Chasis = \"Chasis\",\n LojackProduct = \"PROLJACK\",\n MovementsListLojack = \"MOVLJACK\",\n VehicleStatus = \"STSLJACK\",\n MovementsListBankingInsurance = \"TIPMVBCS\",\n VIPEAccountType = \"TIPOSUSC\",\n MedicalCare = \"tipate\",\n ProviderService = \"SERPSS\",\n PlansTypes = \"TIPPLNBS\",\n MovementsTypeBankingInsurance = \"TIPMVBCS\",\n}\n","export enum InsurancesSearchTerm {\n Policy = \"Póliza\",\n Identification = \"Identificación\",\n ClientName = \"Nombre del Cliente\",\n Date = \"Fecha\",\n All = \"Varios Criterios\",\n}\n","export enum PolicyType {\n Vehicle = \"VEHICULO\",\n Asset = \"BIENES\",\n Persson = \"PERSONAS\",\n}\n\nexport enum FormPolicyTypes {\n Person = \"PER\",\n}\n\nexport enum FormPolicyCategory {\n VIPE = 1,\n GENERAL = 2,\n VEHICLE = 3,\n PENDING_INVOICES = 4,\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\nimport { UniFormFieldModule, UniInputModule, UniSelectModule } from \"@universal-ui\";\nimport { NgxMaskDirective, NgxMaskPipe, provideNgxMask } from \"ngx-mask\";\n\nimport { FormSharedModule } from \"@shared/FormShared/form-shared.module\";\nimport { SharedModule } from \"@shared/Modules/shared.module\";\n\nimport { ClientTypeFormComponent } from \"./Components/ClientTypeForm/clientType-form.component\";\nimport { IdentificationFormComponent } from \"./Components/IdentificationForm/identification-form.component\";\nimport { NameFormComponent } from \"./Components/NameForm/name-form.component\";\nimport { PolicyFormComponent } from \"./Components/PolicyForm/policy-form.component\";\nimport { BrandNamePipe } from \"./Pipes/brand-name.pipe\";\nimport { ColorNamePipe } from \"./Pipes/color-name.pipe\";\nimport { CurrencyNamePipe } from \"./Pipes/currency-name.pipe\";\nimport { FullIdentificationPipe } from \"./Pipes/full-identification.pipe\";\nimport { IdentificationTypePipe } from \"./Pipes/identification-type.pipe\";\nimport { ModelNamePipe } from \"./Pipes/model-name.pipe\";\nimport { VersionNamePipe } from \"./Pipes/version-name.pipe\";\n\n@NgModule({\n declarations: [\n PolicyFormComponent,\n IdentificationFormComponent,\n ClientTypeFormComponent,\n IdentificationTypePipe,\n FullIdentificationPipe,\n BrandNamePipe,\n ModelNamePipe,\n VersionNamePipe,\n ColorNamePipe,\n CurrencyNamePipe,\n NameFormComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SharedModule,\n UniFormFieldModule,\n UniInputModule,\n UniSelectModule,\n NgxMaskDirective,\n NgxMaskPipe,\n ],\n exports: [\n PolicyFormComponent,\n IdentificationFormComponent,\n ClientTypeFormComponent,\n SharedModule,\n FormSharedModule,\n IdentificationTypePipe,\n FullIdentificationPipe,\n BrandNamePipe,\n ModelNamePipe,\n VersionNamePipe,\n ColorNamePipe,\n CurrencyNamePipe,\n NameFormComponent,\n ],\n providers: [provideNgxMask({ validation: true })],\n})\nexport class RGSVISharedModule {}\n","export enum Service {\n AMBULANCIAS = \"01\",\n ATENCIONES_ENEMERGENCIA_SANITARIA = \"132\",\n CONSULTAS_MEDICAS_CUALQUIER_ESPECIALIDAD = \"11\",\n EMERGENCIA = \"49\",\n EMERGENCIA_TRIAGE_I = \"126\",\n EMERGENCIA_TRIAGE_II = \"127\",\n EMERGENCIA_TRIAGE_III = \"128\",\n EMERGENCIA_TRIAGE_IV = \"129\",\n EMERGENCIA_TRIAGE_V = \"130\",\n ESTUDIOS_ESPECIALIZADOS = \"20\",\n HOSPITALIZACIÓN_NO_QUIRURGICA = \"28\",\n LABORATORIO_PATOLOGICO = \"32\",\n LABORATORIOS = \"33\",\n NEUROCIRUGÍAS = \"102\",\n PROGRAMA_AMPLIADO_DE_INMUNIZACIÓN = \"108\",\n PSIQUIATRIA = \"43\",\n RAYOS_X = \"46\",\n SALUD_ESCOLAR = \"113\",\n TERAPIAS_FISICAS = \"72\",\n SERVICIOS_ODONTOLOGICOS = \"65\",\n UCI_EN_EMERGENCIA_SANITARIA = \"133\",\n}\n","import { Injectable } from \"@angular/core\";\nimport { Router } from \"@angular/router\";\nimport FileSaver from \"file-saver\";\nimport { ReplaySubject, Observable, Subject, map } from \"rxjs\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { Autorizacion } from \"@shared/Entities/Autorizaciones/autorizacion.entity\";\nimport { RazonAnulacion } from \"@shared/Entities/Autorizaciones/razon.entity\";\nimport { UserRoleName } from \"@shared/Entities/Usuario/usuario-role-id.enum\";\nimport { Usuario } from \"@shared/Entities/Usuario/usuario.entity\";\nimport { AutorizacionesRepository } from \"@shared/Repositories/autorizaciones.repository\";\nimport { UsuariosRepository } from \"@shared/Repositories/usuarios.repository\";\nimport { appInsight } from \"@shared/Services/appInsight.service\";\n\nimport { Service } from \"./Types/service.enum\";\n\nconst { aplicationOdontograma } = environment;\n\n@Injectable({ providedIn: \"root\" })\nexport class FormularioAutorizacionesService {\n private autorizacion: Autorizacion;\n private $autorizacion: ReplaySubject;\n private currentUser: Usuario;\n private $currentUser: ReplaySubject;\n\n private $razonesAnulacion: ReplaySubject;\n\n private $prestacionesAprobadas: ReplaySubject = new ReplaySubject();\n private $prestacionesRechazadas: ReplaySubject = new ReplaySubject();\n\n private requiredFields = {\n codigoRemitente: false,\n codigoTratante: false,\n telefono: false,\n email: false,\n codigoDiagnostico: false,\n observacion: false,\n };\n private $requiredFields: ReplaySubject;\n\n constructor(\n private userRepository: UsuariosRepository,\n private autorizacionesRepository: AutorizacionesRepository,\n private AplicationInsight: appInsight,\n private router: Router\n ) {\n this.$autorizacion = new ReplaySubject(1);\n this.$requiredFields = new ReplaySubject(1);\n }\n\n getCurrentUser(): Observable {\n if (!this.$currentUser) this.$currentUser = new ReplaySubject(1);\n\n if (!this.currentUser || !this.currentUser.identificacion) this.searchCurrentUser();\n\n return this.$currentUser;\n }\n\n //GETS\n getAutorizacion(): Observable {\n return this.$autorizacion;\n }\n getCamposRequeridos(): Observable {\n return this.$requiredFields;\n }\n getMotivosAnulacion(): Observable {\n if (!this.$razonesAnulacion) this.$razonesAnulacion = new ReplaySubject(1);\n\n this.autorizacionesRepository.getMotivosAnulacion().subscribe((motivosAnulacion) => {\n this.$razonesAnulacion.next(motivosAnulacion);\n });\n\n return this.$razonesAnulacion;\n }\n getPrestacionesAprobadas(): Observable {\n return this.$prestacionesAprobadas;\n }\n getPrestacionesRechazadas(): Observable {\n return this.$prestacionesRechazadas;\n }\n\n newAutorizacion() {\n this.autorizacion = new Autorizacion();\n this.autorizacion.fecha = new Date();\n\n this.requiredFields = {\n codigoRemitente: false,\n codigoTratante: false,\n telefono: false,\n email: false,\n codigoDiagnostico: false,\n observacion: false,\n };\n\n this.$prestacionesAprobadas.next([]);\n this.$prestacionesRechazadas.next([]);\n\n this.updateAutorizacion();\n return this.autorizacion;\n }\n\n //FLUJO DE AUTORIZACION\n iniciarCaso(autorizacion): Observable {\n const result = new Subject();\n this.autorizacionesRepository\n .validarCobertura(\n this.currentUser.identificacion,\n \"\",\n this.currentUser.compania,\n this.currentUser.companiaSucursal,\n autorizacion.afiliado.numero,\n autorizacion.servicio.codigo\n )\n .subscribe(\n (idInteraccion) => {\n this.autorizacion = Object.assign({}, autorizacion, {\n idInteraccion: idInteraccion,\n });\n this.updateAutorizacion();\n\n this.setCamposRequeridos().subscribe((camposObtenidos) => {\n result.next(true);\n });\n },\n (error) => {\n result.next(error);\n }\n );\n return result;\n }\n crearCaso(autorizacion): Observable {\n const result = new Subject();\n const requireOdontogram = this.currentUser.usuarioRole.some(({ role }) => role.nombre === UserRoleName.NewOdontograma);\n\n this.autorizacionesRepository.crearCaso(this.currentUser, autorizacion).subscribe(\n (numeroCaso) => {\n this.autorizacion = Object.assign({}, autorizacion);\n this.updateAutorizacion();\n this.AplicationInsight.logEvent(\"Autorizaciones.CrearCasoAutorizacion\", {\n Identificacion: this.currentUser.identificacion,\n Nombre: this.currentUser.nombreCompleto,\n Compania: this.currentUser.companiaNombre,\n CodigoPrestador: this.currentUser.metadata.codigoPrestador,\n });\n\n if (autorizacion.servicio.codigo.trim() === Service.SERVICIOS_ODONTOLOGICOS && requireOdontogram) {\n return this.autorizacionesRepository\n .startOdotograma(this.currentUser, autorizacion)\n .pipe(\n map(({ Data }) => {\n window.open(`${aplicationOdontograma}/?sesionId=${Data}&urlToReturn=${window.location.href}`, \"_self\");\n })\n )\n .subscribe();\n } else {\n result.next(true);\n }\n },\n (error) => {\n result.next(error);\n }\n );\n return result;\n }\n crearAutorizacion(autorizacion): Observable {\n const result = new Subject();\n\n this.autorizacionesRepository.crearAutorizacion(this.currentUser.identificacion, autorizacion).subscribe(\n (nuevaAutorizacion) => {\n this.autorizacion.numeroCaso = nuevaAutorizacion;\n this.autorizacion = Object.assign({}, autorizacion, {\n numeroCaso: nuevaAutorizacion,\n });\n\n this.updateAutorizacion();\n this.$getPrestacionesAprobadas();\n this.$getPrestacionesRechazadas();\n this.AplicationInsight.logEvent(\"Autorizaciones.CrearAutorizacion\", {\n numeroAutorizacion: nuevaAutorizacion.toString(),\n Identificacion: this.currentUser.identificacion,\n Nombre: this.currentUser.nombreCompleto,\n Compania: this.currentUser.companiaNombre,\n CodigoPrestador: this.currentUser.metadata.codigoPrestador,\n });\n result.next(true);\n },\n (error) => {\n result.next(error);\n }\n );\n return result;\n }\n\n //CANCELACION Y ANULACION\n cancelCase(): Observable {\n const result = new Subject();\n\n this.autorizacionesRepository.cancelarCaso(this.currentUser.identificacion, this.autorizacion).subscribe(\n (casoCancelado) => {\n result.next(true);\n },\n (error) => {\n result.next(error);\n }\n );\n\n return result;\n }\n\n //REPORTES\n downloadReporte(tipoReporte) {\n const mediaType = \"application/pdf\";\n this.autorizacionesRepository.obtenerReporteARS(this.autorizacion.numeroCaso, tipoReporte).subscribe((response) => {\n const blob = new Blob([response], { type: mediaType });\n FileSaver.saveAs(blob, \"Autorizacion.pdf\");\n });\n }\n\n private searchCurrentUser() {\n this.userRepository.getInfoClienteActual().subscribe((currentUser) => {\n this.currentUser = currentUser;\n this.$currentUser.next(this.currentUser);\n });\n }\n private updateAutorizacion() {\n this.$autorizacion.next(this.autorizacion);\n }\n private setCamposRequeridos(): Observable {\n const result = new Subject();\n this.autorizacionesRepository\n .getCamposRequeridos(this.currentUser.identificacion, this.autorizacion.idInteraccion)\n .subscribe((camposRequeridos) => {\n this.parseCamposRequeridos(camposRequeridos);\n this.$requiredFields.next(this.requiredFields);\n result.next(true);\n });\n\n return result;\n }\n private parseCamposRequeridos(camposRequeridos) {\n this.requiredFields = {\n codigoRemitente: false,\n codigoTratante: false,\n telefono: false,\n email: false,\n codigoDiagnostico: false,\n observacion: false,\n };\n\n camposRequeridos.forEach((campoRequerido) => {\n switch (campoRequerido) {\n case \"telefono\": {\n this.requiredFields.telefono = true;\n break;\n }\n case \"codigoRemitente\": {\n this.requiredFields.codigoRemitente = true;\n break;\n }\n case \"idDoctor\": {\n this.requiredFields.codigoTratante = true;\n break;\n }\n case \"email\": {\n this.requiredFields.email = true;\n break;\n }\n case \"codigoDiagnostico\": {\n this.requiredFields.codigoDiagnostico = true;\n break;\n }\n case \"observacion\": {\n this.requiredFields.observacion = true;\n break;\n }\n }\n });\n }\n private $getPrestacionesAprobadas() {\n this.autorizacionesRepository\n .getPrestacionesAprobadas(this.currentUser.identificacion, this.autorizacion)\n .subscribe((prestacionesAprobadas) => {\n this.$prestacionesAprobadas.next(prestacionesAprobadas);\n });\n }\n private $getPrestacionesRechazadas() {\n this.autorizacionesRepository\n .getPrestacionesNegadas(this.currentUser.identificacion, this.autorizacion)\n .subscribe((prestacionesNegadas) => {\n this.$prestacionesRechazadas.next(prestacionesNegadas);\n });\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { Dropdown } from \"@salud/shared/Types/dropdown.enum\";\nimport { OptionsType } from \"@salud/shared/Types/options-type.interface\";\n\nimport { HistoricoCarnet, HistoricoCarnetEmail, HistoricoCarnetFilter } from \"../Types/interfaces/HistoricoCarnet.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class HistoricoCarnetRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getHistoricoCarnets(filter: HistoricoCarnetFilter): Observable {\n const params = this.paramsService.mapRequestParams({\n ...filter,\n identificationType: filter.tipoIdentificacion,\n identification: filter.numeroIdentificacion,\n contractNumber: filter.numeroContrato,\n });\n return this.http.get(`${enlineaBackendUrl}/api/ars/cards/historical`, { params }).pipe(\n map((getCarnet) => {\n return getCarnet.map((carnet) => ({\n ...carnet,\n dependentFullName: `${carnet.dependentFirstName} ${carnet.dependentLastName}`,\n ownerFullName: `${carnet.ownerFirstName} ${carnet.ownerLastName}`,\n historical: carnet.historical.map((history) => {\n return {\n ...history,\n dependentFullName: `${history.dependentFirstName} ${history.dependentLastName}`,\n };\n }),\n }));\n })\n );\n }\n\n public getPlanes(): Observable[]> {\n return this.http.get[]>(`${enlineaBackendUrl}/api/Comunes/DropDown/${Dropdown.Producto}`);\n }\n\n public printCarnet(identificationNumber: string, contractNumber: string): Observable {\n const params = this.paramsService.mapRequestParams({ identificationNumber, contractNumber });\n return this.http.get(`${enlineaBackendUrl}/api/DigitalCards/report`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n\n public sendEmailNotification(request: HistoricoCarnetEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/ars/DigitalCards/email`, request);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { OptionsType } from \"@salud/shared/Types/options-type.interface\";\n\nimport { HistoricoCarnetRepository } from \"../Repositories/historico-carnet.repository\";\nimport { HistoricoCarnet, HistoricoCarnetEmail, HistoricoCarnetFilter } from \"../Types/interfaces/HistoricoCarnet.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class HistoricoCarnetService {\n constructor(private historicoCarnetRepository: HistoricoCarnetRepository, private fileHandlerService: FileHandlerService) {}\n\n public getHistoricoCarnets(filter: HistoricoCarnetFilter): Observable {\n return this.historicoCarnetRepository.getHistoricoCarnets(filter);\n }\n\n public getPlanes(): Observable[]> {\n return this.historicoCarnetRepository.getPlanes();\n }\n\n public printCarnet(identificationNumber: string, contractNumber: string): void {\n this.historicoCarnetRepository\n .printCarnet(identificationNumber, contractNumber)\n .pipe(first())\n .subscribe(this.fileHandlerService.openPdfInNewTab);\n }\n\n public sendEmailNotification(request: HistoricoCarnetEmail): Observable {\n return this.historicoCarnetRepository.sendEmailNotification(request);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { EstadoCuentaClienteParamsEmail, GetEstadoCuentaClienteParams } from \"../estado-cuenta-client.interface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class EstadoCuentaClienteRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getEstadoCuentaCliente(estadoCuentaParams: GetEstadoCuentaClienteParams): Observable {\n const params = this.paramsService.mapRequestParams(estadoCuentaParams);\n return this.http.get(`${enlineaBackendUrl}/api/ars/Intermediarios/EstadoCuentaCliente`, {\n params,\n responseType: \"blob\" as any,\n });\n }\n\n public sendEmailNotification(estadoCuentaParams: EstadoCuentaClienteParamsEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/ars/accountstatement/email`, estadoCuentaParams);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { EstadoCuentaClienteParamsEmail, GetEstadoCuentaClienteParams } from \"../estado-cuenta-client.interface\";\nimport { EstadoCuentaClienteRepository } from \"../Repositories/estado-cuenta-cliente.repository\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class EstadoCuentaClientService {\n constructor(\n private fileHandlerService: FileHandlerService,\n private estadoCuentaClienteRepository: EstadoCuentaClienteRepository\n ) {}\n\n public getEstadoCuentaCliente(estadoCuentaParams: GetEstadoCuentaClienteParams): void {\n this.estadoCuentaClienteRepository\n .getEstadoCuentaCliente(estadoCuentaParams)\n .subscribe(this.fileHandlerService.openPdfInNewTab);\n }\n\n public sendEmailNotification(request: EstadoCuentaClienteParamsEmail): Observable {\n return this.estadoCuentaClienteRepository.sendEmailNotification(request);\n }\n}\n","import { HttpClient, HttpParams } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { ParamsService } from \"@shared/Services/params.service\";\n\nimport { Dropdown } from \"@salud/shared/Types/dropdown.enum\";\nimport { IdentificationCode } from \"@salud/shared/Types/identification-code.enum\";\nimport { OptionsType } from \"@salud/shared/Types/options-type.interface\";\nimport facturas from \"@salud/shared/Utils/cantidad-facturas.json\";\n\nimport { DetalleFactura } from \"../Types/Interfaces/detalle-factura.interface\";\nimport { CreditNoteEmail, FacturaEmail } from \"../Types/Interfaces/factura-email.interface\";\nimport { Factura, FacturaDto, FacturaStatus, FacturaType } from \"../Types/Interfaces/factura.interface\";\nimport { FacturasFilter, DetalleFacturasFilter } from \"../Types/Interfaces/facturas-filter.interface\";\nimport { FacturaReportFilter, NotaCreditoReportFilter } from \"../Types/Interfaces/get-facturas-report.inerface\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class FacturasRepository {\n constructor(private http: HttpClient, private paramsService: ParamsService) {}\n\n public getFacturaTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Comunes/DropDown/${Dropdown.TipoFactura}`);\n }\n\n public getFacturaStatus(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Comunes/DropDown/${Dropdown.EstadoFactura}`);\n }\n\n public getFacturasQuantities(): Observable {\n return of(facturas.cantidad);\n }\n\n public sendCreditNoteEmail(request: CreditNoteEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/ars/CreditNotes/email`, request);\n }\n\n public sendFacturaEmail(request: FacturaEmail): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/ars/ShareInvoices/email`, request);\n }\n\n public getFacturas(facturasRequest: FacturasFilter): Observable {\n const params = this.paramsService.mapRequestParams(facturasRequest);\n return this.http\n .get(`${enlineaBackendUrl}/api/ars/Intermediarios/NotasCreditoFacturas`, {\n params,\n })\n .pipe(\n map((facturasDtos) => {\n return facturasDtos.map((facturaDto) => {\n const identificacionDtoValues = facturaDto.identificacion.split(\"-\");\n\n const identificacion = identificacionDtoValues[1];\n const identificationType: IdentificationCode = identificacionDtoValues[0] as IdentificationCode;\n return {\n ...facturaDto,\n identificacion,\n tipoIdentificacion: identificationType,\n fullIdentification: `${identificationType}-${identificacion} `,\n period: `Desde ${facturaDto.fechaDesde} Hasta ${facturaDto.fechaHasta}`,\n };\n });\n })\n );\n }\n\n public getDetalleFacturas(detalleFacturasFilter: DetalleFacturasFilter): Observable {\n const params = this.paramsService.mapRequestParams(detalleFacturasFilter);\n\n return this.http\n .get(`${enlineaBackendUrl}/api/ars/Intermediarios/DetalleFacturas`, {\n params,\n })\n .pipe(\n map((facturas) => {\n return facturas.map((factura) => ({ ...factura, period: `Desde ${factura.fechaDesde} Hasta ${factura.fechaHasta}` }));\n })\n );\n }\n\n public getFacturasReport(reportFilter: FacturaReportFilter): Observable {\n const params = new HttpParams({ fromObject: reportFilter as any });\n return this.http.get(`${enlineaBackendUrl}/api/ars/Intermediarios/ReporteFactura`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n\n public getNotaCreditoReport({ numeroFactura }: NotaCreditoReportFilter): Observable {\n const params = new HttpParams({ fromObject: { numeroFactura } });\n return this.http.get(`${enlineaBackendUrl}/api/ars/Intermediarios/ReporteNotaCredito`, {\n params,\n responseType: \"blob\" as \"json\",\n });\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { first } from \"rxjs/operators\";\n\nimport { ShareMessageResponse } from \"@shared/Interfaces/share-message-response.interface\";\nimport { FileHandlerService } from \"@shared/Services/fileHandler.service\";\n\nimport { OptionsType } from \"@salud/shared/Types/options-type.interface\";\n\nimport { FacturasRepository } from \"../Repositories/facturas.repository\";\nimport { DetalleFactura } from \"../Types/Interfaces/detalle-factura.interface\";\nimport { CreditNoteEmail, FacturaEmail } from \"../Types/Interfaces/factura-email.interface\";\nimport { Factura, FacturaStatus, FacturaType } from \"../Types/Interfaces/factura.interface\";\nimport { FacturasFilter, DetalleFacturasFilter } from \"../Types/Interfaces/facturas-filter.interface\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class FacturasService {\n constructor(private facturaRepository: FacturasRepository, private fileHandlerService: FileHandlerService) {}\n\n public getFacturas(facturasFilter: FacturasFilter): Observable {\n return this.facturaRepository.getFacturas(facturasFilter);\n }\n\n public getFacturaTypes(): Observable {\n return this.facturaRepository.getFacturaTypes();\n }\n public getFacturaStatus(): Observable {\n return this.facturaRepository.getFacturaStatus();\n }\n\n public getFacturasQuantities(): Observable {\n return this.facturaRepository.getFacturasQuantities();\n }\n public getDetalleFacturas(detalleFacturasFilter: DetalleFacturasFilter): Observable {\n delete detalleFacturasFilter.tipoFactura;\n return this.facturaRepository.getDetalleFacturas(detalleFacturasFilter);\n }\n\n public getFacturasReport(factura: Factura): void {\n if (factura.tipoDocumento === \"FACTURA\") {\n const { contrato, identificacion, tipoIdentificacion, numero } = factura;\n this.facturaRepository\n .getFacturasReport({\n numeroContrato: contrato,\n numeroIdentificacion: identificacion,\n tipoIdentificacion,\n numeroFactura: numero,\n })\n .pipe(first())\n .subscribe(this.fileHandlerService.openPdfInNewTab);\n } else {\n this.facturaRepository\n .getNotaCreditoReport({ numeroFactura: factura.numero })\n .pipe(first())\n .subscribe(this.fileHandlerService.openPdfInNewTab);\n }\n }\n\n public sendCreditNoteEmail(creditNote: CreditNoteEmail): Observable {\n return this.facturaRepository.sendCreditNoteEmail(creditNote);\n }\n\n public sendFacturaEmail(creditNote: FacturaEmail): Observable {\n return this.facturaRepository.sendFacturaEmail(creditNote);\n }\n}\n","export enum AfiliadoProducto {\n MPP = \"M.P.P (Medicina Prepagada)\",\n PBS = \"P.B.S\",\n PBS_2 = \"PBS\",\n}\nexport enum AfiliadoProductoCode {\n MPP = \"03\",\n PBS = \"01\",\n Ambos = \"00\",\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { map } from \"rxjs/operators\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { Pais } from \"@shared/Entities/Maritima/pais.entity\";\n\nimport { IAcselBiciBrand } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-bici-brand.interface\";\nimport { IAcselBici } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-bici.interface\";\nimport { IAcselBusinessRule } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-business-rules.interface\";\nimport { IAcselCoupon } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-coupon.interface\";\nimport {\n IAcselElectronicEquipment,\n IAcselEquipmentType,\n} from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-electronic-equipment\";\nimport { IAcselEmergenciaHogar } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-emergencia-hogar.interface\";\nimport { IAcselMejorAmigo } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-mejor-amigo.interface\";\nimport { IAcselPetBreef } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-pets.interface\";\nimport { IAcselQuoteType } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-quote-type.interface\";\nimport { IAcselRespuestaEmision } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-resputa-emision.interface\";\nimport { IAcselRespuestaEmpresaRnc } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-resputa-empresa-rnc.interface\";\nimport { IAcselVehiculoDato } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-vehiculo-dato.interface\";\nimport { IAcselVidaCredito } from \"@Unit/shared/Type/Interfaces/AcselInterface/acsel-vida-info.interface\";\nimport { IAcselSeguroDeAuto } from \"@Unit/shared/Type/Interfaces/AcselInterface/acselSeguroDeAuto.interface\";\nimport { IBusinessRule } from \"@Unit/shared/Type/Interfaces/business-rules.interface\";\nimport { IClientBlackList, IClientPadron } from \"@Unit/shared/Type/Interfaces/client-padronl.interface\";\nimport { IFileUploadResponse, ITuitionResponse } from \"@Unit/shared/Type/Interfaces/file-upload-response.interface\";\nimport { IIntermediary } from \"@Unit/shared/Type/Interfaces/intermediary.interface\";\nimport { IPaymentFormToken } from \"@Unit/shared/Type/Interfaces/payment-form-token.interface\";\nimport { IQuoteType } from \"@Unit/shared/Type/Interfaces/quote-type.interface\";\nimport { IVehicleBrand } from \"@Unit/shared/Type/Interfaces/vehicle-brand.interface\";\nimport { IVehicleChasisRestriction } from \"@Unit/shared/Type/Interfaces/vehicle-chasis-restriction.interface\";\nimport { IVehicleData } from \"@Unit/shared/Type/Interfaces/vehicle-data.interface\";\nimport { IVehicleModel } from \"@Unit/shared/Type/Interfaces/vehicle-model.interface\";\n\nimport { IFinancialInstitution } from \"../shared/Type/Interfaces/institutionFinantial.interface\";\n\ntype acselInterfaces =\n | IAcselSeguroDeAuto\n | IAcselVidaCredito\n | IAcselElectronicEquipment\n | IAcselBici\n | IAcselMejorAmigo\n | IAcselEmergenciaHogar;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class AcselService {\n constructor(private http: HttpClient) {}\n\n //Private Variables\n private readonly baseUrl = environment.enlineaBackendUrl;\n private readonly iPlusUrl = environment.unit.iPlusUrl;\n private readonly blackListUrl = environment.unit.universalBlackList;\n\n //Public Variables\n\n //Private Functions\n\n private createElementByForm(\n tagName: string,\n idElement: string,\n nameElement: string,\n urlElement: string,\n methodElement: string\n ): HTMLFormElement {\n const element = document.createElement(tagName) as HTMLFormElement;\n element.method = methodElement;\n element.action = urlElement;\n element.name = nameElement;\n element.id = idElement;\n return element;\n }\n\n private createElementByTextarea(\n tagName: string,\n idElement: string,\n nameElement: string,\n innerText: string\n ): HTMLTextAreaElement {\n const element = document.createElement(tagName) as HTMLTextAreaElement;\n element.name = nameElement;\n element.id = idElement;\n element.innerText = innerText;\n element.setAttribute(\"hidden\", \"hidden\");\n return element;\n }\n\n private mapQuoteTypeFromServer(quoteType: IAcselQuoteType): IQuoteType {\n return {\n codClient: quoteType.codCli,\n idePol: quoteType.idePol,\n codType: quoteType.codTipo,\n issueType: quoteType.tipoEmision,\n issueDescription: quoteType.descripcionEmision,\n issueName: quoteType.nombreEmision,\n intermediaryCode: quoteType.codigoIntermediario,\n codProd: quoteType.codProd,\n priceInText: quoteType.mensajeEmision,\n };\n }\n\n private mapBusinessRuleFromServer(businessRule: IAcselBusinessRule): IBusinessRule {\n return {\n codRule: businessRule.codRegla,\n value: businessRule.valorComparacion,\n codType: businessRule.codTipo,\n rule: {\n codRule: businessRule.regla.codRegla,\n dataType: businessRule.regla.tipoDato,\n description: businessRule.regla.descripcion,\n },\n };\n }\n\n private mapVehicleFromServer(vehicleData: IAcselVehiculoDato): IVehicleData {\n return {\n idModel: vehicleData.idModelo,\n idBrand: vehicleData.idMarca,\n idType: vehicleData.idTipo,\n name: vehicleData.nombre,\n action: vehicleData.accion,\n excluded: vehicleData.excluido,\n discount: vehicleData.descuento,\n inactive: vehicleData.estaInactivo,\n brand: {\n idBrand: vehicleData.marca.idMarca,\n name: vehicleData.marca.nombre,\n discount: vehicleData.marca.descuento,\n inactive: vehicleData.marca.estaInactivo,\n },\n type: {\n idType: vehicleData.tipo.idTipo,\n name: vehicleData.tipo.nombre,\n inactive: vehicleData.tipo.estaInactivo,\n },\n };\n }\n\n //Public Functions\n @Cacheable()\n public getBicycles(): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/bikes`).pipe(\n map((response: object) => {\n return response[\"data\"];\n })\n );\n }\n\n @Cacheable()\n public getBicycle(idBicycle: number): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/bikes/${idBicycle}`);\n }\n\n @Cacheable()\n public getPets(): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/pets`).pipe(\n map((response: object) => {\n return response[\"data\"];\n })\n );\n }\n\n @Cacheable()\n public getPet(idPet: number): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/pets/${idPet}`).pipe(\n map((response: object) => {\n return response[\"data\"];\n })\n );\n }\n\n public getClientById(id: string): Observable {\n return this.http.get(`${this.baseUrl}/v2/${id}`);\n }\n\n public getClientBlackList(id: string): Observable {\n return this.http.get(`${this.blackListUrl}/RestrictedEntries/existAnyWith/onBody?Document=${id}`);\n }\n\n public getCompanyByRnc(rnc: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/company/${rnc}`);\n }\n\n @Cacheable()\n public getCountries(): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/direcciones/paises`);\n }\n\n public getCoupon(coupon: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/coupons/${coupon}`);\n }\n\n public getDocumentLink(documentType: string, policy: string): Observable {\n return this.http.get(\n `${this.baseUrl}/api/unit/documents?referencia=${policy}&tipoOperacion=Emision&tipoAdjunto=${documentType}`,\n { responseType: \"blob\" as \"json\" }\n );\n }\n\n @Cacheable()\n public getElectronicEquipments(): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/equipments`);\n }\n\n @Cacheable()\n public getFinancialInstitutions(): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/instituciones-financieras`);\n }\n\n @Cacheable()\n public getIntermediaries(codInter?: string): Observable> {\n if (codInter) return this.http.get>(`${this.baseUrl}/api/unit/intermediarios?codInter=${codInter}`);\n else return this.http.get>(`${this.baseUrl}/api/unit/intermediarios`);\n }\n\n @Cacheable()\n public getMunicipality(province: string): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/direcciones/municipios?provincia=${province}`);\n }\n\n @Cacheable()\n public getProvinces(): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/direcciones/provincias`);\n }\n\n public getQuotePolicy(quoteId: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/policies/quotes/${quoteId}`);\n }\n\n public getQuoteTypes(codProd: string): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/Policies/tipos?codProd=${codProd}`).pipe(\n map((response: Array) => {\n return response.map((quoteType) => this.mapQuoteTypeFromServer(quoteType));\n })\n );\n }\n\n public getQuoteBusinessRule(codType: string): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/quotes/reglas?codTipo=${codType}`).pipe(\n map((response: Array) => {\n return response.map((businessRules) => this.mapBusinessRuleFromServer(businessRules));\n })\n );\n }\n\n @Cacheable()\n public getSectors(province: string, municipality: string): Observable> {\n return this.http.get>(\n `${this.baseUrl}/api/unit/direcciones/sectores?provincia=${province}&municipio=${municipality}`\n );\n }\n\n public getPolicy(policyId: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/policies/${policyId}`);\n }\n\n public getQuote(quoteId: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/quotes/${quoteId}`);\n }\n\n @Cacheable()\n public getVehicleBrands(): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/vehicles/marcas`).pipe(\n map((response: object) => {\n return response[\"data\"];\n })\n );\n }\n\n @Cacheable()\n public getVehicleData(modelId: number): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/Vehicles/${modelId}`).pipe(\n map((response: IAcselVehiculoDato) => {\n return this.mapVehicleFromServer(response);\n })\n );\n }\n\n @Cacheable()\n public getVehicleModels(brandId: number): Observable> {\n return this.http.get>(`${this.baseUrl}/api/unit/vehicles/modelos?marca=${brandId}`).pipe(\n map((response: object) => {\n return response[\"data\"];\n })\n );\n }\n\n public getPaymentForm(ideProp: number, paymentType?: number): Observable {\n //Payment Type debe ser: 0 Hold, 1 Post, 2 Void, 3 Sale\n paymentType = paymentType === 0 ? paymentType : 3;\n return this.http.post(`${this.baseUrl}/api/unit/payment/payment-form/${ideProp}`, {\n urlAprobado: `${window.location.href}/pago-aprobado`,\n urlCancelado: `${window.location.href}`,\n urlDeclinado: `${window.location.href}/pago-declinado`,\n tipoPago: paymentType,\n });\n }\n\n public issuePolicy(quoteId: number): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/Quotes/emitir/${quoteId}`, {});\n }\n\n public issueCertificate(quoteId: number, parentPolicy: number): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/Quotes/emitir-certificado`, {\n numeroCotizacion: quoteId,\n idePol: parentPolicy,\n });\n }\n\n public processQuoteData(quoteData: acselInterfaces): Observable {\n return of(quoteData);\n }\n\n public postpaymentGateways(payloadHash: string): void {\n const iplusPayForm = this.createElementByForm(\"form\", \"fmDatos\", \"fmDatos\", this.iPlusUrl, \"POST\");\n const iPlusPayTextarea = this.createElementByTextarea(\"textarea\", \"data\", \"data\", payloadHash);\n iplusPayForm.appendChild(iPlusPayTextarea);\n document.body.appendChild(iplusPayForm);\n iplusPayForm.submit();\n }\n\n public requestInspectionVideo(quoteId: number, parentPolicy: number): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/communication`, {\n identificacion: parentPolicy ? `${quoteId}-${parentPolicy}` : `${quoteId}`,\n tipo: \"InspeccionAliado\",\n });\n }\n\n public requestQuoteApprove(quoteId: number, parentPolicy: number): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/communication`, {\n identificacion: parentPolicy ? `${quoteId}-${parentPolicy}` : `${quoteId}`,\n tipo: \"Aprobacion\",\n });\n }\n\n public requestQuotePayment(quoteId: number): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/communication`, {\n identificacion: quoteId,\n tipo: \"Pago\",\n });\n }\n\n public setQuote(quoteData: acselInterfaces, quoteId?: number): Observable {\n console.warn(quoteData.data[\"vehiculo\"]);\n if (quoteId) {\n return this.http.put(`${this.baseUrl}/api/unit/Quotes/${quoteId}`, quoteData);\n } else {\n return this.http.post(`${this.baseUrl}/api/unit/Quotes`, quoteData);\n }\n }\n\n public uploadDocument(\n quoteId: number,\n formData: FormData,\n transactionType: string,\n operationType: string\n ): Observable {\n // transactionType - Ninguno | Matricula | Inspeccion | Reclamacion | Imagen | VideoInspeccion | Pasaporte\n // operationType - Cotizacion | Emision | Renovacion | Endoso | Reclamacion\n return this.http.post(\n `${this.baseUrl}/api/unit/Documents?tipoTransaccion=${transactionType}&tipoOperacion=${operationType}&referencia=${quoteId}`,\n formData\n );\n }\n\n public uploadTuition(quoteId: number, formData: FormData): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/Documents/matricula?referencia=${quoteId}`, formData);\n }\n\n public sendInvoiceToClient(policyNumber: string, invoiceId: string): Observable {\n return this.http.post(`${this.baseUrl}/api/unit/communication`, {\n identificacion: `${policyNumber}|${invoiceId}`,\n tipo: \"ConfirmacionPago\",\n });\n }\n\n public validateChasis(chasis: string): Observable {\n return this.http.get(`${this.baseUrl}/api/unit/Vehicles/restriction/${chasis}`);\n }\n}\n","export enum CodProducts {\n PorLoQueConduces = \"A-KM\",\n ParaTuAuto = \"A-PA\",\n PorSiChocas = \"A-PC\",\n PorSiPierdesTuAuto = \"A-PT\",\n ParaTuSeguroDeLey = \"A-PL\",\n AutoComprensivo = \"B-AC\",\n VidaCredito = \"B-VC\",\n ParaTuMejorAmigo = \"F-MA\",\n PorSiTeEnfermas = \"S-EN\",\n ParaSuBienestar = \"F-BD\",\n PorSiTeAccidentas = \"F-AP\",\n PorSiPierdesTusIngresos = \"F-IN\",\n ParaTuBici = \"A-BR\",\n EmergenciasDelHogar = \"F-EH\",\n ParaTusEquipos = \"A-EE\",\n VidaHipotecario = \"B-VH\",\n TarjetaDeCredito = \"B-TC\",\n}\n","export enum IdentificationType {\n Cedula = \"D\",\n Pasaporte = \"E\",\n International = \"I\",\n Menor = \"M\",\n RNC = \"J\",\n}\n\nexport enum IdentificationTypeDescription {\n Cedula = \"Cédula\",\n RNC = \"RNC\",\n Passport = \"Pasaporte\",\n}\n","\n","import { Component, Input } from \"@angular/core\";\nimport { MenuSection } from \"src/app/Header/Types/menu.interface\";\n\n@Component({\n selector: \"app-breadcrum-option\",\n templateUrl: \"breadcrum-link-option.component.html\",\n styleUrls: [\"breadcrum-link-option.component.scss\"],\n})\nexport class BreadcrumLinkOptionComponent {\n @Input() public menuOptions: MenuSection[];\n @Input() public dashboardTitle: string;\n public defaultIcon: string = \"assets/images/icons/empty-icon.svg\";\n}\n","\n
\n
\n\n
\n \"visa-logo\"\n \n
AMERICAN EXPRESS
\n
\n
\n\n {{ currentCreditCardNumber | mask: creditCardMask }}\n **** **** **** ****\n\n
\n
Mes / Año
\n
** / **
\n
{{ dividedDate }}
\n
\n\n","import { Component, Input, OnInit } from \"@angular/core\";\nimport { BehaviorSubject } from \"rxjs\";\n\nimport { CreditCardMasks, getCreditCardType } from \"@salud/FacturacionCobranza/PagoEnLinea/Helpers/credit-card.helper\";\nimport { CreditCardType } from \"@salud/FacturacionCobranza/PagoEnLinea/Types/Enums/credit-card-type.enum\";\n\n@Component({\n selector: \"app-credit-card\",\n templateUrl: \"./credit-card.component.html\",\n styleUrls: [\"./credit-card.component.scss\"],\n})\nexport class CreditCardComponent implements OnInit {\n @Input() public set creditCardNumber(creditCardNumber: string) {\n this.creditCardNumberSource.next(creditCardNumber);\n }\n\n public dividedDate: string;\n @Input() public set expirationDate(newExpirationDate: string) {\n if (newExpirationDate) {\n this.dividedDate = `${newExpirationDate.slice(0, 2)} / ${newExpirationDate.slice(2, 4)}`;\n } else {\n this.dividedDate = \"\";\n }\n }\n private creditCardNumberSource = new BehaviorSubject(\"\");\n\n public creditCardMask: string = CreditCardMasks[CreditCardType.Visa];\n\n public CreditCardType = CreditCardType;\n public currentCreditCardType: CreditCardType;\n public creditCardNumber$ = this.creditCardNumberSource.asObservable();\n public currentCreditCardNumber = \"\";\n\n public ngOnInit(): void {\n this.creditCardNumber$.subscribe((cardNumber) => {\n const creditCardType = getCreditCardType(cardNumber);\n this.currentCreditCardNumber = cardNumber;\n this.currentCreditCardType = getCreditCardType(cardNumber);\n if (creditCardType) {\n this.creditCardMask = CreditCardMasks[creditCardType];\n }\n });\n }\n}\n","export const DATE_FORMAT = \"dd/MM/yyyy\";\n","import { TipoIdentificacionId } from \"@shared/Entities/Usuario/identificacionId.entity\";\n\nexport class NuevoUsuarioAdminCorporativo{\n email: string;\n nombres: string;\n apellidos: string;\n telefono: string;\n identificacion: string;\n tipoIdentificacionId: TipoIdentificacionId;\n empresas: EmpresaNuevoUsuarioAdminCorporativo[] = [];\n}\n\nexport class EmpresaNuevoUsuarioAdminCorporativo{\n nombre: string;\n rnc: string;\n cuentas: CuentaNuevoUsuarioAdminCorporativo[];\n}\n\nexport class CuentaNuevoUsuarioAdminCorporativo{\n nombre: string;\n codigo: string;\n afiFondoId: number;\n numero: string;\n afiFondoNombre: string;\n afiCuentasAfiPermisos:CuentasAfiPermisoNuevoUsuarioAdminCorporativo[];\n}\n\nexport class CuentasAfiPermisoNuevoUsuarioAdminCorporativo{\n afiPermisoId: number;\n afiPermisoNombre: string;\n}\n","import { ClienteAfi } from '../cliente-afi';\nimport { Fondo } from '../fondo.entity';\nimport { Cuenta } from '../cuenta.entity';\nimport { Banco } from '../Banco/banco.entity';\nimport { CuentaBancaria } from '../Banco/cuenta.entity';\nimport { File } from '../../General/file.entity';\nimport { Moneda } from '../moneda.entity';\n\nexport class NotificacionAporte {\n numeroSolicitud?: string;\n fechaRegistro?: Date;\n tipoAporte?: string;\n nombreCliente?: string;\n identificacionCliente?: string;\n empresa?: ClienteAfi;\n fondo?: Fondo;\n nombreFondo?: string;\n cuenta?: Cuenta;\n numeroCuenta?: string;\n moneda?: Moneda;\n monedaAporte?: string;\n valorAporte?: number;\n fechaAporte?: Date;\n formaDeposito?: string;\n banco?: Banco;\n nombreBanco?: string;\n cuentaBancaria?: CuentaBancaria;\n cuentaBanco?: string;\n tipoCuentaBanco?: string;\n nombrePromotor?: string;\n numeroCheque?: string;\n comentarios?: string;\n\n archivosObjects?: File[];\n\n finished?: boolean;\n}","import { ReferringDoctor } from \"@salud/Autorizaciones/Formulario/Types/referring-doctor.enum\";\n\nimport { Afiliado } from \"./afiliado.entity\";\nimport { DiagnosticoARS } from \"./diagnosticoARS.entity\";\nimport { MedicoARS } from \"./medicoARS.entity\";\nimport { OrigenARS } from \"./origenARS.entity\";\nimport { PrestacionAgregarDto, PrestacionARS } from \"./prestacionARS.entity\";\nimport { ServicioARS } from \"./servicioARS.entity\";\n\nexport class Autorizacion {\n public numeroCaso?: string;\n public idInteraccion?: number;\n public IdInteraccion?: number;\n public Numero?: number | string;\n public afiliado?: Afiliado;\n public identificacion?: string;\n public servicio?: ServicioARS;\n public CodigoEstado?: number;\n public fecha?: Date;\n\n public origen?: OrigenARS;\n public medicoTratante?: MedicoARS;\n public medicoRemitente?: ReferringDoctor;\n public diagnostico?: DiagnosticoARS;\n\n public telefono?: string;\n public correo?: string;\n public ValorReclamado?: number;\n public DescripcionServicio?: string;\n public DescripcionDiagnostico?: string;\n public prestaciones?: PrestacionARS[];\n public Cedula?: string | number;\n public NumeroAfiliado?: string | number;\n public NombresAfiliado?: string | number;\n public historialDeEstados: AutorizacionEstado[];\n public CantidadProcedimientos: number | string;\n}\n\nexport class AutorizacionAgregarDto {\n public casoAutorizacion?: string;\n\n public numeroAfiliado?: string;\n public codigoServicio?: string;\n\n public codigoOrigen?: string;\n public codigoMedicoTratante?: string;\n public codigoMedicoRemitente?: string;\n public codigoDiagnostico?: string;\n\n public telefonoAfiliado?: string;\n public correoElectronicoAfiliado?: string;\n\n public prestaciones?: PrestacionAgregarDto[];\n}\n\nexport class AutorizacionEstado {\n public Id?: string | number;\n public Fecha?: Date | string;\n public CodigoEstado?: string | number;\n public DescripcionEstado?: string;\n public CodigoEstadoAnterior?: number;\n public DescripcionEstadoAnterior?: string;\n public CodigoCausal?: number;\n public DescripcionCausal?: string;\n public CodigoUsuario?: string;\n public Observacion?: string;\n}\n","import { Afiliado } from './afiliado.entity';\n\nexport class FiltroAutorizacion {\n afiliado?: Afiliado;\n desde?: Date;\n hasta?: Date;\n numeroAutorizacion?: number;\n}","export enum ReportFormat {\n PDF = 0,\n Excel = 1,\n}\n","import { Component, OnInit, Input } from \"@angular/core\";\nimport { ControlValueAccessor, UntypedFormControl } from \"@angular/forms\";\n\nimport { createCustomInputControlValueAccessor } from \"../../Helpers/form.helper\";\n\n@Component({\n selector: \"app-search-by-drop-down\",\n templateUrl: \"./search-by-drop-down.component.html\",\n providers: [createCustomInputControlValueAccessor(SearchByDropDownComponent)],\n})\nexport class SearchByDropDownComponent implements OnInit, ControlValueAccessor {\n public searchTerm: UntypedFormControl;\n @Input() public label = \"Buscar por\";\n @Input() public searchTerms: string[];\n @Input() public placeholder = \"Seleccionar\";\n\n public ngOnInit(): void {\n this.searchTerm = new UntypedFormControl();\n }\n\n public writeValue(value: string): void {\n if (value) {\n this.searchTerm.setValue(value, { emitEvent: true });\n }\n }\n\n public registerOnChange(fn: (value: string) => void): void {\n this.searchTerm.valueChanges.subscribe(fn);\n }\n\n public registerOnTouched(fn: () => void): void {\n this.searchTerm.markAsTouched();\n fn();\n }\n\n public setDisabledState?(isDisabled: boolean): void {\n isDisabled\n ? this.searchTerm.disable({ emitEvent: false, onlySelf: true })\n : this.searchTerm.enable({ emitEvent: false, onlySelf: true });\n }\n}\n","
\n \n \n
\n","import { Pipe, PipeTransform } from \"@angular/core\";\n\n@Pipe({\n name: \"phone\",\n})\nexport class PhonePipe implements PipeTransform {\n public transform(value: string = \"\"): string {\n const firstSlice = value?.slice(0, 3);\n const secondSlice = value?.slice(3, 6);\n const thirdSlice = value?.slice(6, 10);\n\n return `${firstSlice || \"\"}${secondSlice ? \"-\" + secondSlice : \"\"}${thirdSlice ? \"-\" + thirdSlice : \"\"}`;\n }\n}\n","import { Pipe, PipeTransform } from \"@angular/core\";\n\n@Pipe({\n name: \"switchMultiCase\",\n})\nexport class SwitchMultiCasePipe implements PipeTransform {\n public transform(cases: unknown[], switchOption: string): boolean | string {\n return cases.includes(switchOption) ? switchOption : !switchOption;\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { environment } from \"@environments/environment\";\nimport { Observable, ReplaySubject } from \"rxjs\";\n\nimport { Categoria } from \"../Entities/Categoria/categoria.entity\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class CategoriasRepository {\n private categorias: ReplaySubject;\n\n constructor(private http: HttpClient) {}\n\n //GET\n obtenerCategorias(overwrite = false): Observable {\n if (!this.categorias || overwrite) {\n if (!this.categorias) this.categorias = new ReplaySubject(1);\n\n this.http.get(`${enlineaBackendUrl}/api/Categorias?spinner=true`).subscribe((results) => {\n this.categorias.next(results);\n });\n }\n\n return this.categorias;\n }\n obtenerCategoriaRoles(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Categorias/ObtenerCategoriasConRoles`);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { environment } from \"@environments/environment\";\nimport { Observable, ReplaySubject } from \"rxjs\";\n\nimport { PerfilRole } from \"../Entities/Perfil/perfilRole.entity\";\nimport { Opcion } from \"../Entities/Rol/opcion.entity\";\nimport { Rol } from \"../Entities/Rol/rol.entity\";\n\nconst { enlineaBackendUrl } = environment;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class RolesRepository {\n private opciones: ReplaySubject;\n private roles: ReplaySubject;\n private readonly rolesFiduciaria: ReplaySubject;\n\n constructor(private http: HttpClient) {}\n\n //GET\n getRoles(overwrite = false): Observable {\n if (!this.roles || overwrite) {\n if (!this.roles) this.roles = new ReplaySubject(1);\n\n this.http.get(`${enlineaBackendUrl}/api/Roles?spinner=true`).subscribe((results) => {\n this.roles.next(results);\n });\n }\n\n return this.roles;\n }\n\n public getRolesFiduciaria(overwrite = false): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/FiduciariaRoles/ObtenerRoles?spinner=true`);\n }\n\n GetRolesByPerfilId(id): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Perfil/ObtenerRol/${id}`);\n }\n getOpciones(overwrite = false): Observable {\n if (!this.opciones || overwrite) {\n if (!this.opciones) this.opciones = new ReplaySubject(1);\n\n this.http.get(`${enlineaBackendUrl}/api/Roles/ObtenerOpciones`).subscribe((results) => {\n this.opciones.next(results);\n });\n }\n\n return this.opciones;\n }\n\n //POST\n saveRol(rol: Rol): Observable {\n return this.http.post(`${enlineaBackendUrl}/api/Roles`, rol);\n }\n\n //PATCH\n updateRol(rol: Rol): Observable {\n return this.http.patch(`${enlineaBackendUrl}/api/Roles`, rol);\n }\n\n //DELETE\n deleteRol(rol: Rol): Observable {\n return this.http.delete(`${enlineaBackendUrl}/api/Roles/${rol.id}`);\n }\n}\n","import { HttpClient } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { Cacheable } from \"ts-cacheable\";\n\nimport { environment } from \"@environments/environment\";\n\nimport { Option } from \"@shared/Entities/General/option.entity\";\nimport { CompanyAlly } from \"@shared/Interfaces/company-ally.interface\";\nimport { PadronPerson } from \"@shared/Interfaces/person\";\n\nconst { enlineaBackendUrl } = environment;\n@Injectable({\n providedIn: \"root\",\n})\nexport class SharedOptionsRepository {\n constructor(private http: HttpClient) {}\n\n @Cacheable()\n public getSexs(): Observable {\n return of([\n {\n codigo: \"M\",\n nombre: \"Masculino\",\n },\n {\n codigo: \"F\",\n nombre: \"Femenino\",\n },\n ]);\n }\n\n @Cacheable()\n public getMaritalStatus(): Observable {\n return of([\n {\n codigo: \"S\",\n nombre: \"Soltero\",\n },\n {\n codigo: \"C\",\n nombre: \"Casado\",\n },\n ]);\n }\n\n public getPersonByIdentification(identification: string): Observable {\n return this.http.get(`${enlineaBackendUrl}/${identification}`);\n }\n\n @Cacheable()\n public getIdentificationTypes(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/TipoIdentificaciones`);\n }\n\n @Cacheable()\n public getProvinces(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/Provincias/ObtenerProvincias`);\n }\n\n @Cacheable()\n public getCompanyAlly(): Observable {\n return this.http.get(`${enlineaBackendUrl}/api/unit/Company/aliados`);\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\nimport { Option } from \"@shared/Entities/General/option.entity\";\nimport { CompanyAlly } from \"@shared/Interfaces/company-ally.interface\";\nimport { PadronPerson } from \"@shared/Interfaces/person\";\n\nimport { SharedOptionsRepository } from \"../Repositories/shared-options.repository\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class SharedOptionsService {\n constructor(private sharedOptionsRepository: SharedOptionsRepository) {}\n\n public getSexs(): Observable {\n return this.sharedOptionsRepository.getSexs();\n }\n\n public getMaritalStatus(): Observable {\n return this.sharedOptionsRepository.getMaritalStatus();\n }\n\n public getPersonByIdentification(identification: string): Observable {\n return this.sharedOptionsRepository.getPersonByIdentification(identification);\n }\n\n public getIdentificationTypes(): Observable {\n return this.sharedOptionsRepository.getIdentificationTypes();\n }\n\n public getProvinces(): Observable {\n return this.sharedOptionsRepository.getProvinces();\n }\n\n public getCompanyAlly(): Observable {\n return this.sharedOptionsRepository.getCompanyAlly();\n }\n}\n","import { AbstractControl, ValidatorFn, NG_VALIDATORS, Validator, UntypedFormControl } from '@angular/forms';\nimport { Directive } from '@angular/core';\n\n// validation function\nfunction validatePermissions(): ValidatorFn {\n return (c: AbstractControl) => {\n\n let emailRegex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (!c.value || emailRegex.test(c.value))\n return null;\n else {\n return {\n emailCheck: {\n invalid: true\n }\n };\n }\n }\n}\n\n@Directive({\n selector: '[email-format]',\n providers: [\n { provide: NG_VALIDATORS, useExisting: EmailFormatValidator, multi: true }\n ]\n})\nexport class EmailFormatValidator implements Validator {\n validator: ValidatorFn;\n\n constructor() {\n this.validator = validatePermissions();\n }\n\n validate(c: UntypedFormControl) {\n return this.validator(c);\n }\n}","import { AbstractControl, ValidatorFn, NG_VALIDATORS, Validator, UntypedFormControl } from '@angular/forms';\nimport { Directive } from '@angular/core';\n\n// validation function\nfunction validatePermissions(): ValidatorFn {\n return (c: AbstractControl) => {\n\n let phoneRegex = /^(\\d)(?!\\1+$)\\d{9}$/;\n\n if (phoneRegex.test(c.value))\n return null;\n else {\n return {\n phoneCheck: {\n invalid: true\n }\n };\n }\n }\n}\n\n@Directive({\n selector: '[phone-format]',\n providers: [\n { provide: NG_VALIDATORS, useExisting: PhoneFormatValidator, multi: true }\n ]\n})\nexport class PhoneFormatValidator implements Validator {\n validator: ValidatorFn;\n\n constructor() {\n this.validator = validatePermissions();\n }\n\n validate(c: UntypedFormControl) {\n return this.validator(c);\n }\n}","
\n \n \n {{ item.description }}\n \n \n
\n \n
\n \n {{\n item.description\n }}\n \n
\n
\n
\n
\n","import { Component, Input } from \"@angular/core\";\n\nimport { CardsGroup } from \"./card-group.type\";\n\n/** The card group component is used to display a group of the data related to each other. Mostly is used as table heading */\n@Component({\n selector: \"uni-cards-group\",\n templateUrl: \"./cards-group.component.html\",\n styleUrls: [\"./cards-group.component.scss\"],\n})\nexport class UniCardsGroupComponent {\n /**\n * List of the cards elements\n */\n @Input() public cardsGroup: CardsGroup;\n\n /**\n * If the title is inline or not\n */\n @Input() public inlineTitle = false;\n}\n","import { Component, Input, Optional, Self } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';\n\n\n@Component({\n selector: 'uni-checkbox',\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.scss'],\n})\nexport class UniCheckboxComponent implements ControlValueAccessor {\n private _checked: boolean;\n\n @Input() public set checked(value: boolean) {\n this._checked = value;\n this._controlValueAccessorChangeFn(value);\n }\n\n public get checked(): boolean {\n return this._checked;\n }\n\n @Input() public disabled: boolean;\n\n @Input() public get required(): boolean {\n const validators = this.ngControl?.control?.validator;\n return this._required ?? validators ? validators({} as AbstractControl)?.hasOwnProperty(\"required\") : false;\n }\n\n public set required(value: boolean) {\n this._required = value;\n }\n\n protected _required: boolean | undefined;\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n private _onTouched: () => void = () => {};\n private _controlValueAccessorChangeFn: (value: any) => void = () => {};\n\n constructor(@Self() @Optional() private ngControl: NgControl) {\n this.ngControl.valueAccessor = this;\n }\n \n public writeValue(checked: boolean): void {\n this.checked = checked;\n }\n public registerOnChange(fn: (value: any)=> void): void {\n this._controlValueAccessorChangeFn = fn;\n }\n\n public registerOnTouched(fn: ()=> void): void {\n this._onTouched = fn;\n }\n\n public setDisabledState?(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n public onCheckboxChange(): void {\n this.checked = !this.checked;\n this._controlValueAccessorChangeFn(this.checked);\n this._onTouched();\n }\n\n}\n","","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ViewChild, Input, Output, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nclass PdfJsViewerComponent {\r\n constructor() {\r\n this.onBeforePrint = new EventEmitter();\r\n this.onAfterPrint = new EventEmitter();\r\n this.onDocumentLoad = new EventEmitter();\r\n this.onPageChange = new EventEmitter();\r\n this.externalWindow = false;\r\n this.showSpinner = true;\r\n this.openFile = true;\r\n this.download = true;\r\n this.viewBookmark = true;\r\n this.print = true;\r\n this.fullScreen = true;\r\n //@Input() public showFullScreen: boolean;\r\n this.find = true;\r\n this.useOnlyCssZoom = false;\r\n this.errorOverride = false;\r\n this.errorAppend = true;\r\n this.diagnosticLogs = true;\r\n }\r\n set page(_page) {\r\n this._page = _page;\r\n if (this.PDFViewerApplication) {\r\n this.PDFViewerApplication.page = this._page;\r\n }\r\n else {\r\n if (this.diagnosticLogs)\r\n console.warn(\"Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)\");\r\n }\r\n }\r\n get page() {\r\n if (this.PDFViewerApplication) {\r\n return this.PDFViewerApplication.page;\r\n }\r\n else {\r\n if (this.diagnosticLogs)\r\n console.warn(\"Document is not loaded yet!!!. Try to retrieve page# after full load.\");\r\n }\r\n }\r\n set pdfSrc(_src) {\r\n this._src = _src;\r\n }\r\n get pdfSrc() {\r\n return this._src;\r\n }\r\n get PDFViewerApplicationOptions() {\r\n let pdfViewerOptions = null;\r\n if (this.externalWindow) {\r\n if (this.viewerTab) {\r\n pdfViewerOptions = this.viewerTab.PDFViewerApplicationOptions;\r\n }\r\n }\r\n else {\r\n if (this.iframe.nativeElement.contentWindow) {\r\n pdfViewerOptions = this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions;\r\n }\r\n }\r\n return pdfViewerOptions;\r\n }\r\n get PDFViewerApplication() {\r\n let pdfViewer = null;\r\n if (this.externalWindow) {\r\n if (this.viewerTab) {\r\n pdfViewer = this.viewerTab.PDFViewerApplication;\r\n }\r\n }\r\n else {\r\n if (this.iframe.nativeElement.contentWindow) {\r\n pdfViewer = this.iframe.nativeElement.contentWindow.PDFViewerApplication;\r\n }\r\n }\r\n return pdfViewer;\r\n }\r\n receiveMessage(viewerEvent) {\r\n if (viewerEvent.data && viewerEvent.data.viewerId && viewerEvent.data.event) {\r\n let viewerId = viewerEvent.data.viewerId;\r\n let event = viewerEvent.data.event;\r\n let param = viewerEvent.data.param;\r\n if (this.viewerId == viewerId) {\r\n if (this.onBeforePrint && event == \"beforePrint\") {\r\n this.onBeforePrint.emit();\r\n }\r\n else if (this.onAfterPrint && event == \"afterPrint\") {\r\n this.onAfterPrint.emit();\r\n }\r\n else if (this.onDocumentLoad && event == \"pagesLoaded\") {\r\n this.onDocumentLoad.emit(param);\r\n }\r\n else if (this.onPageChange && event == \"pageChange\") {\r\n this.onPageChange.emit(param);\r\n }\r\n }\r\n }\r\n }\r\n ngOnInit() {\r\n window.addEventListener(\"message\", this.receiveMessage.bind(this), false);\r\n if (!this.externalWindow) { // Load pdf for embedded views\r\n this.loadPdf();\r\n }\r\n }\r\n refresh() {\r\n this.loadPdf();\r\n }\r\n loadPdf() {\r\n if (!this._src) {\r\n return;\r\n }\r\n // console.log(`Tab is - ${this.viewerTab}`);\r\n // if (this.viewerTab) {\r\n // console.log(`Status of window - ${this.viewerTab.closed}`);\r\n // }\r\n if (this.externalWindow && (typeof this.viewerTab === 'undefined' || this.viewerTab.closed)) {\r\n this.viewerTab = window.open('', '_blank', this.externalWindowOptions || '');\r\n if (this.viewerTab == null) {\r\n if (this.diagnosticLogs)\r\n console.error(\"ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled.\");\r\n return;\r\n }\r\n if (this.showSpinner) {\r\n this.viewerTab.document.write(`\r\n \r\n
\r\n `);\r\n }\r\n }\r\n let fileUrl;\r\n //if (typeof this.src === \"string\") {\r\n // fileUrl = this.src;\r\n //}\r\n if (this._src instanceof Blob) {\r\n fileUrl = encodeURIComponent(URL.createObjectURL(this._src));\r\n }\r\n else if (this._src instanceof Uint8Array) {\r\n let blob = new Blob([this._src], { type: \"application/pdf\" });\r\n fileUrl = encodeURIComponent(URL.createObjectURL(blob));\r\n }\r\n else {\r\n fileUrl = this._src;\r\n }\r\n let viewerUrl;\r\n if (this.viewerFolder) {\r\n viewerUrl = `${this.viewerFolder}/web/viewer.html`;\r\n }\r\n else {\r\n viewerUrl = `assets/pdfjs/web/viewer.html`;\r\n }\r\n viewerUrl += `?file=${fileUrl}`;\r\n if (typeof this.viewerId !== 'undefined') {\r\n viewerUrl += `&viewerId=${this.viewerId}`;\r\n }\r\n if (typeof this.onBeforePrint !== 'undefined') {\r\n viewerUrl += `&beforePrint=true`;\r\n }\r\n if (typeof this.onAfterPrint !== 'undefined') {\r\n viewerUrl += `&afterPrint=true`;\r\n }\r\n if (typeof this.onDocumentLoad !== 'undefined') {\r\n viewerUrl += `&pagesLoaded=true`;\r\n }\r\n if (typeof this.onPageChange !== 'undefined') {\r\n viewerUrl += `&pageChange=true`;\r\n }\r\n if (this.downloadFileName) {\r\n if (!this.downloadFileName.endsWith(\".pdf\")) {\r\n this.downloadFileName += \".pdf\";\r\n }\r\n viewerUrl += `&fileName=${this.downloadFileName}`;\r\n }\r\n if (typeof this.openFile !== 'undefined') {\r\n viewerUrl += `&openFile=${this.openFile}`;\r\n }\r\n if (typeof this.download !== 'undefined') {\r\n viewerUrl += `&download=${this.download}`;\r\n }\r\n if (this.startDownload) {\r\n viewerUrl += `&startDownload=${this.startDownload}`;\r\n }\r\n if (typeof this.viewBookmark !== 'undefined') {\r\n viewerUrl += `&viewBookmark=${this.viewBookmark}`;\r\n }\r\n if (typeof this.print !== 'undefined') {\r\n viewerUrl += `&print=${this.print}`;\r\n }\r\n if (this.startPrint) {\r\n viewerUrl += `&startPrint=${this.startPrint}`;\r\n }\r\n if (typeof this.fullScreen !== 'undefined') {\r\n viewerUrl += `&fullScreen=${this.fullScreen}`;\r\n }\r\n // if (this.showFullScreen) {\r\n // viewerUrl += `&showFullScreen=${this.showFullScreen}`;\r\n // }\r\n if (typeof this.find !== 'undefined') {\r\n viewerUrl += `&find=${this.find}`;\r\n }\r\n if (this.lastPage) {\r\n viewerUrl += `&lastpage=${this.lastPage}`;\r\n }\r\n if (this.rotatecw) {\r\n viewerUrl += `&rotatecw=${this.rotatecw}`;\r\n }\r\n if (this.rotateccw) {\r\n viewerUrl += `&rotateccw=${this.rotateccw}`;\r\n }\r\n if (this.cursor) {\r\n viewerUrl += `&cursor=${this.cursor}`;\r\n }\r\n if (this.scroll) {\r\n viewerUrl += `&scroll=${this.scroll}`;\r\n }\r\n if (this.spread) {\r\n viewerUrl += `&spread=${this.spread}`;\r\n }\r\n if (this.locale) {\r\n viewerUrl += `&locale=${this.locale}`;\r\n }\r\n if (this.useOnlyCssZoom) {\r\n viewerUrl += `&useOnlyCssZoom=${this.useOnlyCssZoom}`;\r\n }\r\n if (this._page || this.zoom || this.nameddest || this.pagemode)\r\n viewerUrl += \"#\";\r\n if (this._page) {\r\n viewerUrl += `&page=${this._page}`;\r\n }\r\n if (this.zoom) {\r\n viewerUrl += `&zoom=${this.zoom}`;\r\n }\r\n if (this.nameddest) {\r\n viewerUrl += `&nameddest=${this.nameddest}`;\r\n }\r\n if (this.pagemode) {\r\n viewerUrl += `&pagemode=${this.pagemode}`;\r\n }\r\n if (this.errorOverride || this.errorAppend) {\r\n viewerUrl += `&errorMessage=${this.errorMessage}`;\r\n if (this.errorOverride) {\r\n viewerUrl += `&errorOverride=${this.errorOverride}`;\r\n }\r\n if (this.errorAppend) {\r\n viewerUrl += `&errorAppend=${this.errorAppend}`;\r\n }\r\n }\r\n if (this.externalWindow) {\r\n this.viewerTab.location.href = viewerUrl;\r\n }\r\n else {\r\n this.iframe.nativeElement.src = viewerUrl;\r\n }\r\n // console.log(`\r\n // pdfSrc = ${this.pdfSrc}\r\n // fileUrl = ${fileUrl}\r\n // externalWindow = ${this.externalWindow}\r\n // downloadFileName = ${this.downloadFileName}\r\n // viewerFolder = ${this.viewerFolder}\r\n // openFile = ${this.openFile}\r\n // download = ${this.download}\r\n // startDownload = ${this.startDownload}\r\n // viewBookmark = ${this.viewBookmark}\r\n // print = ${this.print}\r\n // startPrint = ${this.startPrint}\r\n // fullScreen = ${this.fullScreen}\r\n // find = ${this.find}\r\n // lastPage = ${this.lastPage}\r\n // rotatecw = ${this.rotatecw}\r\n // rotateccw = ${this.rotateccw}\r\n // cursor = ${this.cursor}\r\n // scrollMode = ${this.scroll}\r\n // spread = ${this.spread}\r\n // page = ${this.page}\r\n // zoom = ${this.zoom}\r\n // nameddest = ${this.nameddest}\r\n // pagemode = ${this.pagemode}\r\n // pagemode = ${this.errorOverride}\r\n // pagemode = ${this.errorAppend}\r\n // pagemode = ${this.errorMessage}\r\n // `);\r\n }\r\n}\r\nPdfJsViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPdfJsViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.0.4\", type: PdfJsViewerComponent, selector: \"ng2-pdfjs-viewer\", inputs: { viewerId: \"viewerId\", viewerFolder: \"viewerFolder\", externalWindow: \"externalWindow\", showSpinner: \"showSpinner\", downloadFileName: \"downloadFileName\", openFile: \"openFile\", download: \"download\", startDownload: \"startDownload\", viewBookmark: \"viewBookmark\", print: \"print\", startPrint: \"startPrint\", fullScreen: \"fullScreen\", find: \"find\", zoom: \"zoom\", nameddest: \"nameddest\", pagemode: \"pagemode\", lastPage: \"lastPage\", rotatecw: \"rotatecw\", rotateccw: \"rotateccw\", cursor: \"cursor\", scroll: \"scroll\", spread: \"spread\", locale: \"locale\", useOnlyCssZoom: \"useOnlyCssZoom\", errorOverride: \"errorOverride\", errorAppend: \"errorAppend\", errorMessage: \"errorMessage\", diagnosticLogs: \"diagnosticLogs\", externalWindowOptions: \"externalWindowOptions\", page: \"page\", pdfSrc: \"pdfSrc\" }, outputs: { onBeforePrint: \"onBeforePrint\", onAfterPrint: \"onAfterPrint\", onDocumentLoad: \"onDocumentLoad\", onPageChange: \"onPageChange\" }, viewQueries: [{ propertyName: \"iframe\", first: true, predicate: [\"iframe\"], descendants: true, static: true }], ngImport: i0, template: ``, isInline: true });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerComponent, decorators: [{\r\n type: Component,\r\n args: [{\r\n selector: 'ng2-pdfjs-viewer',\r\n template: ``\r\n }]\r\n }], propDecorators: { iframe: [{\r\n type: ViewChild,\r\n args: ['iframe', { static: true }]\r\n }], viewerId: [{\r\n type: Input\r\n }], onBeforePrint: [{\r\n type: Output\r\n }], onAfterPrint: [{\r\n type: Output\r\n }], onDocumentLoad: [{\r\n type: Output\r\n }], onPageChange: [{\r\n type: Output\r\n }], viewerFolder: [{\r\n type: Input\r\n }], externalWindow: [{\r\n type: Input\r\n }], showSpinner: [{\r\n type: Input\r\n }], downloadFileName: [{\r\n type: Input\r\n }], openFile: [{\r\n type: Input\r\n }], download: [{\r\n type: Input\r\n }], startDownload: [{\r\n type: Input\r\n }], viewBookmark: [{\r\n type: Input\r\n }], print: [{\r\n type: Input\r\n }], startPrint: [{\r\n type: Input\r\n }], fullScreen: [{\r\n type: Input\r\n }], find: [{\r\n type: Input\r\n }], zoom: [{\r\n type: Input\r\n }], nameddest: [{\r\n type: Input\r\n }], pagemode: [{\r\n type: Input\r\n }], lastPage: [{\r\n type: Input\r\n }], rotatecw: [{\r\n type: Input\r\n }], rotateccw: [{\r\n type: Input\r\n }], cursor: [{\r\n type: Input\r\n }], scroll: [{\r\n type: Input\r\n }], spread: [{\r\n type: Input\r\n }], locale: [{\r\n type: Input\r\n }], useOnlyCssZoom: [{\r\n type: Input\r\n }], errorOverride: [{\r\n type: Input\r\n }], errorAppend: [{\r\n type: Input\r\n }], errorMessage: [{\r\n type: Input\r\n }], diagnosticLogs: [{\r\n type: Input\r\n }], externalWindowOptions: [{\r\n type: Input\r\n }], page: [{\r\n type: Input\r\n }], pdfSrc: [{\r\n type: Input\r\n }] } });\n\nclass PdfJsViewerModule {\r\n static forRoot() {\r\n return {\r\n ngModule: PdfJsViewerModule,\r\n };\r\n }\r\n}\r\nPdfJsViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nPdfJsViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerModule, declarations: [PdfJsViewerComponent], imports: [CommonModule], exports: [PdfJsViewerComponent] });\r\nPdfJsViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerModule, imports: [CommonModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.0.4\", ngImport: i0, type: PdfJsViewerModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [CommonModule],\r\n declarations: [PdfJsViewerComponent],\r\n exports: [PdfJsViewerComponent],\r\n }]\r\n }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { PdfJsViewerComponent, PdfJsViewerModule };\n//# sourceMappingURL=ng2-pdfjs-viewer.mjs.map\n"],"x_google_ignoreList":[75,76,77,78,79,80]}