PageSourceSearch

https://buenosaires.gob.ar/inicio/977.de2d0a74b00d6ac2.js

js buenosaires.gob.ar collected 2026-09-24 08:28:40 UTC 229,435 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportal_ciudad=self.webpackChunkportal_ciudad||[]).push([[977],{977(Ks,Z,_){_.d(Z,{GestionTramiteModule:()=>Hs});var ee=_(6012),b=_(9417),te=_(8132),l=_(2200),f=_(3077),s=_(2615),G=_(7705),e=_(3664),I=_(5420),N=_(931),O=_(2046);let j=(()=>{class t{constructor(){this.configService=(0,s.WQX)(I.s),this.document=(0,s.WQX)(s.qQL),this.tokenService=(0,s.WQX)(O.B),this.requestService=(0,s.WQX)(N.B),this.configJson=this.configService.getConfig()}getExamenPresecialDetalle(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/consulta?tipoDocumento=${i.tipoDocumento}&numeroDocumento=${i.numeroDocumento}&genero=${i.genero}&IdServicio=${i.IdServicio}`,null,this.tokenService.getHeader())}getGestionOtorgamientos(i){return this.requestService.get(this.configJson.backoffice_url+`tramite/pasos/${i}`,null,this.tokenService.getHeader())}redireccionarPagoInfracciones(i){return this.requestService.post(this.configJson.backoffice_url+"licencias/libre-infracciones",{uuid_paso_tramite:i,url_redireccion:this.configJson.application_url+"gestion-tramite",nro_doc_testing:""},null,this.tokenService.getHeader())}postFichaSalud(i){return this.requestService.post(this.configJson.backoffice_url+"std/paso/ficha-salud-boleta",i,null,this.tokenService.getHeader())}postEstadoPaso(i,a,o){return this.requestService.post(this.configJson.backoffice_url+"tramite/paso/actualizar",{uuid:i,estado:a,data:o},null,this.tokenService.getHeader())}postEstadoTramite(i,a,o){return this.requestService.post(this.configJson.backoffice_url+"tramite/actualizar-estado",{uuid:i,estado:a,data:o},null,this.tokenService.getHeader())}getEnlacesPatologias(i){return this.requestService.get(this.configJson.backoffice_url+`std/obtener-enlaces-patologia?uuid_tramite=${i}`,null,this.tokenService.getHeader())}getLinksPagoBUI(i){return this.requestService.get(this.configJson.backoffice_url+`std/obtener-url-boleta-sir?uuid_tramite=${i}`,null,this.tokenService.getHeader())}getEstadoPagoFichaSalud(i){return this.requestService.get(this.configJson.backoffice_url+`std/estado-tramite?uuid_tramite=${i}`,null,this.tokenService.getHeader())}getEstadoCharlaRenovacion(i){return this.requestService.get(this.configJson.backoffice_url+`curso?documento=${i.documento}&sexo=${i.sexo}`,null,this.tokenService.getHeader())}postEstado(i,a){return this.requestService.post(this.configJson.backoffice_url+"tramite/actualizar-estado",{uuid:i,estado:a},null,this.tokenService.getHeader())}getEsTaxista(){return this.requestService.get(this.configJson.backoffice_url+"licencias/es-chofer",null,this.tokenService.getHeader())}getCursoTaxista(){return this.requestService.get(this.configJson.backoffice_url+"licencias/chofer-curso",null,this.tokenService.getHeader())}getEstadoBoletaBUI(i){return this.requestService.get(this.configJson.backoffice_url+`boleta?nroBoleta=${i}`,null,this.tokenService.getHeader())}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class ie{}var S=_(2395),y=_(6497),w=_(9330);let k=(()=>{class t{constructor(){this.http=(0,s.WQX)(w.Qq),this.configService=(0,s.WQX)(I.s),this.tokenService=(0,s.WQX)(O.B),this.requestService=(0,s.WQX)(N.B),this.configJson=this.configService.getConfig()}getTurnoSucursales(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/sucursales?lat=${i.lat}&lng=${i.lon}&IdServicio=${i.IdServicio}&clase=${i.clase}&patologia=${i.patologia}`,null,this.tokenService.getHeader())}getTurnoSucursalesCurso(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/sucursales?IdServicio=${i}`,null,this.tokenService.getHeader())}getTurnoFechas(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/fechas?fechaDesde=${i.fecha}&IdServicio=${i.servicio}`,null,this.tokenService.getHeader())}getTurnoHoras(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/horas?fechaDesde=${i.date}&IdServicio=${i.idServicio}&sedeId=${i.sedeId}`,null,this.tokenService.getHeader())}getTurnoFechaProxima(i){return this.requestService.get(this.configJson.backoffice_url+`turnos/fechasProxima?IdServicio=${i.tipo_caja}&clase=${i.categoria_licencia}&patologia=${i.patologia}`,null,this.tokenService.getHeader())}postTurnoBloquear(i){return this.requestService.post(this.configJson.backoffice_url+"turnos/bloquear",i,null,this.tokenService.getHeader())}postTurnoReservar(i){return this.requestService.post(this.configJson.backoffice_url+"turnos/reservar",i,null,this.tokenService.getHeader())}getCoordenadas(i,a){return this.requestService.get(`https://servicios.usig.buenosaires.gob.ar/normalizar/?direccion=${i}%20${a},%20CABA`,null,null)}postActualizarEstadoPaso(i){return this.requestService.post("https://nba-dev-back.gcba.gob.ar/api/v1/tramite/paso/actualizar",i,null,this.tokenService.getHeader())}getPatologias(i){return this.requestService.get(`https://nba-dev-back.gcba.gob.ar/api/v1/std/obtener-filtros-sede-x-patologia?uuid_tramite=${i}`,null,this.tokenService.getHeader())}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var oe=_(2588),ae=_(1345),F=_(1335),p=_(886);function se(t,n){1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"curs
1o_educacion_vial.virtual_detalle.estado_en_proceso")))}function ne(t,n){1&t&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"curso_educacion_vial.virtual_detalle.estado_completado")))}function re(t,n){1&t&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"curso_educacion_vial.virtual_detalle.mensaje")," "))}function ce(t,n){1&t&&(e.j41(0,"div")(1,"h3",7),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"small"),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.nrm(7,"hr",23),e.k0s()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,2,"curso_educacion_vial.virtual_detalle.acceso")),e.R7$(3),e.SpI(" ",e.bMT(6,4,"curso_educacion_vial.virtual_detalle.mensaje_1")," "))}function le(t,n){1&t&&(e.j41(0,"small",24),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"curso_educacion_vial.virtual_detalle.programado")," "))}function de(t,n){1&t&&(e.j41(0,"small",24),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"curso_educacion_vial.virtual_detalle.aprobado")," "))}function ue(t,n){1&t&&(e.j41(0,"span",25),e.EFF(1,"pending"),e.k0s())}function _e(t,n){1&t&&(e.j41(0,"span",26),e.EFF(1,"check_circle"),e.k0s())}function pe(t,n){1&t&&(e.j41(0,"div",27)(1,"h3"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"a",28),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,2,"curso_educacion_vial.virtual_detalle.material")),e.R7$(3),e.JRh(e.bMT(6,4,"curso_educacion_vial.virtual_detalle.manual_conductor")))}function me(t,n){if(1&t&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.SpI(" ",i.direccion)}}function he(t,n){1&t&&(e.j41(0,"div")(1,"h4"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"ul")(5,"li"),e.EFF(6),e.nI1(7,"transloco"),e.j41(8,"a",29),e.EFF(9),e.nI1(10,"transloco"),e.k0s()()(),e.j41(11,"h4"),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.j41(14,"ul")(15,"li"),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"li"),e.EFF(19),e.nI1(20,"transloco"),e.k0s()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,6,"curso_educacion_vial.virtual_detalle.requisitos")),e.R7$(4),e.SpI(" ",e.bMT(7,8,"curso_educacion_vial.virtual_detalle.mensaje_2")),e.R7$(3),e.JRh(e.bMT(10,10,"curso_educacion_vial.virtual_detalle.mensaje_3")),e.R7$(3),e.JRh(e.bMT(13,12,"curso_educacion_vial.virtual_detalle.asistencia")),e.R7$(4),e.SpI(" ",e.bMT(17,14,"curso_educacion_vial.virtual_detalle.mensaje_4")," "),e.R7$(3),e.SpI(" ",e.bMT(20,16,"curso_educacion_vial.virtual_detalle.mensaje_5")," "))}let B=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this._fecha=(0,s.WQX)(F.T),this.seleccion=new e.bkB,this.setStep=new e.bkB,this.fecha=[],this.hora=[],this.mes="",this.hora_format="",this.fecha_format="",this.lugar_format="",this.direccion="",this.id_reserva="",this.link_cancelar="",this.modal2=!1,window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.tramite=this.lclStorageService.getValue("tramiteActual"),this.curso_educacion=this.lclStorageService.getValue("cursoActual"),this.bloqueo=this.lclStorageService.getValue("datosBloqueo"),void 0!==this.curso_virtual&&(this.curso_virtual=this.tramite.pasos[3].data.sede.toString().toLowerCase().includes("virtual")),this.formatDate()}formatDate(){null!==this.bloqueo?(this.fecha=this.bloqueo.fecha_seleccionada.split("-"),this.hora_format=this.bloqueo.hora_string,this.lugar_format=this.curso_educacion.sede_seleccionada.sede.nombre,this.direccion=this.curso_educacion.sede_seleccionada.sede.direccion,this.id_reserva=this.bloqueo.IdReserva,this.link_cancelar=this.bloqueo.link_cancelar):(this.fecha=this.tramite.pasos[3].data.fecha.split("-"),this.hora_format=this.tramite.pasos[3].data.hora,this.lugar_format=this.tramite.pasos[3].data.sede,this.direccion=this.tramite.pasos[3].data.direccion,this.id_reserva=this.tramite.pasos[3].data.IdReserva,this.link_cancelar=this.tramite.pasos[3].data.link_cancelar),this.mes=this._fecha.mes_detalle.find(i=>i.numero===this.fecha[1]).mes,this.fecha_format=this.fecha[2]+" de "+this.mes+" "+this.fecha[0]}goCalendar(){this.setStep.emit(14)}cancel(){window.open(this.link_cancelar,"_blank")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-virtual-detalle"]],inputs:{view_message:"view_message",curso_virtual:"curso_virtual",estado_tramite:"estado_tramite"},outputs:{seleccion:"seleccion",setStep:"setStep"},standalone:!1,decls:50,vars:24,consts:[["class","badge badge-primary mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-2"],[4,"ngIf"],[1,"card","card-border","mb-4"],[1,"card-body"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mb-0"],["class","m-0",4,"ngIf"],["class","material-symbols-rounded filled card-icon material-md m-0 text-muted",4,"ngIf"],["class","material-symbols-rounded filled card-icon material-md m-0 text-success",4,"ngIf"],["class","mb-4",4,"ngIf"],[1,"card","card-border","bg-transparent","mb-4"],[1,"card-header","py-4","d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column"],[1,"mb-3","mb-md-0"],[1,"d-flex","align-items-center"],[1,"material-symbols-rounded","filled","material-md","card-icon","m-0","mr-2"],[1,"d-flex","flex-column","justify-content-between"],[1,"font-weight-semibold","m-0"],[1,"my-3"],[1,"badge","badge-primary","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"my-4"],[1,"m-0"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","text-muted"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","text-success"],[1,"mb-4"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/07/20/42aa3b68bc0e3b6f1815c77af8a4748e4e172cd1.pdf","rel","noreferrer",1,"download"],["href","https://documentosboletinoficial.buenosaires.gob.ar/publico/PE-RES-MDUYTGC-SECTRANS-335-19-ANX.pdf"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div"),e.DNE(2,se,3,3,"span",0)(3,ne,3,3,"span",1),e.j41(4,"h2",2),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.DNE(7,re,3,3,"p",3),e.k0s(),e.j41(8,"div",4)(9,"div",5),e.DNE(10,ce,8,6,"div",3),e.j41(11,"div",6)(12,"div")(13,"h3",7),e.EFF(14),e.nI1(15,"transloco"),e.k0s(),e.DNE(16,le,3,3,"small",8)(17,de,3,3,"small",8),e.k0s(),e.DNE(18,ue,2,0,"span",9)(19,_e,2,0,"span",10),e.k0s()()(),e.DNE(20,pe,7,6,"div",11),e.j41(21,"div",12)(22,"div",13)(23,"div",14)(24,"h3",15),e.EFF(25),e.nI1(26,"transloco"),e.k0s(),e.j41(27,"small"),e.EFF(28),e.k0s()()(),e.j41(29,"div",5)(30,"div",16)(31,"span",17),e.EFF(32,"fmd_good"),e.k0s(),e.j41(33,"div",18)(34,"p",19),e.EFF(35),e.k0s(),e.DNE(36,me,2,1,"small",3),e.k0s()(),e.nrm(37,"hr",20),e.j41(38,"div",16)(39,"span",17),e.EFF(40,"calendar_today"),e.k0s(),e.j41(41,"p",19),e.EFF(42),e.k0s()(),e.nrm(43,"hr",20),e.j41(44,"div",16)(45,"span",17),e.EFF(46,"access_time_filled"),e.k0s(),e.j41(47,"p",19),e.EFF(48),e.k0s()()()(),e.DNE(49,he,21,18,"div",3),e.k0s()),2&a&&(e.R7$(2),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite),e.R7$(2),e.JRh(e.bMT(6,18,"curso_educacion_vial.virtual_detalle.titulo")),e.R7$(2),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(3),e.Y8G("ngIf",o.curso_virtual&&"en-proceso"===o.estado_tramite&&o.view_message),e.R7$(4),e.JRh(e.bMT(15,20,"curs
1o_educacion_vial.virtual_detalle.titulo_1")),e.R7$(2),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite),e.R7$(5),e.JRh(e.bMT(26,22,"curso_educacion_vial.virtual_detalle.detalle_curso")),e.R7$(3),e.SpI("N\xfamero de cita: ",o.id_reserva),e.R7$(7),e.JRh(o.lugar_format),e.R7$(),e.Y8G("ngIf",null!==o.direccion),e.R7$(6),e.JRh(o.fecha_format),e.R7$(6),e.SpI("",o.hora_format," hs"),e.R7$(),e.Y8G("ngIf","en-proceso"===o.estado_tramite))},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})(),fe=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this.goBack=new e.bkB,this.seleccion=new e.bkB,window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.getSeleccion()}getSeleccion(){this.curso_educacion=this.lclStorageService.getValue("cursoActual"),null===this.curso_educacion.metodologia.no&&null===this.curso_educacion.metodologia.si?(this.curso_educacion.metodologia.si=!1,this.curso_educacion.metodologia.no=!1,this.seleccion.emit(null)):this.curso_educacion.metodologia.si?(this.curso_educacion.metodologia.si=!0,this.curso_educacion.metodologia.no=!1,this.seleccion.emit("si")):(this.curso_educacion.metodologia.si=!1,this.curso_educacion.metodologia.no=!0,this.seleccion.emit("no"))}setRespuesta(i){this.seleccion.emit(i),"si"===i?(this.curso_educacion.metodologia.si=!0,this.curso_educacion.metodologia.no=!1):(this.curso_educacion.metodologia.si=!1,this.curso_educacion.metodologia.no=!0),localStorage.setItem("cursoActual",JSON.stringify(this.curso_educacion))}volver(){this.goBack.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-metodologia"]],outputs:{goBack:"goBack",seleccion:"seleccion"},standalone:!1,decls:16,vars:11,consts:[[1,"card"],[1,"card-body"],[1,"mb-3"],[1,"custom-control","custom-radio"],["type","radio","name","modoCurso","id","modoVirtual","value","virtual",1,"custom-control-input",3,"click","checked"],["for","modoVirtual",1,"custom-control-label"],["type","radio","name","modoCurso","id","modoEscuelas","value","escuela",1,"custom-control-input",3,"click","checked"],["for","modoEscuelas",1,"custom-control-label","mb-0"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h4",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",3)(7,"input",4),e.bIt("click",function(){return o.setRespuesta("si")}),e.k0s(),e.j41(8,"label",5),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",3)(12,"input",6),e.bIt("click",function(){return o.setRespuesta("no")}),e.k0s(),e.j41(13,"label",7),e.EFF(14),e.nI1(15,"transloco"),e.k0s()()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,5,"curso_educacion_vial.metodologia.pregunta")),e.R7$(3),e.Y8G("checked",o.curso_educacion.metodologia.si),e.R7$(2),e.JRh(e.bMT(10,7,"curso_educacion_vial.metodologia.opcion_1")),e.R7$(3),e.Y8G("checked",o.curso_educacion.metodologia.no),e.R7$(2),e.JRh(e.bMT(15,9,"curso_educacion_vial.metodologia.opcion_2")))},dependencies:[p.Kj],encapsulation:2})}}return t})(),T=(()=>{class t{static{this.DATE_FORMAT={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY"}}}static{this.MONTH_FORMAT={parse:{dateInput:"MM/YYYY"},display:{dateInput:"MM/YYYY"}}}static getDays(){return[{value:0,name:"sunday"},{value:1,name:"monday"},{value:2,name:"tuesday"},{value:3,name:"wednesday"},{value:4,name:"thursday"},{value:5,name:"friday"},{value:6,name:"saturday"}]}static getMonths(){return[{value:0,name:"january"},{value:1,name:"february"},{value:2,name:"march"},{value:3,name:"april"},{value:4,name:"may"},{value:5,name:"june"},{value:6,name:"july"},{value:7,name:"august"},{value:8,name:"september"},{value:9,name:"october"},{value:10,name:"november"},{value:11,name:"december"}]}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ge=(t,n)=>({active:t,selected:n});function be(t,n){if(1&t&&(e.j41(0,"option",21),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t){const i=n.$implicit;e.Y8G("value",i.value),e.R7$(),e.JRh(e.bMT(2,2,"CALENDAR.FULL_MONTH."+i.name.toLocaleUpperCase()))}}function ve(t,n){if(1&t&&(e.j41(0,"option",21),e.EFF(1),e.k0s()),2&t){const i=n.$implicit;e.Y8G("value",i),e.R7$(),e.JRh(i)}}function Re(t,n){if(1&t&&(e.qex(0),e.j41(1,"th"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.bVm()),2&t){const i=n.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,"CALENDAR.SHORT_DAY."+i.name.toLocaleUpperCase()))}}function ke(t,n){if(1&t){const i=e.RV6();e.j41(0,"td",26),e.bIt("click",function(){const o=s.eBV(i).$implicit,r=e.XpG(3);return s.Njj(!o.habilitado&&r.selectedDay(o.date,r.monthOfYear.month))}),e.j41(1,"div",27)(2,"span"),e.EFF(3),e.k0s()()()}if(2&t){const i=n.$implicit;e.R7$(),e.Y8G("ngClass",e.l_i(2,ge,i.existe,i.seleccionado)),e.R7$(2),e.JRh(i.date)}}function Fe(t,n){if(1&t&&(e.j41(0,"tr"),e.DNE(1,ke,4,5,"td",25),e.k0s()),2&t){const i=n.$implicit;e.R7$(),e.Y8G("ngForOf",i)}}function Te(t,n){if(1&t&&(e.j41(0,"div",22)(1,"table",23)(2,"thead")(3,"tr"),e.DNE(4,Re,4,3,"ng-container",24),e.k0s()(),e.j41(5,"tbody"),e.DNE(6,Fe,2,1,"tr",24),e.k0s()()()),2&t){const i=e.XpG();e.R7$(4),e.Y8G("ngForOf",i.monthOfYear.days),e.R7$(2),e.Y8G("ngForOf",i.monthOfYear.cells)}}function Ie(t,n){1&t&&(e.j41(0,"p",28),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"curs
1o_educacion_vial.reserva_turno.mensaje_2")))}function je(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",31)(1,"input",32),e.bIt("click",function(){const o=s.eBV(i).$implicit,r=e.XpG(2);return s.Njj(r.selectOption(o))}),e.k0s(),e.j41(2,"label",33),e.EFF(3),e.k0s()()}if(2&t){const i=n.$implicit,a=n.index;e.R7$(),e.Y8G("id",e.mNQ("profession-developer"+a)),e.R7$(),e.Y8G("for",e.mNQ("profession-developer"+a)),e.R7$(),e.JRh(i.value)}}function Se(t,n){if(1&t&&(e.j41(0,"div",29),e.DNE(1,je,4,5,"div",30),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.horarios)}}let xe=(()=>{class t{constructor(){this.router=(0,s.WQX)(S.Ix),this._turno=(0,s.WQX)(k),this.lclStorageService=(0,s.WQX)(f.s),this._helper=(0,s.WQX)(F.T),this.seleccion=new e.bkB,this.setStepCurso=new e.bkB,this.selectedDate="",this.fechas=[],this.dias=[],this.dias_mes=[],this.mes_actual_string="",this.isDisabled=!1,this.isSelected=!1,this.showSchedules=!1,this.ban=!0,this.last_month=null,this.first_month=null,this.first_month_html=null,this.first_day=null,this.last_year=null,this.bloqueo={token:"",hora_format:"",hora_string:"",fecha_seleccionada:"",IdServicio:"",sedeId:""},this.horarios=[],this.today=new Date}ngOnInit(){this.seleccion.emit(null),this.getFechas()}getFechas(){const i=new Date;let a=i.getDate(),o=i.getMonth()+1,r=i.getFullYear(),c=this.lclStorageService.getValue("tramiteActual");this._turno.getTurnoFechas({fecha:r+"-"+o+"-"+a,servicio:c.solicitud.tipo_vehiculo}).subscribe({next:u=>{this.fechas=u.content.fechas;let g,h={dia:null,mes:null,anio:null};this.fechas.forEach(J=>{g=J.split("-"),h={dia:this.getDateStr(g[2]),mes:this.getDateStr(g[1]),anio:this.getDateStr(g[0])},this.dias.push(h)});let R=this.dias[this.dias.length-1],v=this.dias[0];this.first_day=Number.parseInt(v.dia),this.last_month=Number.parseInt(R.mes),this.first_month=Number.parseInt(v.mes),this.first_month_html=this.first_month-1,this.last_year=Number.parseInt(R.anio);const V=new Date;this.currentMonth=V.getMonth(),this.mes_actual_string=this._helper.mes_detalle.find(J=>Number.parseInt(J.numero)===this.currentMonth+1).mes,this.currentYear=V.getFullYear(),this.arrYear=this.last_year!==this.currentYear?[this.currentYear,this.currentYear+1]:[this.currentYear],this.currentDay=V.getDate(),this.generateMonthsOfYear(),this.onChangeMonth(this.first_month_html)},error:u=>{this.setStepCurso.emit(25)},complete:()=>{}})}getDateStr(i){return 0===i.search("0")?i.slice(-1):i}back(){this.router.navigateByUrl("/gestion-otorgamiento")}loadDates(i,a,o){const r=[];let c=new Date(i,a).getDay(),d=1;for(let u=0;u<6;u++){r.push([]);for(let g=0;g<7;g++)if(0===u&&g<c)r[u].push("");else{if(d>this.daysInMonth(a,i))break;{let h={date:null,seleccionado:!1,habilitado:!0,existe:!1};h.date=d;let R=!1;this.arrMonth.forEach(v=>{v.value===a&&(R=!0)}),R&&o.forEach(v=>{Number.parseInt(v.dia)===h.date&&Number.parseInt(v.mes)===a+1&&(this.ban?this.first_day<=h.date&&this.first_month<=a+1&&(this.ban=!1,h.existe=!0,h.habilitado=!1):(h.existe=!0,h.habilitado=!1))}),r[u].push(h),h.date===this.today.getDate()&&i===this.today.getFullYear()&&this.today.getMonth(),d++}}}return r}daysInMonth(i,a){return 32-new Date(a,i,32).getDate()}generateMonthsOfYear(i){const a=new Date;+this.currentYear===a.getFullYear()?this.arrMonth=T.getMonths().filter(o=>o.value>=this.first_month-1&&o.value<=this.last_month-1):+this.last_year!==a.getFullYear()&&(this.arrMonth=T.getMonths().filter(o=>0===o.value)),this.calendar=new Array(12).fill(0).map((o,r)=>{const c=T.getMonths()[r];return{month:c,days:T.getDays(),cells:this.loadDates(this.currentYear,c.value,this.dias)}})}onChangeMonth(i){this.monthOfYear=this.calendar[i],this.horarios=[]}selectedDay(i,a){this.seleccion.emit(null),this.generateMonthsOfYear(i);let o=this.monthOfYear;for(let d=0;d<=o.cells.length-1;d++)for(let u=0;u<=o.cells[d].length-1;u++)o.cells[d][u].date===i&&o.month.value===a.value&&void 0!==o.cells[d][u].date?o.cells[d][u].seleccionado=!0:void 0!==o.cells[d][u].date&&(o.cells[d][u].seleccionado=!1);this.monthOfYear=o;const r=i.toString(),c=(a.value+1).toString();this.selectedDate=this.currentYear+"-"+c+"-"+r,this.getHorarios(this.selectedDate)}getHorarios(i){let c,a=this.lclStorageService.getValue("tramiteActual"),o=this.lclStorageService.getValue("cursoActual"),r={date:i,idServicio:a.solicitud.tipo_vehiculo,sedeId:o.sede_seleccionad
1a.sede.id.toString()};this.horarios=[],this._turno.getTurnoHoras(r).subscribe({next:d=>{c=d.content.horas,c.forEach(u=>{let h=u.split("T")[1].split(":");this.horarios.push({value:h[0]+":"+h[1],real:u})}),this.showSchedules=!0}})}selectOption(i){let a=this.lclStorageService.getValue("tramiteActual"),o=this.lclStorageService.getValue("cursoActual");this.bloqueo.hora_format=i.real,this.bloqueo.hora_string=i.value,this.bloqueo.IdServicio=a.solicitud.tipo_vehiculo,this.bloqueo.sedeId=o.sede_seleccionada.sede.id.toString(),this.bloqueo.fecha_seleccionada=this.selectedDate,localStorage.setItem("datosBloqueo",JSON.stringify(this.bloqueo)),""!==this.selectedDate&&this.seleccion.emit("si")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-reserva-turno"]],outputs:{seleccion:"seleccion",setStepCurso:"setStepCurso"},standalone:!1,decls:27,vars:13,consts:[["id","calendar-turnos"],[1,"card"],[1,"card-body"],[1,"row"],["id","calendar-col",1,"col-md-auto","justify-content-center","pr-md-4"],[1,"mb-4","font-family-headings"],[1,"row","justify-content-between"],[1,"col"],[1,"form-wrapper"],["id","inlineFormCustomSelect",1,"month",3,"change","ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"col-auto"],["id","inlineFormCustomSelect",1,"year",3,"change","ngModelChange","ngModel"],[1,"my-2"],["class","calendar-container",4,"ngIf"],[1,"d-md-none","my-4"],[1,"col-md","pl-lg-4"],["id","horarios"],[1,"mb-4","font-family-headings","title-fixed"],["class","text-muted",4,"ngIf"],["class","overflow-auto pt-1","style","max-height: 45vh",4,"ngIf"],[3,"value"],[1,"calendar-container"],[1,"calendar"],[4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"date",3,"ngClass"],[1,"text-muted"],[1,"overflow-auto","pt-1",2,"max-height","45vh"],["class","custom-control custom-radio",4,"ngFor","ngForOf"],[1,"custom-control","custom-radio"],["type","radio","name","modoCurso","value","escuela",1,"custom-control-input",3,"click","id"],[1,"custom-control-label",3,"for"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"section",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h5",5),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"div",6)(10,"div",7)(11,"div",8)(12,"select",9),e.bIt("change",function(c){return o.onChangeMonth(+c.target.value)}),e.mxI("ngModelChange",function(c){return e.DH7(o.first_month_html,c)||(o.first_month_html=c),c}),e.DNE(13,be,3,4,"option",10),e.k0s()()(),e.j41(14,"div",11)(15,"select",12),e.bIt("change",function(){return o.generateMonthsOfYear()}),e.mxI("ngModelChange",function(c){return e.DH7(o.currentYear,c)||(o.currentYear=c),c}),e.DNE(16,ve,2,2,"option",10),e.k0s()()(),e.nrm(17,"hr",13),e.DNE(18,Te,7,2,"div",14),e.nrm(19,"hr",15),e.k0s(),e.j41(20,"div",16)(21,"section",17)(22,"h5",18),e.EFF(23),e.nI1(24,"transloco"),e.k0s(),e.DNE(25,Ie,3,3,"p",19)(26,Se,2,1,"div",20),e.k0s()()()()()()()),2&a&&(e.R7$(7),e.JRh(e.bMT(8,9,"curso_educacion_vial.reserva_turno.mensaje")),e.R7$(5),e.R50("ngModel",o.first_month_html),e.R7$(),e.Y8G("ngForOf",o.arrMonth),e.R7$(2),e.R50("ngModel",o.currentYear),e.R7$(),e.Y8G("ngForOf",o.arrYear),e.R7$(2),e.Y8G("ngIf",o.monthOfYear),e.R7$(5),e.JRh(e.bMT(24,11,"curso_educacion_vial.reserva_turno.mensaje_1")),e.R7$(2),e.Y8G("ngIf",!o.showSchedules),e.R7$(),e.Y8G("ngIf",o.showSchedules))},dependencies:[l.YU,l.Sq,l.bT,b.xH,b.y7,b.wz,b.BC,b.vS,p.Kj],encapsulation:2})}}return t})(),Ee=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this._fecha=(0,s.WQX)(F.T),this.seleccion=new e.bkB,this.edit=new e.bkB,this.fecha=[],this.hora=[],this.mes="",this.hora_format="",this.fecha_format="",window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.curso_educacion=this.lclStorageService.getValue("cursoActual"),this.bloqueo=this.lclStorageService.getValue("datosBloqueo"),this.formatDate(),this.seleccion.emit("si")}formatDate(){this.fecha=this.bloqueo.fecha_seleccionada.split("-"),this.mes=this._fecha.mes_detalle.find(i=>i.numero===this.fecha[1]).mes,this.fecha_format=this.fecha[2]+" de "+this.mes+" "+this.fecha[0]}editar(){this.edit.emit(2)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-detalle-inscripcion"]],outputs:{seleccion:"seleccion",edit:"edit"},standalone:!1,decls:45,vars:27,consts:[[1,"card","card-border","bg-transparent","mb-4"],[1,"card-header","py-4","d-flex","align-items-center","justify-content-between"],[1,"mb-0"],["type","button",1,"btn","btn-sm","btn-outline-link","mx-2",3,"click"],[1,"card-body"],[1,"d-flex","align-items-center","border-bottom","pb-4"],[1,"material-symbols-rounded","filled","material-md","card-icon","m-0","mr-2"],[1,"font-weight-semibold"],[1,"d-flex","align-items-center","border-bottom","py-4"],[1,"d-flex","align-items-center","pt-4"],["href","https://documentosboletinoficial.buenosaires.gob.ar/publico/PE-RES-MDUYTGC-SECTRANS-335-19-ANX.pdf"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h3",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"button",3),e.bIt("click",function(){return o.editar()}),e.EFF(7),e.nI1(8,"transloco"),e.k0s()(),e.j41(9,"div",4)(10,"div",5)(11,"span",6),e.EFF(12,"fmd_good"),e.k0s(),e.j41(13,"span",7),e.EFF(14),e.k0s()(),e.j41(15,"div",8)(16,"span",6),e.EFF(17,"calendar_today"),e.k0s(),e.j41(18,"span",7),e.EFF(19),e.k0s()(),e.j41(20,"div",9)(21,"span",6),e.EFF(22,"access_time_filled"),e.k0s(),e.j41(23,"span",7),e.EFF(24),e.k0s()()()(),e.j41(25,"h4"),e.EFF(26),e.nI1(27,"transloco"),e.k0s(),e.j41(28,"ul")(29,"li"),e.EFF(30),e.nI1(31,"transloco"),e.j41(32,"a",10),e.EFF(33),e.nI1(34,"transloco"),e.k0s()()(),e.j41(35,"h4"),e.EFF(36),e.nI1(37,"transloco"),e.k0s(),e.j41(38,"ul")(39,"li"),e.EFF(40),e.nI1(41,"transloco"),e.k0s(),e.j41(42,"li"),e.EFF(43),e.nI1(44,"transloco"),e.k0s()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,11,"curso_educacion_vial.detalle_curso.titulo")),e.R7$(3),e.JRh(e.bMT(8,13,"curso_educacion_vial.detalle_curso.boton_editar")),e.R7$(7),e.JRh(o.curso_educacion.sede_seleccionad
1a.sede.nombre),e.R7$(5),e.JRh(o.fecha_format),e.R7$(5),e.SpI("",o.bloqueo.hora_string," hs"),e.R7$(2),e.JRh(e.bMT(27,15,"curso_educacion_vial.detalle_curso.requisitos")),e.R7$(4),e.SpI(" ",e.bMT(31,17,"curso_educacion_vial.detalle_curso.requisito_1")),e.R7$(3),e.JRh(e.bMT(34,19,"curso_educacion_vial.detalle_curso.requisito_2")),e.R7$(3),e.JRh(e.bMT(37,21,"curso_educacion_vial.detalle_curso.asistencia")),e.R7$(4),e.SpI(" ",e.bMT(41,23,"curso_educacion_vial.detalle_curso.mensaje")," "),e.R7$(3),e.SpI(" ",e.bMT(44,25,"curso_educacion_vial.detalle_curso.mensaje_1")," "))},dependencies:[p.Kj],encapsulation:2})}}return t})();function Ce(t,n){1&t&&(e.j41(0,"p",4),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.EFF(6),e.nI1(7,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,3,"curso_educacion_vial.confirmacion_curso.mensaje_1")),e.R7$(3),e.JRh(e.bMT(5,5,"curso_educacion_vial.confirmacion_curso.mensaje_2")),e.R7$(2),e.JRh(e.bMT(7,7,"curso_educacion_vial.confirmacion_curso.mensaje_3")))}function $e(t,n){if(1&t&&(e.j41(0,"p",4),e.EFF(1),e.nI1(2,"transloco"),e.nI1(3,"transloco"),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.E5c("",e.bMT(2,3,"curso_educacion_vial.confirmacion_curso.mensaje_4")," ",i.lugar," ",e.bMT(3,5,"curso_educacion_vial.confirmacion_curso.mensaje_5"))}}let Me=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this.lugar="",window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){let i=this.lclStorageService.getValue("cursoActual");this.virtual=i.sede_seleccionada.sede.nombre.toLowerCase().includes("virtual"),this.lugar=this.virtual?i.sede_seleccionada.sede.nombre:i.sede_seleccionada.sede.direccion}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-confirmacion-curso"]],standalone:!1,decls:8,vars:5,consts:[[1,"status-container","mt-5"],[1,"status","status-success"],[1,"status-title"],["class","status-text",4,"ngIf"],[1,"status-text"],[1,"font-weight-semibold"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.DNE(6,Ce,8,9,"p",3)(7,$e,4,7,"p",3),e.k0s()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,3,"curso_educacion_vial.confirmacion_curso.mensaje")),e.R7$(2),e.Y8G("ngIf",o.virtual),e.R7$(),e.Y8G("ngIf",!o.virtual))},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})(),Ge=(()=>{class t{constructor(){this.configService=(0,s.WQX)(I.s),this.edit=new e.bkB,this.authorizedSchools="",window.scrollTo({top:0,behavior:"smooth"}),this.configJson=this.configService.getConfig()}ngOnInit(){this.authorizedSchools=this.configJson.tramites.escuelas_autorizadas}editar(){this.edit.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-vial-establecimiento"]],outputs:{edit:"edit"},standalone:!1,decls:50,vars:43,consts:[[1,"card","card-border","bg-transparent","mb-4"],[1,"card-header","py-4","d-flex","align-items-center","justify-content-between"],[1,"mb-0"],["type","button",1,"btn","btn-sm","btn-outline-link","mx-2",3,"click"],[1,"card-body"],[1,"border-bottom","pb-3"],[1,"d-block"],[1,"font-weight-semibold"],[1,"border-bottom","py-3"],[1,"pt-3"],["target","_blank","rel","noreferrer",1,"external",3,"href"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h3",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"button",3),e.bIt("click",function(){return o.editar()}),e.EFF(7),e.nI1(8,"transloco"),e.k0s()(),e.j41(9,"div",4)(10,"div",5)(11,"small",6),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.j41(14,"span",7),e.EFF(15),e.nI1(16,"transloco"),e.k0s()(),e.j41(17,"div",8)(18,"small",6),e.EFF(19),e.nI1(20,"transloco"),e.k0s(),e.j41(21,"span",7),e.EFF(22),e.nI1(23,"transloco"),e.k0s()(),e.j41(24,"div",9)(25,"small",6),e.EFF(26),e.nI1(27,"transloco"),e.k0s(),e.j41(28,"span",7),e.EFF(29),e.nI1(30,"transloco"),e.k0s()()()(),e.j41(31,"div")(32,"p"),e.EFF(33),e.nI1(34,"transloco"),e.k0s(),e.j41(35,"p"),e.EFF(36),e.nI1(37,"transloco"),e.j41(38,"a",10),e.EFF(39),e.nI1(40,"transloco"),e.k0s()(),e.j41(41,"p"),e.EFF(42),e.nI1(43,"transloco"),e.j41(44,"span",7),e.EFF(45),e.nI1(46,"transloco"),e.k0s()(),e.j41(47,"p"),e.EFF(48),e.nI1(49,"transloco"),e.k0s()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,15,"curs
1o_educacion_vial.establecimiento.titulo")),e.R7$(3),e.JRh(e.bMT(8,17,"curso_educacion_vial.establecimiento.boton_editar")),e.R7$(5),e.JRh(e.bMT(13,19,"curso_educacion_vial.establecimiento.seleccionada")),e.R7$(3),e.JRh(e.bMT(16,21,"curso_educacion_vial.establecimiento.autorizada")),e.R7$(4),e.JRh(e.bMT(20,23,"curso_educacion_vial.establecimiento.duracion")),e.R7$(3),e.JRh(e.bMT(23,25,"curso_educacion_vial.establecimiento.horas")),e.R7$(4),e.JRh(e.bMT(27,27,"curso_educacion_vial.establecimiento.costo")),e.R7$(3),e.JRh(e.bMT(30,29,"curso_educacion_vial.establecimiento.var_escuela")),e.R7$(4),e.SpI(" ",e.bMT(34,31,"curso_educacion_vial.establecimiento.mensaje")," "),e.R7$(3),e.SpI("",e.bMT(37,33,"curso_educacion_vial.establecimiento.mensaje_1")," "),e.R7$(2),e.Y8G("href",o.authorizedSchools,e.B4B),e.R7$(),e.JRh(e.bMT(40,35,"curso_educacion_vial.establecimiento.mensaje_2")),e.R7$(3),e.SpI(" ",e.bMT(43,37,"curso_educacion_vial.establecimiento.mensaje_3")," "),e.R7$(3),e.JRh(e.bMT(46,39,"curso_educacion_vial.establecimiento.mensaje_4")),e.R7$(3),e.SpI(" ",e.bMT(49,41,"curso_educacion_vial.establecimiento.mensaje_5")," "))},dependencies:[p.Kj],encapsulation:2})}}return t})(),ye=(()=>{class t{constructor(){this.seleccion=new e.bkB,this.authorizedSchools="",window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.seleccion.emit("si"),this.authorizedSchools=this.configJson.tramites.escuelas_autorizadas}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-vial-autorizadas"]],outputs:{seleccion:"seleccion"},standalone:!1,decls:17,vars:16,consts:[[1,"status-container"],[1,"status","status-success"],[1,"status-title"],[1,"status-text"],["target","_blank","rel","noreferrer",1,"",3,"href"],[1,"status-text","font-weight-semibold"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"p",3),e.EFF(7),e.nI1(8,"transloco"),e.j41(9,"a",4),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.j41(14,"p",5),e.EFF(15),e.nI1(16,"transloco"),e.k0s()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,6,"curso_educacion_vial.autorizadas.titulo")),e.R7$(3),e.SpI(" ",e.bMT(8,8,"curso_educacion_vial.autorizadas.mensaje")),e.R7$(2),e.Y8G("href",o.authorizedSchools,e.B4B),e.R7$(),e.JRh(e.bMT(11,10,"curso_educacion_vial.autorizadas.mensaje_1")),e.R7$(2),e.SpI("",e.bMT(13,12,"curso_educacion_vial.autorizadas.mensaje_2")," "),e.R7$(3),e.SpI(" ",e.bMT(16,14,"curso_educacion_vial.autorizadas.mensaje_3")," "))},dependencies:[p.Kj],encapsulation:2})}}return t})();function we(t,n){1&t&&(e.j41(0,"div")(1,"span",10),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",11),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",12)(8,"p",7),e.EFF(9),e.nI1(10,"transloco"),e.k0s()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"curso_educacion_vial.detalle_b.estado_completado")),e.R7$(3),e.JRh(e.bMT(6,5,"curso_educacion_vial.detalle_b.curso")),e.R7$(4),e.SpI(" ",e.bMT(10,7,"curso_educacion_vial.detalle_b.mensaje")))}let P=(()=>{class t{constructor(){window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-detalle-b"]],inputs:{sede:"sede"},standalone:!1,decls:29,vars:22,consts:[[4,"ngIf"],[1,"card","card-border","bg-transparent","mb-4"],[1,"card-header","py-4","d-flex","align-items-center","justify-content-between"],[1,"mb-0"],[1,"card-body"],[1,"border-bottom","pb-3"],[1,"d-block"],[1,"font-weight-semibold"],[1,"border-bottom","py-3"],[1,"pt-3"],[1,"badge","badge-p-success","mb-3"],[1,"mb-4"],["role","alert",1,"alert","alert-info"]],template:function(a,o){1&a&&(e.j41(0,"section"),e.DNE(1,we,11,9,"div",0),e.j41(2,"div",1)(3,"div",2)(4,"h3",3),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",4)(8,"div",5)(9,"small",6),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.j41(12,"span",7),e.EFF(13),e.nI1(14,"transloco"),e.k0s()(),e.j41(15,"div",8)(16,"small",6),e.EFF(17),e.nI1(18,"transloco"),e.k0s(),e.j41(19,"span",7),e.EFF(20),e.nI1(21,"transloco"),e.k0s()(),e.j41(22,"div",9)(23,"small",6),e.EFF(24),e.nI1(25,"transloco"),e.k0s(),e.j41(26,"span",7),e.EFF(27),e.nI1(28,"transloco"),e.k0s()()()()()),2&a&&(e.R7$(),e.Y8G("ngIf","Escuelas de conducir autorizadas"===o.sede),e.R7$(4),e.JRh(e.bMT(6,8,"curso_educacion_vial.detalle_b.establecimiento")),e.R7$(5),e.JRh(e.bMT(11,10,"curso_educacion_vial.detalle_b.seleccionad
1a")),e.R7$(3),e.JRh(e.bMT(14,12,"curso_educacion_vial.detalle_b.autorizada")),e.R7$(4),e.JRh(e.bMT(18,14,"curso_educacion_vial.detalle_b.duracion")),e.R7$(3),e.JRh(e.bMT(21,16,"curso_educacion_vial.detalle_b.horas")),e.R7$(4),e.JRh(e.bMT(25,18,"curso_educacion_vial.detalle_b.costo")),e.R7$(3),e.JRh(e.bMT(28,20,"curso_educacion_vial.detalle_b.var_escuela")))},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})();var x=_(2053);function Ye(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-skeleton-page",2),e.k0s()),2&t&&(e.R7$(),e.Y8G("amount","1"))}function De(t,n){if(1&t&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&t){const i=e.XpG().$implicit;e.R7$(),e.SpI(" ",i.sede.direccion)}}function Ve(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",7)(1,"input",8),e.bIt("change",function(){const o=s.eBV(i).$implicit,r=e.XpG(2);return s.Njj(r.setRespuesta(o))}),e.k0s(),e.j41(2,"label",9)(3,"div",10)(4,"span"),e.EFF(5),e.k0s(),e.DNE(6,De,2,1,"small",0),e.k0s()()()}if(2&t){const i=n.$implicit,a=n.index;e.R7$(),e.Y8G("id",e.mNQ("profession-developer"+a))("checked",i.sede.selected),e.R7$(),e.Y8G("for",e.mNQ("profession-developer"+a)),e.R7$(3),e.JRh(i.sede.nombre),e.R7$(),e.Y8G("ngIf",null!==i.sede.direccion)}}function Je(t,n){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"h4",5),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.DNE(5,Ve,7,7,"div",6),e.k0s()()),2&t){const i=e.XpG();e.R7$(3),e.JRh(e.bMT(4,2,"curso_educacion_vial.tipo_modalidad.pregunta")),e.R7$(2),e.Y8G("ngForOf",i.sedes)}}let Ne=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this._turno=(0,s.WQX)(k),this.goBack=new e.bkB,this.seleccion=new e.bkB,this.setStep=new e.bkB,this.contenidoCargadoDireccion=!1,window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.curso_educacion=this.lclStorageService.getValue("cursoActual"),this.getSeleccion()}getSeleccion(){this.seleccion.emit(null);let i=this.lclStorageService.getValue("tramiteActual");if(!1===this.curso_educacion.sede_seleccionada.sede.selected){let a=i.solicitud.tipo_vehiculo.replaceAll(" ","_");a="automovil_particular",i.solicitud.tipo_vehiculo=a,localStorage.setItem("tramiteActual",JSON.stringify(i)),this._turno.getTurnoSucursalesCurso(a).subscribe({next:o=>{this.curso_educacion.sedes=o.content.sedes,this.sedes=this.curso_educacion.sedes,this.contenidoCargadoDireccion=!0,this.reiniciarSeleccion()},error:o=>{this.setStep.emit(25)},complete:()=>{}})}else this.sedes=this.curso_educacion.sedes,this.contenidoCargadoDireccion=!0,this.Seleccionar(this.curso_educacion.sede_seleccionada),this.seleccion.emit("si")}reiniciarSeleccion(){this.sedes.forEach(i=>i.sede.selected=!1)}Seleccionar(i){this.sedes.forEach(a=>{a.sede.id===i.sede.id&&(a.sede.selected=!0,this.curso_educacion.sede_seleccionada=i)})}setRespuesta(i){this.seleccion.emit("si"),this.reiniciarSeleccion(),this.Seleccionar(i),localStorage.setItem("cursoActual",JSON.stringify(this.curso_educacion))}removeAccents(i){const a={\u00e1:"a",\u00e9:"e",\u00ed:"i",\u00f3:"o",\u00fa:"u",\u00fc:"u",\u00c1:"A",\u00c9:"E",\u00cd:"I",\u00d3:"O",\u00da:"U",\u00dc:"U"};return i.split("").map(o=>a[o]||o).join("").toString()}volver(){this.goBack.emit()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-vial-modalidad"]],outputs:{goBack:"goBack",seleccion:"seleccion",setStep:"setStep"},standalone:!1,decls:3,vars:2,consts:[[4,"ngIf"],["class","card",4,"ngIf"],["cols","col",3,"amount"],[1,"card"],[1,"card-body"],[1,"mb-3"],["class","custom-control custom-radio",4,"ngFor","ngForOf"],[1,"custom-control","custom-radio"],["type","radio","name","profession","value","developer",1,"custom-control-input",3,"change","id","checked"],[1,"custom-control-label",3,"for"],[1,"d-flex","flex-column","justify-content-between"]],template:function(a,o){1&a&&(e.j41(0,"section"),e.DNE(1,Ye,2,1,"div",0)(2,Je,6,4,"div",1),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngIf",!o.contenidoCargadoDireccion),e.R7$(),e.Y8G("ngIf",o.contenidoCargadoDireccion))},dependencies:[l.Sq,l.bT,x.M,p.Kj],encapsulation:2})}}return t})();var Y=_(992),Oe=_(9350);function X(t,n){const i="object"==typeof n;return new Promise((a,o)=>{let c,r=!1;t.subscribe({next:d=>{c=d,r=!0},error:o,complete:()=>{r?a(c):i?a(n.defaultValue):o(new Oe.G)}})})}const A=_(1976).A,U=_(6553).XI;var E=_(3053);const Xe=()=>["day","workWeek","month"];/localhost/.test(document.location.host)||(0,G.SmG)();let L=(()=>{class t{constructor(){this.http=(0,s.WQX)(w.Qq),this.localStorageService=(0,s.WQX)(f.s),this.currentDate=new Date,this.dataSource=new A({store:new U({load:i=>this.getData(i,{showDeleted:!1})})})}ngOnInit(){this.informacionTurno={},this.informacionTurno=this.localStorageService.getValue("fechaSucursal")}getData(i,a){const c=["https://www.googleapis.com/calendar/v3/calendars/","[email protected]","/events?key=","AIzaSyCI3u6D1-7zxZCpcXBV4AqLmWTvdtXTkEA"].join("");return X(this.http.get(c,a)).then(d=>d.items)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-google-calendar"]],standalone:!1,decls:5,vars:8,consts:[[1,"long-title"],["startDateE
1xpr","start.dateTime","endDateExpr","end.dateTime","textExpr","summary","timeZone","America/Argentina/Buenos_Aires","currentView","workWeek",3,"dataSource","editing","startDayHour","showAllDayPanel","views","currentDate","height"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"h3"),e.EFF(3,"Mi calendario"),e.k0s()(),e.nrm(4,"dx-scheduler",1),e.k0s()),2&a&&(e.R7$(4),e.Y8G("dataSource",o.dataSource)("editing",!1)("startDayHour",7)("showAllDayPanel",!1)("views",e.lJ4(7,Xe))("currentDate",o.currentDate)("height",500))},dependencies:[E.x],styles:[".long-title h3{font-family:Segoe UI Light,Helvetica Neue Light,Segoe UI,Helvetica Neue,Trebuchet MS,Verdana;font-weight:200;font-size:28px;text-align:center;margin-bottom:20px}"]})}}return t})();function Ae(t,n){1&t&&(e.j41(0,"div")(1,"span",11),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",12),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"p"),e.EFF(8),e.nI1(9,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"curso_educacion_vial.estado_disponible")),e.R7$(3),e.JRh(e.bMT(6,5,"curso_educacion_vial.titulo")),e.R7$(3),e.SpI(" ",e.bMT(9,7,"curso_educacion_vial.mensaje")," "))}function Ue(t,n){1&t&&(e.j41(0,"div")(1,"h2",13),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"curso_educacion_vial.modalidad")))}function Le(t,n){1&t&&(e.j41(0,"div")(1,"h2",13),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"curso_educacion_vial.fecha")))}function Qe(t,n){1&t&&(e.j41(0,"div")(1,"span",11),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",12),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"p"),e.EFF(8),e.nI1(9,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"curso_educacion_vial.estado_disponible")),e.R7$(3),e.JRh(e.bMT(6,5,"curso_educacion_vial.titulo")),e.R7$(3),e.SpI(" ",e.bMT(9,7,"curso_educacion_vial.mensaje")," "))}function We(t,n){1&t&&e.nrm(0,"div")}function qe(t,n){1&t&&(e.j41(0,"div")(1,"h2",13),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"curso_educacion_vial.confir_establecimiento")))}function ze(t,n){1&t&&(e.j41(0,"div")(1,"span",14),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",13),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",15)(8,"p",16),e.EFF(9),e.nI1(10,"transloco"),e.k0s()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"curso_educacion_vial.estado_completado")),e.R7$(3),e.JRh(e.bMT(6,5,"curso_educacion_vial.titulo")),e.R7$(4),e.SpI(" ",e.bMT(10,7,"curso_educacion_vial.mensaje_1")," "))}function He(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-metodologia",17),e.bIt("goBack",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())})("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))}),e.k0s()()}}function Ke(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-educacion-vial-modalidad",18),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))})("setStep",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStepError(o))}),e.k0s()()}}function Ze(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-reserva-turno",19),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))})("setSepCurso",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStepError(o))}),e.k0s()()}}function et(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-detalle-inscripcion",20),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))})("edit",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.back(o))}),e.k0s()()}}function tt(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-curso-confirmacion-curso"),e.k0s())}function it(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-educacion-vial-establecimiento",21),e.bIt("edit",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())}),e.k0s()()}}function ot(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-educacion-vial-autorizadas",22),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))}),e.k0s()()}}function at(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-curso-educacion-detalle-b"),e.k0s())}function st(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-virtual-detalle",23),e.bIt("setStep",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStepError(o))})("setStep",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStepCalendar(o))}),e.k0s()()}2&t&&(e.R7$(),e.Y8G("estado_tramite","en-proceso")("view_message",!0))}function nt(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-google-calendar"),e.k0s())}function rt(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-error-page"),e.k0s())}function ct(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"button",26),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("disabled",!i.respuesta),e.R7$(),e.JRh(e.bMT(3,2,"curso_educacion_vial.turno"))}}function lt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"button",26),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next())}),e.EFF(2),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("disabled",!i.respuesta),e.R7$(),e.JRh(6===i.step?"Confirmar":"Siguiente")}}function dt(t,n){if(1&t&&(e.j41(0,"div",24),e.DNE(1,ct,4,4,"div",25)(2,lt,3,2,"div",25),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf",4===i.step),e.R7$(),e.Y8G("ngIf",7!==i.step&&8!==i.step&&4!==i.step&&5!==i.step&&9!==i.step&&14!==i.step&&25!==i.step)}}function ut(t,n){if(1&t){const i=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next())}),e.EFF(1),e.nI1(2,"transloco"),e.k0s()}
12&t&&(e.R7$(),e.JRh(e.bMT(2,1,"curso_educacion_vial.detalle")))}function _t(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",27)(1,"button",28),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.DNE(4,ut,3,3,"button",29),e.k0s()}if(2&t){const i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"curso_educacion_vial.continuar")),e.R7$(2),e.Y8G("ngIf",7===i.step||5===i.step)}}let pt=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this._gestionOtorgamiento=(0,s.WQX)(j),this._navegacion=(0,s.WQX)(F.T),this._turno=(0,s.WQX)(k),this.backing=new e.bkB,this.carga=new e.bkB,this.back_main=new e.bkB,this.setStep=new e.bkB,this.step=1,this.respuesta="",this.navegacion_actual=[],this.curso_educacion={metodologia:{si:null,no:null},modalidad:{si:null,no:null},sedes:[{distance:null,sede:{deleted:null,departamento:"",detalle:"",direccion:"",id:null,infoMail:"",latitud:null,logitud:null,piso:"",nombre:"",selected:!1}}],sede_seleccionada:{distance:null,sede:{deleted:null,departamento:"",detalle:"",direccion:"",id:null,infoMail:"",latitud:null,logitud:null,piso:"",nombre:"",selected:!1}}}}ngOnInit(){localStorage.setItem("cursoActual",JSON.stringify(this.curso_educacion)),this.navegacion_actual.push(1),this.back_main.emit()}back(i){2===i?(this.navegacion_actual.pop(),this.navegacion_actual.pop(),this.step=2):1===this.step||7===this.step||8===this.step||5===this.step||9===this.step?this.backToSteps():(this.navegacion_actual.pop(),this.step=this.navegacion_actual[this.navegacion_actual.length-1])}backToSteps(){this.backing.emit(0)}next(){if(6===this.step){this.respuesta="si";let i=this.lclStorageService.getValue("tramiteActual"),o={};this._gestionOtorgamiento.postEstadoPaso(i.pasos[3].uuid,"completado",{duracion:"3 horas",sede:"Escuelas de conducir autorizadas",costo:"Variable seg\xfan escuela"}).subscribe({next:r=>{this._gestionOtorgamiento.postEstadoPaso(i.pasos[4].uuid,"disponible",o).subscribe({next:c=>{this.step=this._navegacion.navegacion_curso_educacion.find(d=>d.actual===this.step&&d.opcion===this.respuesta).siguiente,this.navegacion_actual.push(this.step)},error:c=>{this.setStep.emit(25)}})},error:r=>{this.setStep.emit(25)}})}else this.step=this._navegacion.navegacion_curso_educacion.find(i=>i.actual===this.step&&i.opcion===this.respuesta).siguiente,this.navegacion_actual.push(this.step),this.respuesta=null!==this.respuesta?this.respuesta:null,this.nextStepp()}setRespuesta(i){this.respuesta=i}nextStepp(){switch(+this.step){case 4:this.bloqueo=this.lclStorageService.getValue("datosBloqueo"),this._turno.postTurnoBloquear({fecha:this.bloqueo.hora_format,IdServicio:this.bloqueo.IdServicio,sedeId:this.bloqueo.sedeId}).subscribe({next:u=>{this.bloqueo.token=u.content.token,localStorage.setItem("datosBloqueo",JSON.stringify(this.bloqueo))}});break;case 5:this.bloqueo=this.lclStorageService.getValue("datosBloqueo"),this.user=this.lclStorageService.getValue("currentUser");let r,a=this.lclStorageService.getValue("tramiteActual"),o=this.lclStorageService.getValue("cursoActual");r="M"===this.user.genero?"Masculino":"Femenino",this.user.CUIL=this.user.CUIL.slice(2),this.user.CUIL=this.user.CUIL.substring(0,this.user.CUIL.length-1);let c={IdServicio:a.solicitud.tipo_vehiculo,apellido:this.user.apellido,confirmacionEmail:!0,email:this.user.correo,fechaHoraTramite:this.bloqueo.hora_format,fechaNacimiento:this.user.fechaDeNacimiento,genero:r,idSede:o.sede_seleccionada.sede.id.toString(),nombre:this.user.nombre,numDoc:this.user.CUIL,origenCita:"argentina",telefono:""===this.user.telefono?"0000":this.user.telefono,tipoDoc:"DNI"===this.user.tipo_dni?this.user.tipo_dni:"DNI",tokenBloqueo:this.bloqueo.token,uuid_paso:a.pasos[3].uuid,nacionalidad:a.solicitud.nacionalidad,codigoPostal:a.solicitud.codigoPostal,domicilio:a.solicitud.domicilio},d={IdReserva:"",link_cancelar:"",fecha:this.bloqueo.fecha_seleccionada,hora:this.bloqueo.hora_string,sede:o.sede_seleccionada.sede.nombre,direccion:o.sede_seleccionada.sede.direccion,IdServicio:a.solicitud.tipo_vehiculo};this._turno.postTurnoReservar(c).subscribe({next:u=>{d.IdReserva=u.content.id,d.link_cancelar=u.content.linkCancelacion,this.bloqueo.IdReserva=d.IdReserva,this.bloqueo.link_cancelar=d.link_cancelar,localStorage.setItem("datosBloqueo",JSON.stringify(this.bloqueo)),this._gestionOtorgamiento.postEstadoPaso(a.pasos[3].uuid,"en-proceso",d).subscribe({next:g=>{this.setRespuesta("si")},error:g=>{this.step=25}})},error:u=>{this.step=25}})}}setStepError(i){this.step=25}setStepCalendar(i){this.step=i}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-vial"]],outputs:{backing:"backing",carga:"carga",back_main:"back_main",setStep:"setStep"},standalone:!1,decls:32,vars:23,consts:[["id","gestion-licencia"],["id","stepper-licencia"],["id","back",1,"mb-4"],[1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],[1,"stepper-wrapper","mt-3"],[3,"ngSwitch"],[4,"ngSwitchCase"],["id","step-content"],["class","d-flex flex-row justify-content-end mt-4",4,"ngIf"],["class","mt-4",4,"ngIf"],[1,"badge","badge-p-info","mb-3"],[1,"mb-2"],[1,"mb-4"],[1,"badge","badge-p-success","mb-3"],["role","alert",1,"alert","alert-info"],[1,"font-weight-semibold"],[3,"goBack","
1seleccion"],[3,"seleccion","setStep"],[3,"seleccion","setSepCurso"],[3,"seleccion","edit"],[3,"edit"],[3,"seleccion"],[3,"setStep","estado_tramite","view_message"],[1,"d-flex","flex-row","justify-content-end","mt-4"],[4,"ngIf"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"mt-4"],["type","button",1,"btn","btn-secondary","mr-2","mb-3","mb-md-0","d-block","d-md-inline",3,"click"],["type","button","class","btn btn-link",3,"click",4,"ngIf"],["type","button",1,"btn","btn-link",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"section",2)(3,"a",3),e.bIt("click",function(){return o.back()}),e.j41(4,"span",4),e.EFF(5,"arrow_back"),e.k0s(),e.j41(6,"span"),e.EFF(7),e.k0s()()(),e.j41(8,"div",5)(9,"div",6),e.DNE(10,Ae,10,9,"div",7)(11,Ue,4,3,"div",7)(12,Le,4,3,"div",7)(13,Qe,10,9,"div",7)(14,We,1,0,"div",7)(15,qe,4,3,"div",7)(16,ze,11,9,"div",7),e.k0s()()(),e.j41(17,"div",8)(18,"div",6),e.DNE(19,He,2,0,"div",7)(20,Ke,2,0,"div",7)(21,Ze,2,0,"div",7)(22,et,2,0,"div",7)(23,tt,2,0,"div",7)(24,it,2,0,"div",7)(25,ot,2,0,"div",7)(26,at,2,0,"div",7)(27,st,2,2,"div",7)(28,nt,2,0,"div",7)(29,rt,2,0,"div",7),e.k0s(),e.DNE(30,dt,3,2,"div",9)(31,_t,5,4,"div",10),e.k0s()()),2&a&&(e.R7$(7),e.SpI("",1===o.step||7===o.step||8===o.step||5===o.step||9===o.step?"Volver al tr\xe1mite":"Volver atr\xe1s"," "),e.R7$(2),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",4),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",8),e.R7$(2),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",4),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",7),e.R7$(),e.Y8G("ngSwitchCase",8),e.R7$(),e.Y8G("ngSwitchCase",9),e.R7$(),e.Y8G("ngSwitchCase",14),e.R7$(),e.Y8G("ngSwitchCase",25),e.R7$(),e.Y8G("ngIf",4===o.step||7!==o.step&&8!==o.step&&4!==o.step&&5!==o.step&&9!==o.step),e.R7$(),e.Y8G("ngIf",7===o.step||5===o.step))},dependencies:[l.bT,l.ux,l.e1,B,fe,xe,Ee,Me,Ge,ye,P,Ne,Y.z,L,p.Kj],encapsulation:2})}}return t})();function mt(t,n){1&t&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"examen_presencial.detalle.estado_en_proceso")))}function ht(t,n){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"examen_presencial.detalle.estado_completado")))}function ft(t,n){1&t&&(e.j41(0,"div",20)(1,"div",9)(2,"div",21)(3,"div")(4,"h3",22),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"small",23),e.EFF(8),e.nI1(9,"transloco"),e.k0s()(),e.j41(10,"span",24),e.EFF(11,"check_circle"),e.k0s()()()()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,2,"examen_presencial.detalle.examen")),e.R7$(3),e.JRh(e.bMT(9,4,"examen_presencial.detalle.aprobado")))}function gt(t,n){1&t&&(e.j41(0,"ul",26)(1,"li")(2,"p"),e.EFF(3),e.nI1(4,"transloco"),e.k0s()()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,1,"examen_presencial.detalle.certificados")))}function bt(t,n){1&t&&(e.j41(0,"div",14)(1,"span",27),e.EFF(2,"warning"),e.k0s(),e.j41(3,"small"),e.EFF(4),e.nI1(5,"transloco"),e.k0s()()),2&t&&(e.R7$(4),e.JRh(e.bMT(5,1,"examen_presencial.detalle.presentar")))}function vt(t,n){if(1&t&&(e.j41(0,"div",25)(1,"h3"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"ul",26)(5,"li")(6,"p",8),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()(),e.j41(9,"div",10)(10,"span",27),e.EFF(11,"warning"),e.k0s(),e.j41(12,"small"),e.EFF(13),e.nI1(14,"transloco"),e.k0s()(),e.DNE(15,gt,5,3,"ul",28)(16,bt,6,3,"div",29),e.k0s()),2&t){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,5,"examen_presencial.detalle.documentos")),e.R7$(5),e.JRh(e.bMT(8,7,"examen_presencial.detalle.dni")),e.R7$(6),e.JRh(e.bMT(14,9,"examen_presencial.detalle.presentar")),e.R7$(2),e.Y8G("ngIf",0!=i.tramite.pasos[2].data.filtro_sedes.length),e.R7$(),e.Y8G("ngIf",0!=i.tramite.pasos[2].data.filtro_sedes.length)}}function Rt(t,n){if(1&t&&(e.j41(0,"div",30)(1,"span"),e.EFF(2),e.nI1(3,"transloco"),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()),2&t){const i=e.XpG(2);e.R7$(2),e.Lme("",e.bMT(3,4,"examen_presencial.detalle.mensaje_1")," ",i.user.correo," y buscar el "),e.R7$(3),e.JRh(e.bMT(6,6,"examen_presencial.detalle.mensaje_2")),e.R7$(2),e.JRh(e.bMT(8,8,"examen_presencial.detalle.mensaje_3"))}}function kt(t,n){1&t&&(e.j41(0,"div",25)(1,"h3"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"ul",26)(5,"li")(6,"p"),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,2,"examen_presencial.detalle.mensaje_4")),e.R7$(5),e.JRh(e.bMT(8,4,"examen_presencial.detalle.mensaje_5")))}function Ft(t,n){1&t&&(e.j41(0,"h3"),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"examen_presencial.detalle.material")))}function Tt(t,n){1&t&&(e.j41(0,"div",31)(1,"a",32),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"a",33),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"a",34),e.EFF(8),e.nI1(9,"transloco"),e.k0s(),e.j41(10,"a",35),e.EFF(11),e.nI1(12,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,4,"examen_presencial.detalle.manual_conductor")),e.R7$(3),e.JRh(e.bMT(6,6,"examen_presencial.detalle.protocolo")),e.R7$(3),e.JRh(e.bMT(9,8,"examen_presencial.detalle.examen_practico")),e.R7$(3),e.JRh(e.bMT(12,10,"examen_presencial.detalle.circuitos")))}function It(t,n){if(1&t&&(e.j41(0,"div")(1,"section",1),e.DNE(2,mt,3,3,"span",2)(3,ht,3,3,"span",3),e.j41(4,"h2",4),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.DNE(7,ft,12,6,"div",5),e.j41(8,"div",6)(9,"div",7)(10,"h3",8),e.
1EFF(11),e.nI1(12,"transloco"),e.k0s()(),e.j41(13,"div",9)(14,"div",10)(15,"span",11),e.EFF(16,"location_on"),e.k0s(),e.j41(17,"div",12)(18,"p",13),e.EFF(19),e.k0s(),e.j41(20,"small")(21,"a",8),e.EFF(22),e.k0s()()()(),e.j41(23,"div",10)(24,"span",11),e.EFF(25,"calendar_today"),e.k0s(),e.j41(26,"p",13),e.EFF(27),e.k0s()(),e.j41(28,"div",14)(29,"span",11),e.EFF(30,"watch_later"),e.k0s(),e.j41(31,"p",13),e.EFF(32),e.k0s()()()(),e.DNE(33,vt,17,11,"div",15)(34,Rt,9,10,"div",16)(35,kt,9,6,"div",15)(36,Ft,3,3,"h3",0)(37,Tt,13,12,"div",17),e.k0s()()),2&t){const i=e.XpG();e.R7$(2),e.Y8G("ngIf","en-proceso"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(2),e.JRh(e.bMT(6,14,"examen_presencial.detalle.titulo")),e.R7$(2),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(4),e.JRh(e.bMT(12,16,"examen_presencial.detalle.mensaje")),e.R7$(8),e.JRh(i.turno.nombre),e.R7$(3),e.JRh(i.turno.direccion),e.R7$(5),e.JRh(i.fecha_format),e.R7$(5),e.JRh(i.hora),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!=i.estado_tramite)}}let jt=(()=>{class t{constructor(){this._fecha=(0,s.WQX)(F.T),this.lclStorageService=(0,s.WQX)(f.s),this.backing=new e.bkB,this.carga=new e.bkB,this.setStep=new e.bkB,this.step=1,this.fecha=[],this.hora="",this.mes="",this.hora_format="",this.fecha_format="",this.turno={idCita:"",idOrganismo:"",idSede:"",idPrestacion:"",fecha:"",hora:"",estado:"",tipoDoc:"",numDoc:"",nombre:"",telefono:"",email:"",organismo:"",sedeDesc:"",direccion:"",tramiteDesc:""},window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.getTurnoDetalle()}getTurnoDetalle(){this.tramite=this.lclStorageService.getValue("tramiteActual"),this.user=this.lclStorageService.getValue("currentUser"),this.turno.direccion=this.tramite.pasos[4].data.sede.direccion,this.turno.nombre=this.tramite.pasos[4].data.sede.nombre;let i=new Date(this.tramite.pasos[4].data.fecha).toISOString().split("T");this.fecha=i[0].split("-"),this.hora=this.tramite.pasos[4].data.horario.toString()+" hs",this.formatDate()}formatDate(){this.mes=this._fecha.mes_detalle.find(i=>i.numero===this.fecha[1]).mes,this.fecha_format=this.fecha[2]+" de "+this.mes+" "+this.fecha[0]}back(){1===this.step&&this.backToSteps(),1!=this.step&&(this.step-=1)}backToSteps(){this.backing.emit(0)}next(){switch(+this.step){case 1:this.step=2;break;case 2:this.step=3;break;case 3:this.step=4;break;case 4:this.step=5}}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-presencial-detalle"]],inputs:{estado_tramite:"estado_tramite"},outputs:{backing:"backing",carga:"carga",setStep:"setStep"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],["id","examen-presencial"],["class","badge badge-p-info mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-3"],["class","card card-border mb-4",4,"ngIf"],[1,"card","card-border","mb-3"],[1,"card-header","py-4"],[1,"m-0"],[1,"card-body"],[1,"d-flex","align-items-center","mb-3"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","mr-3"],[1,"d-flex","flex-column"],[1,"font-weight-semibold","font-family-headings","mb-0"],[1,"d-flex","align-items-center"],["class","mb-4",4,"ngIf"],["class","alert alert-info",4,"ngIf"],["class","d-flex flex-column align-items-start",4,"ngIf"],[1,"badge","badge-p-info","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"card","card-border","mb-4"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mb-0","font-weight-bold"],[1,"m-0","text-success"],[1,"material-symbols-rounded","filled","card-icon","material-lg","m-0","text-success"],[1,"mb-4"],[1,"mb-0"],[1,"material-symbols-rounded","filled","material-md","text-orange","mb-0","mr-1"],["class","mb-0",4,"ngIf"],["class","d-flex align-items-center",4,"ngIf"],[1,"alert","alert-info"],[1,"d-flex","flex-column","align-items-start"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/07/20/42aa3b68bc0e3b6f1815c77af8a4748e4e172cd1.pdf","rel","noreferrer",1,"download","mb
1-2"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/09/22/4c07586561c218109b83374ec7ca2f48f89921ea.pdf","rel","noreferrer",1,"download","mb-2"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/08/24/e893f0c1ef96bfc0920b3213df928100e0b1390e.pdf","rel","noreferrer",1,"download","mb-2"],["href","https://www.buenosaires.gob.ar/sites/gcaba/files/circuitos_por_sede_0.pdf","rel","noreferrer",1,"download","mb-2"]],template:function(a,o){1&a&&e.DNE(0,It,38,18,"div",0),2&a&&e.Y8G("ngIf",o.turno)},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})();function St(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",3)(1,"input",13),e.bIt("change",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.setRespuesta(1))}),e.k0s(),e.j41(2,"label",14),e.EFF(3),e.nI1(4,"transloco"),e.k0s()()}2&t&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.mensaje_1")))}let xt=(()=>{class t{constructor(){this.localStorageService=(0,s.WQX)(f.s),this.seleccion=new e.bkB,this.tramite=this.localStorageService.getValue("tramiteActual")}ngOnInit(){}setRespuesta(i){this.seleccion.emit(i)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-motivo-inasistencia"]],outputs:{seleccion:"seleccion"},standalone:!1,decls:27,vars:16,consts:[[1,"card","mb-4"],[1,"card-body"],[1,"mb-3"],[1,"custom-control","custom-radio"],["type","radio","name","profession","id","profession-designer",1,"custom-control-input",3,"change"],["for","profession-designer",1,"custom-control-label"],["class","custom-control custom-radio",4,"ngIf"],["type","radio","name","profession","id","profession-developer",1,"custom-control-input",3,"change"],["for","profession-developer",1,"custom-control-label"],["type","radio","name","profession","id","profession-designer-2",1,"custom-control-input",3,"change"],["for","profession-designer-2",1,"custom-control-label"],["type","radio","name","profession","id","profession-developer-8",1,"custom-control-input",3,"change"],["for","profession-developer-8",1,"custom-control-label"],["type","radio","name","profession","id","profession-developer-6",1,"custom-control-input",3,"change"],["for","profession-developer-6",1,"custom-control-label"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h4",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",3)(7,"input",4),e.bIt("change",function(){return o.setRespuesta(1)}),e.k0s(),e.j41(8,"label",5),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.DNE(11,St,5,3,"div",6),e.j41(12,"div",3)(13,"input",7),e.bIt("change",function(){return o.setRespuesta(2)}),e.k0s(),e.j41(14,"label",8),e.EFF(15),e.nI1(16,"transloco"),e.k0s()(),e.j41(17,"div",3)(18,"input",9),e.bIt("change",function(){return o.setRespuesta(3)}),e.k0s(),e.j41(19,"label",10),e.EFF(20),e.nI1(21,"transloco"),e.k0s()(),e.j41(22,"div",3)(23,"input",11),e.bIt("change",function(){return o.setRespuesta(7)}),e.k0s(),e.j41(24,"label",12),e.EFF(25),e.nI1(26,"transloco"),e.k0s()()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,6,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.pregunta")),e.R7$(5),e.SpI(" ",e.bMT(10,8,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.mensaje")),e.R7$(2),e.Y8G("ngIf",o.tramite.nombre.includes("Otorgamiento")),e.R7$(4),e.SpI(" ",e.bMT(16,10,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.mensaje_2")),e.R7$(5),e.SpI(" ",e.bMT(21,12,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.mensaje_3")),e.R7$(5),e.SpI(" ",e.bMT(26,14,"examen_presencial.examen_no_tengo_licencia.motivo_inasistencia.mensaje_4")))},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})();
1function Et(t,n){1&t&&(e.j41(0,"div")(1,"span",3),e.EFF(2,"pending"),e.k0s()())}function Ct(t,n){1&t&&(e.j41(0,"div")(1,"span",4),e.EFF(2,"report_problem"),e.k0s()())}function $t(t,n){1&t&&(e.j41(0,"div")(1,"h2",5),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"p"),e.EFF(8),e.nI1(9,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.titulo")),e.R7$(3),e.JRh(e.bMT(6,5,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje")),e.R7$(3),e.JRh(e.bMT(9,7,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_1")))}function Mt(t,n){1&t&&(e.j41(0,"div")(1,"h2",5),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,2,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_2")),e.R7$(3),e.JRh(e.bMT(6,4,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_3")))}function Gt(t,n){if(1&t&&(e.j41(0,"div")(1,"h2"),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.nI1(5,"transloco"),e.j41(6,"strong"),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.EFF(9),e.nI1(10,"transloco"),e.j41(11,"a",6),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.EFF(14),e.nI1(15,"transloco"),e.k0s()()),2&t){const i=e.XpG();e.R7$(2),e.SpI("",i.user.nombre,", ten\xe9s que rendir el examen nuevamente"),e.R7$(2),e.JRh(e.bMT(5,6,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_4")),e.R7$(3),e.JRh(e.bMT(8,8,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_5")),e.R7$(2),e.SpI("",e.bMT(10,10,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_6")," "),e.R7$(3),e.JRh(e.bMT(13,12,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_7")),e.R7$(2),e.SpI("",e.bMT(15,14,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_8")," ")}}function yt(t,n){if(1&t&&(e.j41(0,"div")(1,"h2"),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.nI1(5,"transloco"),e.j41(6,"strong"),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.EFF(9),e.nI1(10,"transloco"),e.j41(11,"a",6),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.EFF(14),e.nI1(15,"transloco"),e.k0s()()),2&t){const i=e.XpG();e.R7$(2),e.SpI("",i.user.nombre,", ten\xe9s que rendir el examen nuevamente"),e.R7$(2),e.JRh(e.bMT(5,6,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_9")),e.R7$(3),e.JRh(e.bMT(8,8,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_10")),e.R7$(2),e.SpI("",e.bMT(10,10,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_11")," "),e.R7$(3),e.JRh(e.bMT(13,12,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_12")),e.R7$(2),e.SpI("",e.bMT(15,14,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_13")," ")}}function wt(t,n){1&t&&(e.j41(0,"div")(1,"h2"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,2,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_14")),e.R7$(3),e.JRh(e.bMT(6,4,"examen_presencial.examen_no_tengo_licencia.reserva_nuevo_turno.mensaje_15")))}let Yt=(()=>{class t{constructor(){this.localStorageService=(0,s.WQX)(f.s)}ngOnInit(){3===this.mensaje&&(this.mensaje=1),this.user=this.localStorageService.getValue("currentUser")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-reserva-nuevo-turno"]],inputs:{mensaje:"mensaje"},standalone:!1,decls:9,vars:8,consts:[[4,"ngIf"],[1,"mb-4",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"material-symbols-rounded","filled","text-info","material-xxl","mt-4","mb-3"],[1,"material-symbols-rounded","filled","text-orange","material-xxl","mb-3"],[1,"mb-3"],["href",""]],template:function(a,o){1&a&&(e.j41(0,"section"),e.DNE(1,Et,3,0,"div",0)(2,Ct,3,0,"div",0),e.j41(3,"div",1),e.DNE(4,$t,10,9,"div",2)(5,Mt,7,6,"div",2)(6,Gt,16,16,"div",2)(7,yt,16,16,"div",2)(8,wt,7,6,"div",2),e.k0s()()),2&a&&(e.R7$(),e.Y8G("ngIf",null!==o.mensaje),e.R7$(),e.Y8G("ngIf",null===o.mensaje),e.R7$(),e.Y8G("ngSwitch",o.mensaje),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",null),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",7))},dependencies:[l.bT,l.ux,l.e1,p.Kj],encapsulation:2})}}return t})(),Dt=(()=>{class t{constructor(){this.configService=(0,s.WQX)(I.s),this.neuropsychologicalStudy="",this.psych
1odiagnosticStudy="",this.configJson=this.configService.getConfig()}ngOnInit(){this.neuropsychologicalStudy=this.configJson.tramites.neuropsicologico,this.psychodiagnosticStudy=this.configJson.tramites.psicodiagnostico}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-tramite-espera"]],standalone:!1,decls:42,vars:44,consts:[[1,"status-container","mt-4"],[1,"status","status-primary"],[1,"status-title"],[1,"mb-4"],[3,"href"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"ul",3)(7,"li"),e.EFF(8),e.nI1(9,"transloco"),e.j41(10,"strong"),e.EFF(11),e.nI1(12,"transloco"),e.k0s(),e.EFF(13),e.nI1(14,"transloco"),e.j41(15,"strong"),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"li"),e.EFF(21),e.nI1(22,"transloco"),e.j41(23,"strong"),e.EFF(24),e.nI1(25,"transloco"),e.k0s(),e.EFF(26),e.nI1(27,"transloco"),e.j41(28,"a",4),e.EFF(29),e.nI1(30,"transloco"),e.k0s()(),e.j41(31,"li"),e.EFF(32),e.nI1(33,"transloco"),e.j41(34,"strong"),e.EFF(35),e.nI1(36,"transloco"),e.k0s(),e.EFF(37),e.nI1(38,"transloco"),e.j41(39,"a",4),e.EFF(40),e.nI1(41,"transloco"),e.k0s()()()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,16,"examen_presencial.examen_no_tengo_licencia.tramite_espera.titulo")),e.R7$(4),e.SpI(" ",e.bMT(9,18,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje")),e.R7$(3),e.JRh(e.bMT(12,20,"examen_presencial.examen_no_tengo_licencia.tramite_espera.tipo")),e.R7$(2),e.SpI(" ",e.bMT(14,22,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_1")),e.R7$(3),e.JRh(e.bMT(17,24,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mail")),e.R7$(2),e.SpI("",e.bMT(19,26,"examen_presencial.examen_no_tengo_licencia.tramite_espera.documentacion")," "),e.R7$(3),e.SpI(" ",e.bMT(22,28,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_2")),e.R7$(3),e.JRh(e.bMT(25,30,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_3")),e.R7$(2),e.SpI("",e.bMT(27,32,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_4")," "),e.R7$(2),e.Y8G("href",o.neuropsychologicalStudy,e.B4B),e.R7$(),e.JRh(e.bMT(30,34,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_5")),e.R7$(3),e.SpI(" ",e.bMT(33,36,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_6")),e.R7$(3),e.JRh(e.bMT(36,38,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_7")),e.R7$(2),e.SpI("",e.bMT(38,40,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_8")," "),e.R7$(2),e.Y8G("href",o.psych
1odiagnosticStudy,e.B4B),e.R7$(),e.JRh(e.bMT(41,42,"examen_presencial.examen_no_tengo_licencia.tramite_espera.mensaje_9")))},dependencies:[p.Kj],encapsulation:2})}}return t})();function Vt(t,n){if(1&t&&(e.j41(0,"div")(1,"h2",7),e.EFF(2),e.k0s()()),2&t){const i=e.XpG();e.R7$(2),e.SpI("\xa1Hola ",i.user.nombre,"!")}}function Jt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-examen-motivo-inasistencia",8),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setRespuesta(o))}),e.k0s()()}}function Nt(t,n){if(1&t&&(e.j41(0,"div"),e.nrm(1,"app-examen-reserva-nuevo-turno",9),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("mensaje",i.respuesta)}}function Ot(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-examen-tramite-espera"),e.k0s())}function Bt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"div",10)(2,"button",11),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.next())}),e.EFF(3),e.nI1(4,"transloco"),e.k0s()()()}if(2&t){const i=e.XpG();e.R7$(2),e.Y8G("disabled",!i.respuesta),e.R7$(),e.JRh(e.bMT(4,2,"examen_presencial.examen_no_tengo_licencia.siguiente"))}}function Pt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"button",12),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.backToReserva())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"examen_presencial.examen_no_tengo_licencia.reservar")))}function Xt(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,Pt,4,3,"div",3),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf",7!==i.respuesta)}}function At(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"button",13),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"examen_presencial.examen_no_tengo_licencia.volver")))}function Ut(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"button",14),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"examen_presencial.examen_no_tengo_licencia.llamar")))}let Lt=(()=>{class t{constructor(){this.reservaTurnoService=(0,s.WQX)(k),this.localStorageService=(0,s.WQX)(f.s),this.backing=new e.bkB,this.carga=new e.bkB,this.resetAll=new e.bkB}ngOnInit(){this.reset(),this.informacionTurno={},this.informacionTurno=this.localStorageService.getValue("fechaSucursal"),this.tramite=this.localStorageService.getValue("tramiteActual"),this.user=this.localStorageService.getValue("currentUser")}back(){1===this.step&&this.backToSteps(),this.reset()}reset(){this.step=1,this.band=!1,this.respuesta=null}setRespuesta(i){this.respuesta=i}backToSteps(){this.backing.emit(0),this.resetAll.emit()}backToReserva(){this.backing.emit(5)}next(){switch(this.respuesta){case 1:case 3:case 5:case 6:this.step=2,this.updateState();break;case 2:this.step=3,this.updateState();break;case 4:this.step=2,this.respuesta=null,this.updateState();break;case 7:this.step=2,this.band=!0,this.updateState()}}updateState(){this.updateBody={},this.updateBody.uuid=this.tramite.pasos[5].uuid,this.updateBody.estado="no-disponible",this.updateBody.data=null,this.updateBody2={},this.updateBody2.uuid=this.tramite.pasos[4].uuid,this.updateBody2.estado="disponible",this.updateBody2.data=null,this.reservaTurnoService.postActualizarEstadoPaso(this.updateBody).subscribe({next:()=>{this.reservaTurnoService.postActualizarEstadoPaso(this.updateBody2).subscribe({next:()=>{},error:i=>{}})},error:i=>{}})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-no-tengo-licencia"]],outputs:{backing:"backing",carga:"carga",resetAll:"resetAll"},standalone:!1,decls:14,vars:10,consts:[["id","gestion-licencia"],["id","stepper-licencia"],[1,"stepper-wrapper","mt-3"],[4,"ngIf"],["id","step-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mb-3"],[3,"seleccion"],[3,"mensaje"],[1,"text-right"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-secondary","btn-lg",3,"click"],["type","button",1,"btn","btn-link","btn-lg",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2),e.DNE(3,Vt,3,1,"div",3),e.k0s()(),e.j41(4,"div",4)(5,"div",5),e.DNE(6,Jt,2,0,"div",6)(7,Nt,2,1,"div",6)(8,Ot,2,0,"div",6),e.k0s(),e.j41(9,"div",5),e.DNE(10,Bt,5,4,"div",6)(11,Xt,2,1,"div",6)(12,At,4,3,"div",6),e.k0s(),e.DNE(13,Ut,4,3,"div",3),e.k0s()()),2&a&&(e.R7$(3),e.Y8G("ngIf",1===o.step),e.R7$(2),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngIf",7===o.respuesta&&o.band))},dependencies:[l.bT,l.ux,l.e1,xt,Yt,Dt,p.Kj],encapsulation:2})}}return t})(),Qt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-experiencia-usuario"]],standalone:!1,decls:31,vars:18,consts:[[1,"card"],[1,"card-body"],[1,"mb-3"],[1,"custom-control","custom-radio"],["type","radio","name","profession","id","profession-designer","value","designer",1,"custom-control-input"],["for","profession-designer",1,"custom-control-label"],["type","radio","name","profession","id","profession-developer","value","developer",1,"custom-control-input"],["for","profession-developer",1,"custom-control-label"],["type","radio","name","profession","id","profession-designer-2","value","designer-2",1,"custom-control-input"],["for","profession-designer-2",1,"custom-control-label"],["type","radio","name","profession","id","profession-developer-2","value","developer-2",1,"custom-control-input"],["for","profession-developer-2",1,"custom-control-label"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h4",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",3),e.nrm(7,"input",4),e.j41(8,"label",5),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",3),e.nrm(12,"input",6),e.j41(13,"label",7),e.EFF(14),e.nI1(15,"transloco"),e.k0s()(),e.j41(16,"div",3),e.nrm(17,"input",8),e.j41(18,"label",9),e.EFF(19),e.nI1(20,"transloco"),e.k0s()(),e.j41(21,"div",3),e.nrm(22,"input",10),e.j41(23,"label",11),e.EFF(24),e.nI1(25,"transloco"),e.k0s()(),e.j41(26,"div",3),e.nrm(27,"input",10),e.j41(28,"label",11),e.EFF(29),e.nI1(30,"transloco"),e.k0s()()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,6,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.titulo")),e.R7$(5),e.SpI(" ",e.bMT(10,8,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.opcion_1")," "),e.R7$(5),e.SpI(" ",e.bMT(15,10,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.opcion_2")," "),e.R7$(5),e.SpI(" ",e.bMT(20,12,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.opcion_3")," "),e.R7$(5),e.SpI(" ",e.bMT(25,14,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.opcion_4")," "),e.R7$(5),e.SpI(" ",e.bMT(30,16,"examen_presencial.examen_si_tengo_licencia.experiencia_usuario.opcion_5")," "))},dependencies:[p.Kj],encapsulation:2})}}return t}
1)(),Wt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-mensaje-final"]],standalone:!1,decls:9,vars:6,consts:[[1,"status-container"],[1,"status","status-success"],[1,"status-title"],[1,"status-text"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"p",3),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,2,"examen_presencial.examen_si_tengo_licencia.examen_mensaje_final.titulo")),e.R7$(3),e.JRh(e.bMT(8,4,"examen_presencial.examen_si_tengo_licencia.examen_mensaje_final.mensaje")))},dependencies:[p.Kj],encapsulation:2})}}return t})();function qt(t,n){1&t&&(e.j41(0,"div",12)(1,"h2",12),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"transloco"),e.nrm(7,"br"),e.EFF(8),e.nI1(9,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"examen_presencial.examen_si_tengo_licencia.mensaje")),e.R7$(3),e.SpI(" ",e.bMT(6,5,"examen_presencial.examen_si_tengo_licencia.mensaje_1")),e.R7$(3),e.SpI(" ",e.bMT(9,7,"examen_presencial.examen_si_tengo_licencia.mensaje_2")," "))}function zt(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-examen-experiencia-usuario"),e.k0s())}function Ht(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-examen-mensaje-final"),e.k0s())}function Kt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",13)(1,"button",14),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.next())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"examen_presencial.examen_si_tengo_licencia.boton_enviar")))}function Zt(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",15)(1,"button",16),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"examen_presencial.examen_si_tengo_licencia.boton_volver_pasos")))}let ei=(()=>{class t{constructor(){this.backing=new e.bkB,this.carga=new e.bkB,this.step=1}ngOnInit(){}back(){1===this.step&&this.backToSteps(),1!=this.step&&(this.step-=1)}backToSteps(){this.backing.emit(0)}next(){switch(+this.step){case 1:this.step=2;break;case 2:this.step=3;break;case 3:this.step=4;break;case 4:this.step=5}}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-si-tengo-licencia"]],outputs:{backing:"backing",carga:"carga"},standalone:!1,decls:18,vars:10,consts:[["id","gestion-licencia"],["id","stepper-licencia"],["id","back",1,"mb-4"],[1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],[1,"stepper-wrapper"],[3,"ngSwitch"],["class","mb-3",4,"ngSwitchCase"],["id","step-content"],[4,"ngSwitchCase"],["class","d-flex flex-row justify-content-end mt-4",4,"ngIf"],["class","d-flex flex-row justify-content-start mt-4",4,"ngIf"],[1,"mb-3"],[1,"d-flex","flex-row","justify-content-end","mt-4"],["type","button",1,"btn","btn-primary",3,"click"],[1,"d-flex","flex-row","justify-content-start","mt-4"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"section",2)(3,"a",3),e.bIt("click",function(){return o.back()}),e.j41(4,"span",4),e.EFF(5,"arrow_back"),e.k0s(),e.j41(6,"span"),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()(),e.j41(9,"div",5)(10,"div",6),e.DNE(11,qt,10,9,"div",7),e.k0s()()(),e.j41(12,"div",8)(13,"div",6),e.DNE(14,zt,2,0,"div",9)(15,Ht,2,0,"div",9),e.k0s(),e.DNE(16,Kt,4,3,"div",10)(17,Zt,4,3,"div",11),e.k0s()()),2&a&&(e.R7$(7),e.JRh(e.bMT(8,8,"examen_presencial.examen_si_tengo_licencia.volver")),e.R7$(3),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(2),e.Y8G("ngSwitch",o.step),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngIf",1===o.step),e.R7$(),e.Y8G("ngIf",1!==o.step))},dependencies:[l.bT,l.ux,l.e1,Qt,Wt,p.Kj],encapsulation:2})}}return t})();var ti=_(9455);let ii=(()=>{class t{constructor(){this.seleccion=new e.bkB}ngOnInit(){}next(){this.seleccion.emit(4)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-curso-educacion-nuevo"]],outputs:{seleccion:"seleccion"},standalone:!1,decls:12,vars:9,consts:[[1,"status-container","mt-5"],[1,"status","status-primary"],[1,"status-title"],[1,"status-text"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"p",3),e.
1EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"button",4),e.bIt("click",function(){return o.next()}),e.EFF(10),e.nI1(11,"transloco"),e.k0s()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,3,"curso_educacion_vial.nuevo")),e.R7$(3),e.JRh(e.bMT(8,5,"curso_educacion_vial.mensaje_1")),e.R7$(3),e.JRh(e.bMT(11,7,"curso_educacion_vial.mansaje_2")))},dependencies:[p.Kj],encapsulation:2})}}return t})();var C=_(177),oi=_(7303),$=_(4799);(0,C.EO)($.A,"es");let si=(()=>{class t{constructor(){this.location=(0,s.WQX)(oi.aZ),this.localStorageService=(0,s.WQX)(f.s),this.reservaTurnoService=(0,s.WQX)(k),this.step=new e.bkB,this.showErrorPage=new e.bkB,this.backing=new e.bkB,this.nombre_tramite=""}ngOnInit(){this.informacionTurno={},this.informacionTurno=this.localStorageService.getValue("fechaSucursal"),this.currentUser=this.localStorageService.getValue("currentUser"),this.tramite=this.localStorageService.getValue("tramiteActual"),this.nombre_tramite=this.tramite.nombre,this.bodypost={},this.bodypost.nombre=this.currentUser.nombre,this.bodypost.apellido=this.currentUser.apellido,this.bodypost.email=this.currentUser.correo,this.bodypost.confirmacionEmail=!0,this.bodypost.telefono=""===this.currentUser.telefono?"0000":this.currentUser.telefono,"M"===this.currentUser.genero?this.bodypost.genero="Masculino":"F"===this.currentUser.genero&&(this.bodypost.genero="Femenino");let i=this.currentUser.CUIL.slice(2,10);this.bodypost.numDoc=i,this.bodypost.tipoDoc="DNI",this.bodypost.tipoDoc="DNI"===this.currentUser.tipo_dni?this.currentUser.tipo_dni:"DNI";let a=new Date(this.informacionTurno.fecha);a.setHours(a.getHours()-3);let o=a.toISOString();this.bodypost.fechaHoraTramite=o.split("Z")[0],this.bodypost.idSede=this.informacionTurno.sede.id.toString(),this.bodypost.tokenBloqueo=this.informacionTurno.token,this.bodypost.uuid_paso=this.tramite.pasos[4].uuid,this.bodypost.IdServicio=this.loadIdServicio(),this.bodypost.origenCita="argentina",this.bodypost.fechaNacimiento=this.currentUser.fechaDeNacimiento,this.bodypost.domicilio=this.tramite.solicitud.domicilio,this.bodypost.nacionalidad=this.tramite.solicitud.nacionalidad,this.bodypost.codigoPostal=this.tramite.solicitud.codigoPostal,this.upgradeBodyStep4={},this.upgradeBodyStep4.uuid=this.tramite.pasos[4].uuid,this.upgradeBodyStep4.estado="completado",this.upgradeBodyStep4.data=this.informacionTurno,this.upgradeBodyStep5={},this.upgradeBodyStep5.uuid=this.tramite.pasos[5].uuid,this.upgradeBodyStep5.estado="disponible",this.upgradeBodyStep5.data=this.informacionTurno}loadIdServicio(){let i="";return this.nombre_tramite.includes("Otorgamiento")?i=this.tramite.solicitud.tipo_caja:this.nombre_tramite.includes("Renovaci\xf3n")&&(i="renovacion"),i}goToNextStep(){this.reservaTurnoService.postTurnoReservar(this.bodypost).subscribe({next:i=>{this.turno=i.content,this.informacionTurno.idCita=this.turno.id,this.informacionTurno.link_cancelar=this.turno.linkCancelacion,this.localStorageService.setValue("fechaSucursal",this.informacionTurno),this.reservaTurnoService.postActualizarEstadoPaso(this.upgradeBodyStep4).subscribe({next:()=>{this.reservaTurnoService.postActualizarEstadoPaso(this.upgradeBodyStep5).subscribe({next:()=>{this.step.emit({step:3,respuesta:"si"})},error:()=>{this.showErrorPage.emit(25)},complete:()=>{}})},error:()=>{this.showErrorPage.emit(25)}})},error:()=>{this.showErrorPage.emit(25)},complete:()=>{}})}back(){this.backing.emit(1)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-tercer-paso"]],outputs:{step:"step",showErrorPage:"showErrorPage",backing:"backing"},standalone:!1,features:[e.Jv_([{provide:e.xe9,useValue:"es"}])],decls:44,vars:24,consts:[["id","back"],[1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],[1,"mb-4"],[1,"card","bg-transparent","card-border","mb-4"],[1,"card-header","py-4","d-flex","justify-content-between","align-items-center"],[1,"mb-0"],[1,"btn","btn-sm","btn-outline-link",3,"click"],[1,"card-body"],[1,"d-flex","align-items-center","border-bottom","pb-3"],[1,"material-symbols-rounded","card-icon","filled","material-md","mr-3","mb-0"],[1,"m-0","font-weight-semibold"],[1,"d-flex","align-items-center","border-bottom","py-3"],[1,"d-flex","align-items-center","pt-3"],[1,"d-flex","justify-content-end"],[1,"btn","btn-primary",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"a",1),e.bIt("click",function(){return o.back()}),e.j41(2,"span",2),e.EFF(3,"arrow_back"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()(),e.j41(7,"section")(8,"h2",3),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"div",4)(12,"div",5)(13,"h3",6),e.EFF(14),e.nI1(15,"transloco"),e.k0s(),e.j41(16,"button",7),e.bIt("click",function(){return o.back()}),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"div",8)(20,"div",9)(21,"span",10),e.EFF(22,"location_on"),e.k0s(),e.j41(23,"div")(24,"p",11),e.EFF(25),e.k0s(),e.j41(26,"small"),e.EFF(27),e.k0s()()(),e.j41(28,"div",12)(29,"span",10),e.EFF(30,"calendar_today"),e.k0s(),e.j41(31,"p",11),e.EFF(32),e.nI1(33,"date"),e.nI1(34,"titlecase"),e.k0s()(),e.j41(35,"div",13)(36,"span",10),e.EFF(37,"schedule"),e.k0s(),e.j41(38,"p",11),e.EFF(39),e.k0s()()()(),e.j41(40,"div",14)(41,"button",15),e.bIt("click",function(){return o.goToNextStep()}),e.EFF(42),e.nI1(43,"transloco"),e.k0s()()()),2&a&&(e.R7$(5),e.JRh(e.bMT(6,9,"reserva_turno.tercer_paso.volver")),e.R7$(4),e.JRh(e.bMT(10,11,"reserva_turno.tercer_paso.informacion")),e.R7$(5),e.JRh(e.bMT(15,13,"reserva_turno.tercer_paso.titulo")),e.R7$(3),e.JRh(e.bMT(18,15,"reserva_turno.tercer_paso.boton_editar")),e.R7$(8),e.JRh(o.informacionTurno.sede.nombre),e.R7$(2),e.JRh(o.informacionTurno.sede.direccion),e.R7$(5),e.JRh(e.bMT(34,20,e.i5U(33,17,o.informacionTurno.fecha,"EEEE d MMMM"))),e.R7$(7),e.SpI("",o.informacionTurno.horario," hs"),e.R7$(3),e.JRh(e.bMT(43,22,"reserva_turno.tercer_paso.boton_reservar")))},dependencies:[l.PV,l.vh,p.Kj],encapsulation:2})}}return t})();const ni=t=>({"active ":t});function ri(t,n){if(1&t){const i=e.RV6();e.j41(0,"label",16)(1,"input",17),e.bIt("click",function(){const o=s.eBV(i),r=o.$implicit,c=o.index,d=e.XpG(2);return s.Njj(d.selectOption(r,c))}),e.k0s(),e.EFF(2),e.k0s()}if(2&t){const i=n.$implicit,a=n.index,o=e.XpG(2);e.Y8G("for",e.mNQ("horario"+a))("ngClass",e.eq3(6,ni,o.selectedChipIndex===a)),e.R7$(),e.Y8G("id",e.mNQ("horario"+a)),e.R7$(),e.SpI(" ",i," ")}}function ci(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,ri,3,8,"label",15),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.horarios)}}function li(t,n){1&t&&(e.j41(0,"div",18)(1,"span"),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"reserva_turno.segundo_paso.fecha_seleccionad
1a")))}function di(t,n){1&t&&(e.j41(0,"button",19),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.segundo_paso.siguiente")))}function ui(t,n){if(1&t){const i=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.goToNextStep())}),e.EFF(1),e.nI1(2,"transloco"),e.k0s()}2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.segundo_paso.siguiente")))}(0,C.EO)($.A,"es");let pi=(()=>{class t{constructor(){this.reservaTurnoService=(0,s.WQX)(k),this.localStorageService=(0,s.WQX)(f.s),this.showErrorPage=new e.bkB,this.step=new e.bkB,this.backing=new e.bkB,this.horarios=[],this.fechas=[],this.fechasAux=[],this.isDisabled=!1,this.fechaStr=[],this.horario="",this.token="",this.nombre_tramite="",this.selectedChipIndex=null}ngOnInit(){this.fechaSucursal=this.localStorageService.getValue("fechaSucursal"),this.tramite=this.localStorageService.getValue("tramiteActual"),this.nombre_tramite=this.tramite.nombre,this.fechaStr=new Date(this.fechaSucursal.fecha).toISOString().split("T");let i={date:this.fechaStr[0],idServicio:this.loadIdServicio(),sedeId:this.fechaSucursal.sede.id};this.reservaTurnoService.getTurnoHoras(i).subscribe({next:a=>{this.fechas=a.content.horas,this.fechas.forEach(o=>{this.fechasAux.push(new Date(o))}),this.fechasAux.forEach(o=>{this.horarios.push(o.getHours().toString()+":"+((o.getMinutes()<10?"0":"")+o.getMinutes()).toString())})},error:a=>{this.showErrorPage.emit(25)},complete:()=>{}})}loadIdServicio(){let i="";return this.nombre_tramite.includes("Otorgamiento")?i=this.tramite.solicitud.tipo_caja:this.nombre_tramite.includes("Renovaci\xf3n")&&(i="renovacion"),i}selectOption(i,a){this.isDisabled=!0,this.horario=i,this.selectedChipIndex=this.selectedChipIndex===a?null:a}goToNextStep(){let i=new Date(this.fechaSucursal.fecha),a=this.horario.split(":"),o=i;o.setHours(Number.parseInt(a[0])),o.setMinutes(Number.parseInt(a[1])),o.setSeconds(0),this.fe
1chaSucursal.horario=this.horario,this.fechaSucursal.fecha=o.toString(),this.localStorageService.setValue("fechaSucursal",this.fechaSucursal);let r=new Date(this.fechaSucursal.fecha);r.setHours(r.getHours()-3);let d=r.toISOString().split("Z");this.postBody={},this.postBody.fecha=d[0],this.postBody.sedeId=this.fechaSucursal.sede.id.toString(),this.postBody.IdServicio=this.loadIdServicio(),this.reservaTurnoService.postTurnoBloquear(this.postBody).subscribe({next:u=>{this.fechaSucursal.token=u.content.token,this.localStorageService.setValue("fechaSucursal",this.fechaSucursal),this.step.emit({step:2,respuesta:"si"})},error:()=>{this.showErrorPage.emit(25)},complete:()=>{}})}volver(){this.backing.emit(1)}editar(){this.backing.emit(1)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-segundo-paso"]],outputs:{showErrorPage:"showErrorPage",step:"step",backing:"backing"},standalone:!1,features:[e.Jv_([{provide:e.xe9,useValue:"es"}])],decls:29,vars:23,consts:[["id","back",1,"mb-4"],[1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],[1,"mb-4"],[1,"card","card-border"],[1,"card-header","py-4","d-flex","justify-content-between","align-items-center"],[1,"mb-0"],[1,"btn","btn-sm","btn-outline-link",3,"click"],[1,"card-body"],[1,"font-family-headings"],[4,"ngIf"],["class","d-flex flex-wrap",4,"ngIf"],[1,"d-flex","justify-content-end"],["class","btn btn-primary mt-3","disabled","",4,"ngIf"],["class","btn btn-primary mt-3",3,"click",4,"ngIf"],["class","btn btn-chip btn-sm mb-3 mr-2",3,"for","ngClass",4,"ngFor","ngForOf"],[1,"btn","btn-chip","btn-sm","mb-3","mr-2",3,"for","ngClass"],["name","horario","type","radio",1,"btn-check",3,"click","id"],[1,"d-flex","flex-wrap"],["disabled","",1,"btn","btn-primary","mt-3"],[1,"btn","btn-primary","mt-3",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"a",1),e.bIt("click",function(){return o.volver()}),e.j41(2,"span",2),e.EFF(3,"arrow_back"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()(),e.j41(7,"section")(8,"h2",3),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"div",4)(12,"div",5)(13,"h4",6),e.EFF(14),e.nI1(15,"date"),e.nI1(16,"titlecase"),e.k0s(),e.j41(17,"button",7),e.bIt("click",function(){return o.editar()}),e.EFF(18),e.nI1(19,"transloco"),e.k0s()(),e.j41(20,"div",8)(21,"h5",9),e.EFF(22),e.nI1(23,"transloco"),e.k0s(),e.DNE(24,ci,2,1,"div",10)(25,li,4,3,"div",11),e.k0s()(),e.j41(26,"div",12),e.DNE(27,di,3,3,"button",13)(28,ui,3,3,"button",14),e.k0s()()),2&a&&(e.R7$(5),e.JRh(e.bMT(6,10,"reserva_turno.segundo_paso.volver")),e.R7$(4),e.JRh(e.bMT(10,12,"reserva_turno.segundo_paso.seleccion_horario")),e.R7$(5),e.Lme("",e.bMT(16,17,e.i5U(15,14,o.fechaSucursal.fecha,"EEEE, MMMM d"))," - ",o.fechaSucursal.sede.nombre),e.R7$(4),e.JRh(e.bMT(19,19,"reserva_turno.segundo_paso.boton_editar")),e.R7$(4),e.JRh(e.bMT(23,21,"reserva_turno.segundo_paso.horario")),e.R7$(2),e.Y8G("ngIf",o.horarios),e.R7$(),e.Y8G("ngIf",!o.horarios),e.R7$(2),e.Y8G("ngIf",!o.isDisabled),e.R7$(),e.Y8G("ngIf",o.isDisabled))},dependencies:[l.YU,l.Sq,l.bT,l.PV,l.vh,p.Kj],encapsulation:2})}}return t})();const mi=(t,n)=>({active:t,selected:n}),hi=t=>({"active ":t});function fi(t,n){if(1&t&&(e.j41(0,"option",26),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t){const i=n.$implicit;e.Y8G("value",i.value),e.R7$(),e.JRh(e.bMT(2,2,"CALENDAR.FULL_MONTH."+i.name.toLocaleUpperCase()))}}function gi(t,n){if(1&t&&(e.j41(0,"option",26),e.EFF(1),e.k0s()),2&t){const i=n.$implicit;e.Y8G("value",i),e.R7$(),e.JRh(i)}}function bi(t,n){if(1&t&&(e.qex(0),e.j41(1,"th"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.bVm()),2&t){const i=n.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,"CALENDAR.SHORT_DAY."+i.name.toLocaleUpperCase()))}}function vi(t,n){if(1&t){const i=e.RV6();e.j41(0,"td",31),e.bIt("click",function(){const o=s.eBV(i).$implicit,r=e.XpG(3);return s.Njj(!o.habilitado&&r.selectedDay(o.date,r.monthOfYear.month))}),e.j41(1,"div",32)(2,"span"),e.EFF(3),e.k0s()()()}if(2&t){const i=n.$implicit;e.R7$(),e.Y8G("ngClass",e.l_i(2,mi,i.existe,i.seleccionado)),e.R7$(2),e.JRh(i.date)}}function Ri(t,n){if(1&t&&(e.j41(0,"tr"),e.DNE(1,vi,4,5,"td",30),e.k0s()),2&t){const i=n.$implicit;e.R7$(),e.Y8G("ngForOf",i)}}function ki(t,n){if(1&t&&(e.j41(0,"div",27)(1,"table",28)(2,"thead")(3,"tr"),e.DNE(4,bi,4,3,"ng-container",29),e.k0s()(),e.j41(5,"tbody"),e.DNE(6,Ri,2,1,"tr",29),e.k0s()()()),2&t){const i=e.XpG();e.R7$(4),e.Y8G("ngForOf",i.monthOfYear.days),e.R7$(2),e.Y8G("ngForOf",i.monthOfYear.cells)}}function Fi(t,n){1&t&&(e.j41(0,"p",33),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.quinto_paso.dia_seleccionado")))}function Ti(t,n){if(1&t){const i=e.RV6();e.j41(0,"label",36)(1,"input",37),e.bIt("click",function(){const o=s.eBV(i),r=o.$implicit,c=o.index,d=e.XpG(2);return s.Njj(d.selectOption(r,c))}),e.k0s(),e.EFF(2),e.k0s()}if(2&t){const i=n.$implicit,a=n.index,o=e.XpG(2);e.Y8G("for",e.mNQ("horario"+a))("ngClass",e.eq3(6,hi,o.selectedChipIndex===a)),e.R7$(),e.Y8G("id",e.mNQ("horario"+a)),e.R7$(),e.SpI(" ",i," ")}}function Ii(t,n){if(1&t&&(e.j41(0,"div",34),e.DNE(1,Ti,3,8,"label",35),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.horarios)}}let Si=(()=>{class t{constructor(){this.localStorageService=(0,s.WQX)(f.s),this.reservaTurnoService=(0,s.WQX)(k),this._helper=(0,s.WQX)(F.T),this.step=new e.bkB,this.showErrorPage=new e.bkB,this.seleccion=new e.bkB,this.backing=new e.bkB,this.arrMonth=[],this.isDisabled=!1,this.isSelected=!1,this.showSchedules=!1,this.sedes=[],this.selectedDate="",this.dias=[],this.dias_mes=[],this.mes_actual_string="",this.fechasAux=[],this.horarios=[],this.horario="",this.last_month=null,this.ban=!0,this.first_month=null,this.first_month_html=null,this.first_day=null,this.last_year=null,this.nombre_tramite="",this.selectedChipIndex=null,this.today=new Date;const i=new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.arrYear=[this.currentYear],this.generateMonthsOfYear(),this.onChangeMonth(this.currentMonth)}
1ngOnInit(){this.seleccion.emit(null),this.fechasCalendar=this.localStorageService.getValue("fechasCalendar"),this.tramite=this.localStorageService.getValue("tramiteActual"),this.nombre_tramite=this.tramite.nombre,this.getFechas()}loadIdServicio(){let i="";return this.nombre_tramite.includes("Otorgamiento")?i=this.tramite.solicitud.tipo_caja:this.nombre_tramite.includes("Renovaci\xf3n")&&(i="renovacion"),i}getDayStr(i){return 0===i.search("0")?i.slice(-1):i}getFechas(){let i,a={dia:null,mes:null,anio:null};if(this.fechasCalendar.fechas.length>0){this.fechasCalendar.fechas.forEach(d=>{i=d.split("T")[0].split("-"),a={dia:this.getDayStr(i[2]),mes:this.getDayStr(i[1]),anio:this.getDayStr(i[0])},this.dias.push(a)});let o=this.dias[this.dias.length-1],r=this.dias[0];this.first_day=Number.parseInt(r.dia),this.last_month=Number.parseInt(o.mes),this.first_month=Number.parseInt(r.mes),this.first_month_html=this.first_month-1,this.last_year=Number.parseInt(o.anio);const c=new Date;this.currentMonth=c.getMonth(),this.mes_actual_string=this._helper.mes_detalle.find(d=>Number.parseInt(d.numero)===this.currentMonth+1).mes,this.currentYear=c.getFullYear(),this.arrYear=this.last_year!==this.currentYear?[this.currentYear,this.currentYear+1]:[this.currentYear],this.currentDay=c.getDate(),this.generateMonthsOfYear(),this.onChangeMonth(this.first_month_html)}}back(){this.backing.emit(1)}loadDates(i,a,o){const r=[];let c=new Date(i,a).getDay(),d=1;for(let u=0;u<6;u++){r.push([]);for(let g=0;g<7;g++)if(0===u&&g<c)r[u].push("");else{if(d>this.daysInMonth(a,i))break;{let h={date:null,seleccionado:!1,habilitado:!0,existe:!1};h.date=d;let R=!1;this.arrMonth.forEach(v=>{v.value===a&&(R=!0)}),R&&this.dias.forEach(v=>{Number.parseInt(v.dia)===h.date&&Number.parseInt(v.mes)===a+1&&(this.ban?this.first_day<=h.date&&this.first_month<=a+1&&(this.ban=!1,h.existe=!0,h.habilitado=!1):(h.existe=!0,h.habilitado=!1))}),r[u].push(h),h.date===this.today.getDate()&&i===this.today.getFullYear()&&this.today.getMonth(),d++}}}return r}daysInMonth(i,a){return 32-new Date(a,i,32).getDate()}generateMonthsOfYear(i){const a=new Date;+this.currentYear===a.getFullYear()?this.arrMonth=T.getMonths().filter(o=>o.value>=this.first_month-1&&o.value<=this.last_month-1):+this.last_year!==a.getFullYear()&&(this.arrMonth=T.getMonths().filter(o=>0===o.value)),this.calendar=new Array(12).fill(0).map((o,r)=>{const c=T.getMonths()[r];return{month:c,days:T.getDays(),cells:this.loadDates(this.currentYear,c.value,this.dias)}})}onChangeMonth(i){this.isDisabled=!1,this.monthOfYear=this.calendar[i],this.horarios=[],this.showSchedules=!1}selectedDay(i,a){this.horarios=[],this.seleccion.emit(null),this.generateMonthsOfYear(i);let o=this.monthOfYear;this.isDisabled=!1;for(let d=0;d<=o.cells.length-1;d++)for(let u=0;u<=o.cells[d].length-1;u++)o.cells[d][u]&&(o.cells[d][u].seleccionado=o.cells[d][u].date===i&&o.month.value===a.value);this.monthOfYear=o;const r=((i<10?"0":"")+i).toString(),c=((a.value<9?"0":"")+(a.value+1)).toString();this.selectedDate=this.currentYear+"-"+c+"-"+r,this.getHorarios(this.selectedDate)}selectOption(i,a){this.isDisabled=!0,this.horario=i,this.selectedChipIndex=this.selectedChipIndex===a?null:a;let o=this.localStorageService.getValue("tramiteActual");o.pasos[4].data={idServicio:o.solicitud.tipo_caja,sedeId:this.fechasCalendar.sede.id,hora:this.horario,date:this.selectedDate},this.localStorageService.setValue("tramiteActual",o)}getHorarios(i){let r,a=this.localStorageService.getValue("tramiteActual"),o={date:i,idServicio:this.loadIdServicio(),sedeId:this.fechasCalendar.sede.id};a.pasos[4].data=o,this.localStorageService.setValue("tramiteActual",a),this.horarios=[],this.reservaTurnoService.getTurnoHoras(o).subscribe({next:c=>{this.fechasAux=[],r=c.content.horas,r.forEach(d=>{this.fechasAux.push(new Date(d))}),this.fechasAux.forEach(d=>{this.horarios.push(d.getHours().toString()+":"+((d.getMinutes()<10?"0":"")+d.getMinutes()).toString())}),this.showSchedules=!0},error:c=>{this.showErrorPage.emit(25)},complete:()=>{}})}goToNextStep(){let i=this.localStorageService.getValue("tramiteActual");this.postBody={};let a=i.pasos[4].data.hora.split(":"),o=((Number.parseInt(a[0])<10?"0":"")+Number.parseInt(a[0])).toString(),r=new Date(i.pasos[4].data.date+"T"+o+":"+a[1]);r.setHours(r.getHours()-3);let c=r.toISOString().split("Z");this.postBody.fecha=c[0],this.postBody.sedeId=i.pasos[4].data.sedeId.toString(),this.postBody.IdServicio=this.loadIdServicio(),this.reservaTurnoService.postTurnoBloquear(this.postBody).subscribe({next:d=>{this.fechaSucursal={}
1,this.fechaSucursal.token=d.content.token,this.fechaSucursal.fecha=this.postBody.fecha,this.fechaSucursal.horario=this.horario,this.fechaSucursal.sede=this.fechasCalendar.sede,this.localStorageService.setValue("fechaSucursal",this.fechaSucursal),this.step.emit({step:5,respuesta:"no"})},error:d=>{this.showErrorPage.emit(25)},complete:()=>{}})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-quinto-paso"]],outputs:{step:"step",showErrorPage:"showErrorPage",seleccion:"seleccion",backing:"backing"},standalone:!1,decls:40,vars:23,consts:[["id","back",1,"mb-4"],[1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],["id","calendar-turnos"],[1,"mb-4"],[1,"card",2,"min-height","448px"],[1,"card-body"],[1,"row"],["id","calendar-col",1,"col-md-auto","justify-content-center","pr-md-4"],[1,"mb-4","font-family-headings"],[1,"col"],[1,"form-wrapper"],["id","inlineFormCustomSelect",1,"month",3,"change","ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"col-auto"],["id","inlineFormCustomSelect",1,"year",3,"change","ngModelChange","ngModel"],[1,"my-2"],["class","calendar-container",4,"ngIf"],[1,"d-md-none","my-4"],[1,"col-md","pl-lg-4"],["id","horarios"],[1,"mb-4","font-family-headings","title-fixed"],["class","text-muted",4,"ngIf"],["class","overflow-auto p-1","style","max-height: 45vh",4,"ngIf"],[1,"d-flex","flex-row","justify-content-end"],[1,"btn","btn-primary","mt-3",3,"click","disabled"],[3,"value"],[1,"calendar-container"],[1,"calendar"],[4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"date",3,"ngClass"],[1,"text-muted"],[1,"overflow-auto","p-1",2,"max-height","45vh"],["class","btn btn-chip btn-sm mb-3 mr-2",3,"for","ngClass",4,"ngFor","ngForOf"],[1,"btn","btn-chip","btn-sm","mb-3","mr-2",3,"for","ngClass"],["name","horario","type","radio",1,"btn-check",3,"click","id"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"a",1),e.bIt("click",function(){return o.back()}),e.j41(2,"span",2),e.EFF(3,"arrow_back"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()(),e.j41(7,"section",3)(8,"h2",4),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"h5",9),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"div",7)(19,"div",10)(20,"div",11)(21,"select",12),e.bIt("change",function(c){return o.onChangeMonth(+c.target.value)}),e.mxI("ngModelChange",function(c){return e.DH7(o.first_month_html,c)||(o.first_month_html=c),c}),e.DNE(22,fi,3,4,"option",13),e.k0s()()(),e.j41(23,"div",14)(24,"select",15),e.bIt("change",function(){return o.generateMonthsOfYear()}),e.mxI("ngModelChange",function(c){return e.DH7(o.currentYear,c)||(o.currentYear=c),c}),e.DNE(25,gi,2,2,"option",13),e.k0s()()(),e.nrm(26,"hr",16),e.DNE(27,ki,7,2,"div",17),e.nrm(28,"hr",18),e.k0s(),e.j41(29,"div",19)(30,"section",20)(31,"h5",21),e.EFF(32),e.nI1(33,"transloco"),e.k0s(),e.DNE(34,Fi,3,3,"p",22)(35,Ii,2,1,"div",23),e.k0s()()()()(),e.j41(36,"div",24)(37,"button",25),e.bIt("click",function(){return o.goToNextStep()}),e.EFF(38),e.nI1(39,"transloco"),e.k0s()()()),2&a&&(e.R7$(5),e.JRh(e.bMT(6,13,"reserva_turno.quinto_paso.volver")),e.R7$(4),e.JRh(e.bMT(10,15,"reserva_turno.quinto_paso.fecha")),e.R7$(7),e.JRh(e.bMT(17,17,"reserva_turno.quinto_paso.dia")),e.R7$(5),e.R50("ngModel",o.first_month_html),e.R7$(),e.Y8G("ngForOf",o.arrMonth),e.R7$(2),e.R50("ngModel",o.currentYear),e.R7$(),e.Y8G("ngForOf",o.arrYear),e.R7$(2),e.Y8G("ngIf",o.monthOfYear),e.R7$(5),e.JRh(e.bMT(33,19,"reserva_turno.quinto_paso.horario")),e.R7$(2),e.Y8G("ngIf",!o.showSchedules),e.R7$(),e.Y8G("ngIf",o.showSchedules),e.R7$(2),e.Y8G("disabled",!o.isDisabled),e.R7$(),e.JRh(e.bMT(39,21,"reserva_turno.quinto_paso.siguiente")))},dependencies:[l.YU,l.Sq,l.bT,b.xH,b.y7,b.wz,b.BC,b.vS,p.Kj],encapsulation:2})}}return t})();var xi=_(9230);function Ei(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",14)(1,"div",15)(2,"div",16)(3,"input",17),e.bIt("keydown.enter",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.searchLocation())}),e.k0s()()(),e.j41(4,"div",18)(5,"button",19),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.searchLocation())}),e.j41(6,"span",20),e.EFF(7,"search"),e.k0s()(),e.j41(8,"button",21),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cleanLocation())}),e.j41(9,"span"),e.EFF(10),e.nI1(11,"transloco"),e.k0s()()()()}if(2&t){const i=e.XpG();e.R7$(3),e.Y8G("formControl",i.inputValue),e.R7$(5),e.Y8G("disabled",!i.inputValue.value),e.R7$(2),e.JRh(e.bMT(11,3,"reserva_turno.primer_paso.limpiar"))}}function Ci(t,n){1&t&&(e.j41(0,"div")(1,"small",22)(2,"span",23),e.EFF(3,"error"),e.k0s(),e.EFF(4),e.nI1(5,"transloco"),e.k0s()()),2&t&&(e.R7$(4),e.JRh(e.bMT(5,1,"reserva_turno.primer_paso.direccion")))}function $i(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-skeleton-page",24),e.k0s()),2&t&&(e.R7$(),e.Y8G("amount","1"))}function Mi(t,n){1&t&&(e.j41(0,"h5",34),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.primer_paso.seleccion")))}function Gi(t,n){if(1&t&&(e.j41(0,"small"),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&t){const i=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"reserva_turno.primer_paso.ordenado")),e.R7$(3),e.JRh(i.inputValue.value)}}function yi(t,n){if(1&t&&(e.j41(0,"h4",1),e.EFF(1),e.nI1(2,"date"),e.nI1(3,"titlecase"),e.k0s()),2&t){const i=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(3,4,e.i5U(2,1,i,"EEEE, MMMM d")))}}function wi(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",39)(1,"div",40)(2,"input",41),e.bIt("change",function(){const o=s.eBV(i).$implicit,r=e.XpG().$implicit,c=e.XpG(3);return s.Njj(c.checked(o.sede,r))}),e.k0s(),e.j41(3,"label",42)(4,"p",43),e.EFF(5),e.k0s(),e.j41(6,"small",44),e.EFF(7),e.k0s()()(),e.nrm(8,"hr"),e.k0s()}if(2&t){const i=n.$implicit,a=n.index,o=e.XpG().index;e.R7$(2),e.Y8G("value",e.mNQ(i.sede.id))("id",a+"-"+o),e.R7$(),e.Y8G("for",a+"-"+o),e.R7$(2),e.JRh(i.sede.n
1ombre),e.R7$(2),e.JRh(i.sede.direccion)}}function Yi(t,n){if(1&t&&(e.j41(0,"div")(1,"div",36),e.DNE(2,yi,4,6,"h4",37)(3,wi,9,6,"div",38),e.k0s()()),2&t){const i=n.$implicit,a=e.XpG(3);e.R7$(2),e.Y8G("ngIf",i),e.R7$(),e.Y8G("ngForOf",a.sedes)}}function Di(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,Yi,4,2,"div",35),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngForOf",i.fechaDate)}}function Vi(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",39)(1,"div",40)(2,"input",45),e.bIt("change",function(){const o=s.eBV(i).$implicit,r=e.XpG(4);return s.Njj(r.checkedFilter(o.sede))}),e.k0s(),e.j41(3,"label",42)(4,"p",43),e.EFF(5),e.k0s(),e.j41(6,"small",44),e.EFF(7),e.k0s()()(),e.nrm(8,"hr",46),e.k0s()}if(2&t){const i=n.$implicit,a=n.index;e.R7$(2),e.Y8G("value",e.mNQ(i.sede.id))("id",a),e.R7$(),e.Y8G("for",a),e.R7$(2),e.JRh(i.sede.nombre),e.R7$(2),e.JRh(i.sede.direccion)}}function Ji(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,Vi,9,6,"div",38),e.k0s()),2&t){const i=e.XpG(3);e.R7$(),e.Y8G("ngForOf",i.sedesEncontradas)}}function Ni(t,n){1&t&&(e.j41(0,"div")(1,"p"),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"reserva_turno.primer_paso.no_turnos")))}function Oi(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,Ji,2,1,"div",11)(2,Ni,4,3,"div",11),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.errorMessage),e.R7$(),e.Y8G("ngIf",i.errorMessage)}}function Bi(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",47)(1,"app-map",48),e.bIt("coordenadas",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.addNewMarker())}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("datos",i.datosForMap)("cleanMap",i.cleanMap)}}function Pi(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",47)(1,"app-map",48),e.bIt("coordenadas",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.addNewMarker())}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("datos",i.datosForMap)("cleanMap",i.cleanMap)}}function Xi(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",47)(1,"app-map",48),e.bIt("coordenadas",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.addNewMarker())}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("datos",i.datosForMap)("cleanMap",i.cleanMap)}}function Ai(t,n){if(1&t&&(e.j41(0,"section",25)(1,"div",26)(2,"div",27)(3,"div",28)(4,"div",29)(5,"div",30),e.DNE(6,Mi,3,3,"h5",31)(7,Gi,5,4,"small",11),e.k0s(),e.j41(8,"div",32),e.DNE(9,Di,2,1,"div",11)(10,Oi,3,2,"div",11),e.k0s()(),e.DNE(11,Bi,2,2,"div",33)(12,Pi,2,2,"div",33)(13,Xi,2,2,"div",33),e.k0s()()()()),2&t){const i=e.XpG();e.R7$(6),e.Y8G("ngIf",!i.errorMessage),e.R7$(),e.Y8G("ngIf",i.isFiltered&&i.validAddress),e.R7$(2),e.Y8G("ngIf",!i.isFiltered),e.R7$(),e.Y8G("ngIf",i.isFiltered),e.R7$(),e.Y8G("ngIf",!i.isFiltered&&!i.validAddress),e.R7$(),e.Y8G("ngIf",i.isFiltered&&!i.validAddress),e.R7$(),e.Y8G("ngIf",i.isFiltered&&i.validAddress&&i.loadMarkersOnMap)}}function Ui(t,n){1&t&&(e.j41(0,"button",52),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.primer_paso.siguiente")))}function Li(t,n){if(1&t){const i=e.RV6();e.j41(0,"button",53),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.goToNextStep())}),e.EFF(1),e.nI1(2,"transloco"),e.k0s()}2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.primer_paso.siguiente")))}function Qi(t,n){if(1&t&&(e.j41(0,"div",49),e.DNE(1,Ui,3,3,"button",50)(2,Li,3,3,"button",51),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf",!i.isDisabled),e.R7$(),e.Y8G("ngIf",i.isDisabled)}}function Wi(t,n){1&t&&(e.j41(0,"button",52),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.primer_paso.siguiente")))}function qi(t,n){if(1&t){const i=e.RV6();e.j41(0,"button",53),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.goToCalendarStep())}),e.EFF(1),e.nI1(2,"transloco"),e.k0s()}2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"reserva_turno.primer_paso.siguiente")))}function zi(t,n){if(1&t&&(e.j41(0,"div",49),e.DNE(1,Wi,3,3,"button",50)(2,qi,3,3,"button",51),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf",!i.isDisabled),e.R7$(),e.Y8G("ngIf",i.isDisabled)}}(0,C.EO)($.A,"es");let Ki=(()=>{class t{constructor(){this.router=(0,s.WQX)(S.Ix),this.reservaTurnoService=(0,s.WQX)(k),this.localStorage=(0,s.WQX)(f.s),this.navegacion=(0,s.WQX)(F.T),this.step=new e.bkB,this.backStep=new e.bkB,this.setStep=new e.bkB,this.coordenadas=new e.bkB,this.cleanMap=!1,this.inputValue=new b.MJ(""),this.sedes=[],this.fe
1chaDate=[],this.sedesEncontradas=[],this.isDisabled=!1,this.showSearchSection=!1,this.isEnabled=!1,this.isFiltered=!1,this.latitud="",this.longitud="",this.value=[],this.numero="0",this.errorMessage="",this.stepOrder=1,this.navegacion_actual=[],this.respuesta="",this.validAddress=!1,this.contenidoSedes=!1,this.loadMarkersOnMap=!1,this.patologias=[],this.cleanMarkers=!1,this.nombre_tramite=""}ngOnInit(){this.markers=[],this.localStorage.setValue("Markers",this.markers),this.marker={},this.tramite=this.localStorage.getValue("tramiteActual"),this.nombre_tramite=this.tramite.nombre,this.validacionPatologias(),this.loadSedesProximidad()}validacionPatologias(){null!=this.tramite?.pasos[2]?.data?.filtro_sedes&&(this.patologias=this.tramite.pasos[2].data.filtro_sedes)}ngOnChanges(){this.cleanMap=!0}loadSedesProximidad(){this.markers=[];let i={tipo_caja:this.loadIdServicio(),categoria_licencia:this.tramite.solicitud.categoria_licencia,patologia:this.patologias};this.reservaTurnoService.getTurnoFechaProxima(i).subscribe({next:a=>{this.sedes=a.content.sedes,this.sedes.forEach(o=>{this.marker={},this.marker.latitud=o.sede?.latitud,this.marker.longitud=o.sede?.longitud,this.marker.zoom=12,this.markers.push(this.marker),o.fechas&&(this.fechas=o.fechas)}),this.datosForMap={markers:this.markers,sedes:this.sedes},this.cleanMap=!0,this.fechas.forEach(o=>{this.fechaDate.push(new Date(o+"T00:00"))}),this.contenidoSedes=!0},error:()=>{this.setStep.emit(25)},complete:()=>{}})}loadIdServicio(){let i="";return this.nombre_tramite.includes("Otorgamiento")?i=this.tramite.solicitud.tipo_caja:this.nombre_tramite.includes("Renovaci\xf3n")&&(i="renovacion"),i}back(){this.backStep.emit()}checked(i,a){this.fechaSucursal={},this.fechaSucursal.sede=i,this.fechaSucursal.fecha=a,this.isDisabled=!0}showSearch(){this.isDisabled=!1,this.showSearchSection=!0,this.sedesEncontradas=[],this.fechas=[],this.markers=[];let i={lat:"1",lon:"1",IdServicio:this.loadIdServicio(),clase:this.tramite.solicitud.categoria_licencia,patologia:this.patologias};this.reservaTurnoService.getTurnoSucursales(i).subscribe({next:a=>{this.cleanMarkers&&(this.validAddress=!1),this.sedesEncontradas=a.content.sedes,this.sedesEncontradas.forEach(o=>{this.marker={},this.marker.latitud=o.sede?.latitud,this.marker.longitud=o.sede?.longitud,this.marker.zoom=12,this.markers.push(this.marker),this.datosForMap={markers:this.markers,sedes:this.sedesEncontradas}}),this.cleanMap=!0,this.isFiltered=!0,this.errorMessage=null},error:a=>{this.setStep.emit(25)}})}hideSearch(){this.showSearchSection=!1,this.cleanMap=!1,this.isFiltered=!1,this.inputValue.reset(),this.markers=[],this.validAddress=!1,this.contenidoSedes=!1,this.loadSedesProximidad(),this.isDisabled=!1}goToNextStep(){this.localStorage.setValue("fechaSucursal",this.fechaSucursal),this.step.emit({step:1,respuesta:"si"})}goToCalendarStep(){let i=this.loadIdServicio(),o={fecha:(new Date).toISOString().split("T")[0],servicio:i};this.reservaTurnoService.getTurnoFechas(o).subscribe({next:r=>{this.fechaDate=[],r.content.fechas&&(this.fechas=r.content.fechas,this.fechas.forEach(d=>{this.fechaDate.push(new Date(d+"T00:00"))}),this.fechasCalendar={},this.fechasCalendar.sede=this.sede,this.fechasCalendar.fechas=this.fechaDate,this.localStorage.setValue("fechasCalendar",this.fechasCalendar)),this.step.emit({step:1,respuesta:"no"})},error:r=>{this.setStep.emit(25)},complete:()=>{}})}containsOnlyNumbers(i){return/^\d+$/.test(i)}searchLocation(){if(this.inputValue.value){this.value=[],this.markers=[],this.isFiltered=!0,this.cleanMap=!0,this.sedesEncontradas=[],this.inputValue.value.split(" ").forEach(o=>{this.containsOnlyNumbers(o)?this.numero=o:this.value.push(o+" ")});let a="";this.value.forEach(o=>{a=a+o+" "}),this.reservaTurnoService.getCoordenadas(a,this.numero.toString()).subscribe({next:o=>{if(o.errorMessage)this.errorMessage=o.errorMessage,this.validAddress=!1;else{this.errorMessage=null,this.latitud=o.direccionesNormalizadas[0].coordenadas.y,this.longitud=o.direccionesNormalizadas[0].coordenadas.x,this.dataCoordinates={lat:this.latitud,lon:this.longitud},this.marker={},this.marker.latitud=Number.parseFloat(this.latitud),this.marker.longitud=Number.parseFloat(this.longitud),this.marker.zoom=12,this.markers.push(this.marker);let r={lat:this.latitud,lon:this.longitud,IdServicio:this.loadIdServicio(),clase:this.tramite.solicitud.categoria_licencia,patologia:this.patologias};this.reservaTurnoService.getTurnoSucursales(r).subscribe({next:c=>{this.cleanMap=!0,this.sedesEncontradas=[],this.sedesEncontradas=c.content.sedes,this.sedesForMap=JSON.parse(JSON.stringify(this.sedesEncontradas)),this.sedesEncontradas.forEach(u=>{this.marker={},this.marker.latitud=u.sede?.latitud,this.marker.longitud=u.sede?.longitud,this.marker.zoom=12,this.markers.push(this.marker)}),this.addNewMarker();let d={distance:null,sede:{deleted:!1,departamento:null,detalle:null,direccion:"Direcci\xf3n: "+a+this.numero.toString(),id:null,infoMail:"",latitud:null,longitud:null,nombre:"",piso:null}};this.sedesForMap=[d,...this.sedesForMap],this.datosForMap={markers:this.markers,sedes:this.sedesForMap},this.validAddress=!0},error:()=>{},complete:()=>{}})}},error:o=>
1{this.setStep.emit(25)},complete:()=>{}})}}checkedFilter(i){this.isDisabled=!0,this.sede=i}addNewMarker(){this.isFiltered?(this.cleanMap=!0,this.coordenadas.emit({markers:this.dataCoordinates,sedes:{nombre:this.inputValue.value}}),this.cleanMap=!1,this.loadMarkersOnMap=!0):(this.coordenadas.emit(null),this.loadMarkersOnMap=!1)}cleanLocation(){this.cleanMarkers=!0,this.markers=[],this.inputValue.reset(),this.showSearch()}isRenderedMap(){if(this.isFiltered){if(!this.validAddress)return!0;if(this.loadMarkersOnMap)return!0}else if(!this.validAddress)return!0;return!1}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-primer-paso"]],outputs:{step:"step",backStep:"backStep",setStep:"setStep",coordenadas:"coordenadas"},standalone:!1,features:[e.Jv_([{provide:e.xe9,useValue:"es"}]),e.OA$],decls:22,vars:15,consts:[["id","reserva-turno"],[1,"mb-3"],["id","search"],[1,"d-md-flex","mb-3"],[1,"custom-control","custom-radio","mr-3"],["type","radio","name","flexRadioDefault","id","flexRadioDefault1","checked","",1,"custom-control-input",3,"change"],["for","flexRadioDefault1",1,"custom-control-label","mb-md-0"],[1,"custom-control","custom-radio"],["type","radio","name","flexRadioDefault","id","flexRadioDefault2",1,"custom-control-input",3,"change"],["for","flexRadioDefault2",1,"custom-control-label","mb-md-0"],["class","row align-items-center",4,"ngIf"],[4,"ngIf"],["id","reserva-turno-card",4,"ngIf"],["class","d-flex flex-row justify-content-end",4,"ngIf"],[1,"row","align-items-center"],[1,"col-lg-6","mb-3"],[1,"form-search","bg-light"],["type","text","placeholder","Ingres\xe1 una direcci\xf3n de referencia",1,"form-control","input-search",3,"keydown.enter","formControl"],[1,"col-auto","mb-3"],["type","button",1,"btn","btn-info","btn-icon",3,"click"],[1,"material-symbols-outlined"],["type","button",1,"btn","btn-primary","ml-3",3,"click","disabled"],[1,"d-flex","align-item-center","text-danger"],[1,"material-symbols-rounded","material-sm","mr-1"],["cols","col",3,"amount"],["id","reserva-turno-card"],[1,"card"],[1,"card-body"],[1,"row"],[1,"col-md-6","mb-4","mb-md-0"],[1,"title-fixed"],["class","mb-1",4,"ngIf"],[1,"overflow-auto",2,"height","35vh"],["class","col-md-6 pl-3 pl-md-0","style","height: 40vh",4,"ngIf"],[1,"mb-1"],[4,"ngFor","ngForOf"],[1,"mb-4"],["class","mb-3",4,"ngIf"],["id","sede","class","mr-3",4,"ngFor","ngForOf"],["id","sede",1,"mr-3"],[1,"custom-control","custom-radio","custom-radio-right"],["type","radio","name","sedes",1,"custom-control-input",3,"change","id","value"],[1,"custom-control-label","text-decoration-none","w-100","m-0",3,"for"],[1,"mb-0"],[1,"d-block"],["type","radio","name","sedesEncontradas",1,"custom-control-input",3,"change","id","value"],[1,"hr"],[1,"col-md-6","pl-3","pl-md-0",2,"height","40vh"],[3,"coordenadas","datos","cleanMap"],[1,"d-flex","flex-row","justify-content-end"],["class","btn btn-primary mt-3","disabled","",4,"ngIf"],["class","btn btn-primary mt-3",3,"click",4,"ngIf"],["disabled","",1,"btn","btn-primary","mt-3"],[1,"btn","btn-primary","mt-3",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"h2",1),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"div",2)(5,"div",3)(6,"div",4)(7,"input",5),e.bIt("change",function(){return o.hideSearch()}),e.k0s(),e.j41(8,"label",6),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",7)(12,"input",8),e.bIt("change",function(){return o.showSearch()}),e.k0s(),e.j41(13,"label",9),e.EFF(14),e.nI1(15,"transloco"),e.k0s()()(),e.DNE(16,Ei,12,5,"div",10)(17,Ci,6,3,"div",11),e.k0s(),e.DNE(18,$i,2,1,"div",11)(19,Ai,14,7,"section",12)(20,Qi,3,2,"div",13)(21,zi,3,2,"div",13),e.k0s()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,9,"reserva_turno.primer_paso.titulo")),e.R7$(7),e.SpI(" ",e.bMT(10,11,"reserva_turno.primer_paso.turno_proximo")," "),e.R7$(5),e.SpI(" ",e.bMT(15,13,"reserva_turno.primer_paso.turno_cercania")," "),e.R7$(2),e.Y8G("ngIf",o.showSearchSection),e.R7$(),e.Y8G("ngIf",o.isFiltered&&o.errorMessage),e.R7$(),e.Y8G("ngIf",!o.contenidoSedes),e.R7$(),e.Y8G("ngIf",o.contenidoSedes),e.R7$(),e.Y8G("ngIf",!o.isFiltered),e.R7$(),e.Y8G("ngIf",o.isFiltered))},dependencies:[l.Sq,l.bT,x.M,xi.i,b.me,b.BC,b.l_,l.PV,l.vh,p.Kj],encapsulation:2})}}return t})();const Zi=()=>["day","workWeek","month"];/localhost/.test(document.location.host)||(0,G.SmG)();let eo=(()=>{class t{constructor(){this.http=(0,s.WQX)(w.Qq),this.localStorageService=(0,s.WQX)(f.s),this.currentDate=new Date,this.dataSource=new A({store:new U({load:i=>this.getData(i,{showDeleted:!1})})})}ngOnInit(){this.informacionTurno={},this.informacionTurno=this.localStorageService.getValue("fechaSucursal")}getData(i,a){const c=["https://www.googleapis.com/calendar/v3/calendars/","[email protected]","/events?key=","AIzaSyCI3u6D1-7zxZCpcXBV4AqLmWTvdtXTkEA"].join("");return X(this.http.get(c,a)).then(d=>d.items)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-google-calendar"]],standalone:!1,decls:5,vars:8,consts:[[1,"long-title"],["startDateE
1xpr","start.dateTime","endDateExpr","end.dateTime","textExpr","summary","timeZone","America/Argentina/Buenos_Aires","currentView","workWeek",3,"dataSource","editing","startDayHour","showAllDayPanel","views","currentDate","height"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"h3"),e.EFF(3,"Mi calendario"),e.k0s()(),e.nrm(4,"dx-scheduler",1),e.k0s()),2&a&&(e.R7$(4),e.Y8G("dataSource",o.dataSource)("editing",!1)("startDayHour",7)("showAllDayPanel",!1)("views",e.lJ4(7,Zi))("currentDate",o.currentDate)("height",500))},dependencies:[E.x],styles:[".long-title h3{font-family:Segoe UI Light,Helvetica Neue Light,Segoe UI,Helvetica Neue,Trebuchet MS,Verdana;font-weight:200;font-size:28px;text-align:center;margin-bottom:20px}"]})}}return t})();(0,C.EO)($.A,"es");let Q=(()=>{class t{constructor(){this.localStorageService=(0,s.WQX)(f.s),this.step=new e.bkB,window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.informacionTurno={},this.informacionTurno=this.localStorageService.getValue("fechaSucursal"),this.currentUser=this.localStorageService.getValue("currentUser"),this.tramite=this.localStorageService.getValue("tramiteActual")}goToMyCalendar(){this.step.emit("completado"===this.tramite.pasos[4].estado?13:{step:6,respuesta:"si"})}cancel(){window.open(this.informacionTurno?this.informacionTurno.link_cancelar:this.tramite.pasos[4].data.link_cancelar,"_blank")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-detalle-reserva-turno"]],outputs:{step:"step"},standalone:!1,features:[e.Jv_([{provide:e.xe9,useValue:"es"}])],decls:48,vars:30,consts:[[1,"d-flex","flex-column","justity-content-between"],[1,"stepper-wrapper","mt-2"],[1,"badge","mb-3","badge-success"],[1,"mb-4"],[1,"card","bg-transparent","card-border","mb-4"],[1,"card-header","py-4","d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column"],[1,"mb-0"],[1,"card-body"],[1,"d-flex","align-items-center","border-bottom","pb-3"],[1,"material-symbols-rounded","card-icon","filled","material-md","mr-3","mb-0"],[1,"m-0","font-weight-semibold"],[1,"d-flex","align-items-center","border-bottom","py-3"],[1,"d-flex","align-items-center","pt-3"],[1,"alert","alert-info","mb-0"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"div",1)(2,"span",2),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.j41(5,"h2",3),e.EFF(6),e.nI1(7,"transloco"),e.k0s()(),e.j41(8,"section")(9,"div",4)(10,"div",5)(11,"div",6)(12,"h3",7),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"small"),e.EFF(16),e.k0s()()(),e.j41(17,"div",8)(18,"div",9)(19,"span",10),e.EFF(20,"location_on"),e.k0s(),e.j41(21,"div")(22,"p",11),e.EFF(23),e.k0s(),e.j41(24,"small"),e.EFF(25),e.k0s()()(),e.j41(26,"div",12)(27,"span",10),e.EFF(28,"calendar_today"),e.k0s(),e.j41(29,"p",11),e.EFF(30),e.nI1(31,"date"),e.nI1(32,"date"),e.k0s()(),e.j41(33,"div",13)(34,"span",10),e.EFF(35,"schedule"),e.k0s(),e.j41(36,"p",11),e.EFF(37),e.k0s()()()()(),e.j41(38,"section")(39,"div",14)(40,"span"),e.EFF(41),e.nI1(42,"transloco"),e.j41(43,"strong"),e.EFF(44),e.nI1(45,"transloco"),e.k0s(),e.EFF(46),e.nI1(47,"transloco"),e.k0s()()()),2&a&&(e.R7$(3),e.JRh(e.bMT(4,12,"reserva_turno.detalle_turno.estado_completado")),e.R7$(3),e.JRh(e.bMT(7,14,"reserva_turno.detalle_turno.titulo")),e.R7$(7),e.JRh(e.bMT(14,16,"reserva_turno.detalle_turno.titulo_1")),e.R7$(3),e.SpI("N\xfamero de cita: ",o.informacionTurno?o.informacionTurno.idCita:o.tramite.pasos[4].data.idCita),e.R7$(7),e.JRh(o.informacionTurno?o.informacionTurno.sede.nombre:o.tramite.pasos[4].data.sede.nombre),e.R7$(2),e.JRh(o.informacionTurno?o.informacionTurno.sede.direccion:o.tramite.pasos[4].data.sede.direccion),e.R7$(5),e.JRh(o.informacionTurno?e.i5U(31,18,o.informacionTurno.fecha,"d 'de' MMMM 'del' y"):e.i5U(32,21,o.tramite.pasos[4].data.fecha,"d 'de' MMMM 'del' y")),e.R7$(7),e.SpI("",o.informacionTurno?o.informacionTurno.horario:o.tramite.pasos[4].data.horario," hs"),e.R7$(4),e.Lme("",e.bMT(42,24,"reserva_turno.detalle_turno.mensaje")," ",o.currentUser.correo," y buscar el "),e.R7$(3),e.JRh(e.bMT(45,26,"reserva_turno.detalle_turno.confirmacion")),e.R7$(2),e.JRh(e.bMT(47,28,"reserva_turno.detalle_turno.cancelar")))},dependencies:[l.vh,p.Kj],encapsulation:2})}}return t})(),to=(()=>{class t{constructor(){this.step=new e.bkB,this.backing=new e.bkB}ngOnInit(){}
1goToDetail(){this.step.emit({step:4,respuesta:"si"})}backToSteps(){this.backing.emit(0)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-cuarto-paso"]],outputs:{step:"step",backing:"backing"},standalone:!1,decls:20,vars:18,consts:[[1,"status-container","mt-5"],[1,"status","status-success"],[1,"status-title"],[1,"status-text"],[1,"font-weight-semibold"],[1,"btn","btn-secondary",3,"click"],[1,"btn","btn-link",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"p",3),e.EFF(7),e.nI1(8,"transloco"),e.j41(9,"span",4),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.EFF(12),e.nI1(13,"transloco"),e.k0s(),e.j41(14,"button",5),e.bIt("click",function(){return o.backToSteps()}),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"button",6),e.bIt("click",function(){return o.goToDetail()}),e.EFF(18),e.nI1(19,"transloco"),e.k0s()()()()),2&a&&(e.R7$(4),e.JRh(e.bMT(5,6,"reserva_turno.cuarto_paso.titulo")),e.R7$(3),e.SpI(" ",e.bMT(8,8,"reserva_turno.cuarto_paso.mensaje")),e.R7$(3),e.JRh(e.bMT(11,10,"reserva_turno.cuarto_paso.mensaje_1")),e.R7$(2),e.SpI("",e.bMT(13,12,"reserva_turno.cuarto_paso.mensaje_2")," "),e.R7$(3),e.JRh(e.bMT(16,14,"reserva_turno.cuarto_paso.continuar")),e.R7$(3),e.JRh(e.bMT(19,16,"reserva_turno.cuarto_paso.detalle")))},dependencies:[p.Kj],encapsulation:2})}}return t})();function io(t,n){if(1&t){const i=e.RV6();e.j41(0,"section",5)(1,"a",6),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())}),e.j41(2,"span",7),e.EFF(3,"arrow_back"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()()}if(2&t){const i=e.XpG();e.R7$(5),e.JRh(1===i.stepOrder||4===i.stepOrder||6===i.stepOrder||25===i.stepOrder?"Volver atr\xe1s":"Volver al tr\xe1mite")}}function oo(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-primer-paso",8),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))})("backStep",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())})("showErrorPage",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStep(o))}),e.k0s()()}}function ao(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-segundo-paso",9),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))})("backing",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())})("showErrorPage",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStep(o))}),e.k0s()()}}function so(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-tercer-paso",9),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))})("backing",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())})("showErrorPage",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStep(o))}),e.k0s()()}}function no(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-cuarto-paso",10),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))})("backing",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.backToSteps())}),e.k0s()()}}function ro(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-quinto-paso",9),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))})("backing",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.back())})("showErrorPage",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.setStep(o))}),e.k0s()()}}function co(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-detalle-reserva-turno",11),e.bIt("step",function(o){s.eBV(i);const r=e.XpG();return s.Njj(r.reciveStep(o))}),e.k0s()()}}function lo(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-google-calendar"),e.k0s())}function uo(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-error-page"),e.k0s())}let _o=(()=>{class t{constructor(){this.angulartics2=(0,s.WQX)(y.il),this.navegacion=(0,s.WQX)(F.T),this.back_main=new e.bkB,this.backing=new e.bkB,this.stepOrder=1,this.navegacion_actual=[],this.angulartics2.eventTrack.next({action:"countEnterStep",properties:{step:"step",label:"stepLabel"}})}ngOnInit(){this.back_main.emit(),this.navegacion_actual.push(1),window.scrollTo({top:0,behavior:"smooth"})}back(){1===this.stepOrder||4===this.stepOrder||6===this.stepOrder?this.backToSteps():(this.navegacion_actual.pop(),this.stepOrder=this.navegacion_actual[this.navegacion_actual.length-1])}backToSteps(){this.backing.emit(0)}next(i){switch(i){case 0:this.stepOrder=0;break;case 1:this.stepOrder=1;break;case 2:this.stepOrder=2;break;case 3:this.stepOrder=3;break;case 4:this.stepOrder=4;break;case 5:this.stepOrder=5;break;case 6:this.stepOrder=6;break;case 7:this.stepOrder=7,setTimeout(()=>{this.stepOrder=0},3e3)}}reciveStep(i){this.data=i,this.stepOrder=this.navegacion.navegacion_reserva_turno.find(a=>a.actual===this.data.step&&a.opcion===this.data.respuesta).siguiente,this.navegacion_actual.push(this.stepOrder)}setStep(i){this.stepOrder=i}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-reserva-turno"]],outputs:{back_main:"back_main",backing:"backing"},standalone:!1,decls:12,vars:10,consts:[["id","back","class","mb-4",4,"ngIf"],["id","reserva-turnos"],["id","step-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],["id","back",1,"mb-4"],["data-toggle","modal","data-target","#exampleModal2",1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],[3,"step","backStep","showErrorPage"],[3,"step","backing","showErrorPage"],[3,"step","backing"],[3,"step"]],template:function(a,o){1&a&&(e.DNE(0,io,6,1,"section",0),e.j41(1,"section",1)(2,"div",2)(3,"div",3),e.DNE(4,oo,2,0,"div",4)(5,ao,2,0,"div",4)(6,so,2,0,"div",4)(7,no,2,0,"div",4)(8,ro,2,0,"div",4)(9,co,2,0,"div",4)(10,lo,2,0,"div",4)(11,uo,2,0,"div",4),e.k0s()()()),2&a&&(e.Y8G("ngIf",1===o.stepOrder||4===o.stepOrder||6===o.stepOrder||25===o.stepOrder),e.R7$(3),e.Y8G("ngSwitch",o.stepOrder),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",4),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",7),e.R7$(),e.Y8G("ngSwitchCase",25))},dependencies:[l.bT,l.ux,l.e1,si,pi,Si,Ki,eo,Q,to,Y.z],styles:[".div-border[_ngcontent-%COMP%]{border:2px solid #d1d8e0;border-radius:8px;opacity:1}.divider[_ngcontent-%COMP%]{border:1px solid #d1d8e0;opacity:1;width:100%}"]})}}return t})();function po(t,n){1&t&&(e.j41(0,"span",13),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_disponible")))}function mo(t,n){1&t&&(e.j41(0,"span",14),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_completado")))}
1function ho(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_1")),e.R7$(2),e.SpI(" ",e.bMT(6,4,"pago_cenat.descripcion_2")))}function fo(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_3")),e.R7$(2),e.SpI(" ",e.bMT(6,4,"pago_cenat.descripcion_4")))}function go(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,po,3,3,"span",4)(2,mo,3,3,"span",5),e.j41(3,"h2",6),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.DNE(6,ho,7,6,"div",7)(7,fo,7,6,"div",7),e.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"span",11),e.EFF(12,"paid"),e.k0s(),e.j41(13,"div")(14,"p",12),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"small",12),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"p",12)(21,"strong"),e.EFF(22),e.k0s()()()()()()()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(2),e.JRh(e.bMT(5,8,"pago_cenat.titulo")),e.R7$(2),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(8),e.JRh(e.bMT(16,10,"pago_cenat.descripcion_5")),e.R7$(3),e.JRh(e.bMT(19,12,"pago_cenat.descripcion_6")),e.R7$(4),e.SpI("$",i.costo)}}function bo(t,n){1&t&&(e.j41(0,"span",13),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_disponible")))}function vo(t,n){1&t&&(e.j41(0,"span",14),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_completado")))}function Ro(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_1")),e.R7$(2),e.JRh(e.bMT(6,4,"pago_cenat.descripcion_2")))}function ko(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_3")),e.R7$(2),e.SpI(" ",e.bMT(6,4,"pago_cenat.descripcion_4")))}function Fo(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,bo,3,3,"span",4)(2,vo,3,3,"span",5),e.j41(3,"h2",6),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.DNE(6,Ro,7,6,"div",7)(7,ko,7,6,"div",7),e.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"span",11),e.EFF(12,"paid"),e.k0s(),e.j41(13,"div")(14,"p",12),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.j41(17,"small",12),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"p",12)(21,"strong"),e.EFF(22),e.k0s()()()()()()()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(2),e.JRh(e.bMT(5,8,"pago_cenat.titulo")),e.R7$(2),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(8),e.JRh(e.bMT(16,10,"pago_cenat.descripcion_5")),e.R7$(3),e.JRh(e.bMT(19,12,"pago_cenat.descripcion_6")),e.R7$(4),e.SpI("$",i.costo)}}function To(t,n){if(1&t&&(e.j41(0,"div")(1,"span",14),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",6),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",15)(8,"p",16)(9,"strong"),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.EFF(12),e.nI1(13,"transloco"),e.j41(14,"a",17),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"div",8)(20,"div",9)(21,"div",10)(22,"span",11),e.EFF(23,"paid"),e.k0s(),e.j41(24,"div")(25,"p",12),e.EFF(26),e.nI1(27,"transloco"),e.j41(28,"small",12),e.EFF(29),e.nI1(30,"transloco"),e.k0s()(),e.j41(31,"p",12)(32,"strong"),e.EFF(33),e.nI1(34,"transloco"),e.k0s()()()()()()()),2&t){const i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,10,"pago_cenat.estado_completado")),e.R7$(3),e.JRh(e.bMT(6,12,"pago_cenat.titulo")),e.R7$(5),e.JRh(e.bMT(11,14,"pago_cenat.descripcion_8")),e.R7$(2),e.JRh(e.bMT(13,16,"pago_cenat.descripcion_9")),e.R7$(2),e.Y8G("href",i.certificadoMalvinas,e.B4B),e.R7$(),e.JRh(e.bMT(16,18,"pago_cenat.descripcion_10")),e.R7$(2),e.JRh(e.bMT(18,20,"pago_cenat.descripcion_11")),e.R7$(9),e.SpI("",e.bMT(27,22,"pago_cenat.descripcion_12"),"/p> "),e.R7$(3),e.JRh(e.bMT(30,24,"pago_cenat.descripcion_6")),e.R7$(4),e.JRh(e.bMT(34,26,"pago_cenat.descripcion_13"))}}function Io(t,n){1&t&&(e.j41(0,"span",13),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_disponible")))}function jo(t,n){1&t&&(e.j41(0,"span",14),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"pago_cenat.estado_completado")))}
1function So(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_1")),e.R7$(2),e.JRh(e.bMT(6,4,"pago_cenat.descripcion_2")))}function xo(t,n){1&t&&(e.j41(0,"div",15)(1,"p",16)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"pago_cenat.descripcion_3")),e.R7$(2),e.SpI(" ",e.bMT(6,4,"pago_cenat.descripcion_4")))}function Eo(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,Io,3,3,"span",4)(2,jo,3,3,"span",5),e.j41(3,"h2",6),e.EFF(4,"Pago de CENAT"),e.k0s(),e.DNE(5,So,7,6,"div",7)(6,xo,7,6,"div",7),e.j41(7,"div",8)(8,"div",9)(9,"div",10)(10,"span",11),e.EFF(11,"paid"),e.k0s(),e.j41(12,"div")(13,"p",12),e.EFF(14),e.nI1(15,"transloco"),e.k0s(),e.j41(16,"small",12),e.EFF(17),e.nI1(18,"transloco"),e.k0s(),e.j41(19,"p",12)(20,"strong"),e.EFF(21),e.k0s()()()()()()()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(3),e.Y8G("ngIf","disponible"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(8),e.JRh(e.bMT(15,7,"pago_cenat.descripcion_5")),e.R7$(3),e.JRh(e.bMT(18,9,"pago_cenat.descripcion_6")),e.R7$(4),e.SpI("$",i.costo)}}function Co(t,n){if(1&t&&(e.j41(0,"div")(1,"span",14),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",6),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",15)(8,"p",16)(9,"strong"),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.EFF(12),e.nI1(13,"transloco"),e.j41(14,"a",17),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"div",8)(20,"div",9)(21,"div",10)(22,"span",11),e.EFF(23,"paid"),e.k0s(),e.j41(24,"div")(25,"p",12),e.EFF(26),e.nI1(27,"transloco"),e.k0s(),e.j41(28,"small",12),e.EFF(29),e.nI1(30,"transloco"),e.k0s(),e.j41(31,"p",12)(32,"strong"),e.EFF(33),e.nI1(34,"transloco"),e.k0s()()()()()()()),2&t){const i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,10,"pago_cenat.estado_completado")),e.R7$(3),e.JRh(e.bMT(6,12,"pago_cenat.titulo")),e.R7$(5),e.JRh(e.bMT(11,14,"pago_cenat.descripcion_14")),e.R7$(2),e.JRh(e.bMT(13,16,"pago_cenat.descripcion_9")),e.R7$(2),e.Y8G("href",i.certificadoPobreza,e.B4B),e.R7$(),e.JRh(e.bMT(16,18,"pago_cenat.descripcion_15")),e.R7$(2),e.JRh(e.bMT(18,20,"pago_cenat.descripcion_11")),e.R7$(9),e.JRh(e.bMT(27,22,"pago_cenat.descripcion_12")),e.R7$(3),e.JRh(e.bMT(30,24,"pago_cenat.descripcion_6")),e.R7$(4),e.JRh(e.bMT(34,26,"pago_cenat.descripcion_13"))}}function $o(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",18)(1,"button",19),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.link())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"pago_cenat.descripcion_16")))}let Mo=(()=>{class t{constructor(){this.lclStorageService=(0,s.WQX)(f.s),this.configService=(0,s.WQX)(I.s),this.step=new e.bkB,this.costo="",this.certificadoMalvinas="",this.certificadoPobreza="",window.scrollTo({top:0,behavior:"smooth"}),this.configJson=this.configService.getConfig()}ngOnInit(){this.tramite=this.lclStorageService.getValue("tramiteActual"),this.setCostos(),this.certificadoMalvinas=this.configJson.tramites.certificado_malvinas,this.certificadoPobreza=this.configJson.tramites.certificado_pobreza}setCostos(){this.costo=this.formatearNumero(Number.parseInt(this.tramite.solicitud.costo_cenat))}formatearNumero(i){return i.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!0})}link(){this.step.emit(10)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-pago-cenat"]],inputs:{estado_tramite:"estado_tramite"},outputs:{step:"step"},standalone:!1,decls:8,vars:7,consts:[[1,"my-3"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","d-flex flex-row justify-content-end",4,"ngIf"],["class","badge badge-p-info mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-3"],["class","alert alert-info mb-3",4,"ngIf"],[1,"card","card-border"],[1,"card-body","p-3"],[1,"d-flex"],[1,"material-symbols-rounded","filled","material-md","mt-3","mr-2"],[1,"m-0"],[1,"badge","badge-p-info","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"alert","alert-info","mb-3"],[1,"mb-0"],["target","_blank",3,"href"],[1,"d-flex","flex-row","justify-content-end"],[1,"btn","btn-primary","mt-3",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0)(1,"div",1),e.DNE(2,go,23,14,"div",2)(3,Fo,23,14,"div",2)(4,To,35,28,"div",2)(5,Eo,22,11,"div",2)(6,Co,35,28,"div",2),e.k0s(),e.DNE(7,$o,4,3,"div",3),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngSwitch",o.tramite.solicitud.persona_exenta),e.R7$(),e.Y8G("ngSwitchCase","No soy una persona exenta"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona jubilada o pensionada"),e.R7$(),e.Y8G("ngSwitchCase","Soy un Veterano de Malvinas"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona con discapacidad"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona carente de recursos"),e.R7$(),e.Y8G("ngIf","disponible"===o.estado_tramite&&("No soy una persona exenta"===o.tramite.solicitud.persona_exenta||"Soy una persona jubilada o pensionada"===o.tramite.solicitud.persona_exenta||"Soy una persona con discapacidad"===o.tramite.solicitud.persona_exenta)))},dependencies:[l.bT,l.ux,l.e1,p.Kj],encapsulation:2})}}return t})();function Go(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-skeleton-page",1)(2,"app-skeleton-page",1)(3,"app-skeleton-page",1),e.k0s()),2&t&&(e.R7$(),e.Y8G("amount","1"),e.R7$(),e.Y8G("amount","1"),e.R7$(),e.Y8G("amount","1"))}function yo(t,n){1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"ficha_salud.estado_en_proceso")))}function wo(t,n){1&t&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"ficha_salud.estado_completado")))}function Yo(t,n){1&t&&(e.j41(0,"span",23),e.EFF(1,"paid"),e.k0s())}function Do(t,n){1&t&&(e.j41(0,"span",24),e.EFF(1,"check_circle"),e.k0s()),2&t&&e.Y8G("ngClass","text-success")}function Vo(t,n){if(1&t){const i=e.RV6();e.j41(0,"button",25),e.bIt("click",function(){s.eBV(i);const o=e.XpG(3);return s.Njj(o.goToTicket())}),e.EFF(1),e.nI1(2,"transloco"),e.k0s()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ficha_salud.boton_pagar")," "))}function Jo(t,n){if(1&t&&(e.j41(0,"div"),e.DNE(1,yo,3,3,"span",7)(2,wo,3,3,"span",8),e.j41(3,"h2",9),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",10)(7,"div",11)(8,"h3",12),e.
1EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",13)(12,"div",14)(13,"div",15),e.DNE(14,Yo,2,0,"span",16)(15,Do,2,1,"span",17),e.j41(16,"div")(17,"p",18),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"p",19),e.EFF(21),e.k0s()()(),e.DNE(22,Vo,3,3,"button",20),e.k0s()()()()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf","en-proceso"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(2),e.SpI(" ",e.bMT(5,9,"ficha_salud.titulo")," "),e.R7$(5),e.JRh(e.bMT(10,11,"ficha_salud.pago_BUI")),e.R7$(5),e.Y8G("ngIf","completado"!==i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(3),e.SpI(" ",e.bMT(19,13,"ficha_salud.otorgamiento")," "),e.R7$(3),e.SpI("$",i.bui),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite&&"CABA validado"!==i.estado_pago)}}function No(t,n){if(1&t&&(e.j41(0,"div",13)(1,"div",14)(2,"div",27)(3,"span",24),e.EFF(4,"check_circle"),e.k0s(),e.j41(5,"div")(6,"p",28),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"small"),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.j41(12,"p",29),e.EFF(13),e.k0s(),e.j41(14,"p",18)(15,"strong"),e.EFF(16),e.k0s()()()()()()),2&t){const i=e.XpG(3);e.R7$(3),e.Y8G("ngClass","text-success"),e.R7$(4),e.JRh(e.bMT(8,5,"ficha_salud.costo_boleta_BUI")),e.R7$(3),e.JRh(e.bMT(11,7,"ficha_salud.pers_exenta")),e.R7$(3),e.SpI("$",i.bui),e.R7$(3),e.SpI("$",i.total_pagar)}}function Oo(t,n){if(1&t&&(e.j41(0,"div",13)(1,"div",14)(2,"div",27)(3,"span",24),e.EFF(4,"check_circle"),e.k0s(),e.j41(5,"div")(6,"p",28),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"small"),e.EFF(10),e.nI1(11,"transloco"),e.k0s(),e.j41(12,"p",29),e.EFF(13),e.k0s(),e.j41(14,"p",18)(15,"strong"),e.EFF(16),e.k0s()()()()()()),2&t){const i=e.XpG(3);e.R7$(3),e.Y8G("ngClass","text-success"),e.R7$(4),e.JRh(e.bMT(8,5,"ficha_salud.costo_boleta_BUI")),e.R7$(3),e.JRh(e.bMT(11,7,"ficha_salud.pers_exenta_completa")),e.R7$(3),e.SpI("$",i.bui),e.R7$(3),e.SpI("$",i.total_pagar)}}function Bo(t,n){if(1&t&&(e.j41(0,"div")(1,"span",22),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",9),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",10)(8,"div",11)(9,"h3",12),e.EFF(10),e.nI1(11,"transloco"),e.k0s()(),e.DNE(12,No,17,9,"div",26)(13,Oo,17,9,"div",26),e.k0s()()),2&t){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,5,"ficha_salud.estado_completado")),e.R7$(3),e.SpI(" ",e.bMT(6,7,"ficha_salud.titulo")," "),e.R7$(5),e.JRh(e.bMT(11,9,"ficha_salud.pago_BUI")),e.R7$(2),e.Y8G("ngIf",i.tramite.solicitud.tipo_jubilado),e.R7$(),e.Y8G("ngIf",!i.tramite.solicitud.tipo_jubilado)}}function Po(t,n){if(1&t&&(e.j41(0,"div")(1,"span",22),e.EFF(2,"{{ 'ficha_salud.estado_completado | transloco }}"),e.k0s(),e.j41(3,"h2",9),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",10)(7,"div",11)(8,"h3",12),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",13)(12,"div",14)(13,"div",27)(14,"span",24),e.EFF(15,"check_circle"),e.k0s(),e.j41(16,"div")(17,"p",28),e.EFF(18),e.nI1(19,"transloco"),e.k0s(),e.j41(20,"small"),e.EFF(21),e.nI1(22,"transloco"),e.k0s(),e.j41(23,"p",29),e.EFF(24),e.k0s(),e.j41(25,"p",18)(26,"strong"),e.EFF(27),e.k0s()()()()()()()()),2&t){const i=e.XpG(2);e.R7$(4),e.SpI(" ",e.bMT(5,7,"ficha_salud.titulo")," "),e.R7$(5),e.JRh(e.bMT(10,9,"ficha_salud.pago_BUI")),e.R7$(5),e.Y8G("ngClass","text-success"),e.R7$(4),e.JRh(e.bMT(19,11,"ficha_salud.boleta_BUI")),e.R7$(3),e.JRh(e.bMT(22,13,"ficha_salud.pers_exenta_completa_1")),e.R7$(3),e.SpI("$",i.bui),e.R7$(3),e.SpI("$",i.total_pagar)}}function Xo(t,n){if(1&t&&(e.j41(0,"div")(1,"span",22),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",9),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",10)(8,"div",11)(9,"h3",12),e.EFF(10),e.nI1(11,"transloco"),e.k0s()(),e.j41(12,"div",13)(13,"div",14)(14,"div",27)(15,"span",24),e.EFF(16,"check_circle"),e.k0s(),e.j41(17,"div")(18,"p",28),e.EFF(19),e.nI1(20,"transloco"),e.k0s(),e.j41(21,"small"),e.EFF(22),e.nI1(23,"transloco"),e.k0s(),e.j41(24,"p",29),e.EFF(25),e.k0s(),e.j41(26,"p",18)(27,"strong"),e.EFF(28),e.k0s()()()()()()()()),2&t){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,8,"ficha_salud.estado_completado")),e.R7$(3),e.SpI(" ",e.bMT(6,10,"ficha_salud.titulo")," "),e.R7$(5),e.JRh(e.bMT(11,12,"ficha_salud.pago_BUI")),e.R7$(5),e.Y8G("ngClass","text-success"),e.R7$(4),e.JRh(e.bMT(20,14,"ficha_salud.boleta_BUI")),e.R7$(3),e.JRh(e.bMT(23,16,"ficha_salud.pers_exenta")),e.R7$(3),e.SpI("$",i.bui),e.R7$(3),e.SpI("$",i.total_pagar)}}function Ao(t,n){if(1&t&&(e.j41(0,"div")(1,"span",22),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"h2",9),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div",10)(8,"div",11)(9,"h3",12),e.
1EFF(10),e.nI1(11,"transloco"),e.k0s()(),e.j41(12,"div",13)(13,"div",14)(14,"div",27)(15,"span",24),e.EFF(16,"check_circle"),e.k0s(),e.j41(17,"div")(18,"p",28),e.EFF(19),e.nI1(20,"transloco"),e.k0s(),e.j41(21,"small"),e.EFF(22),e.nI1(23,"transloco"),e.k0s(),e.j41(24,"p",29),e.EFF(25),e.k0s(),e.j41(26,"p",18)(27,"strong"),e.EFF(28),e.k0s()()()()()()()()),2&t){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,8,"ficha_salud.estado_completado")),e.R7$(3),e.SpI(" ",e.bMT(6,10,"ficha_salud.titulo")," "),e.R7$(5),e.JRh(e.bMT(11,12,"ficha_salud.pago_BUI")),e.R7$(5),e.Y8G("ngClass","text-success"),e.R7$(4),e.JRh(e.bMT(20,14,"ficha_salud.boleta_BUI")),e.R7$(3),e.JRh(e.bMT(23,16,"ficha_salud.pers_exenta_completa_1")),e.R7$(3),e.SpI("$",i.bui),e.R7$(3),e.SpI("$",i.total_pagar)}}function Uo(t,n){1&t&&(e.j41(0,"div",30)(1,"div",13)(2,"h4",9),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"div",31),e.nrm(6,"img",32)(7,"img",33)(8,"img",34)(9,"img",35)(10,"img",36),e.k0s()()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,1,"ficha_salud.donde")))}function Lo(t,n){1&t&&(e.j41(0,"div",37)(1,"p",12)(2,"strong"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"ul")(8,"li"),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"li"),e.EFF(12),e.nI1(13,"transloco"),e.k0s()()()),2&t&&(e.R7$(3),e.SpI(" ",e.bMT(4,4,"ficha_salud.descripcion_1")," "),e.R7$(2),e.SpI(" ",e.bMT(6,6,"ficha_salud.descripcion_2")," "),e.R7$(4),e.JRh(e.bMT(10,8,"ficha_salud.descripcion_3")),e.R7$(3),e.JRh(e.bMT(13,10,"ficha_salud.descripcion_4")))}function Qo(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"p",39),e.EFF(2),e.nrm(3,"br"),e.EFF(4),e.k0s(),e.j41(5,"button",40),e.bIt("click",function(){s.eBV(i);const o=e.XpG().$implicit,r=e.XpG(3);return s.Njj(r.goTo(o.info.url))}),e.j41(6,"span",41),e.EFF(7,"download"),e.k0s(),e.EFF(8),e.nI1(9,"transloco"),e.k0s()()}if(2&t){const i=e.XpG().$implicit;e.R7$(2),e.SpI(" ",i.patologia[0]," "),e.R7$(2),e.SpI(" ",i.patologia[1]," "),e.R7$(4),e.SpI(" ",e.bMT(9,3,"ficha_salud.descripcion_7")," ")}}function Wo(t,n){if(1&t&&(e.j41(0,"div")(1,"p",39),e.EFF(2),e.nrm(3,"br"),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.k0s()()),2&t){const i=e.XpG().$implicit;e.R7$(2),e.SpI(" ",i.patologia[0]," "),e.R7$(2),e.SpI(" ",i.patologia[1]," "),e.R7$(2),e.SpI(" ",i.info.mensaje," ")}}function qo(t,n){if(1&t&&(e.j41(0,"ul")(1,"li"),e.EFF(2),e.k0s()()),2&t){const i=n.$implicit;e.R7$(2),e.JRh(i)}}function zo(t,n){if(1&t&&(e.j41(0,"div")(1,"p",39),e.EFF(2),e.nrm(3,"br"),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.k0s(),e.DNE(7,qo,3,1,"ul",38),e.k0s()),2&t){const i=e.XpG().$implicit;e.R7$(2),e.SpI(" ",i.patologia[0]," "),e.R7$(2),e.SpI(" ",i.patologia[1]," "),e.R7$(2),e.SpI(" ",i.info.mensaje," "),e.R7$(),e.Y8G("ngForOf",i.info.sedes)}}function Ho(t,n){if(1&t&&(e.j41(0,"div")(1,"small"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.DNE(4,Qo,10,5,"div",0)(5,Wo,7,3,"div",0)(6,zo,8,4,"div",0),e.nrm(7,"hr"),e.k0s()),2&t){const i=n.$implicit;e.R7$(2),e.JRh(e.bMT(3,4,"ficha_salud.descripcion_6")),e.R7$(2),e.Y8G("ngIf",!1===i.patologia[0].includes("miembro")&&!1===i.patologia[0].includes("auditiva")),e.R7$(),e.Y8G("ngIf",!0===i.patologia[0].includes("miembro")),e.R7$(),e.Y8G("ngIf",!0===i.patologia[0].includes("auditiva"))}}function Ko(t,n){if(1&t&&(e.j41(0,"div",10)(1,"div",11)(2,"h3",12),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.j41(5,"div",13),e.DNE(6,Ho,8,6,"div",38),e.k0s()()),2&t){const i=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"ficha_salud.descripcion_5")),e.R7$(3),e.Y8G("ngForOf",i.patologias)}}function Zo(t,n){1&t&&(e.j41(0,"div",10)(1,"div",11)(2,"h3",12),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.j41(5,"div",13)(6,"small"),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"p"),e.EFF(10),e.nI1(11,"transloco"),e.k0s()()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,3,"ficha_salud.descripcion_8")),e.R7$(4),e.JRh(e.bMT(8,5,"ficha_salud.descripcion_9")),e.R7$(3),e.JRh(e.bMT(11,7,"ficha_salud.descripcion_10")))}function ea(t,n){if(1&t&&(e.j41(0,"div")(1,"div",2),e.DNE(2,Jo,23,15,"div",3)(3,Bo,14,11,"div",3)(4,Po,28,15,"div",3)(5,Xo,29,18,"div",3)(6,Ao,29,18,"div",3),e.k0s(),e.DNE(7,Uo,11,3,"div",4)(8,Lo,14,12,"div",5)(9,Ko,7,4,"div",6)(10,Zo,12,9,"div",6),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngSwitch",i.tramite.solicitud.persona_exenta),e.R7$(),e.Y8G("ngSwitchCase","No soy una persona exenta"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona jubilada o pensionada"),e.R7$(),e.Y8G("ngSwitchCase","Soy un Veterano de Malvinas"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona con discapacidad"),e.R7$(),e.Y8G("ngSwitchCase","Soy una persona carente de recursos"),e.R7$(),e.Y8G("ngIf","No soy una persona exenta"===i.tramite.solicitud.persona_exenta),e.R7$(),e.Y8G("ngIf",i.patologias.length>0),e.R7$(),e.Y8G("ngIf",i.patologias.length>0),e.R7$(),e.Y8G("ngIf",0===i.patologias.length)}}let ta=(()=>{class t{constructor(){this._gestion=(0,s.WQX)(j),this.lclStorageService=(0,s.WQX)(f.s),this.configService=(0,s.WQX)(I.s),this.backing=new e.bkB,this.patologias=[],this.contenidoCargadoPatologias=!1,this.cenat="",this.bui="",this.total_pagar="",this.descuento_bui="",this.descuento_cenat="",this.configJson=this.configService.getConfig(),window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.tramite=this.lclStorageService.getValue("tramiteActual"),this.getInformacionPatologias(),this.setImportes()}setImportes(){this.bui=this.tramite.solicitud.costo_bui;let i=Number.parseInt(this.bui),a=Number.parseInt(this.descuento_bui),o=Number.parseInt(this.total_pagar);switch(this.tramite.solicitud.persona_exenta){case"Soy una persona jubilada o pensionada":!0===this.tramite.solicitud.tipo_jubilado?(a=.8*i,o=i-a,this.bui=this.formatearNumero(i),this.descuento_bui=this.formatearNumero(a),this.total_pagar=this.formatearNumero(o)):(a=i,o=0*i,this.bui=this.formatearNumero(i),this.descuento_bui=this.formatearNumero(a),this.total_pagar=this.formatearNumero(o));break;case"Soy una persona carente de recursos":case"Soy un Veterano de Malvinas":a=i,this.descuento_bui=this.formatearNumero(i),o=0*a,this.bui=this.formatearNumero(i),this.total_pagar=this.formatearNumero(o);break;case"Soy una persona con discapacidad":a=.8*i,o=i-a,this.bui=this.formatearNumero(i),this.descuento_bui=this.formatearNumero(a),this.total_pagar=this.formatearNumero(o);break;case"No soy una persona exenta":this.bui=this.formatearNumero(i)}}
1formatearNumero(i){return i.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!0})}getInformacionPatologias(){this._gestion.getEnlacesPatologias(this.tramite.uuid).subscribe({next:i=>{this.patologias=i.content.patologias,this.contenidoCargadoPatologias=!0,this.getLinkPago()},error:i=>{this.contenidoCargadoPatologias=!0},complete:()=>{}})}getLinkPago(){let i=this.lclStorageService.getValue("tramiteActual");this._gestion.getLinksPagoBUI(i.uuid).subscribe({next:a=>{this.link_bui=a.content.url},error:a=>{},complete:()=>{}})}back(){this.backing.emit(0)}goTo(i){window.location.href=i}goToTicket(i){window.open(this.link_bui,"_blank")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-ficha-salud"]],inputs:{estado_tramite:"estado_tramite",estado_pago:"estado_pago"},outputs:{backing:"backing"},standalone:!1,decls:3,vars:2,consts:[[4,"ngIf"],["cols","col",3,"amount"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","card card-border bg-transparent mb-3",4,"ngIf"],["class","alert alert-info mb-4",4,"ngIf"],["class","card card-border mb-4",4,"ngIf"],["class","badge badge-primary mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-3"],[1,"card","card-border","mb-4"],[1,"card-header","py-4"],[1,"mb-0"],[1,"card-body"],[1,"d-lg-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","mb-3","mb-lg-0"],["class","material-symbols-rounded filled material-md mr-3",4,"ngIf"],["class","material-symbols-rounded filled material-md mr-3",3,"ngClass",4,"ngIf"],[1,"m-0"],[1,"m-0","font-weight-bold"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],[1,"badge","badge-primary","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"material-symbols-rounded","filled","material-md","mr-3"],[1,"material-symbols-rounded","filled","material-md","mr-3",3,"ngClass"],["type","button",1,"btn","btn-primary",3,"click"],["class","card-body",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"font-weight-semibold","mb-0"],[1,"m-0",2,"text-decoration","line-through"],[1,"card","card-border","bg-transparent","mb-3"],[1,"d-flex","flex-wrap","align-items-center"],["src","../../../../../assets/img/logos/BA-ATM.png",1,"mr-4","mb-4","mb-xl-0"],["src","../../../../../assets/img/logos/banco-ciudad.png",1,"mr-4","mb-4","mb-xl-0"],["src","../../../../../assets/img/logos/provincia-net.png",1,"mr-4","mb-4","mb-xl-0"],["src","../../../../../assets/img/logos/pago-facil.png",1,"mr-4","mb-4","mb-xl-0"],["src","../../../../../assets/img/logos/rapipago.png",1,"mb-4","mb-xl-0"],[1,"alert","alert-info","mb-4"],[4,"ngFor","ngForOf"],[1,"mb-2","font-weight-semibold"],["type","button",1,"btn","btn-secondary","btn-sm","center",3,"click"],[1,"material-symbols-rounded","filled","material-md","mr-2"]],template:function(a,o){1&a&&(e.j41(0,"section"),e.DNE(1,Go,4,3,"div",0)(2,ea,11,10,"div",0),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngIf",!o.contenidoCargadoPatologias),e.R7$(),e.Y8G("ngIf",o.contenidoCargadoPatologias))},dependencies:[l.YU,l.Sq,l.bT,l.ux,l.e1,x.M,p.Kj],encapsulation:2})}}return t})(),ia=(()=>{class t{constructor(){this.backing=new e.bkB,this.carga=new e.bkB,this.pantalla=!1,window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){}cargar(){this.carga.emit(7)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-emision-libre-deuda"]],outputs:{backing:"backing",carga:"carga"},standalone:!1,decls:17,vars:9,consts:[[1,"badge","mb-3","badge-success"],[1,"mt-4"],[1,"card","card-border"],[1,"card-body"],[1,"d-flex","align-items-start","align-items-md-center"],[1,"material-symbols-rounded","filled","material-md","text-success","mr-2"],[1,"mb-0"]],template:function(a,o){1&a&&(e.j41(0,"section")(1,"div")(2,"span",0),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"h2"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"div",1)(9,"div",2)(10,"div",3)(11,"div",4)(12,"span",5),e.EFF(13,"check_circle"),e.k0s(),e.j41(14,"p",6),e.EFF(15),e.nI1(16,"transloco"),e.k0s()()()()()()()),2&a&&(e.R7$(3),e.JRh(e.bMT(4,3,"libre_deuda.estado_completado")),e.R7$(3),e.JRh(e.bMT(7,5,"libre_deuda.titulo")),e.R7$(9),e.JRh(e.bMT(16,7,"libre_deuda.sin_infracciones")))},dependencies:[p.Kj],encapsulation:2})}}return t})();
1function oa(t,n){1&t&&(e.j41(0,"span",15),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"charla_renovacion.estado_en_proceso")))}function aa(t,n){1&t&&(e.j41(0,"span",16),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"charla_renovacion.estado_completado")))}function sa(t,n){1&t&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"charla_renovacion.mensaje")))}function na(t,n){1&t&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.nI1(5,"transloco"),e.k0s()()),2&t&&(e.R7$(),e.JRh(e.bMT(2,2,"charla_renovacion.mensaje_1")),e.R7$(3),e.JRh(e.bMT(5,4,"charla_renovacion.mensaje_2")))}function ra(t,n){1&t&&(e.j41(0,"small",17),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"charla_renovacion.mensaje_4")," "))}function ca(t,n){1&t&&(e.j41(0,"small",18),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"charla_renovacion.aprobado")))}function la(t,n){1&t&&(e.j41(0,"span",19),e.EFF(1,"pending"),e.k0s())}function da(t,n){1&t&&(e.j41(0,"span",20),e.EFF(1,"check_circle"),e.k0s())}function ua(t,n){1&t&&e.nrm(0,"hr")}function _a(t,n){1&t&&(e.j41(0,"div")(1,"small",17),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.nI1(6,"transloco"),e.k0s()()),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,2,"charla_renovacion.modalidad")," "),e.R7$(3),e.JRh(e.bMT(6,4,"charla_renovacion.mensaje_5")))}function pa(t,n){1&t&&(e.j41(0,"div",22)(1,"h3",3),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"ul")(5,"li")(6,"p")(7,"strong"),e.EFF(8),e.nI1(9,"transloco"),e.k0s(),e.EFF(10),e.nI1(11,"transloco"),e.k0s()(),e.j41(12,"li")(13,"p")(14,"strong"),e.EFF(15),e.nI1(16,"transloco"),e.k0s(),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"li")(20,"p")(21,"strong"),e.EFF(22),e.nI1(23,"transloco"),e.k0s(),e.EFF(24),e.nI1(25,"transloco"),e.k0s()()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,7,"charla_renovacion.detalle_charla")),e.R7$(6),e.JRh(e.bMT(9,9,"charla_renovacion.contenido")),e.R7$(2),e.SpI(" ",e.bMT(11,11,"charla_renovacion.mensaje_6")," "),e.R7$(5),e.JRh(e.bMT(16,13,"charla_renovacion.duracion")),e.R7$(2),e.JRh(e.bMT(18,15,"charla_renovacion.tiempo")),e.R7$(5),e.JRh(e.bMT(23,17,"charla_renovacion.incorrectas")),e.R7$(2),e.SpI("",e.bMT(25,19,"charla_renovacion.mensaje_7")," "))}function ma(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",23)(1,"button",24),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.link())}),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"charla_renovacion.comenzar")))}let ha=(()=>{class t{constructor(){this.step=new e.bkB}link(){this.step.emit(16)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-charla-renovacion"]],inputs:{estado_tramite:"estado_tramite",taxista_control:"taxista_control"},outputs:{step:"step"},standalone:!1,decls:23,vars:18,consts:[["id","step"],["class","badge badge-p-info mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-3"],[4,"ngIf"],[1,"card","card-border","mb-4"],[1,"card-body"],[1,"d-flex","align-items-center","justify-content-between"],[1,"mb-0"],["class","m-0",4,"ngIf"],["class","text-success",4,"ngIf"],["class","material-symbols-rounded filled card-icon material-md m-0 text-info",4,"ngIf"],["class","material-symbols-rounded filled card-icon material-md m-0 text-success",4,"ngIf"],["class","mb-4",4,"ngIf"],["class","d-flex justify-content-end",4,"ngIf"],[1,"badge","badge-p-info","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"m-0"],[1,"text-success"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","text-info"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","text-success"],[1,"mb-0","font-weight-semibold"],[1,"mb-4"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","mb-3","mb-md-0",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"section",0),e.DNE(1,oa,3,3,"span",1)(2,aa,3,3,"span",2),e.j41(3,"h2",3),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.DNE(6,sa,3,3,"p",4)(7,na,6,6,"p",4),e.j41(8,"div",5)(9,"div",6)(10,"div",7)(11,"div")(12,"h3",8),e.
1EFF(13),e.nI1(14,"transloco"),e.k0s(),e.DNE(15,ra,3,3,"small",9)(16,ca,3,3,"small",10),e.k0s(),e.DNE(17,la,2,0,"span",11)(18,da,2,0,"span",12),e.k0s(),e.DNE(19,ua,1,0,"hr",4)(20,_a,7,6,"div",4),e.k0s()(),e.DNE(21,pa,26,21,"div",13)(22,ma,4,3,"div",14),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite||o.taxista_control),e.R7$(2),e.JRh(e.bMT(5,14,"charla_renovacion.titulo")),e.R7$(2),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf",o.taxista_control),e.R7$(6),e.JRh(e.bMT(14,16,"charla_renovacion.mensaje_3")),e.R7$(2),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite&&!o.taxista_control),e.R7$(),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===o.estado_tramite||o.taxista_control),e.R7$(),e.Y8G("ngIf",!o.taxista_control),e.R7$(),e.Y8G("ngIf",!o.taxista_control),e.R7$(),e.Y8G("ngIf","en-proceso"===o.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!=o.estado_tramite))},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})();function fa(t,n){1&t&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"examen_psicofisico.estado_en_proceso")))}function ga(t,n){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"examen_psicofisico.estado_completado")))}function ba(t,n){1&t&&(e.j41(0,"span",25),e.EFF(1,"check_circle"),e.k0s())}function va(t,n){if(1&t&&(e.j41(0,"div",20)(1,"div",9)(2,"div",21)(3,"div")(4,"h3",22),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"small",23),e.EFF(8),e.nI1(9,"transloco"),e.k0s()(),e.DNE(10,ba,2,0,"span",24),e.k0s()()()),2&t){const i=e.XpG(2);e.R7$(5),e.JRh(e.bMT(6,3,"examen_psicofisico.examen")),e.R7$(3),e.JRh(e.bMT(9,5,"examen_psicofisico.aprobado")),e.R7$(2),e.Y8G("ngIf","completado"===i.estado_tramite)}}function Ra(t,n){1&t&&e.nrm(0,"hr",26)}function ka(t,n){1&t&&(e.j41(0,"div",21)(1,"div")(2,"h3",22),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"small"),e.EFF(6),e.nI1(7,"transloco"),e.k0s()(),e.j41(8,"span",27),e.EFF(9,"pending"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,2,"examen_psicofisico.examen")),e.R7$(3),e.JRh(e.bMT(7,4,"examen_psicofisico.turno")))}function Fa(t,n){1&t&&(e.j41(0,"div",28)(1,"h3"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"ul",29)(5,"li")(6,"p",8),e.EFF(7),e.nI1(8,"transloco"),e.k0s()()(),e.j41(9,"div",10)(10,"span",30),e.EFF(11,"warning"),e.k0s(),e.j41(12,"small"),e.EFF(13),e.nI1(14,"transloco"),e.k0s()()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,3,"examen_psicofisico.documentos")),e.R7$(5),e.JRh(e.bMT(8,5,"examen_psicofisico.dni")),e.R7$(6),e.JRh(e.bMT(14,7,"examen_psicofisico.presentar")))}function Ta(t,n){if(1&t&&(e.j41(0,"div")(1,"section",1),e.DNE(2,fa,3,3,"span",2)(3,ga,3,3,"span",3),e.j41(4,"h2",4),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.DNE(7,va,11,7,"div",5),e.j41(8,"div",6)(9,"div",7)(10,"h3",8),e.EFF(11),e.nI1(12,"transloco"),e.k0s()(),e.j41(13,"div",9)(14,"div",10)(15,"span",11),e.EFF(16,"location_on"),e.k0s(),e.j41(17,"div",12)(18,"p",13),e.EFF(19),e.k0s(),e.j41(20,"small")(21,"a",8),e.EFF(22),e.k0s()()()(),e.j41(23,"div",10)(24,"span",11),e.EFF(25,"calendar_today"),e.k0s(),e.j41(26,"p",13),e.EFF(27),e.k0s()(),e.j41(28,"div",14)(29,"span",11),e.EFF(30,"watch_later"),e.k0s(),e.j41(31,"p",13),e.EFF(32),e.k0s()(),e.DNE(33,Ra,1,0,"hr",15)(34,ka,10,6,"div",16),e.k0s()(),e.DNE(35,Fa,15,9,"div",17),e.k0s()()),2&t){const i=e.XpG();e.R7$(2),e.Y8G("ngIf","en-proceso"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(2),e.JRh(e.bMT(6,12,"examen_psicofisico.titulo")),e.R7$(2),e.Y8G("ngIf","completado"===i.estado_tramite),e.R7$(4),e.JRh(e.bMT(12,14,"examen_psicofisico.mensaje")),e.R7$(8),e.JRh(i.turno.nombre),e.R7$(3),e.JRh(i.turno.direccion),e.R7$(5),e.JRh(i.fecha_format),e.R7$(5),e.JRh(i.hora),e.R7$(),e.Y8G("ngIf","en-proceso"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","en-proceso"===i.estado_tramite),e.R7$(),e.Y8G("ngIf","completado"!==i.estado_tramite)}}let Ia=(()=>{class t{constructor(){this._fecha=(0,s.WQX)(F.T),this.lclStorageService=(0,s.WQX)(f.s),this.backing=new e.bkB,this.carga=new e.bkB,this.setStep=new e.bkB,this.turno={idCita:"",idOrganismo:"",idSede:"",idPrestacion:"",fecha:"",hora:"",estado:"",tipoDoc:"",numDoc:"",nombre:"",telefono:"",email:"",organismo:"",sedeDesc:"",direccion:"",tramiteDesc:""}
1,this.step=1,this.fecha=[],this.hora="",this.mes="",this.hora_format="",this.fecha_format="",window.scrollTo({top:0,behavior:"smooth"})}ngOnInit(){this.getTurnoDetail()}getTurnoDetail(){this.tramite=this.lclStorageService.getValue("tramiteActual"),this.user=this.lclStorageService.getValue("currentUser"),this.turno.direccion=this.tramite.pasos[4].data.sede.direccion,this.turno.nombre=this.tramite.pasos[4].data.sede.nombre;let i=new Date(this.tramite.pasos[4].data.fecha).toISOString().split("T");this.fecha=i[0].split("-"),this.hora=this.tramite.pasos[4].data.horario.toString()+" hs",this.formatDate()}formatDate(){this.mes=this._fecha.mes_detalle.find(i=>i.numero===this.fecha[1]).mes,this.fecha_format=this.fecha[2]+" de "+this.mes+" "+this.fecha[0]}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-examen-psicofisico"]],inputs:{estado_tramite:"estado_tramite"},outputs:{backing:"backing",carga:"carga",setStep:"setStep"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],["id","examen-presencial"],["class","badge badge-p-info mb-3",4,"ngIf"],["class","badge badge-p-success mb-3",4,"ngIf"],[1,"mb-3"],["class","card card-border mb-3",4,"ngIf"],[1,"card","card-border","mb-4"],[1,"card-header","py-4"],[1,"m-0"],[1,"card-body"],[1,"d-flex","align-items-center","mb-3"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","mr-3"],[1,"d-flex","flex-column"],[1,"font-weight-semibold","font-family-headings","mb-0"],[1,"d-flex","align-items-center"],["class","my-4",4,"ngIf"],["class","d-flex justify-content-between align-items-center",4,"ngIf"],["class","mb-4",4,"ngIf"],[1,"badge","badge-p-info","mb-3"],[1,"badge","badge-p-success","mb-3"],[1,"card","card-border","mb-3"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mb-0","font-weight-bold"],[1,"text-success"],["class","material-symbols-rounded filled card-icon material-lg m-0 text-success",4,"ngIf"],[1,"material-symbols-rounded","filled","card-icon","material-lg","m-0","text-success"],[1,"my-4"],[1,"material-symbols-rounded","filled","card-icon","material-md","m-0","text-info"],[1,"mb-4"],[1,"mb-0"],[1,"material-symbols-rounded","filled","material-md","text-orange","mb-0","mr-1"]],template:function(a,o){1&a&&e.DNE(0,Ta,36,16,"div",0),2&a&&e.Y8G("ngIf",o.turno)},dependencies:[l.bT,p.Kj],encapsulation:2})}}return t})(),ja=(()=>{class t{constructor(){this.otorgamientoService=(0,s.WQX)(j),this.localStorageService=(0,s.WQX)(f.s),this.router=(0,s.WQX)(S.Ix),this.stepOrder=new e.bkB,this.isRestarted=new e.bkB}ngOnInit(){this.tramite=this.localStorageService.getValue("tramiteActual")}goToIniciar(){this.tramite.pasos.forEach(i=>{this.otorgamientoService.postEstadoPaso(i.uuid,"no-disponible",null).subscribe({next:()=>{},error:()=>{this.stepOrder.emit(25)}})}),this.otorgamientoService.postEstado(this.tramite.uuid,"no-disponible").subscribe({next:()=>{this.isRestarted.emit(!0),this.tramite.nombre.includes("Otorgamiento")?this.router.navigate(["/otorgamiento-licencia"]):this.tramite.nombre.includes("Renovaci\xf3n")&&this.router.navigate(["/renovacion-licencia"]),localStorage.removeItem("tramiteActual")},error:i=>{this.stepOrder.emit(25)}})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-tramite-caducado"]],outputs:{stepOrder:"stepOrder",isRestarted:"isRestarted"},standalone:!1,decls:14,vars:12,consts:[[1,"status-container","mt-5"],[1,"status","status-primary"],[1,"status-title"],[1,"status-text"],[1,"btn","btn-secondary",3,"click"]],template:function(a,o){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"h2",2),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"p",3)(6,"strong"),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"button",4),e.bIt("click",function(){return o.goToIniciar()}),e.EFF(12),e.nI1(13,"transloco"),e.k0s()()()),2&a&&(e.R7$(3),e.SpI(" ",e.bMT(4,4,"tramite_caducado.titulo")," "),e.R7$(4),e.JRh(e.bMT(8,6,"tramite_caducado.mensaje")),e.R7$(2),e.SpI("",e.bMT(10,8,"tramite_caducado.mensaje_1")," "),e.R7$(3),e.JRh(e.bMT(13,10,"tramite_caducado.continuar")))},dependencies:[p.Kj],encapsulation:2})}}return t})();const Sa=t=>({"text-disabled":t}),xa=(t,n,i,a)=>({"text-info":t,"text-orange":n,"text-success":i,"text-danger":a});function Ea(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-skeleton-page",9),e.k0s()),2&t&&(e.R7$(),e.Y8G("amount","1"))}function Ca(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",21)(1,"a",22),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.back())}),e.j41(2,"span",23),e.EFF(3,"arrow_back"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()()}if(2&t){const i=e.XpG(2);e.R7$(5),e.JRh(12===i.stepOrder||15===i.stepOrder||25===i.stepOrder?"Volver al tr\xe1mite":"Volver atr\xe1s")}}function $a(t,n){if(1&t&&(e.j41(0,"div",24)(1,"h2",25),e.EFF(2),e.k0s(),e.j41(3,"p",26),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.j41(6,"div",27)(7,"div",28)(8,"div",29)(9,"span",30),e.EFF(10),e.k0s()()()()()),2&t){const i=e.XpG(2);e.R7$(2),e.JRh(i.nombre_tramite),e.R7$(2),e.JRh(e.bMT(5,6,"gestion_tramite.proceso")),e.R7$(4),e.xc7("width",i.percent),e.Y8G("ngClass",i.step?"withStep":"withoutStep"),e.R7$(2),e.JRh(i.step)}}function Ma(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",31)(1,"div",32)(2,"div",33)(3,"div",34)(4,"h4",35),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div")(8,"button",36),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.setCurso("si"))}),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"button",37),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.setCurso("no"))}),e.EFF(12),e.nI1(13,"transloco"),e.k0s()()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"gestion_tramite.pregunta_por_curso")),e.R7$(4),e.JRh(e.bMT(10,5,"gestion_tramite.respuesta_afirmativa_curso")),e.R7$(3),e.JRh(e.bMT(13,7,"gestion_tramite.respuesta_negativa_curso")))}function Ga(t,n){if(1&t&&(e.j41(0,"div")(1,"div",38)(2,"p")(3,"span",39),e.EFF(4),e.k0s(),e.j41(5,"span"),e.EFF(6),e.k0s()()()()),2&t){const i=e.XpG(2);e.R7$(4),e.JRh(i.curso_mensaje_warning),e.R7$(2),e.JRh(""!==i.sub_mensaje_warning?i.sub_mensaje_warning:"")}}function ya(t,n){if(1&t&&(e.j41(0,"div")(1,"div",40)(2,"p")(3,"span",39),e.EFF(4),e.k0s()()()()),2&t){const i=e.XpG(2);e.R7$(4),e.JRh(i.examen_mensaje_warning)}}function wa(t,n){if(1&t&&(e.j41(0,"div")(1,"div",41)(2,"p")(3,"span",39),e.EFF(4),e.k0s()()()()),2&t){const i=e.XpG(2);e.R7$(4),e.JRh(i.tramite_mensaje_success)}}function Ya(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",31)(1,"div",32)(2,"div",33)(3,"div",34)(4,"h4",42),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div")(8,"button",43),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next(8))}),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"button",37),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next(9))}),e.EFF(12),e.nI1(13,"transloco"),e.k0s()()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"gestion_tramite.pregunta_por_licencia")),e.R7$(4),e.JRh(e.bMT(10,5,"gestion_tramite.respuesta_afirmativa_licencia")),e.R7$(3),e.JRh(e.bMT(13,7,"gestion_tramite.respuesta_negativa_licencia")))}function Da(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",44)(1,"div",32)(2,"div",33)(3,"div",34)(4,"h4",42),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"div")(8,"button",45),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next(8))}),e.EFF(9),e.nI1(10,"transloco"),e.k0s(),e.j41(11,"button",37),e.bIt("click",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.next(9))}),e.EFF(12),e.nI1(13,"transloco"),e.k0s()()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"gestion_tramite.pregunta_por_renovacion")),e.R7$(4),e.JRh(e.bMT(10,5,"gestion_tramite.respuesta_afirmativa_renovacion")),e.R7$(3),e.JRh(e.bMT(13,7,"gestion_tramite.respuesta_negativa_renovacion")))}function Va(t,n){1&t&&(e.j41(0,"div",46)(1,"div",38)(2,"p")(3,"strong"),e.EFF(4),e.nI1(5,"transloco"),e.k0s(),e.EFF(6),e.nI1(7,"transloco"),e.k0s()()()),2&t&&(e.R7$(4),e.JRh(e.bMT(5,2,"gestion_tramite.primer_mensaje_alerta")),e.R7$(2),e.JRh(e.bMT(7,4,"gestion_tramite.segundo_mensaje_alerta")))}function Ja(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"div",65),e.bIt("click",function(){const o=s.eBV(i).index,r=e.XpG(3);return s.Njj(r.next(o+1))}),e.j41(2,"div",66)(3,"div",67)(4,"span",68),e.EFF(5),e.k0s(),e.j41(6,"p",69),e.EFF(7),e.k0s()(),e.j41(8,"span",70),e.EFF(9,"chevron_right"),e.k0s()()()()}if(2&t){const i=n.$implicit;
1e.R7$(),e.Y8G("ngClass",e.eq3(4,Sa,i.habilitado)),e.R7$(3),e.Y8G("ngClass",e.ziG(6,xa,"pending"===i.icono,"report_problem"===i.icono,"check_circle"===i.icono,"cancel"===i.icono)),e.R7$(),e.SpI(" ",i.icono," "),e.R7$(2),e.JRh(i.nombre)}}function Na(t,n){if(1&t&&(e.j41(0,"a",75),e.EFF(1),e.k0s()),2&t){const i=e.XpG(4);e.Y8G("href",i.presentar.link,e.B4B),e.R7$(),e.JRh(i.presentar.documento)}}function Oa(t,n){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const i=e.XpG(4);e.R7$(),e.JRh(i.presentar.documento)}}function Ba(t,n){if(1&t&&(e.j41(0,"div",25)(1,"ul",54)(2,"li"),e.EFF(3),e.nI1(4,"transloco"),e.DNE(5,Na,2,2,"a",71)(6,Oa,2,1,"span",1),e.k0s()(),e.j41(7,"div",72)(8,"span",73),e.EFF(9,"report_problem"),e.k0s(),e.j41(10,"small",74),e.EFF(11),e.nI1(12,"transloco"),e.k0s()()()),2&t){const i=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,4,"gestion_tramite.exencion")),e.R7$(2),e.Y8G("ngIf",i.presentar.link),e.R7$(),e.Y8G("ngIf",!i.presentar.link),e.R7$(5),e.JRh(e.bMT(12,6,"gestion_tramite.presentar"))}}function Pa(t,n){1&t&&(e.j41(0,"a",76),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"gestion_tramite.manual_conductor")))}function Xa(t,n){1&t&&(e.j41(0,"a",77),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"gestion_tramite.categoria_a")))}function Aa(t,n){1&t&&(e.j41(0,"a",78),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"gestion_tramite.protocolo")))}function Ua(t,n){1&t&&(e.j41(0,"a",79),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"gestion_tramite.examen_practico")))}function La(t,n){if(1&t&&(e.j41(0,"div")(1,"div",47)(2,"div",32)(3,"div",48)(4,"h3",49),e.EFF(5),e.nI1(6,"transloco"),e.k0s(),e.j41(7,"span",50),e.EFF(8,"article"),e.k0s()(),e.j41(9,"div",51),e.DNE(10,Ja,10,11,"div",52),e.k0s()()(),e.j41(11,"div",53)(12,"div",25)(13,"h3"),e.EFF(14),e.nI1(15,"transloco"),e.k0s(),e.j41(16,"ul",54)(17,"li"),e.EFF(18),e.nI1(19,"transloco"),e.k0s()(),e.j41(20,"div",55)(21,"span",56),e.EFF(22,"warning"),e.k0s(),e.j41(23,"small"),e.EFF(24),e.nI1(25,"transloco"),e.k0s()()(),e.DNE(26,Ba,13,8,"div",57),e.k0s(),e.j41(27,"div",58)(28,"h3"),e.EFF(29),e.nI1(30,"transloco"),e.k0s(),e.j41(31,"div",59),e.DNE(32,Pa,3,3,"a",60)(33,Xa,3,3,"a",61)(34,Aa,3,3,"a",62)(35,Ua,3,3,"a",63),e.j41(36,"a",64),e.EFF(37),e.nI1(38,"transloco"),e.k0s()()()()),2&t){const i=e.XpG(2);e.R7$(5),e.JRh(e.bMT(6,12,"gestion_tramite.tramite_pasos")),e.R7$(5),e.Y8G("ngForOf",i.tramiteOtorgamiento.pasos),e.R7$(4),e.JRh(e.bMT(15,14,"gestion_tramite.info_documentacion_requerida")),e.R7$(4),e.SpI(" ",e.bMT(19,16,"gestion_tramite.dni")," "),e.R7$(6),e.JRh(e.bMT(25,18,"gestion_tramite.presentar")),e.R7$(2),e.Y8G("ngIf",i.exento),e.R7$(3),e.JRh(e.bMT(30,20,"gestion_tramite.material")),e.R7$(3),e.Y8G("ngIf","A41"!=i.tramiteOtorgamiento.solicitud.categoria_licencia&&"A42"!=i.tramiteOtorgamiento.solicitud.categoria_licencia&&"A43"!=i.tramiteOtorgamiento.solicitud.categoria_licencia&&"A44"!=i.tramiteOtorgamiento.solicitud.categoria_licencia),e.R7$(),e.Y8G("ngIf","A41"==i.tramiteOtorgamiento.solicitud.categoria_licencia||"A42"==i.tramiteOtorgamiento.solicitud.categoria_licencia||"A43"==i.tramiteOtorgamiento.solicitud.categoria_licencia||"A44"==i.tramiteOtorgamiento.solicitud.categoria_licencia),e.R7$(),e.Y8G("ngIf","B1"==i.tramiteOtorgamiento.solicitud.categoria_licencia),e.R7$(),e.Y8G("ngIf","B1"==i.tramiteOtorgamiento.solicitud.categoria_licencia||"B2"==i.tramiteOtorgamiento.solicitud.categoria_licencia),e.R7$(2),e.JRh(e.bMT(38,22,"gestion_tramite.circuitos"))}}function Qa(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-pago-cenat",80),e.bIt("step",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("estado_tramite",i.curso_estado)}}function Wa(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-emision-libre-deuda",81),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}}function qa(t,n){if(1&t&&(e.j41(0,"div"),e.nrm(1,"app-ficha-salud",82),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("estado_tramite",i.ficha_salud_estado)("estado_pago",i.estado_ficha_salud)}}function za(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-educacion-vial",83),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("back_main",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.disabled())})("setStep",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.setStep(o))}),e.k0s()()}}function Ha(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-reserva-turno",84),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("back_main",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.disabled())}),e.k0s()()}}function Ka(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-examen-presencial-detalle",85),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("setStep",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.setStep(o))}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("estado_tramite",i.estado_tramite)}}
1function Za(t,n){1&t&&(e.j41(0,"div"),e.nrm(1,"app-creando-tramite",86),e.k0s()),2&t&&(e.R7$(),e.Y8G("tramite","actualizando"))}function es(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-examen-si-tengo-licencia",81),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}}function ts(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-examen-no-tengo-licencia",87),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("resetAll",function(){s.eBV(i);const o=e.XpG(2);return s.Njj(o.setResetAll())}),e.k0s()()}}function is(t,n){if(1&t&&(e.j41(0,"div"),e.nrm(1,"app-redireccion-link",88),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("opcion",i.mensaje)}}function os(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",89)(1,"app-curso-virtual-detalle",90),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("setStep",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.setStep(o))}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("view_message",i.curso_warning)("curso_virtual",i.curso_virtual)("estado_tramite",i.curso_estado)}}function as(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-curso-educacion-nuevo",91),e.bIt("seleccion",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}}function ss(t,n){if(1&t){const i=e.RV6();e.j41(0,"diV")(1,"app-detalle-reserva-turno",92),e.bIt("step",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}}function ns(t,n){1&t&&(e.j41(0,"diV"),e.nrm(1,"app-google-calendar"),e.k0s())}function rs(t,n){if(1&t&&(e.j41(0,"div"),e.nrm(1,"app-curso-educacion-detalle-b",93),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("sede",i.tramite.pasos[3].data.sede)}}function cs(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-charla-renovacion",94),e.bIt("step",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("estado_tramite",i.estado_tramite)("taxista_control",i.taxista_control)}}function ls(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-examen-psicofisico",85),e.bIt("backing",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("carga",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("setStep",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.setStep(o))}),e.k0s()()}if(2&t){const i=e.XpG(2);e.R7$(),e.Y8G("estado_tramite",i.estado_tramite_examen)}}function ds(t,n){if(1&t){const i=e.RV6();e.j41(0,"div")(1,"app-tramite-caducado",95),e.bIt("stepOrder",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.next(o))})("isRestarted",function(o){s.eBV(i);const r=e.XpG(2);return s.Njj(r.setIsRestarted(o))}),e.k0s()()}}function us(t,n){1&t&&(e.j41(0,"div",89),e.nrm(1,"app-error-page"),e.k0s())}function _s(t,n){if(1&t&&(e.j41(0,"div",10)(1,"div",11),e.DNE(2,Ca,6,1,"div",12)(3,$a,11,8,"div",13)(4,Ma,14,9,"div",14)(5,Ga,7,2,"div",1)(6,ya,5,1,"div",1)(7,wa,5,1,"div",1)(8,Ya,14,9,"div",14)(9,Da,14,9,"div",15)(10,Va,8,6,"div",16)(11,La,39,24,"div",1),e.j41(12,"div",17)(13,"div",18),e.DNE(14,Qa,2,1,"div",19)(15,Wa,2,0,"div",19)(16,qa,2,2,"div",19)(17,za,2,0,"div",19)(18,Ha,2,0,"div",19)(19,Ka,2,1,"div",19)(20,Za,2,1,"div",19)(21,es,2,0,"div",19)(22,ts,2,0,"div",19)(23,is,2,1,"div",19)(24,os,2,3,"div",20)(25,as,2,0,"div",19)(26,ss,2,0,"diV",19)(27,ns,2,0,"diV",19)(28,rs,2,1,"div",19)(29,cs,2,2,"div",19)(30,ls,2,1,"div",19)(31,ds,2,0,"div",19)(32,us,2,0,"div",20),e.k0s()()()()),2&t){const i=e.XpG();e.R7$(2),e.Y8G("ngIf",!i.disabled_back),e.R7$(),e.Y8G("ngIf",!i.stepOrder),e.R7$(),e.Y8G("ngIf",!i.curso_warning&&"en-proceso"===i.paso_4.estado&&0===i.stepOrder&&i.nombre_tramite.includes("Otorgamiento")),e.R7$(),e.Y8G("ngIf",i.curso_warning&&0===i.stepOrder),e.R7$(),e.Y8G("ngIf",0===i.stepOrder&&i.examen_control&&"disponible"===i.paso_6.estado),e.R7$(),e.Y8G("ngIf",0===i.stepOrder&&"completado"===i.paso_6.estado),e.R7$(),e.Y8G("ngIf",!i.stepOrder&&!i.examen_control&&i.nombre_tramite.includes("Otorgamiento")),e.R7$(),e.Y8G("ngIf",!i.stepOrder&&!i.examen_psicofisico_control&&i.nombre_tramite.includes("Renovaci\xf3n")),e.R7$(),e.Y8G("ngIf",i.estadoFichaSalud&&0===i.stepOrder),e.R7$(),e.Y8G("ngIf",!i.stepOrder),e.R7$(2),e.Y8G("ngSwitch",i.stepOrder),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",4),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",7),e.R7$(),e.Y8G("ngSwitchCase",8),e.R7$(),e.Y8G("ngSwitchCase",9),e.R7$(),e.Y8G("ngSwitchCase",10),e.R7$(),e.Y8G("ngSwitchCase",11),e.R7$(),e.Y8G("ngSwitchCase",12),e.R7$(),e.Y8G("ngSwitchCase",13),e.R7$(),e.Y8G("ngSwitchCase",14),e.R7$(),e.Y8G("ngSwitchCase",15),e.R7$(),e.Y8G("ngSwitchCase",16),e.R7$(),e.Y8G("ngSwitchCase",17),e.R7$(),e.Y8G("ngSwitchCase",18),e.R7$(),e.Y8G("ngSwitchCase",25)}}function ps(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",96)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",103),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cancelmodal())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.setStepNext())}),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,4,"gestion_tramite.modal.titulo")),e.R7$(4),e.JRh(e.bMT(10,6,"gestion_tramite.modal.mensaje")),e.R7$(4),e.SpI(" ",e.bMT(14,8,"gestion_tramite.modal.cancelar")," "),e.R7$(3),e.JRh(e.bMT(17,10,"gestion_tramite.modal.continuar")))}function ms(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",105)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",103),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cancelmodal2())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.goHome())}),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,4,"gestion_tramite.modal2.titulo")),e.R7$(4),e.JRh(e.bMT(10,6,"gestion_tramite.modal.mensaje")),e.R7$(4),e.SpI(" ",e.bMT(14,8,"gestion_tramite.modal.cancelar")," "),e.R7$(3),e.JRh(e.bMT(17,10,"gestion_tramite.modal.continuar")))}function hs(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",106)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",103),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cancelmodal3())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.next(0))}),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,4,"gestion_tramite.modal3.titulo")),e.R7$(4),e.JRh(e.bMT(10,6,"gestion_tramite.modal3.mensaje")),e.R7$(4),e.SpI(" ",e.bMT(14,8,"gestion_tramite.modal3.cancelar")," "),e.R7$(3),e.JRh(e.bMT(17,10,"gestion_tramite.modal3.continuar")))}function fs(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",107)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",103),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cancelmodal4())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.confirCurso())}),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,4,"gestion_tramite.modal4.titulo")),e.R7$(4),e.JRh(e.bMT(10,6,"gestion_tramite.modal4.mensaje")),e.R7$(4),e.SpI(" ",e.bMT(14,8,"gestion_tramite.modal4.cancelar")," "),e.R7$(3),e.JRh(e.bMT(17,10,"gestion_tramite.modal4.continuar")))}function gs(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",108)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",103),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.cancelmodal5())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s(),e.j41(15,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.next(0))}),e.EFF(16),e.nI1(17,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,4,"gestion_tramite.modal5.titulo")),e.R7$(4),e.JRh(e.bMT(10,6,"gestion_tramite.modal5.mensaje")),e.R7$(4),e.SpI(" ",e.bMT(14,8,"gestion_tramite.modal5.cancelar")," "),e.R7$(3),e.JRh(e.bMT(17,10,"gestion_tramite.modal5.confirmar")))}function bs(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",109)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4",100),e.EFF(5),e.nI1(6,"transloco"),e.k0s()(),e.j41(7,"div",101)(8,"p"),e.EFF(9),e.nI1(10,"transloco"),e.k0s()(),e.j41(11,"div",102)(12,"button",104),e.bIt("click",function(){s.eBV(i);const o=e.XpG();return s.Njj(o.confirmBUI())}),e.EFF(13),e.nI1(14,"transloco"),e.k0s()()()()()}2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"gestion_tramite.modalBUI.titulo")),e.R7$(4),e.JRh(e.bMT(10,5,"gestion_tramite.modalBUI.mensaje")),e.R7$(4),e.JRh(e.bMT(14,7,"gestion_tramite.modalBUI.c
1ontinuar")))}let Rs=(()=>{class t{constructor(){this._otorgamientoServices=(0,s.WQX)(j),this._router=(0,s.WQX)(S.Ix),this.lclStorageService=(0,s.WQX)(f.s),this.configService=(0,s.WQX)(I.s),this.cd=(0,s.WQX)(G.gRc),this.angulartics2=(0,s.WQX)(y.il),this.reservaTurnoService=(0,s.WQX)(k),this.renderer=(0,s.WQX)(e.sFG),this._store=(0,s.WQX)(oe.n),this.tramiteOtorgamiento=new ie,this.procedureDisabled=!1,this.step=5,this.stepOrder=0,this.percent="",this.mensaje="",this.modal=!1,this.modal2=!1,this.modal3=!1,this.modal4=!1,this.modal5=!1,this.modalRev=!1,this.modalBUI=!1,this.estadoFichaSalud=!1,this.estadoFichaSaludOnline=!1,this.configJson=this.configService.getConfig(),this.disabled_back=null,this.fecha=[],this.hora=[],this.mes="",this.hora_format="",this.fecha_format="",this.curso_warning=!1,this.examen_control=null,this.examen_mensaje_warning="",this.examen_psicofisico_control=null,this.tramite_mensaje_success="",this.sub_examen_mensaje_warning="",this.curso_mensaje_warning="",this.curso_virtual=null,this.curso_estado="",this.ficha_salud_estado="",this.sub_mensaje_warning="",this.turno=[],this.contenidoCargadoDireccion=!1,this.exento=!1,this.nombre_tramite="",this.estado_ficha_salud="",this.paso_1={codigo:"",estado:"",nombre:"",uuid:""},this.paso_2={codigo:"",estado:"",nombre:"",uuid:""},this.paso_3={codigo:"",estado:"",nombre:"",uuid:""},this.paso_4={codigo:"",estado:"",nombre:"",uuid:""},this.paso_5={codigo:"",estado:"",nombre:"",uuid:""},this.paso_6={codigo:"",estado:"",nombre:"",uuid:""},this.datosFichaSalud={uuid:"",urlRedireccion:this.configJson.application_url+"gestion-tramite"},this.steps=[{value:1,percent:"16.66%"},{value:2,percent:"33.32%"},{value:3,percent:"49.98%"},{value:4,percent:"66.64%"},{value:5,percent:"83.3%"},{value:6,percent:"100%"}],this.estado_tramite="en-proceso",this.fechaActual=new Date,this.taxista_control=!1,this.estado_tramite_examen="en-proceso",this.isRestarted=!1,window.scrollTo({top:0,behavior:"smooth"}),this.angulartics2.eventTrack.next({action:"countEnterStep",properties:{step:"step",label:"stepLabel"}})}ngOnInit(){this.curso_estado="",this.getGestionOtorgamientos(),localStorage.removeItem("datosBloqueo"),localStorage.removeItem("cursoActual"),localStorage.removeItem("fechaSucursal"),this.disabled_back=!1,this.GetPaths()}simulateClickEvent(){this.renderer.selectRootElement("#myButton").click()}handleButtonClick(){}validateEstadoBoletaBUI(i){this._otorgamientoServices.getEstadoBoletaBUI(i).subscribe({next:a=>{let o=new Date;a.content.vencida&&"No pagado"===a.content.estado&&new Date(a.content.fechaVencimiento+"T00:00:00")>o?this.modalBUI=!0:"Pagado"===a.content.estado&&a.content.diasRestantes>180&&(this.isRestarted&&(this.stepOrder=18),this.modalBUI=!1)},error:a=>{this.stepOrder=25}})}setIsRestarted(i){this.isRestarted=i}validateEsTaxista(){this._otorgamientoServices.getEsTaxista().subscribe({next:i=>{i.content.es_chofer&&this._otorgamientoServices.getCursoTaxista().subscribe({next:a=>{if(a.content.Cursadas.Cursada.length>0){let r,o=1/0;for(const c of a.content.Cursadas.Cursada){const d=c.FechaCursada,u=d.substr(0,4),g=d.substr(4,2),h=d.substr(6,2),R=new Date(u,g-1,h),v=Math.abs(this.fechaActual.getTime()-R.getTime());v<o&&(o=v,r=c)}r&&"APTO"===r.Resultado&&(this.taxista_control=!0)}}})},error:i=>{this.stepOrder=25}})}validateStateCharlaRenovacion(){let i=this.lclStorageService.getValue("currentUser"),a=this.lclStorageService.getValue("tramiteActual");return this.body={},this.body.documento=i.CUIL.substr(2,8),this.body.sexo="M"==i.genero?"m":"f",this._otorgamientoServices.getEstadoCharlaRenovacion(this.body).subscribe({next:o=>{o.content.aprobado&&(this.updateBodyStep2={},this.updateBodyStep2.uuid=a.pasos[2].uuid,this.updateBodyStep2.estado="completado",this.updateBodyStep2.data=null,this.reservaTurnoService.postActualizarEstadoPaso(this.updateBodyStep2).subscribe({next:r=>{this.estado_tramite="completado",this.updateBody={},this.updateBody.uuid=a.pasos[3].uuid,this.updateBody.estado="disponible",this.updateBody.data=null,this.reservaTurnoService.postActualizarEstadoPaso(this.updateBodyStep2).subscribe({next:c=>{this.ngOnInit()},error:c=>{},complete:()=>{}})},error:r=>{},complete:()=>{}}))},error:o=>{},complete:()=>{}}),null}loadIdServicio(){let i="";return this.tramite=this.lclStorageService.getValue("tramiteActual"),this.nombre_tramite.includes("Otorgamiento")?i=this.tramite.solicitud.tipo_caja:this.nombre_tramite.includes("Renovaci\xf3n")&&(i="renovacion"),i}back(){0===this.stepOrder&&(this.modal2=!0),25===this.stepOrder&&this._router.navigate(["/otorgamiento-licencia"]),this.stepOrder=0,this.ngOnInit()}next(i){switch(i){case 0:"completado"===this.tramiteOtorgamiento.pasos[4].estado&&(this.tramiteOtorgamiento.nombre.includes("Renovaci\xf3n")?this.tramite_mensaje_success="\xa1Felicitaciones! Finalizaste todos lo ex\xe1menes para la renovaci\xf3n de tu Licencia de Conducir":this.nombre_tramite.includes("Otorgamiento")&&(this.tramite_mensaje_success="\xa1Felicitaciones! Finalizaste todos lo ex\xe1menes para la obtenci\xf3n de tu Licencia de Conducir"),this._otorgamientoServices.postEstadoPaso(this.tramite.pasos[5].uuid,"completado",{}).subscribe({next:()=>{this.estado_tramite="completado",this.tramiteOtorgamiento.pasos[5].estado="completado",this.tramiteOtorgamiento.pasos[5].icono="circle-check",this._otorgamientoServices.postEstadoTramite(this.tramite.uuid,"completado").subscribe({next:a=>{this.examen_control="no-disponible"===this.tramiteOtorgamiento.estado.codigo||"completado"!==this.tramiteOtorgamiento.estado.codigo,this.ngOnInit()},error:a=>{this.stepOrder=25},complete:()=>{}})},error:a=>{this.stepOrder=25}})),this.stepOrder=0,this.ngOnInit();break;case 1:this.curso_estado=this.tramiteOtorgamiento.pasos[0].estado,this.stepOrder=1,"no-disponible"===this.paso_3.estado&&this._otorgamientoServices.postEstadoPaso(this.paso_3.uuid,"disponible",{}).subscribe({next:a=>{this.tramiteOtorgamiento.pasos[2].estado="disponible",this.tramiteOtorgamiento.pasos[2].icono="pending"},error:a=>{this.stepOrder=25}});break;case 2:switch(this.tramiteOtorgamiento.pasos[1].estado){case"en-espera":this._otorgamientoServices.redireccionarPagoInfracciones(this.tramiteOtorgamiento.pasos[1].uuid).subscribe({next:a=>{""!==a.content.url&&(window.location.href=a.content.url)}});break;case"completado":this.stepOrder=2}break;case 3:this.nombre_tramite.includes("Otorgamiento")?"en-proceso"==this.tramiteOtorgamiento.pasos[2].estado||"completado"==this.tramiteOtorgamiento.pasos[2].estado?(this.ficha_salud_estado=this.tramiteOtorgamiento.pasos[2].estado,this.stepOrder=3):this.modal?(this.modal=!1,"disponible"==this.tramiteOtorgamiento.pasos[2].estado&&(this.datosFich
1aSalud.uuid=this.tramiteOtorgamiento.pasos[2].uuid,this._otorgamientoServices.postFichaSalud(JSON.stringify(this.datosFichaSalud)).subscribe({next:a=>{window.location.href=a.content.url_redireccion}}))):this.modal=!0:this.nombre_tramite.includes("Renovaci\xf3n")&&(this.mensaje="charla-renovacion",this.stepOrder=16);break;case 4:this.tramite=this.lclStorageService.getValue("tramiteActual"),this.nombre_tramite.includes("Otorgamiento")?"en-proceso"==this.paso_4.estado||"completado"==this.paso_4.estado?"Escuelas de conducir autorizadas"===this.tramite.pasos[3].data.sede?this.stepOrder=15:(this.curso_estado=this.paso_4.estado,this.mensaje_curso=!0,this.stepOrder=11):(this.mensaje_curso=!1,this.stepOrder=4):this.nombre_tramite.includes("Renovaci\xf3n")&&("en-proceso"==this.tramiteOtorgamiento.pasos[3].estado||"completado"==this.tramiteOtorgamiento.pasos[3].estado?(this.ficha_salud_estado=this.tramiteOtorgamiento.pasos[3].estado,this.stepOrder=3):this.modal?(this.modal=!1,"disponible"==this.tramiteOtorgamiento.pasos[3].estado&&(this.datosFichaSalud.uuid=this.tramiteOtorgamiento.pasos[3].uuid,this._otorgamientoServices.postFichaSalud(JSON.stringify(this.datosFichaSalud)).subscribe({next:a=>{window.location.href=a.content.url_redireccion}}))):this.modal=!0);break;case 5:this.stepOrder="completado"!==this.tramiteOtorgamiento.pasos[4].estado?5:13;break;case 6:this.nombre_tramite.includes("Otorgamiento")?this.stepOrder=6:this.nombre_tramite.includes("Renovaci\xf3n")&&(this.stepOrder=17);break;case 7:this.stepOrder=7,setTimeout(()=>{this.stepOrder=0},3e3);break;case 8:"completado"===this.tramiteOtorgamiento.pasos[4].estado&&0===this.stepOrder&&(this.nombre_tramite.includes("Otorgamiento")?this.modal3=!0:this.nombre_tramite.includes("Renovaci\xf3n")&&(this.modal5=!0));break;case 9:this.stepOrder=9;break;case 10:this.mensaje="cenat",this.stepOrder=10;break;case 12:this.tramiteOtorgamiento.pasos[3].estado="disponible",this.stepOrder=12;break;case 13:this.stepOrder=14;break;case 16:this.mensaje="charla-renovacion",this.stepOrder=10;break;case 17:this.stepOrder=17;break;case 18:this.stepOrder=18}}setStepNext(){this.nombre_tramite.includes("Otorgamiento")?this.next(3):this.nombre_tramite.includes("Renovaci\xf3n")&&this.next(4)}getGestionOtorgamientos(){this.estadoFichaSalud=!1;let i=this.lclStorageService.getValue("tramiteActual");this.contenidoCargadoDireccion=!1;let a=this.configJson.tramites.certificado_pobreza,o=this.configJson.tramites.certificado_malvinas,r=this.configJson.tramites.certificado_discapacidad;this._otorgamientoServices.getGestionOtorgamientos(i.uuid).subscribe(c=>{let d=c.content,u=JSON.parse(d.data);d.solicitud=u,this.nombre_tramite=d.nombre;let g=u.persona_exenta;if(this.exento="No soy una persona exenta"!==g,this.exento)switch(g){case"Soy una persona jubilada o pensionada":this.presentar={documento:"jubilados / pensionados"};break;case"Soy una persona carente de recursos":this.presentar={documento:"Certificado de pobreza",link:a};break;case"Soy un Veterano de Malvinas":this.presentar={documento:"Certificado de Veteranos de Malvinas",link:o};break;case"Soy una persona con discapacidad":this.presentar={documento:"Certificado \xfanico de discapacidad",link:r}}this.percent=`${d.porcentaje}%`,this.lclStorageService.setValue("tramiteActual",d),this.tramiteOtorgamiento=d,this.paso_1=this.tramiteOtorgamiento.pasos[0],this.paso_2=this.tramiteOtorgamiento.pasos[1],this.paso_3=this.tramiteOtorgamiento.pasos[2],this.paso_4=this.tramiteOtorgamiento.pasos[3],this.paso_5=this.tramiteOtorgamiento.pasos[4],this.paso_6=this.tramiteOtorgamiento.pasos[5],this.getFichaSaludEstado(),"en-espera"!==this.tramiteOtorgamiento.pasos[1].estado&&this.getEstadoLibreDeuda(),this.examen_control=!0,this.examen_psicofisico_control=!0,this.accionesPasos(),this.contenidoCargadoDireccion=!0,this.nombre_tramite.includes("Renovaci\xf3n")&&"disponible"===this.tramiteOtorgamiento.pasos[2].estado&&this.validateStateCharlaRenovacion(),this.validateEsTaxista()},c=>{this.stepOrder=25})}accionesPasos(){if(this.tramite=this.lclStorageService.getValue("tramiteActual"),"completado"===this.paso_3.estado&&"no-disponible"===this.paso_4.estado&&this._otorgamientoServices.postEstadoPaso(this.paso_4.uuid,"disponible",{}).subscribe({next:i=>{this.tramiteOtorgamiento.pasos[3].estado="disponible"},error:i=>{this.stepOrder=25}}),this.nombre_tramite.includes("Otorgamiento")?("en-proceso"==this.paso_3.estado&&(this.estadoFichaSalud=!0),"en-proceso-externo"==this.paso_3.estado&&(this.estadoFichaSaludOnline=!0)):this.nombre_tramite.includes("Renovaci\xf3n")&&("en-proceso"==this.paso_4.estado&&(this.estadoFichaSalud=!0),"en-proceso-externo"==this.paso_4.estado&&(this.estadoFichaSaludOnline=!0)),"en-proceso"===this.paso_4.estado){this.tramite=this.lclStorageService.getValue("tramiteActual");let i=this.lclStorageService.getValue("currentUser");i.CUIL=i.CUIL.slice(2),i.CUIL=i.CUIL.substring(0,i.CUIL.length-1),i.tipo_dni="DNI"===i.tipo_dni?i.tipo_dni:"DNI";let a={tipoDocumento:i.tipo_dni,numeroDocumento:i.CUIL,genero:i.genero,IdServicio:this.tramite.pasos[3].data.IdServicio};this.contenidoCargadoDireccion=!1,this._otorgamientoServices.getExamenPresecialDetalle(a).subscribe({next:o=>
1{if(this.turno=o.content.Turno,0===this.turno.length)this.curso_warning=!1;else{let r=this.tramite.pasos[3].data.sede.toLowerCase().includes("virtual");this.fecha=this.tramite.pasos[3].data.fecha.split("-"),this.fecha_format=this.fecha[2]+"/"+this.fecha[1]+"/"+this.fecha[0],r?(this.curso_mensaje_warning=`Record\xe1 que ten\xe9s turno virtual el d\xeda ${this.fecha_format} a las ${this.tramite.pasos[3].data.hora}hs para hacer el curso de\n              educaci\xf3n vial. `,this.sub_mensaje_warning="Vas a encontrar el enlace para ingresar al curso el d\xeda anterior en tu correo electr\xf3nico.",this.curso_warning=!0,this.curso_virtual=!0):(this.curso_mensaje_warning=`Record\xe1 que ten\xe9s turno presencial el d\xeda ${this.fecha_format} a las ${this.tramite.pasos[3].data.hora}hs para hacer el curso de\n              educaci\xf3n vial en ${this.tramite.pasos[3].data.sede}, ${this.tramite.pasos[3].data.direccion}.`,this.sub_mensaje_warning="",this.curso_warning=!0,this.curso_virtual=!1),this.cd.detectChanges()}this.contenidoCargadoDireccion=!0},error:o=>{this.contenidoCargadoDireccion=!0},complete:()=>{this.contenidoCargadoDireccion=!0}})}if("disponible"===this.paso_6.estado){this.tramite=this.lclStorageService.getValue("tramiteActual");let i=this.lclStorageService.getValue("currentUser");i.CUIL=i.CUIL.slice(2),i.CUIL=i.CUIL.substring(0,i.CUIL.length-1),i.tipo_dni="DNI"===i.tipo_dni?i.tipo_dni:"DNI";let a={tipoDocumento:i.tipo_dni,numeroDocumento:i.CUIL,genero:i.genero,IdServicio:this.loadIdServicio()};this.contenidoCargadoDireccion=!1,this._otorgamientoServices.getExamenPresecialDetalle(a).subscribe({next:o=>{if(this.turno=o.content.Turno,0===this.turno.length)this.examen_control=!1,this.examen_psicofisico_control=!1;else{this.fecha=this.turno[0].fecha.split("-"),this.fecha_format=this.fecha[2]+"/"+this.fecha[1]+"/"+this.fecha[0];let r=this.turno[0].hora.split(":");
1this.examen_mensaje_warning=`El d\xeda ${this.fecha_format} a las ${r[0]+":"+r[1]} hs ten\xe9s turno para realizar los ex\xe1menes presenciales\n            en ${this.turno[0].sedeDesc}, ${this.turno[0].direccion}.`,this.examen_control=!0,this.examen_psicofisico_control=!0,this.cd.detectChanges()}this.contenidoCargadoDireccion=!0},error:o=>{this.contenidoCargadoDireccion=!0},complete:()=>{this.contenidoCargadoDireccion=!0}})}"completado"===this.paso_6.estado&&(this.nombre_tramite.includes("Renovaci\xf3n")?this.tramite_mensaje_success="\xa1Felicitaciones! Finalizaste todos lo ex\xe1menes para la renovaci\xf3n de tu Licencia de Conducir":this.nombre_tramite.includes("Otorgamiento")&&(this.tramite_mensaje_success="\xa1Felicitaciones! Finalizaste todos lo ex\xe1menes para la obtenci\xf3n de tu Licencia de Conducir"),this.lclStorageService.turno=this.turno),"completado"===this.paso_4.estado&&"no-disponible"===this.paso_5.estado&&this.nombre_tramite.includes("Renovaci\xf3n")&&this._otorgamientoServices.postEstadoPaso(this.tramiteOtorgamiento.pasos[4].uuid,"disponible",null).subscribe({next:i=>{this.estado_tramite_examen="en-proceso",this.ngOnInit()},error:i=>{this.stepOrder=25}})}handleExamenPresencialDetalle(i){this.tramite=this.lclStorageService.getValue("tramiteActual");let a=this.lclStorageService.getValue("currentUser");a.CUIL=a.CUIL.slice(2),a.CUIL=a.CUIL.substring(0,a.CUIL.length-1),a.tipo_dni="DNI"===a.tipo_dni?a.tipo_dni:"DNI";let o={tipoDocumento:a.tipo_dni,numeroDocumento:a.CUIL,genero:a.genero,IdServicio:i.IdServicio};this.contenidoCargadoDireccion=!1,this._otorgamientoServices.getExamenPresecialDetalle(o).subscribe({next:r=>{if(this.turno=r.content.Turno,0===this.turno.length)this.examen_control=!1,this.examen_psicofisico_control=!1;else{this.fecha=this.turno[0].fecha.split("-"),this.fecha_format=this.fecha[2]+"/"+this.fecha[1]+"/"+this.fecha[0];let c=this.turno[0].hora.split(":");
1this.examen_mensaje_warning=`El d\xeda ${this.fecha_format} a las ${c[0]+":"+c[1]} hs ten\xe9s turno para realizar los ex\xe1menes presenciales en ${this.turno[0].sedeDesc}, ${this.turno[0].direccion}.`,this.examen_control=!0,this.examen_psicofisico_control=!0,this.cd.detectChanges()}this.contenidoCargadoDireccion=!0},error:r=>{this.contenidoCargadoDireccion=!0},complete:()=>{this.contenidoCargadoDireccion=!0}})}findState(){this.contenidoCargadoDireccion=!1,this.tramiteOtorgamiento.pasos.forEach(i=>{switch(i.estado){case"disponible":i.icono="pending";break;case"no-disponible":i.icono="watch_later",i.habilitado=!0;break;case"en-proceso":case"en-proceso-externo":case"en-espera":i.icono="report_problem";break;case"completado":i.icono="check_circle"}}),this.contenidoCargadoDireccion=!0}cancelmodal(){this.modal=!1}cancelmodal2(){this.modal2=!1}cancelmodal3(){this.modal3=!1}cancelmodal4(){this.modal4=!1}cancelmodal5(){this.modal5=!1}cancelmodal6(){this.modalRev=!1}goHome(){"completado"===this.lclStorageService.getValue("tramiteActual").estado.codigo&&localStorage.removeItem("tramiteActual"),this._router.navigate(["/home"])}disabled(){this.disabled_back=!0,this.cd.detectChanges()}setStep(i){this.stepOrder=i}getFichaSaludEstado(){let i=this.lclStorageService.getValue("tramiteActual");this.estadoFichaSalud=!1,this.shouldGetEstadoFichaSalud(i)?this.getEstadoFichaSaludActual(i):this.findState()}shouldGetEstadoFichaSalud(i){return"completado"!==i.pasos[2].estado&&this.nombre_tramite.includes("Otorgamiento")||"completado"!==i.pasos[3].estado&&this.nombre_tramite.includes("Renovaci\xf3n")}getEstadoFichaSaludActual(i){this._otorgamientoServices.getEstadoPagoFichaSalud(i.uuid).subscribe({next:a=>{let o="Aprobado";this.estado_ficha_salud=o;let r=i.nombre.includes("Otorgamiento")?i.pasos[2]:i.pasos[3],c=i.nombre.includes("Otorgamiento")?i.pasos[3]:i.pasos[4];this.shouldCompletePasoFicha(o,r,i.pasos[0].estado)?this.completePasoFichaAndSetEstado(r,c):this.setEstadoFichaSalud(o),a.content.nroBoleta&&(this.nroBoleta=a.content.nroBoleta,this.validateEstadoBoletaBUI(this.nroBoleta)),this.findState()},error:a=>{this.findState()},complete:()=>{}})}shouldCompletePasoFicha(i,a,o){return(i.includes("Aprobado")||"Aprobado Automatico"===i||"Aprobado Manual"===i||"Aprobado Moto"===i||"Aprobado Otros"===i)&&"completado"!==a.estado&&"en-proceso"===a.estado&&"disponible"===o}completePasoFichaAndSetEstado(i,a){this._otorgamientoServices.postEstadoPaso(i.uuid,"completado",{}).subscribe({next:o=>{this._otorgamientoServices.postEstadoPaso(a.uuid,"disponible",{}).subscribe({next:r=>{this.ngOnInit(),this.estadoFichaSalud=!0},error:r=>{this.stepOrder=25}})},error:o=>{this.stepOrder=25}})}setEstadoFichaSalud(i){let o,r,a=this.lclStorageService.getValue("tramiteActual");this.nombre_tramite.includes("Otorgamiento")?(o=2,r=a.pasos[2]):this.nombre_tramite.includes("Renovaci\xf3n")&&(o=3,r=a.pasos[3]),!r||"No validado"!==i&&"CABA validado"!==i&&"Validaci\xf3n RENAPER"!==i&&"Inicio RENAPER"!==i&&"Esperando Pago"!==i&&"Ingresado"!==i||"en-proceso"===r.estado?"Rechazado"===i||"Fuera de CABA"===i?this.updatePasoEstado(r,"en-espera",o):("Aprobado"===i||"Aprobado Automatico"===i||"Aprobado Manual"===i||"Aprobado Moto"===i||"Aprobado Otros"===i)&&this.updatePasoEstado(r,"completado",o):this.updatePasoEstado(r,"en-proceso",o),"en-proceso"==this.tramiteOtorgamiento.pasos[o].estado&&(this.estadoFichaSalud=!0),this.findState()}updatePasoEstado(i,a,o){this._otorgamientoServices.postEstadoPaso(i.uuid,a,{}).subscribe({next:r=>{switch(this.tramiteOtorgamiento.pasos[o].estado=a,a){case"disponible":this.tramiteOtorgamiento.pasos[o].icono="pending";break;case"no-disponible":this.tramiteOtorgamiento.pasos[o].icono="watch_later";break;case"en-proceso":case"en-proceso-externo":case"en-espera":this.tramiteOtorgamiento.pasos[o].icono="report_problem";break;case"completado":this.tramiteOtorgamiento.pasos[o].icono="check_circle"}this.ngOnInit(),this.estadoFichaSalud=!0},error:r=>{this.stepOrder=25}})}setCurso(i){let a=this.lclStorageService.getValue("tramiteActual");if("no"===i){let o={};this._otorgamientoServices.postEstadoPaso(a.pasos[3].uuid,"disponible",o).subscribe({next:r=>{this._otorgamientoServices.postEstadoPaso(a.pasos[4].uuid,"no-disponible",o).subscribe({next:c=>{this.ngOnInit(),this.stepOrder=12},error:c=>{this.stepOrder=25}})},error:r=>{this.stepOrder=25}})}else this.modal4=!0}confirCurso(){let i=this.lclStorageService.getValue("tramiteActual"),o={};this._otorgamientoServices.postEstadoPaso(i.pasos[3].uuid,"completado",{fecha:i.pasos[3].data.fecha,hora:i.pasos[3].data.hora,sede:i.pasos[3].data.sede,IdServicio:i.pasos[3].data.IdServicio}).subscribe({next:r=>{i.pasos[3].estado="completado",i.pasos[3].icono="circle-check",this._otorgamientoServices.postEstadoPaso(i.pasos[4].uuid,"disponible",o).subscribe({next:c=>{i.pasos[4].estado="disponible",i.pasos[4].icono="pending",this.ngOnInit(),this.reservaTurnoService.getPatologias(this.tramite.uuid).subscribe({next:d=>{this.ngOnInit()},error:d=>{this.stepOrder=25}})},error:c=>{this.stepOrder=25}})},error:r=>{this.stepOrder=25}})}confirmRenovacion(){let i=this.lclStorageService.getValue("tramiteActual");this._otorgamientoServices.postEstadoPaso(i.pasos[5].uuid,"completado",{}).subscribe({next:()=>{this.examen_psicofisico_control=!0,this.estado_tramite_examen="completado",i.pasos[5].estado="completado",i.pasos[5].icono="circle-check",this.ngOnInit();let o=0;i.pasos.forEach(r=>{"disponible"===r.estado&&(o+=1)}),6===o&&this._otorgamientoServices.postEstado(i.uuid,"completado").subscribe({next:r=>{},error:r=>{this.stepOrder=25}})},error:()=>{this.stepOrder=25}})}confirmBUI(){let a=this.lclStorageService.getValue("tramiteActual").pasos[3].uuid;this._otorgamientoServices.postEstadoPaso(a,"disponible",null).subscribe({next:r=>{this.modalBUI=!1},error:r=>{this.stepOrder=25}})}getEstadoLibreDeuda(){this._otorgamientoServices.redireccionarPagoInfracciones(this.tramiteOtorgamiento.pasos[1].uuid).subscribe({next:i=>{""!==i.content.url&&this.ngOnInit()}})}setResetAll(){this.stepOrder=0,this.ngOnInit()}GetPaths(){this._router.url.split("/").forEach(i=>
1{this._store.setRoute("none")})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-gestion-tramite"]],standalone:!1,decls:9,vars:8,consts:[["id","gestion-tramite",1,"container","py-3","py-md-5"],[4,"ngIf"],["class","row justify-content-center",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModal",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModal2",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModal3",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModal4",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModal5",4,"ngIf"],["class","modal fade","tabindex","-1","role","dialog","id","exampleModalBUI",4,"ngIf"],["cols","col",3,"amount"],[1,"row","justify-content-center"],[1,"col-lg-9"],["id","back",4,"ngIf"],["id","barra-progreso",4,"ngIf"],["id","pregunta-obtuviste-licenca",4,"ngIf"],["id","pregunta-renovaste-licenca",4,"ngIf"],["class","alert-wrapper",4,"ngIf"],["id","step-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","container",4,"ngSwitchCase"],["id","back"],["data-toggle","modal","data-target","#exampleModal2",1,"d-flex","align-items-center","text-decoration-none","mb-3",3,"click"],[1,"material-symbols-rounded","material-sm","mr-1"],["id","barra-progreso"],[1,"mb-3"],[1,"steps","mb-2"],[1,"progress-container","mb-4"],[1,"progress"],["role","progressbar","aria-valuenow","0","aria-valuemin","0","aria-valuemax","80",1,"progress-bar","bg-success",3,"ngClass"],[2,"color","transparent"],["id","pregunta-obtuviste-licenca"],[1,"card","card-border","mb-4"],[1,"card-body"],[1,"d-flex","align-items-center","flex-wrap","flex-lg-no-wrap"],[1,"font-weight-bold","flex-grow-1","mb-3","mb-lg-0"],["type","button","data-toggle","modal","data-target","#exampleModal4",1,"btn","btn-primary","mr-3","mb-3","mb-sm-0",3,"click"],["type","button",1,"btn","btn-secondary","mb-3","mb-sm-0",3,"click"],["role","alert",1,"alert","alert-warning"],[1,"font-weight-bold"],["role","alert",1,"alert","alert-info"],["role","alert",1,"alert","alert-success"],[1,"font-weight-bold","mb-3","mr-3","mb-md-0","flex-grow-1"],["type","button","data-toggle","modal","data-target","#exampleModal3",1,"btn","btn-primary","mr-3","mb-3","mb-sm-0",3,"click"],["id","pregunta-renovaste-licenca"],["type","button","data-toggle","modal","data-target","#exampleModal5",1,"btn","btn-primary","mr-3","mb-3","mb-sm-0",3,"click"],[1,"alert-wrapper"],["id","pasos"],[1,"card-header","py-3","d-flex","align-items-center","justify-content-between"],[1,"m-0"],[1,"material-symbols-rounded","filled","material-lg","card-icon","m-0"],[1,"card-body","p-0"],[4,"ngFor","ngForOf"],["id","documentos",1,"mb-4"],[1,"mb-0"],[1,"d-flex","align-items-center"],[1,"material-symbols-rounded","filled","material-md","text-orange","mb-0","mr-1"],["class","mb-3",4,"ngIf"],["id","material-de-estudio",1,"mb-4","mb-md-0"],[1,"d-flex","flex-column","align-items-start"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/07/20/42aa3b68bc0e3b6f1815c77af8a4748e4e172cd1.pdf","class","download mb-2","rel","noreferrer",4,"ngIf"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2020/03/12/3ec8d027d176fa0bf70543b78f64e8279ad2c980.pdf","class","download mb-2","rel","noreferrer",4,"ngIf"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/09/22/4c07586561c218109b83374ec7ca2f48f89921ea.pdf","class","download mb-2","rel","noreferrer",4,"ngIf"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/08/24/e893f0c1ef96bfc0920b3213df928100e0b1390e.pdf","class","download mb-2","rel","noreferrer",4,"ngIf"],["href","https://www.buenosaires.gob.ar/sites/gcaba/files/circuitos_por_sede_0.pdf","rel","noreferrer",1,"download","mb-2"],["type","button","data-toggle","modal","data-target","#exampleModal",1,"p-4","border-bottom",3,"click","ngClass"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","align-items-md-center"],[1,"material-symbols-rounded","filled","material-md","mr-3","mr-md-2",3,"ngClass"],[1,"m-0","mr-2"],[1,"material-symbols-rounded","material-md"],[3,"href",4,"ngIf"],[1,"d-inline-flex"],[1,"material-symbols-rounded","filled","material-sm","text-orange","mr-2"],[1,"mb-1"],[3,"href"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/07/20/42aa3b68bc0e3b6f1815c77af8a4748e4e172cd1.pdf","rel","noreferrer",1,"download","mb
1-2"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2020/03/12/3ec8d027d176fa0bf70543b78f64e8279ad2c980.pdf","rel","noreferrer",1,"download","mb-2"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/09/22/4c07586561c218109b83374ec7ca2f48f89921ea.pdf","rel","noreferrer",1,"download","mb-2"],["href","https://buenosaires.gob.ar/sites/default/files/media/document/2022/08/24/e893f0c1ef96bfc0920b3213df928100e0b1390e.pdf","rel","noreferrer",1,"download","mb-2"],[3,"step","estado_tramite"],[3,"backing","carga"],[3,"estado_tramite","estado_pago"],[3,"backing","carga","back_main","setStep"],[3,"backing","back_main"],[3,"backing","carga","setStep","estado_tramite"],[3,"tramite"],[3,"backing","carga","resetAll"],[3,"opcion"],[1,"container"],[3,"seleccion","setStep","view_message","curso_virtual","estado_tramite"],[3,"seleccion"],[3,"step"],[3,"sede"],[3,"step","estado_tramite","taxista_control"],[3,"stepOrder","isRestarted"],["tabindex","-1","role","dialog","id","exampleModal",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-dialog-centered","modal-sm"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-outline-link",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click"],["tabindex","-1","role","dialog","id","exampleModal2",1,"modal","fade"],["tabindex","-1","role","dialog","id","exampleModal3",1,"modal","fade"],["tabindex","-1","role","dialog","id","exampleModal4",1,"modal","fade"],["tabindex","-1","role","dialog","id","exampleModal5",1,"modal","fade"],["tabindex","-1","role","dialog","id","exampleModalBUI",1,"modal","fade"]],template:function(a,o){1&a&&(e.j41(0,"section",0),e.DNE(1,Ea,2,1,"div",1)(2,_s,33,30,"div",2)(3,ps,18,12,"div",3)(4,ms,18,12,"div",4)(5,hs,18,12,"div",5)(6,fs,18,12,"div",6)(7,gs,18,12,"div",7)(8,bs,15,9,"div",8),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngIf",!o.contenidoCargadoDireccion),e.R7$(),e.Y8G("ngIf",o.contenidoCargadoDireccion),e.R7$(),e.Y8G("ngIf",o.modal),e.R7$(),e.Y8G("ngIf",o.modal2),e.R7$(),e.Y8G("ngIf",o.modal3),e.R7$(),e.Y8G("ngIf",o.modal4),e.R7$(),e.Y8G("ngIf",o.modal5),e.R7$(),e.Y8G("ngIf",o.modalBUI))},dependencies:[l.YU,l.Sq,l.bT,l.ux,l.e1,ae.o,pt,jt,Lt,ei,ti.B,B,ii,x.M,Y.z,_o,Mo,ta,ia,Q,L,P,ha,Ia,ja,p.Kj],styles:[".withStep[_ngcontent-%COMP%]{width:var(--size)}"]})}}return t})();var m=_(2464),ks=_(4932);let W=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Fs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ts=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y,b.YN]})}}return t})(),Is=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),js=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ss=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),xs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),q=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})();var M=_(4500);let Es=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,M.k,m.Y]})}}return t})();var D=_(5298);let z=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,E.i]})}}return t})(),Cs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,W,Fs,Ts,Is,js,Ss,xs,q,Es,D.Y,z,m.Y]})}}return t})(),$s=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ms=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Gs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),ys=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,Ms,Gs,m.Y]})}}return t})(),ws=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ys=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ds=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Vs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,ws,Ys,Ds,m.Y]})}}return t})();var Js=_(8398);let Ns=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Os=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Bs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ps=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y,b.YN]})}}return t})();var H=_(4113);let Xs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,M.k,H.b,b.X1,m.Y]})}}return t})(),As=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,E.i]})}}return t})(),K=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Us=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ls=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,Os,Bs,Ps,Xs,H.b,As,K,Us,D.Y]})}}return t})(),Qs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})(),Ws=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,M.k,m.Y]})}}return t})(),qs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,m.Y]})}}return t})();const zs=[{path:"",component:Rs}];let Hs=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[l.MD,te.iI.forChild(zs),b.X1,b.YN,ee._,m.Y,ks.j,Cs,$s,Vs,ys,Js.i,W,Ns,M.k,D.Y,y.KF,Ls,Qs,Ws,qs,K,z,q]})}}return t})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.