1"use strict";(self.webpackChunkgescoWebApp=self.webpackChunkgescoWebApp||[]).push([[54],{5054:(pi,M,l)=>{l.r(M),l.d(M,{SympathizersModule:()=>si});var u=l(177),F=l(7062),_=l(467),p=l(9417),P=l(1413),D=l(7468),L=l(152),B=l(3294),A=l(5558),Y=l(7673),ct=l(8032),R=l.n(ct),U=l(4338),x=l(4639),t=l(4438),pt=l(8823),v=l(4187),I=l(6543),N=l(4714),d=l(1626),T=l(5312);let w=(()=>{class r{constructor(e){this.http=e,this.url=T.c.apiUrl}saveSympathizer(e){const o={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.post(this.url+"saveSympathizer",e,o)}saveHistory(e){const o={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.post(this.url+"saveSympathizerHistory",e,o)}saveVisit(e){const o={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.post(this.url+"saveVisitSympathizer",e,o)}updateSympathizer(e,i){const s={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.put(this.url+"updateSympathizer/"+e,i,s)}deleteSympathizer(e){const o={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.put(this.url+"v2/sympathizers/list/delete/"+e,[],o)}getSympathizers(e,i,o,n,s,c){return(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token")),this.http.post(`${this.url}v2/sympathizers/list/search/${localStorage.getItem("idWorkGroup")}/${localStorage.getItem("userLevel")}/${localStorage.getItem("idUser")}/${e}/${i}/${n}/${s}`,{search:o,...c})}getSympathizer(e){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"getSympathizer/"+e,n)}getSympathizerData(e){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"getSympathizerData/"+e,n)}getSearchSympathizers(e,i,o){const c={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"getSearchSympathizersList/"+e+"/"+localStorage.getItem("idWorkGroup")+"/"+i+"/"+o,c)}getReport(e,i,o){return this.http.get(this.url+"report/exportSympathizerReport/"+localStorage.getItem("idWorkGroup")+"/"+e+"/"+i+"/"+o)}getVisitData(e){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"getVisitSympathizer/"+e,n)}getHistoryData(e){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"getSympathizerHistoryData/"+e,n)}sendWhatsappNotification(e,i){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"v2/tools/whatsapp/sendSympathizer/"+e+"/"+i,n)}sendEmailNotification(e,i){const n={headers:(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"))};return this.http.get(this.url+"v2/tools/email/sendSympathizer/"+e+"/"+i,n)}downloadReportGeneral(e,i){(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"));const s={headers:new d.Lr({Authorization:"Bearer "+localStorage.getItem("token"),"Content-Type":"application/json",Accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),responseType:"arraybuffer"},c=`${this.url}v2/reports/sympathizers/excel/general/${localStorage.getItem("idWorkGroup")}/${localStorage.getItem("userLevel")}/${localStorage.getItem("idUser")}`,h={search:e,...i};return this.http.post(c,h,s)}downloadReportSummary(e,i){(new d.Lr).append("Authorization","Bearer "+localStorage.getItem("token"));const s={headers:new d.Lr({Authorization:"Bearer "+localStorage.getItem("token"),"Content-Type":"application/json",Accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),responseType:"arraybuffer"},c=`${this.url}v2/reports/sympathizers/excel/summary/${localStorage.getItem("idWorkGroup")}/${localStorage.getItem("userLevel")}/${localStorage.getItem("idUser")}`,h={search:e,...i};return this.http.post(c,h,s)}static{this.\u0275fac=function(i){return new(i||r)(t.KVO(d.Qq))}}static{this.\u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var H=l(5351),X=l(9469),J=l(7290),Z=l(9344),dt=l(1943),mt=l(1718),ht=l(3735),y=l(9527),q=l(7250),ut=l(6600),W=l(2775);const gt=()=>({url:"/home/dashboard",name:"Inicio"}),ft=()=>({url:"/home/sympathizer/list",name:"Gesti\xf3n de simpatizantes"}),Ft=r=>({url:"",name:r}),_t=(r,a,e)=>[r,a,e],vt=r=>({"postal-search":r});function yt(r,a){1&r&&(t.j41(0,"h5",102),t.EFF(1,"Editar simpatizante \xa0"),t.nrm(2,"small"),t.k0s())}function kt(r,a){if(1&r&&(t.j41(0,"div",103)(1,"div",13)(2,"div",7)(3,"div",4)(4,"p",104),t.EFF(5),t.k0s(),t.j41(6,"p",104),t.EFF(7),t.nI1(8,"date"),t.k0s(),t.j41(9,"p",104),t.EFF(10),t.k0s()()()()()),2&r){let e;const i=t.XpG();t.R7$(5),t.SpI("Registr\xf3: ",i.nameAssigned||"-",""),t.R7$(2),t.SpI("Fecha de registro: ",t.i5U(8,3,i.date,"dd/MM/yyyy hh:mm a"),""),t.R7$(3),t.SpI("Folio: ",(null==(e=i.sympathizerForm.get("qrcode"))?null:e.value)||"-","")}}function Ct(r,a){if(1&r){const e=t.RV6();t.qex(0),t.j41(1,"div",13)(2,"div",7)(3,"div",105)(4,"h5",106),t.EFF(5,"Agregar simpatizante \xa0"),t.nrm(6,"small"),t.k0s()(),t.j41(7,"div",107)(8,"button",108),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.cleanForm())}),t.EFF(9,"Limpiar formulario"),t.k0s()()(),t.nrm(10,"br")(11,"hr"),t.k0s(),t.bVm()}}function St(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",16)(1,"div",57)(2,"input",109),t.bIt("change",function(o){t.eBV(e);const n=t.XpG();return t.Njj(n.updateCheckbox(o))}),t.k0s(),t.j41(3,"label")(4,"span",21),t.EFF(5,"*"),t.k0s(),t.EFF(6,"He le\xeddo y acepto el "),t.j41(7,"a",110),t.EFF(8,"aviso de privacidad"),t.k0s()()()()}if(2&r){let e;const i=t.XpG();t.R7$(2),t.Y8G("checked",1===(null==(e=i.sympathizerForm.get("privacyNotice"))?null:e.value))}}function bt(r,a){if(1&r&&(t.j41(0,"div",16)(1,"label"),t.EFF(2,"Folio"),t.k0s(),t.j41(3,"div",111),t.EFF(4),t.k0s()()),2&r){let e;const i=t.XpG();t.R7$(4),t.SpI(" ",null==(e=i.sympathizerForm.get("qrcode"))?null:e.value," ")}}function jt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function Et(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function zt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function Rt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function xt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function It(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.SpI("",e.name," ")}}function Nt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function $t(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function Tt(r,a){if(1&r&&(t.j41(0,"mat-option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e)}}function wt(r,a){1&r&&(t.j41(0,"div",113)(1,"label",17),t.EFF(2,"\xbfCu\xe1les?"),t.k0s(),t.nrm(3,"input",114),t.j41(4,"div",31),t.EFF(5," Looks good! "),t.k0s()())}function Ot(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.name),t.R7$(),t.JRh(e.name)}}function Vt(r,a){1&r&&(t.j41(0,"div",105)(1,"label"),t.EFF(2,"\xbfCu\xe1l?"),t.k0s(),t.nrm(3,"input",121),t.k0s())}function Gt(r,a){if(1&r&&(t.qex(0),t.j41(1,"div",115)(2,"span",116),t.EFF(3,"* "),t.k0s(),t.j41(4,"label"),t.EFF(5,"Partido pol\xedtico:"),t.k0s(),t.j41(6,"div",41)(7,"select",117)(8,"option",19),t.EFF(9,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(10,Ot,2,2,"option",20),t.j41(11,"option",118),t.EFF(12,"OTRO"),t.k0s()()()(),t.j41(13,"div",115)(14,"label"),t.EFF(15,"Fecha de afiliaci\xf3n:"),t.k0s(),t.nrm(16,"input",119),t.k0s(),t.DNE(17,Vt,4,0,"div",120),t.bVm()),2&r){let e;const i=t.XpG();t.R7$(10),t.Y8G("ngForOf",i.parties),t.R7$(7),t.Y8G("ngIf","OTRO"==(null==(e=i.sympathizerForm.get("affiliated_political_party"))?null:e.value))}}function Mt(r,a){if(1&r){const e=t.RV6();t.j41(0,"button",126),t.bIt("click",function(){const o=t.eBV(e).$implicit,n=t.XpG(3);return t.Njj(n.selectPostal(o.identifier,o.id))}),t.EFF(1),t.k0s()}if(2&r){const e=a.$implicit;t.Y8G("ngClass",a.index%2==0?"darkGray":"lowGray"),t.R7$(),t.SpI(" ",e.identifier," ")}}function Pt(r,a){if(1&r&&(t.j41(0,"div",124),t.DNE(1,Mt,2,2,"button",125),t.k0s()),2&r){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.postalCodes)}}function Dt(r,a){if(1&r){const e=t.RV6();t.qex(0),t.j41(1,"input",122),t.mxI("ngModelChange",function(o){t.eBV(e);const n=t.XpG();return t.DH7(n.search,o)||(n.search=o),t.Njj(o)}),t.bIt("ngModelChange",function(o){t.eBV(e);const n=t.XpG();return t.Njj(n.getSearch(o))}),t.k0s(),t.j41(2,"div",31),t.EFF(3," Looks good! "),t.k0s(),t.DNE(4,Pt,2,1,"div",123),t.bVm()}if(2&r){const e=t.XpG();t.R7$(),t.R50("ngModel",e.search),t.Y8G("ngClass",t.eq3(3,vt,0!=e.postalCodes.length)),t.R7$(3),t.Y8G("ngIf",e.postalCodes&&0!=e.postalCodes.length)}}function Lt(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",127)(1,"span",128),t.EFF(2),t.k0s(),t.j41(3,"span",129),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearPostal())}),t.nrm(4,"i",98),t.k0s()()}if(2&r){const e=t.XpG();t.R7$(2),t.JRh(e.sympathizerForm.controls.postalCode.value)}}function Bt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function At(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function Yt(r,a){if(1&r&&(t.j41(0,"div",113)(1,"label",17),t.EFF(2,"Selecciona un punto de inter\xe9s"),t.k0s(),t.j41(3,"select",130)(4,"option",131),t.EFF(5,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(6,At,2,2,"option",20),t.k0s()()),2&r){const e=t.XpG();t.R7$(6),t.Y8G("ngForOf",e.POIoptions)}}function Ut(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",132)(1,"button",133),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.openPOIModal())}),t.EFF(2,"+ Agregar punto de inter\xe9s"),t.k0s()()}}function Ht(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function Xt(r,a){if(1&r&&(t.j41(0,"div",113)(1,"label",17),t.EFF(2,"Selecciona un tipo de participaci\xf3n"),t.k0s(),t.j41(3,"select",134)(4,"option",19),t.EFF(5,"Seleccione una opci\xf3n"),t.k0s(),t.DNE(6,Ht,2,2,"option",20),t.k0s()()),2&r){const e=t.XpG();t.R7$(6),t.Y8G("ngForOf",e.participationOptions)}}function Jt(r,a){1&r&&(t.j41(0,"div",113)(1,"label"),t.EFF(2,"\xbfCu\xe1l?"),t.k0s(),t.nrm(3,"input",135),t.k0s())}function Zt(r,a){if(1&r&&(t.j41(0,"option",112),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function qt(r,a){if(1&r&&(t.j41(0,"div",113)(1,"label",17),t.EFF(2,"Selecciona un actor importante"),t.k0s(),t.j41(3,"select",136)(4,"option",19),t.EFF(5,"Seleccione una opci\xf3n"),t.k0s(),t.DNE(6,Zt,2,2,"option",20),t.k0s()()),2&r){const e=t.XpG();t.R7$(6),t.Y8G("ngForOf",e.actorOptions)}}function Wt(r,a){1&r&&(t.j41(0,"div",113)(1,"label"),t.EFF(2,"\xbfCu\xe1l?"),t.k0s(),t.nrm(3,"input",137),t.k0s())}let K=(()=>
1{class r{constructor(e,i,o,n,s,c,h,g,m,z){this.FB=e,this.locationService=i,this.userSharedService=o,this.alertService=n,this.requestSharedService=s,this.userService=c,this.sympathizerSharedService=h,this.activeRoute=g,this.dialog=m,this.formOptionsService=z,this.sympathizerForm=this.FB.group({qrcode:[""],name:["",[p.k0.required]],next_name:["",[p.k0.required]],last_name:["",[p.k0.required]],gender:[""],birthDate:[""],curp:["",[(0,x.jW)(),p.k0.minLength(18),p.k0.maxLength(18)]],email:["",[p.k0.email]],phone:[""],cellPhone:["",[p.k0.required]],civilStatus:[""],birthPlace:[""],birthPlaceM:[{value:"",disabled:!0}],scholarship:[""],ocupation:[""],workplace:[""],cellPhoneOffice:[""],facebook:[""],instagram:[""],federalSupport:0,typeSupport:[""],street:[""],streetNumExt:[""],streetNumInt:[""],postalCode:[""],idPostalCode:[0],idNeighborhood:[{value:"",disabled:!0}],idMunicipality:[0],idEntity:[0],electoralSection:[{value:"",disabled:!0}],reference:[""],idWorkGroup:[""],location:["0"],idUser:[""],missing_data_color:["red"],POIrelated:0,idPOI:0,participationType:[""],otherType:[""],bitacora:[""],participation:0,actor:0,actorType:[""],otherActor:[""],privacyNotice:["",[p.k0.required,(0,x.db)()]],idlifting:[""],interests:[""],country:[""],entity:[""],municipality:[""],idCountry:[""],affiliated:0,affiliated_political_party:[""],affiliation_date:[""],other_political_party:[""],period:[""]}),this.entities="",this.municipalities="",this.postalCodes=[],this.neighborhoodOptions=[],this.postalCodeSelected=!1,this.searchTerms=new P.B,this.search="",this.loading=!1,this.municipalitieName="",this.entitieName="",this.parties=[],this.selectedFile=[],this.uploadingFiles=!1,this.Allurlparticipation=[],this.newUrlparticipation=[],this.date="",this.nameAssigned="",this.periodOptions=[],this.liftingOptions=[],this.genderOptions=[],this.civilStatusOptions=[],this.scholarshipOptions=[],this.occupationOptions=[],this.participationOptions=[],this.actorOptions=[],this.interestOptions=["Cultura","Deportes","Entretenimiento","Eventos","Gastronom\xeda","Salud"],this.getFormOptions(),this.getPoliticalParties()}ngOnInit(){this.isUpdating(),this.getEntities(),this.getPOIs(),this.searchHold()}getFormOptions(){this.periodOptions=this.formOptionsService.periodOptions,this.liftingOptions=this.formOptionsService.liftingOptions,this.genderOptions=this.formOptionsService.genderOptions,this.civilStatusOptions=this.formOptionsService.civilStatusOptions,this.scholarshipOptions=this.formOptionsService.scholarshipOptions,this.occupationOptions=this.formOptionsService.occupationOptions,this.participationOptions=this.formOptionsService.participationOptions,this.actorOptions=this.formOptionsService.actorOptions}isUpdating(){this.idSympathizer=this.activeRoute.snapshot.paramMap.get("idSympathizer"),null!=this.idSympathizer?this.sympathizerSharedService.getSympathizer(this.idSympathizer).subscribe(e=>{const i=e[0];this.date=i.created_at,i.location&&(this.lat=i.location.split(",")[0],this.long=i.location.split(",")[1]),this.Allurlparticipation=i.url_image_participatio?JSON.parse(i.url_image_participatio):[];const o=this.parties.some(n=>n.name==i.affiliated_political_party);this.sympathizerForm.patchValue({qrcode:i.qrcode,name:i.name,next_name:i.next_name,last_name:i.last_name,gender:i.gender??"",birthDate:i.birthDate,curp:i.curp,email:i.email,phone:i.phone,cellPhone:i.cellPhone,civilStatus:i.civilStatus??"",birthPlace:i.birthPlace??"",birthPlaceM:i.birthPlaceM??"",scholarship:i.scholarship??"",ocupation:i.ocupation??"",workplace:i.workplace,cellPhoneOffice:i.cellPhoneOffice,facebook:i.facebook,instagram:i.instagram,federalSupport:i.federalSupport,typeSupport:i.typeSupport,street:i.street,streetNumExt:i.streetNumExt,streetNumInt:i.streetNumInt,postalCode:i.postalCode,idPostalCode:i.idPostalCode,idNeighborhood:i.idNeighborhood??"",idMunicipality:i.idMunicipality,idEntity:i.idEntity,electoralSection:i.electoralSection??"",reference:i.reference,idWorkGroup:i.idWorkGroup,location:i.location,idUser:i.idUser,missing_data_color:i.missing_data_color,POIrelated:i.idPOI?1:0,idPOI:i.idPOI??0,participationType:i.participationType??"",otherType:i.otherType,bitacora:i.bitacora,participation:i.participationType?1:0,actor:i.actorType?1:0,actorType:i.actorType,otherActor:i.otherActor,idlifting:i.idlifting??"",privacyNotice:i.privacyNotice,entity:i.entity,country:i.country,idCountry:i.idCountry,municipality:i.municipality,interests:i.interests?i.interests.split(","):"",affiliated:i.affiliated,affiliated_political_party:0==o?"OTRO":i.affiliated_political_party,affiliation_date:i.affiliation_date,other_political_party:0==o?i.affiliated_political_party:"",period:i.period??""}),i.birthPlace&&this.onFirstSelectChange(),i.postalCode&&this.getDirectionByPostalCode(i.postalCode,i.idPostalCode),this.userSharedService.getUserRequestInfo(i.idUser).subscribe(n=>{this.nameAssigned=n[0].userName})}):this.initData()}initData(){this.sympathizerForm.controls.idWorkGroup.setValue(localStorage.getItem("idWorkGroup")),this.sympathizerForm.controls.idUser.setValue(localStorage.getItem("idUser")),this.sympathizerForm.controls.qrcode.setValue(this.generateRandomString())}cleanForm(){const e={idWorkGroup:this.sympathizerForm.get("idWorkGroup")?.value,missing_data_color:this.sympathizerForm.get("missing_data_color")?.value,origen:this.sympathizerForm.get("origen")?.value};this.sympathizerForm.reset(e),this.sympathizerForm.patchValue({gender:[""],civilStatus:[""],birthPlace:[""],birthPlaceM:[""],scholarship:[""],ocupation:[""],idNeighborhood:[""],typeManagment:[""],groupBe:[""],federalSupport:0,typeSupp
1ort:[""],idlifting:[""],POIrelated:0,idPOI:0,participation:0,participationType:[""],otherType:[""],actor:0,actorType:[""],otherActor:[""],affiliated:0,period:[""]}),this.search="",this.postalCodeSelected=!1,this.entitieName="",this.municipalitieName=""}generateRandomString(){let n="";for(let s=0;s<5;s++){const c=Math.floor(62*Math.random());n+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charAt(c)}return n}onFileChange(e){this.selectedFile=e.files,this.Allurlparticipation=e.urls}resetFormControl(e,i){0===this.sympathizerForm.get(e)?.value&&this.sympathizerForm.controls[i].setValue("")}buttonSave(){var e=this;this.loading=!0,this.resetFormControl("POIrelated","idPOI"),this.resetFormControl("actor","actorType"),this.resetFormControl("participation","participationType"),this.resetFormControl("affiliated","affiliated_political_party"),this.resetFormControl("affiliated","affiliation_date"),this.resetFormControl("affiliated","other_political_party"),"OTRO"==this.sympathizerForm.get("affiliated_political_party")?.value&&this.sympathizerForm.controls.affiliated_political_party.setValue(this.sympathizerForm.get("other_political_party")?.value);const i=[];if(this.selectedFile){const o=this.selectedFile.filter(n=>{const s=n.file.type;return"application/pdf"===s||s.startsWith("image/")});o.length>0&&(i.push(this.stageToUpload(o,this.sympathizerForm.controls.qrcode.value)),this.alertService.loaderUploadFiles())}Promise.all(i).then((0,_.A)(function*(){1==e.uploadingFiles&&(R().close(),e.alertService.succesAlert()),e.Allurlparticipation.forEach(n=>{e.newUrlparticipation.push(n)});var o={...e.sympathizerForm.value,url_image_participatio:e.newUrlparticipation};e.idSympathizer?e.sympathizerSharedService.updateSympathizer(e.idSympathizer,o).subscribe(n=>{e.updateHistory(e.idSympathizer),e.alertService.updateCompleteAlert(e.idSympathizer,"El registro del simpatizante se actualiz\xf3 con exito.","sympathizer"),e.loading=!1}):e.sympathizerSharedService.saveSympathizer(o).subscribe(n=>{e.saveHistory(n.idSympathizer),e.sendWhatsappNotification(n.idSympathizer),e.sendEmailNotification(n.idSympathizer),e.alertService.completeAlert(n.idSympathizer,e.sympathizerForm.get("qrcode")?.value,"registro como simpatizante","sympathizer"),e.loading=!1})})).catch(o=>{console.error("Ocurri\xf3 un error en una de las operaciones:",o),1==this.uploadingFiles&&(R().close(),this.alertService.errorAlert("Error al subir archivos"))})}sendWhatsappNotification(e){this.sympathizerSharedService.sendWhatsappNotification(e,localStorage.getItem("idWorkGroup")).subscribe(i=>{console.log("Env\xedo de notificaci\xf3n exitoso",i)},i=>{console.error("Error al enviar la notificaci\xf3n de WhatsApp:",i)})}sendEmailNotification(e){this.sympathizerSharedService.sendEmailNotification(e,localStorage.getItem("idWorkGroup")).subscribe(i=>{console.log("Env\xedo de notificaci\xf3n exitoso",i)},i=>{console.error("Error al enviar la notificaci\xf3n de WhatsApp:",i)})}saveHistory(e){const i={idSympathizer:e,idUser:this.sympathizerForm.get("idUser")?.value,message:"Ha dado de alta al simpatizante desde Web.",date:null};this.sympathizerSharedService.saveHistory(i).subscribe(o=>{console.log(o)})}updateHistory(e){const i={idSympathizer:e,idUser:this.sympathizerForm.get("idUser")?.value,message:"Ha modificado al simpatizante desde Web.",date:null};this.sympathizerSharedService.saveHistory(i).subscribe(o=>{console.log(o)})}stageToUpload(e,i){return new Promise((o,n)=>{this.uploadImage(e,i).then(s=>{console.log(s),this.newUrlparticipation=s,o()}).catch(s=>{n(s)})})}uploadImage(e,i){const o=e.map(n=>this.requestSharedService.uploadImage(n.file,"participation","files",i));return(0,D.p)(o).toPromise().then(n=>n.map(s=>s.path))}getEntities(){return new Promise((e,i)=>{this.requestSharedService.getEntities().subscribe(o=>{this.entities=o,e(o)},o=>{i(o)})})}getMunicipalities(e){return new Promise((i,o)=>{this.requestSharedService.getMunicipalities(e).subscribe(n=>{this.municipalities=n,i(n)},n=>{o(n)})})}onFirstSelectChange(){var e=this;return(0,_.A)(function*(){e.sympathizerForm.controls.birthPlaceM.enable();try{const i=e.sympathizerForm.get("birthPlace")?.value;yield e.getMunicipalities(i)}catch(i){console.error("Error al obtener las municipalities:",i)}})()}getPoliticalParties(){this.userService.getPoliticalParties().subscribe(e=>{this.parties=e})}getPOIs(){return new Promise((e,i)=>{this.requestSharedService.getPOIOptions().subscribe(o=>{this.POIoptions=o,e(o)},o=>{i(o)})})}getSearch(e){this.searchTerms.next(this.search)}selectPostal(e,i){this.postalCodeSelected=!0,this.getDirectionByPostalCode(e,i)}clearPostal(){this.postalCodeSelected=!1,this.sympathizerForm.controls.postalCode.reset()}searchHold(){this.searchTerms.pipe((0,L.B)(1e3),(0,B.F)(),(0,A.n)(e=>e&&""===e.trim()?(this.postalCodeSelected=!1,this.loading=!1,(0,Y.of)([])):e&&e.length>=3?(this.loading=!0,this.locationService.searchPostalCode(e)):(this.postalCodeSelected=!1,(0,Y.of)([])))).subscribe(e=>{this.postalCodes=e,this.loading=!1})}getDirectionByPostalCode(e,i){this.sympathizerForm.controls.postalCode.setValue(e),this.sympathizerForm.controls.idMunicipality.reset(),this.sympathizerForm.controls.idEntity.reset(),this.locationService.getDirectionByPostalCode(e).subscribe(o=>{this.postalCodeSelected=!0,this.municipalitieName=o.municipality.name,this.sympathizerForm.controls.idMunicipality.setValue(o.municipality.id),this.entitieName=o.entity.name,this.sympathizerForm.controls.idEntity.setValue(o.entity.id),this.neighborhoodOptions=[],o.neighborhoods.length>1?(this.sympathizerForm.controls.idNeighborhood.enable(),this.neighborhoodOptions=o.neighborhoods):(this.sympathizerForm.controls.idNeighborhood.enable(),this.neighborhoodOptions=o.neighborhoods,this.sympathizerForm.controls.idNeighborhood.setValue(o.neighborhoods[0].id))},o=>{console.error(o)}),this.sympathizerForm.controls.idPostalCode.setValue(i)}updateCheckbox(e){e&&e.target instanceof HTMLInputElement&&this.sympathizerForm.get("privacyNotice")?.setValue(e.target.checked?1:null)}openPOIModal(){this.alertPassFormData(this.sympathizerForm,"sympathizers")}alertPassFormData(e,i){R().fire({icon:"warning",title:"Registrar punto de inter\xe9s",text:"\xbfLa direcci\xf3n registrada es la misma del punto de inter\xe9s?",showCancelButton:!1,showConfirmButton:!0,showDenyButton:!0,denyButtonText:"No",confirmButtonText:"Si",customClass:{confirmButton:"btn btn-outline-primary mr-2 large-buttons",denyButton:"btn btn-primary large-buttons"}}).then(o=>{o.isConfirmed&&this.dialog.open(U.v,{panelClass:"custom-container",data:{form:e,comingFrom:i}}).afterClosed().subscribe(s=>{this.alertService.completeModalAlert(s.qrcode,"registro del punto de inter\xe9s"),this.getPOIs().then(()=>{this.sympathizerForm.controls.idPOI.setValue(s.id)})}),o.isDenied&&this.dialog.open(U.v,{panelClass:"custom-container",data:{}}).afterClosed().subscribe(s=>{this.alertService.completeModalAlert(s.qrcode,"registro del punto de inter\xe9s"),this.getPOIs().then(()=>{this.sympathizerForm.controls.idPOI.setValue(s.id)})})})}static{this.\u0275fac=function(i){return new(i||r)(t.rXU(p.ok),t.rXU(pt.N),t.rXU(v.D),t.rXU(I.n),t.rXU(N.k),t.rXU(v.D),t.rXU(w),t.rXU(F.nX),t.rXU(H.bZ),t.rXU(X.M))}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["app-sympathizer-form"]],decls:364,vars:54,consts:[["qrcode",""],["postalCodeLabel",""],["sympathizer",""],[1,"row","m-2"],[1,"col-12"],[3,"routes"],["class","page-header pt-3",4,"ngIf"],[1,"row"],[1,"col-12","pt-2"],["class","card mb-4",4,"ngIf"],[1,"card"],[4,"ngIf"],[3,"formGroup"],[1,"card-body"],[1,"row",2,"display","flex","justify-content","center","align-items","center"],["class","col-12 col-md-4 mb-3",4,"ngIf","ngIfElse"],[1,"col-12","col-md-4","mb-3"],["for","validationCustom01"],["formControlName","period","id","inputState",1,"form-select"],["selected","","value",""],[3,"value",4,"ngFor","ngForOf"],[1,"custom-mark"],["id","inputState","formControlName","idlifting",1,"form-select"],[1,"col-12","col-md-3","mb-3"],[1,"form-title"],[1,"custom-text"],[1,"col-12","col-sm-12","col-md-9"],[1,"col"],[1,"row","mb-3"],[1,"col-md-12","mb-3"],["formControlName","name","Uppercase","","appLettersOnl
1y","","appValidadorForm","","type","text","placeholder","Nombre(s)",1,"form-control"],[1,"valid-feedback"],[1,"col-md-6","mb-3"],["formControlName","next_name","Uppercase","","appLettersOnly","","appValidadorForm","","type","text","placeholder","Apellido Paterno",1,"form-control"],["formControlName","last_name","Uppercase","","appLettersOnly","","appValidadorForm","","type","text","id","validationCustom01","placeholder","Apellido Materno",1,"form-control","cust"],[1,"col-md-4","mb-3"],["formControlName","birthDate","type","date","id","validationCustom01",1,"form-control","cust"],["formControlName","gender","id","inputState",1,"form-select"],["formControlName","civilStatus","id","inputState",1,"form-select"],["formControlName","birthPlace","id","inputState",1,"form-select",3,"change"],["appValidadorForm","","formControlName","birthPlaceM","id","inputState",1,"form-select"],[1,"col-md-12"],["formControlName","curp","appValidadorForm","","Uppercase","","type","text","id","validationCustom01","placeholder","Ingresa CURP",1,"form-control"],[1,"row","mt-2"],[1,"d-flex","flex-row-reverse"],["href","https://consultas.curp.gob.mx/CurpSP/gobmx/inicio.jsp","target","_blank",1,"custom-link"],["formControlName","email","type","text","placeholder","Correo electr\xf3nico",1,"form-control"],["formControlName","phone","numbersOnly","","type","text","id","validationCustom01","minlength","10","maxlength","10","placeholder","Tel\xe9fono local",1,"form-control","cust"],["formControlName","cellPhone","numbersOnly","","appValidadorForm","","type","text","id","validationCustom01","minlength","10","maxlength","10","placeholder","Tel\xe9fono celular",1,"form-control","cust"],["appValidadorForm","","formControlName","scholarship","id","inputState",1,"form-select"],["appValidadorForm","","formControlName","ocupation","id","inputState",1,"form-select"],["formControlName","workplace","Uppercase","","appValidadorForm","","type","text","placeholder","Lugar de trabajo",1,"form-control"],["formControlName","cellPhoneOffice","numbersOnly","","type","text","minlength","10","maxlength","10","id","validationCustom01","placeholder","Tel\xe9fono de trabajo",1,"form-control","cust"],["formControlName","facebook","type","text","placeholder","URL perfil facebook",1,"form-control"],["formControlName","instagram","type","text","id","validationCustom01","placeholder","URL perfil instagram",1,"form-control","cust"],["formControlName","interests","disableUnderline","false",1,"form-control",3,"multiple"],[1,"d-flex",2,"gap","1rem"],[1,"form-check"],["id","federalSupport","formControlName","federalSupport","type","radio",1,"form-check-input",3,"value"],["for","federalSupport",1,"form-check-label"],["id","federalSupportNot","formControlName","federalSupport","type","radio","checked","",1,"form-check-input",3,"value"],["for","federalSupportNot",1,"form-check-label"],["class","col-md-6",4,"ngIf"],["id","affiliateYes","formControlName","affiliated","type","radio",1,"form-check-input",3,"value"],["for","affiliateYes",1,"form-check-label"],["id","affiliateNot","formControlName","affiliated","type","radio","checked","",1,"form-check-input",3,"value"],["for","affiliateNot",1,"form-check-label"],["formControlName","street","Uppercase","","type","text","placeholder","Calle",1,"form-control"],[1,"col-md-3","mb-3"],["formControlName","streetNumExt","type","text","placeholder","No. exterior",1,"form-control"],["formControlName","streetNumInt","type","text","placeholder","No. interior",1,"form-control"],["formControlName","reference","Uppercase","","type","text","placeholder","Ingresa una referencia del domicilio",1,"form-control"],[4,"ngIf","ngIfElse"],["appValidadorForm","","formControlName","idNeighborhood","id","inputState",1,"form-select"],["placeholder","Municipio","type","text",1,"form-control",3,"value"],["placeholder","Estado","type","text",1,"form-control",3,"value"],["id","POIyes","formControlName","POIrelated","type","radio",1,"form-check-input",3,"value"],["for","POIyes",1,"form-check-label"],["id","POInot","formControlName","POIrelated","type","radio","checked","",1,"form-check-input",3,"value"],["for","POInot",1,"form-check-label"],["class","col-md-6","style","margin-left: auto;",4,"ngIf"],["id","Participationyes","formControlName","participation","type","radio",1,"form-check-input",3,"value"],["for","Participationyes",1,"form-check-label"],["id","ParticipationNot","formControlName","participation","type","radio","checked","",1,"form-check-input",3,"value"],["for","ParticipationNot",1,"form-check-label"],["id","Actoryes","formControlName","actor","type","radio",1,"form-check-input",3,"value"],["for","Actoryes",1,"form-check-label"],["id","ActorNot","formControlName","actor","type","radio","checked","",1,"form-check-input",3,"value"],["for","ActorNot",1,"form-check-label"],[3,"onFile","type","urls","checked","message","legend"],[1,"col",2,"display","flex","justify-content","flex-end","padding-right","2rem","padding-bottom","1.5rem"],["type","submit",1,"btn","btn-primary",2,"padding-left","1.5rem","padding-right","1.5rem","font-weight","500",3,"click","disabled"],["id","exampleModal","tabindex","-1","role","dialog","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title",2,"color","black"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","btn","btn-secondary"],["aria-hidden","true",1,"fa","fa-times"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-primary"],[1,"page-header","pt-3"],[1,"card","mb-4"],[2,"font-weight","500","padding","3px","margin","0"],[1,"col-12","col-md-6"],[1,"page-header",2,"padding-left","15px","padding-top","15px"],[1,"col-12","col-md-6","d-flex","justify-content-end"],[1,"btn","btn-outline-primary",2,"height","45px",3,"click"],["formControlName","privacyNotice","type","checkbox","id","flexCheckDefault",1,"form-check-input",3,"change","checked"],["data-toggle","modal","data-target","#exampleModal",1,"privacy-link"],[1,"form-control"],[3,"value"],[1,"col-md-6"],["formControlName","typeSupport","type","text","id","validationCustom01","placeholder","\xbfCu\xe1les?",1,"form-control","cust"],[1,"col-12","col-md-6","mb-3"],[2,"color","red"],["formControlName","affiliated_political_party",1,"form-select"],["value","OTRO"],["type","date","placeholder","dd/mm/aaaa","formControlName","affiliation_date",1,"form-control"],["class","col-12 col-md-6",4,"ngIf"],["type","text","placeholder","","formControlName","other_political_party",1,"form-control"],["formControlName","postalCode","numbersOnly","","appValidadorForm","","type","text","id","validationCustom01","placeholder","C\xf3digo postal",1,"form-control","search-input",3,"ngModelChange","ngModel","ngClass"],["class","list-group",4,"ngIf"],[1,"list-group"],["type","button","class","list-group-item list-group-item-action",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",1,"list-group-item","list-group-item-action",3,"click","ngClass"],[1,"d-flex","justify-content-between","align-items-center","m-2"],[2,"font-size","large"],["data-dismiss","alert",1,"close",3,"click"],["formControlName","idPOI",1,"form-select"],["selected","","value","0"],[1,"col-md-6",2,"margin-left","auto"],[1,"btn","btn-primary","mt-4",2,"font-size","14px !important","font-weight","500",3,"click"],["formControlName","participationType",1,"form-select"],["type","text","placeholder","","formControlName","otherType",1,"form-control"],["formControlName","actorType",1,"form-select"],["type","text","placeholder","","formControlName","otherActor",1,"form-control"]],template:function(i,o){if(1&i){const n=t.RV6();t.j41(0,"div",3)(1,"div",4),t.nrm(2,"page-header",5),t.DNE(3,yt,3,0,"h5",6),t.j41(4,"div",7)(5,"div",8),t.DNE(6,kt,11,6,"div",9),t.j41(7,"div",10),t.DNE(8,Ct,12,0,"ng-container",11),t.j41(9,"form",12)(10,"div",13)(11,"div",14),t.DNE(12,St,9,1,"div",15)(13,bt,5,1,"ng-template",null,0,t.C5r),t.j41(15,"div",16)(16,"label",17),t.EFF(17,"Periodo"),t.k0s(),t.j41(18,"select",18)(19,"option",19),t.EFF(20,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(21,jt,2,2,"option",20),t.k0s()(),t.j41(22,"div",16)(23,"label",17),t.EFF(24,"Lugar de levantamiento"),t.j41(25,"span",21),t.EFF(26,"*"),t.k0s()(),t.j41(27,"select",22)(28,"option",19),t.EFF(29,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(30,Et,2,2,"option",20),t.k0s()()(),t.nrm(31,"hr"),t.j41(32,"div",7)(33,"div",23)(34,"div",24),t.EFF(35,"Datos personales"),t.k0s(),t.j41(36,"div",25),t.EFF(37," ("),t.j41(38,"span",21),t.EFF(39,"*"),t.k0s(),t.EFF(40,") Obligatorio "),t.k0s()(),t.j41(41,"div",26)(42,"div",7)(43,"div",27)(44,"div",28)(45,"div",29)(46,"label",17),t.EFF(47,"Nombre"),t.j41(48,"span",21),t.EFF(49,"*"),t.k0s()(),t.nrm(50,"input",30),t.j41(51,"div",31),t.EFF(52," Looks good! "),t.k0s()(),t.j41(53,"div",32)(54,"label",17),t.EFF(55,"Apellido paterno"),t.j41(56,"span",21),t.EFF(57,"*"),t.k0s()(),t.nrm(58,"input",33),t.j41(59,"div",31),t.EFF(60," Looks good! "),t.k0s()(),t.j41(61,"div",32)(62,"label",17),t.EFF(63,"Apellido materno"),t.j41(64,"span",21),t.EFF(65,"*"),t.k0s()(),t.nrm(66,"input",34),t.j41(67,"div",31),t.EFF(68," Looks good! "),t.k0s()(),t.j41(69,"div",35)(70,"label",17),t.EFF(71,"Fecha de nacimiento"),t.k0s(),t.nrm(72,"input",36),t.j41(73,"div",31),t.EFF(74," Looks good! "),t.k0s()(),t.j41(75,"div",35)(76,"label",17),t.EFF(77,"Sexo"),t.k0s(),t.j41(78,"select",37)(79,"option",19),t.EFF(80,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(81,zt,2,2,"option",20),t.k0s()(),t.j41(82,"div",35)(83,"label",17),t.EFF(84,"Estado civil"),t.k0s(),t.j41(85,"select",38)(86,"option",19),t.EFF(87,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(88,Rt,2,2,"option",20),t.k0s()(),t.j41(89,"div",32)(90,"label",17),t.EFF(91,"Lugar de nacimiento (estado)"),t.k0s(),t.j41(92,"select",39),t.bIt("change",function(){return t.eBV(n),t.Njj(o.onFirstSelectChange())}),t.j41(93,"option",19),t.EFF(94,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(95,xt,2,2,"option",20),t.k0s()(),t.j41(96,"div",32)(97,"label",17),t.EFF(98,"Lugar de nacimiento (municipio)"),t.k0s(),t.j41(99,"select",40)(100,"option",19),t.EFF(101,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(102,It,2,2,"option",20),t.k0s()(),t.j41(103,"div",41)(104,"label",17),t.EFF(105,"CURP"),t.k0s(),t.nrm(106,"input",42),t.j41(107,"div",31),t.EFF(108," Looks good! "),t.k0s(),t.j41(109,"div",43)(110,"div",44)(111,"a",45),t.EFF(112,"Consultar CURP"),t.k0s()()()()()()()()(),t.nrm(113,"hr"),t.j41(114,"div",7)(115,"div",23)(116,"div",24),t.EFF(117,"Datos generales"),t.k0s()(),t.j41(118,"div",26)(119,"div",7)(120,"div",27)(121,"div",7)(122,"div",32)(123,"label",17),t.EFF(124,"Correo electr\xf3nico"),t.k0s(),t.nrm(125,"input",46),t.j41(126,"div",31),t.EFF(127," Lo
1oks good! "),t.k0s()(),t.j41(128,"div",32)(129,"label",17),t.EFF(130,"Tel\xe9fono local"),t.k0s(),t.nrm(131,"input",47),t.j41(132,"div",31),t.EFF(133," Looks good! "),t.k0s()(),t.j41(134,"div",32)(135,"label",17),t.EFF(136,"Tel\xe9fono celular"),t.j41(137,"span",21),t.EFF(138,"*"),t.k0s()(),t.nrm(139,"input",48),t.j41(140,"div",31),t.EFF(141," Looks good! "),t.k0s()(),t.j41(142,"div",32)(143,"label",17),t.EFF(144,"Escolaridad"),t.k0s(),t.j41(145,"select",49)(146,"option",19),t.EFF(147,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(148,Nt,2,2,"option",20),t.k0s()(),t.j41(149,"div",32)(150,"label",17),t.EFF(151,"Ocupaci\xf3n"),t.k0s(),t.j41(152,"select",50)(153,"option",19),t.EFF(154,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(155,$t,2,2,"option",20),t.k0s()(),t.j41(156,"div",32)(157,"label",17),t.EFF(158,"Lugar de trabajo"),t.k0s(),t.nrm(159,"input",51),t.j41(160,"div",31),t.EFF(161," Looks good! "),t.k0s()(),t.j41(162,"div",32)(163,"label",17),t.EFF(164,"Tel\xe9fono de trabajo"),t.k0s(),t.nrm(165,"input",52),t.j41(166,"div",31),t.EFF(167," Looks good! "),t.k0s()(),t.j41(168,"div",32)(169,"label",17),t.EFF(170,"Facebook"),t.k0s(),t.nrm(171,"input",53),t.j41(172,"div",31),t.EFF(173," Looks good! "),t.k0s()(),t.j41(174,"div",32)(175,"label",17),t.EFF(176,"Instagram"),t.k0s(),t.nrm(177,"input",54),t.j41(178,"div",31),t.EFF(179," Looks good! "),t.k0s()(),t.j41(180,"div",32)(181,"label",17),t.EFF(182,"\xbfCu\xe1les son los temas de tu inter\xe9s?"),t.k0s(),t.j41(183,"mat-select",55),t.DNE(184,Tt,2,2,"mat-option",20),t.k0s()()(),t.j41(185,"div",7)(186,"div",32)(187,"label",17),t.EFF(188,"\xbfRecibe apoyos federales?"),t.k0s(),t.j41(189,"div",41)(190,"div",56)(191,"div",57),t.nrm(192,"input",58),t.j41(193,"label",59),t.EFF(194,"S\xed"),t.k0s()(),t.j41(195,"div",57),t.nrm(196,"input",60),t.j41(197,"label",61),t.EFF(198,"No"),t.k0s()()()()(),t.DNE(199,wt,6,0,"div",62),t.k0s()()()()(),t.nrm(200,"hr"),t.j41(201,"div",7)(202,"div",23)(203,"div",24),t.EFF(204,"Afiliaci\xf3n a partido pol\xedtico"),t.k0s()(),t.j41(205,"div",26)(206,"div",7)(207,"div",27)(208,"div",7)(209,"div",32)(210,"label",17),t.EFF(211,"\xbfEst\xe1s afiliado a un partido pol\xedtico?"),t.k0s(),t.j41(212,"div",41)(213,"div",56)(214,"div",57),t.nrm(215,"input",63),t.j41(216,"label",64),t.EFF(217,"S\xed"),t.k0s()(),t.j41(218,"div",57),t.nrm(219,"input",65),t.j41(220,"label",66),t.EFF(221,"No"),t.k0s()()()()()(),t.j41(222,"div",7),t.DNE(223,Gt,18,2,"ng-container",11),t.k0s()()()()(),t.nrm(224,"hr"),t.j41(225,"div",7)(226,"div",23)(227,"div",24),t.EFF(228,"Direcci\xf3n"),t.k0s()(),t.j41(229,"div",26)(230,"div",7)(231,"div",27)(232,"div",7)(233,"div",32)(234,"label",17),t.EFF(235,"Calle"),t.k0s(),t.nrm(236,"input",67),t.j41(237,"div",31),t.EFF(238," Looks good! "),t.k0s()(),t.j41(239,"div",68)(240,"label",17),t.EFF(241,"No. exterior"),t.k0s(),t.nrm(242,"input",69),t.j41(243,"div",31),t.EFF(244," Looks good! "),t.k0s()(),t.j41(245,"div",68)(246,"label",17),t.EFF(247,"No. interior"),t.k0s(),t.nrm(248,"input",70),t.j41(249,"div",31),t.EFF(250," Looks good! "),t.k0s()(),t.j41(251,"div",29)(252,"label",17),t.EFF(253,"Referencia"),t.k0s(),t.nrm(254,"input",71),t.j41(255,"div",31),t.EFF(256," Looks good! "),t.k0s()()(),t.j41(257,"div",7)(258,"div",32)(259,"label",17),t.EFF(260,"C\xf3digo postal"),t.k0s(),t.DNE(261,Dt,5,5,"ng-container",72)(262,Lt,5,1,"ng-template",null,1,t.C5r),t.k0s(),t.j41(264,"div",32)(265,"label",17),t.EFF(266,"Colonia"),t.k0s(),t.j41(267,"select",73)(268,"option",19),t.EFF(269,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(270,Bt,2,2,"option",20),t.k0s()(),t.j41(271,"div",32)(272,"label",17),t.EFF(273,"Municipio"),t.k0s(),t.nrm(274,"input",74),t.j41(275,"div",31),t.EFF(276," Looks good! "),t.k0s()(),t.j41(277,"div",32)(278,"label",17),t.EFF(279,"Estado"),t.k0s(),t.nrm(280,"input",75),t.j41(281,"div",31),t.EFF(282," Looks good! "),t.k0s()()()()()()(),t.nrm(283,"hr"),t.j41(284,"div",7)(285,"div",23)(286,"div",24),t.EFF(287,"Clasificaci\xf3n del simpatizante"),t.k0s()(),t.j41(288,"div",26)(289,"div",7)(290,"div",27)(291,"div",7)(292,"div",32)(293,"label",17),t.EFF(294,"\xbfSe relaciona con un punto de inter\xe9s?"),t.k0s(),t.j41(295,"div",41)(296,"div",56)(297,"div",57),t.nrm(298,"input",76),t.j41(299,"label",77),t.EFF(300,"S\xed"),t.k0s()(),t.j41(301,"div",57),t.nrm(302,"input",78),t.j41(303,"label",79),t.EFF(304,"No"),t.k0s()()()()(),t.DNE(305,Yt,7,1,"div",62)(306,Ut,3,0,"div",80),t.k0s(),t.j41(307,"div",7)(308,"div",32)(309,"label",17),t.EFF(310,"\xbfTiene alg\xfan tipo de participaci\xf3n?"),t.k0s(),t.j41(311,"div",41)(312,"div",56)(313,"div",57),t.nrm(314,"input",81),t.j41(315,"label",82),t.EFF(316,"S\xed"),t.k0s()(),t.j41(317,"div",57),t.nrm(318,"input",83),t.j41(319,"label",84),t.EFF(320,"No"),t.k0s()()()()(),t.DNE(321,Xt,7,1,"div",62)(322,Jt,4,0,"div",62),t.k0s(),t.j41(323,"div",7)(324,"div",32)(325,"label",17),t.EFF(326,"\xbfEs un actor importante?"),t.k0s(),t.j41(327,"div",41)(328,"div",56)(329,"div",57),t.nrm(330,"input",85),t.j41(331,"label",86),t.EFF(332,"S\xed"),t.k0s()(),t.j41(333,"div",57),t.nrm(334,"input",87),t.j41(335,"label",88),t.EFF(336,"No"),t.k0s()()()()(),t.DNE(337,qt,7,1,"div",62)(338,Wt,4,0,"div",62),t.k0s()()()()(),t.nrm(339,"hr"),t.j41(340,"div",7)(341,"div",23)(342,"div",24),t.EFF(343,"Datos adicionales"),t.k0s()(),t.j41(344,"div",26)(345,"file-input",89,2),t.bIt("onFile",function(c){return t.eBV(n),t.Njj(o.onFileChange(c))}),t.k0s()()()()(),t.j41(347,"div",7)(348,"div",90)(349,"button",91),t.bIt("click",function(){return t.eBV(n),t.Njj(o.buttonSave())}),t.EFF(350,"Guardar informaci\xf3n"),t.k0s()()()()()()()(),t.j41(351,"div",92)(352,"div",93)(353,"div",94)(354,"div",95)(355,"h5",96),t.EFF(356,"Aviso de privacidad"),t.k0s(),t.j41(357,"button",97),t.nrm(358,"i",98),t.k0s()(),t.j41(359,"div",99),t.nrm(360,"app-privacy-notice"),t.k0s(),t.j41(361,"div",100)(362,"button",101),t.EFF(363,"Entendido"),t.k0s()()()()()}if(2&i){let n,s,c,h,g,m,z,lt;const li=t.sdS(14),ci=t.sdS(263);t.R7$(2),t.Y8G("routes",t.sMw(50,_t,t.lJ4(46,gt),t.lJ4(47,ft),t.eq3(48,Ft,null==o.idSympathizer?"Agregar":"Editar"))),t.R7$(),t.Y8G("ngIf",null!=o.idSympathizer),t.R7$(3),t.Y8G("ngIf",null!=o.idSympathizer),t.R7$(2),t.Y8G("ngIf",null==o.idSympathizer),t.R7$(),t.Y8G("formGroup",o.sympathizerForm),t.R7$(3),t.Y8G("ngIf",null==o.idSympathizer)("ngIfElse",li),t.R7$(9),t.Y8G("ngForOf",o.periodOptions),t.R7$(9),t.Y8G("ngForOf",o.liftingOptions),t.R7$(51),t.Y8G("ngForOf",o.genderOptions),t.R7$(7),t.Y8G("ngForOf",o.civilStatusOptions),t.R7$(7),t.Y8G("ngForOf",o.entities),t.R7$(7),t.Y8G("ngForOf",o.municipalities),t.R7$(46),t.Y8G("ngForOf",o.scholarshipOptions),t.R7$(7),t.Y8G("ngForOf",o.occupationOptions),t.R7$(28),t.Y8G("multiple",!0),t.R7$(),t.Y8G("ngForOf",o.interestOptions),t.R7$(8),t.Y8G("value",1),t.R7$(4),t.Y8G("value",0),t.R7$(3),t.Y8G("ngIf",null==(n=o.sympathizerForm.get("federalSupport"))?null:n.value),t.R7$(16),t.Y8G("value",1),t.R7$(4),t.Y8G("value",0),t.R7$(4),t.Y8G("ngIf",null==(s=o.sympathizerForm.get("affiliated"))?null:s.value),t.R7$(38),t.Y8G("ngIf",0==o.postalCodeSelected)("ngIfElse",ci),t.R7$(9),t.Y8G("ngForOf",o.neighborhoodOptions),t.R7$(4),t.Y8G("value",o.municipalitieName),t.R7$(6),t.Y8G("value",o.entitieName),t.R7$(18),t.Y8G("value",1),t.R7$(4),t.Y8G("value",0),t.R7$(3),t.Y8G("ngIf",null==(c=o.sympathizerForm.get("POIrelated"))?null:c.value),t.R7$(),t.Y8G("ngIf",null==(h=o.sympathizerForm.get("POIrelated"))?null:h.value),t.R7$(8),t.Y8G("value",1),t.R7$(4),t.Y8G("value",0),t.R7$(3),t.Y8G("ngIf",null==(g=o.sympathizerForm.get("participation"))?null:g.value),t.R7$(),t.Y8G("ngIf","OTRO"==(null==(m=o.sympathizerForm.get("participationType"))?null:m.value)),t.R7$(8),t.Y8G("value",1),t.R7$(4),t.Y8G("value",0),t.R7$(3),t.Y8G("ngIf",null==(z=o.sympathizerForm.get("actor"))?null:z.value),t.R7$(),t.Y8G("ngIf","OTRO"==(null==(lt=o.sympathizerForm.get("actorType"))?null:lt.value)),t.R7$(7),t.Y8G("type","sympathizer")("urls",o.Allurlparticipation)("checked",1)("message","Agregar evidencia")("legend","JPG, PNG o PDF. M\xe1ximo 10MB"),t.R7$(4),t.Y8G("disabled",!o.sympathizerForm.valid)}},dependencies:[u.YU,u.Sq,u.bT,p.qT,p.xH,p.y7,p.me,p.Zm,p.wz,p.Fm,p.BC,p.cb,p.xh,p.tU,p.j4,p.JD,J.X,Z.e,dt.a,mt.r,ht.y,y.y,q.VO,ut.wT,W.k,u.vh],styles:[".card[_ngcontent-%COMP%]{border:none;box-shadow:0 1px 2px #1018280d}hr[_ngcontent-%COMP%]{color:#e9e9e9}.privacy-link[_ngcontent-%COMP%]{color:#5e4bfa;font-style:normal;font-weight:400;text-decoration:none;cursor:pointer}.custom-link[_ngcontent-%COMP%]{color:#5e4bfa;font-style:normal;font-weight:500;text-decoration:none;cursor:pointer}.drop-file[_ngcontent-%COMP%]{width:100%;background:#fff;border-radius:5px;border:2px dashed #D3D8DE;border-image:none;margin-left:auto;margin-right:auto}.drop-file[_ngcontent-%COMP%] .alert.alert-drop-file[_ngcontent-%COMP%]{padding-top:18px;padding-bottom:0}"]})}}return r})();var Kt=l(6261),Qt=l(9377),f=l(9115),k=l(8834),O=l(2796),Q=l(9183),tt=l(5501),et=l(2005);const te=()=>({url:"/home/dashboard",name:"Inicio"}),ee=()=>({url:"/home/sympathizer/list",name:"Gesti\xf3n de simpatizantes"}),ie=()=>({url:"",name:"Lista de simpatizantes"}),oe=(r,a,e)=>[r,a,e],re=(r,a,e)=>({itemsPerPage:r,currentPage:a,totalItems:e}),it=r=>({active:r}),ot=r=>({activeIcon:r});function ne(r,a){if(1&r&&(t.j41(0,"option",77),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function ae(r,a){if(1&r&&(t.j41(0,"option",77),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function se(r,a){if(1&r&&(t.j41(0,"option",77),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.id),t.R7$(),t.JRh(e.name)}}function le(r,a){if(1&r&&(t.j41(0,"option",77),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function ce(r,a){if(1&r&&(t.j41(0,"option",77),t.EFF(1),t.k0s()),2&r){const e=a.$implicit;t.FS9("value",e.value),t.R7$(),t.JRh(e.name)}}function pe(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",83),t.EFF(1),t.j41(2,"a",84),t.bIt("click",function(){const o=t.eBV(e).$implicit,n=t.XpG(2);return t.Njj(n.clearStatusMarker(o))}),t.EFF(3,"\xd7"),t.k0s()()}if(2&r){const e=a.$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function de(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",78)(1,"div",58)(2,"div",79),t.DNE(3,pe,4,1,"div",80),t.k0s(),t.j41(4,"div",81),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearFilters())}),t.j41(5,"a",82),t.EFF(6,"Borrar todos"),t.k0s()()()()}if(2&r){const e=t.XpG();t.R7$(3),t.Y8G("ngForOf",e.tags)}}function me(r,a){if(1&r){const e=t.RV6();t.qex(0),t.j41(1,"button",101),t.bIt("click",function(){t.eBV(e);const o=t.XpG(5);return t.Njj(o.download("pdf"))}),t.EFF(2," Lista en PDF "),t.k0s(),t.j41(3,"button",101),t.bIt("click",function(){t.eBV(e);const o=t.XpG(5);return t.Njj(o.download("resume"))}),t.EFF(4," Resumen "),t.k0s(),t.j41(5,"button",101),t.bIt("click",function(){t.eBV(e);const o=t.XpG(5);return t.Njj(o.download("general"))}),t.EFF(6," Reporte general "),t.k0s(),t.bVm()}}function he(r,a){1&r&&(t.j41(0,"div",102),t.EFF(1," Debido al alto volumen de registros, este reporte debe solicitarse al equipo de tecnolog\xeda. "),t.k0s())}function ue(r,a){if(1&r&&(t.qex(0),t.DNE(1,me,7,0,"ng-container",73)(2,he,2,0,"ng-template",null,6,t.C5r),t.bVm()),2&r){const e=t.sdS(3),i=t.XpG(4);t.R7$(),t.Y8G("ngIf","admin"!=i.role)("ngIfElse",e)}}function ge(r,a){1&r&&(t.j41(0,"div",102),t.EFF(1," Funcionalidad no disponible para cuentas gratuitas "),t.k0s())}function fe(r,a){if(1&r&&(t.qex(0),t.DNE(1,ue,4,2,"ng-container",73)(2,ge,2,0,"ng-template",null,5,t.C5r),t.bVm()),2&r){const e=t.sdS(3),i=t.XpG(3);t.R7$(),t.Y8G("ngIf",1==i.enableReports)("ngIfElse",e)}}function Fe(r,a){1&r&&(t.j41(0,"div",102),t.EFF(1," Funcionalidad no disponible para esta cuenta "),t.k0s())}function _e(r,a){if(1&r){const e=t.RV6();t.qex(0),t.j41(1,"button",28),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.goTo(o.idSympathizer,"edit"))}),t.j41(2,"span"),t.EFF(3,"Editar"),t.k0s()(),t.j41(4,"button",28),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.openModal(o.idSympathizer,"visit"))}),t.j41(5,"span"),t.EFF(6,"Agenda una visita"),t.k0s()(),t.bVm()}}function ve(r,a){if(1&r){const e=t.RV6();t.j41(0,"button",28),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.openModal(o.idSympathizer,"delete"))}),t.j41(1,"span"),t.EFF(2,"Eliminar"),t.k0s()()}}function ye(r,a){1&r&&(t.j41(0,"span",119),t.EFF(1," Incompletos"),t.k0s())}function ke(r,a){1&r&&(t.j41(0,"span",120),t.EFF(1," Con CURP"),t.k0s())}function Ce(r,a){1&r&&(t.j41(0,"span",121),t.EFF(1," Completos"),t.k0s())}function Se(r,a){if(1&r&&(t.j41(0,"a"),t.EFF(1),t.k0s()),2&r){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.missing_data_color)}}function be(r,a){1&r&&(t.j41(0,"span",122)(1,"div",123),t.qSk(),t.j41(2,"svg",124)(3,"g",125),t.nrm(4,"path",126)(5,"path",127),t.k0s()()()())}function je(r,a){1&r&&(t.j41(0,"span",128)(1,"div",129),t.nrm(2,"img",130),t.k0s()())}function Ee(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",105)(1,"div",131),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.openModal(o.idSympathizer,"visit"))}),t.qSk(),t.j41(2,"svg",132)(3,"g",133),t.nrm(4,"path",134),t.k0s(),t.j41(5,"defs")(6,"clipPath",135),t.nrm(7,"rect",136),t.k0s()()()()()}if(2&r){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngClass",t.eq3(2,it,null!=e.idVisit)),t.R7$(3),t.Y8G("ngClass",t.eq3(4,ot,null!=e.idVisit))}}function ze(r,a){if(1&r&&(t.j41(0,"div",105)(1,"div",137),t.qSk(),t.j41(2,"svg",132)(3,"g",133),t.nrm(4,"path",134),t.k0s(),t.j41(5,"defs")(6,"clipPath",135),t.nrm(7,"rect",136),t.k0s()()()()()),2&r){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngClass",t.eq3(2,it,null!=e.idVisit)),t.R7$(3),t.Y8G("ngClass",t.eq3(4,ot,null!=e.idVisit))}}function Re(r,a){if(1&r){const e=t.RV6();t.j41(0,"tr")(1,"td",103)(2,"button",104)(3,"div",105),t.nrm(4,"img",106),t.k0s()(),t.j41(5,"mat-menu",null,7),t.DNE(7,_e,7,0,"ng-container",73)(8,ve,3,0,"ng-template",null,8,t.C5r),t.k0s()(),t.j41(10,"td",107)(11,"div",108),t.qex(12,109),t.DNE(13,ye,2,0,"span",110)(14,ke,2,0,"span",111)(15,Ce,2,0,"span",112)(16,Se,2,1,"a",113),t.bVm(),t.k0s()(),t.j41(17,"td",107)(18,"a",114),t.bIt("click",function(){const o=t.eBV(e).$implicit,n=t.XpG(3);return t.Njj(n.goTo(o.idSympathizer,"detail"))}),t.EFF(19),t.k0s()(),t.j41(20,"td",115),t.EFF(21),t.k0s(),t.j41(22,"td",107)(23,"div",108),t.DNE(24,be,6,0,"span",116)(25,je,3,0,"ng-template",null,9,t.C5r),t.k0s()(),t.j41(27,"td",117),t.EFF(28),t.k0s(),t.j41(29,"td",117),t.EFF(30),t.k0s(),t.j41(31,"td",117),t.EFF(32),t.k0s(),t.j41(33,"td",117),t.EFF(34),t.k0s(),t.j41(35,"td",117),t.EFF(36),t.k0s(),t.j41(37,"td",117),t.EFF(38),t.k0s(),t.j41(39,"td",117),t.EFF(40),t.k0s(),t.j41(41,"td",117),t.EFF(42),t.k0s(),t.j41(43,"td",117),t.EFF(44),t.k0s(),t.j41(45,"td",117),t.EFF(46),t.k0s(),t.j41(47,"td",117),t.EFF(48),t.k0s(),t.j41(49,"td",107),t.DNE(50,Ee,8,6,"div",118)(51,ze,8,6,"ng-template",null,10,t.C5r),t.k0s()()}if(2&r){const e=a.$implicit,i=t.sdS(6),o=t.sdS(9),n=t.sdS(26),s=t.sdS(52),c=t.XpG(3);t.R7$(2),t.Y8G("matMenuTriggerFor",i),t.R7$(5),t.Y8G("ngIf","admin"!=c.role)("ngIfElse",o),t.R7$(5),t.Y8G("ngSwitch",e.missing_data_color),t.R7$(),t.Y8G("ngSwitchCase","red"),t.R7$(),t.Y8G("ngSwitchCase","yellow"),t.R7$(),t.Y8G("ngSwitchCase","green"),t.R7$(4),t.JRh(e.qrcode),t.R7$(2),t.SpI(" ",e.nameSympathizer," "),t.R7$(3),t.Y8G("ngIf",0!=e.idPOI&&e.idPOI)("ngIfElse",n),t.R7$(4),t.SpI(" ",e.totalreq," "),t.R7$(2),t.SpI(" ",e.cellPhone," "),t.R7$(2),t.SpI(" ",e.classification_participation&&e.classification_actor?e.classification_participation+"/"+e.classification_actor:e.classification_participation||e.classification_actor||"-"," "),t.R7$(2),t.SpI(" ",e.street||"-"," "),t.R7$(2),t.SpI(" ",e.streetNumExt||"-"," "),t.R7$(2),t.SpI(" ",e.streetNumInt||"-"," "),t.R7$(2),t.SpI(" ",e.postalCode||"-"," "),t.R7$(2),t.SpI(" ",e.neighborhoodName||"-"," "),t.R7$(2),t.SpI(" ",e.municipalityName||"-"," "),t.R7$(2),t.SpI(" ",e.entityName||"-"," "),t.R7$(2),t.SpI(" ",e.electoralSection||"-"," "),t.R7$(2),t.Y8G("ngIf","admin"!=c.role)("ngIfElse",s)}}function xe(r,a){if(1&r&&(t.qex(0),t.j41(1,"div",85)(2,"div",50)(3,"div",86)(4,"div",87)(5,"p",88),t.EFF(6),t.k0s()(),t.j41(7,"div",17)(8,"div",89)(9,"button",90)(10,"div",91),t.nrm(11,"img",92),t.
1j41(12,"span"),t.EFF(13,"Descargar datos"),t.k0s(),t.qSk(),t.j41(14,"svg",93),t.nrm(15,"path",94),t.k0s()()(),t.joV(),t.j41(16,"mat-menu",95,3),t.DNE(18,fe,4,2,"ng-container",73)(19,Fe,2,0,"ng-template",null,4,t.C5r),t.k0s()()()()()(),t.j41(21,"div",96)(22,"table",97)(23,"thead",98)(24,"tr")(25,"th",99),t.EFF(26,"Acciones"),t.k0s(),t.j41(27,"th",99),t.EFF(28,"Datos"),t.k0s(),t.j41(29,"th",99),t.EFF(30,"Folio"),t.k0s(),t.j41(31,"th",99),t.EFF(32,"Nombre del simpatizante"),t.k0s(),t.j41(33,"th",99),t.EFF(34,"Puntos de inter\xe9s"),t.k0s(),t.j41(35,"th",99),t.EFF(36,"Solicitudes levantadas"),t.k0s(),t.j41(37,"th",99),t.EFF(38,"Celular"),t.k0s(),t.j41(39,"th",99),t.EFF(40,"Clasificaci\xf3n del simpatizante"),t.k0s(),t.j41(41,"th",99),t.EFF(42,"Calle"),t.k0s(),t.j41(43,"th",99),t.EFF(44,"N\xfamero ext."),t.k0s(),t.j41(45,"th",99),t.EFF(46,"N\xfamero int."),t.k0s(),t.j41(47,"th",99),t.EFF(48,"C\xf3digo postal"),t.k0s(),t.j41(49,"th",99),t.EFF(50,"Colonia"),t.k0s(),t.j41(51,"th",99),t.EFF(52,"Municipio"),t.k0s(),t.j41(53,"th",99),t.EFF(54,"Estado"),t.k0s(),t.j41(55,"th",99),t.EFF(56,"Secci\xf3n"),t.k0s(),t.j41(57,"th",99),t.EFF(58,"Visita"),t.k0s()()(),t.j41(59,"tbody"),t.DNE(60,Re,53,24,"tr",100),t.nI1(61,"paginate"),t.k0s()()(),t.bVm()),2&r){const e=t.sdS(17),i=t.sdS(20),o=t.XpG(2);t.R7$(6),t.Lme(" Mostrando ",o.currentArray.length," de ",o.totalRecords," "),t.R7$(3),t.Y8G("matMenuTriggerFor",e),t.R7$(9),t.Y8G("ngIf",7==o.identifier||1==o.identifier)("ngIfElse",i),t.R7$(42),t.Y8G("ngForOf",t.i5U(61,6,o.currentArray,t.sMw(9,re,o.itemsPerPage,o.p,o.totalRecords)))}}function Ie(r,a){if(1&r&&(t.qex(0),t.DNE(1,xe,62,13,"ng-container",73),t.bVm()),2&r){const e=t.XpG(),i=t.sdS(126);t.R7$(),t.Y8G("ngIf",e.currentArray.length)("ngIfElse",i)}}function Ne(r,a){1&r&&(t.j41(0,"div",138),t.nrm(1,"img",139),t.k0s(),t.j41(2,"div",138)(3,"h5",140),t.EFF(4,"No encontramos registros para esa b\xfasqueda. Intenta con otra."),t.k0s()())}function $e(r,a){1&r&&(t.j41(0,"div",141)(1,"div",138),t.nrm(2,"mat-spinner"),t.k0s()())}function Te(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",19)(1,"div",142)(2,"pagination-controls",143),t.bIt("pageChange",function(o){t.eBV(e);const n=t.XpG();return t.Njj(n.onPageChange(o))}),t.k0s()()()}}let we=(()=>{class r{constructor(e,i,o,n,s,c,h,g){this.FB=e,this.sympathizerSharedService=i,this.router=o,this.userSharedService=n,this.alertService=s,this.requestService=c,this.formOptionsService=h,this.listParamsService=g,this.p=1,this.sympathizers=[],this.itemsPerPage=10,this.totalRecords=0,this.flagTotal=!1,this.flagParams=!1,this.currentTotal=0,this.search="",this.searchTerms=new P.B,this.results=[],this.loading=!1,this.currentArray=[],this.usersOptions=[],this.userVisit=0,this.isEmpty=!1,this.visitForm=this.FB.group({date:["",[p.k0.required,(0,x.N8)()]],idUserVisitor:[0],idSympathizer:[""],note:["",[p.k0.required]],idUser:[""]}),this.clickButton=!0,this.isCollapsed=!0,this.genderOptions=[],this.actorOptions=[],this.activefilters=!1,this.tags=[],this.filterForm=this.FB.group({idEntity:[""],idMunicipality:[{value:"",disabled:!0}],idNeighborhood:[{value:"",disabled:!0}],actor:[""],gender:[""]})}ngOnInit(){this.loadParams(),this.searchHold(),this.initData(),this.getEntities(),this.getFormOptions()}loadParams(){const e=this.listParamsService.getParams("sympathizerList");e?(this.p=e.p||1,this.itemsPerPage=e.itemsPerPage||10,this.search=e.search||"",this.type=e.type||"created_at",this.order=e.order||"desc",this.tags=e.tags||[],this.currentTotal=e.total,this.flagParams=!0,e.filter&&this.filterForm.patchValue(e.filter),this.getSympathizers(this.type,this.order,this.search)):this.getSympathizers()}saveParams(){this.listParamsService.saveParams("sympathizerList",{p:this.p,itemsPerPage:this.itemsPerPage,search:this.search||"",type:this.type||"created_at",order:this.order||"desc",filter:this.filterForm.value,total:this.currentTotal,tags:this.tags})}download(e){let i=""==this.search?" ":this.search;switch(this.loading=!0,this.alertService.loaderPersonalizeAlert("Descargando reporte"),e){case"general":this.sympathizerSharedService.downloadReportGeneral(i,this.filterForm.value).subscribe({next:o=>{const n=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=window.URL.createObjectURL(n),c=new Date,g=`Reporte general de simpatizantes ${c.getDate().toString().padStart(2,"0")}-${(c.getMonth()+1).toString().padStart(2,"0")}-${c.getFullYear()}.xlsx`,m=document.createElement("a");m.href=s,m.download=g,document.body.appendChild(m),m.click(),document.body.removeChild(m),window.URL.revokeObjectURL(s)},error:o=>{this.loading=!1,console.error("Error al descargar el reporte:",o),this.alertService.formConnectionErrorAlert()},complete:()=>{this.loading=!1,this.alertService.close()}});break;case"resume":this.sympathizerSharedService.downloadReportSummary(i,this.filterForm.value).subscribe({next:o=>{const n=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=window.URL.createObjectURL(n),c=new Date,g=`Reporte resumen de simpatizantes ${c.getDate().toString().padStart(2,"0")}-${(c.getMonth()+1).toString().padStart(2,"0")}-${c.getFullYear()}.xlsx`,m=document.createElement("a");m.href=s,m.download=g,document.body.appendChild(m),m.click(),document.body.removeChild(m),window.URL.revokeObjectURL(s)},error:o=>{this.loading=!1,console.error("Error al descargar el reporte:",o),this.alertService.formConnectionErrorAlert()},complete:()=>{this.loading=!1,this.alertService.close()}})}}goTo(e,i){switch(i){case"create":this.router.navigate(["/home/sympathizer/create"]);break;case"edit":this.router.navigate(["/home/sympathizer/update/",e]);break;case"detail":this.router.navigate(["/home/sympathizer/detail/",e])}this.saveParams()}getFormOptions(){this.genderOptions=this.formOptionsService.genderOptions,this.actorOptions=this.formOptionsService.actorOptions}getEntities(){return new Promise((e,i)=>{this.requestService.getEntities().subscribe(o=>{this.entities=o,e(o)},o=>{this.alertService.errorAlert("Error al obtener entidades"),i(o)})})}getMunicipalities(e){return new Promise((i,o)=>{this.requestService.getMunicipalities(e).subscribe(n=>{this.municipalities=n,i(n)},n=>{this.alertService.errorAlert("Error al obtener direcci\xf3n"),o(n)})})}getNeighboorhoods(e){return new Promise((i,o)=>{this.requestService.getNeighboorhoods(e).subscribe(n=>{this.neighborhoods=n,i(n)},n=>{this.alertService.errorAlert("Error al obtener direcci\xf3n"),o(n)})})}onSelectToMunicipality(){var e=this;return(0,_.A)(function*(){e.filterForm.controls.idMunicipality.enable();try{const i=e.filterForm.get("idEntity")?.value;yield e.getMunicipalities(i)}catch(i){console.error("Error al obtener las municipalities:",i),e.alertService.errorAlert("Error al obtener direcci\xf3n")}
1})()}onSelectToNeighboorhood(){var e=this;return(0,_.A)(function*(){e.filterForm.controls.idNeighborhood.enable();try{const i=e.filterForm.get("idMunicipality")?.value;yield e.getNeighboorhoods(i)}catch(i){console.error("Error al obtener las neighborhoods:",i),e.alertService.errorAlert("Error al obtener direcci\xf3n")}})()}buttonFilter(e="created_at",i="desc"){this.isCollapsed=!0,this.sympathizerSharedService.getSympathizers(this.p,this.itemsPerPage,""==this.search?" ":this.search,e,i,this.filterForm.value).subscribe({next:n=>{this.totalRecords=n.total,this.currentArray=n.data,0==n.data.length&&(this.isEmpty=!0),this.setFilterTags()},error:n=>{this.alertService.formConnectionErrorAlert()}})}setFilterTags(){this.activefilters=!0,this.tags=[];let i,e=new Kt.J;this.filterForm.controls.idEntity.valid&&0!=this.filterForm.controls.idEntity.value&&(i=this.entities.find(o=>o.id==this.filterForm.controls.idEntity.value),e={id:this.filterForm.controls.idEntity.value,name:i.name,type:"idEntity"},this.tags.push(e)),this.filterForm.controls.idMunicipality.valid&&0!=this.filterForm.controls.idMunicipality.value&&(i=this.municipalities.find(o=>o.id==this.filterForm.controls.idMunicipality.value),e={id:this.filterForm.controls.idMunicipality.value,name:i.name,type:"idMunicipality"},this.tags.push(e)),this.filterForm.controls.idNeighborhood.valid&&0!=this.filterForm.controls.idNeighborhood.value&&(i=this.neighborhoods.find(o=>o.id==this.filterForm.controls.idNeighborhood.value),e={id:this.filterForm.controls.idNeighborhood.value,name:i.name,type:"idNeighborhood"},this.tags.push(e)),this.filterForm.controls.gender.valid&&0!=this.filterForm.controls.gender.value&&(i=this.genderOptions.find(o=>o.value==this.filterForm.controls.gender.value),e={id:this.filterForm.controls.gender.value,name:i.name,type:"gender"},this.tags.push(e)),this.filterForm.controls.actor.valid&&0!=this.filterForm.controls.actor.value&&(i=this.actorOptions.find(o=>o.value==this.filterForm.controls.actor.value),e={id:this.filterForm.controls.actor.value,name:i.name,type:"actor"},this.tags.push(e))}clearStatusMarker(e){if(this.tags.length>0){this.tags=this.tags.filter(o=>o!==e);const i={gender:"gender",actor:"actor",idEntity:"idEntity",idMunicipality:"idMunicipality",idNeighborhood:"idNeighborhood"};if(i[e.type]){const o=i[e.type];this.filterForm.patchValue({[o]:""})}this.buttonFilter()}else this.activefilters=!1,this.tags=this.tags.filter(i=>i!==e),this.cleanForm()}clearFilters(){this.activefilters=!1,this.tags=[],Object.keys(this.filterForm.controls).forEach(e=>{this.filterForm.get(e)?.setValue("")}),this.getSympathizers()}cleanForm(){Object.keys(this.filterForm.controls).forEach(e=>{this.filterForm.get(e)?.setValue("")})}openModal(e,i){switch(this.id="",i){case"visit":$("#visitModal").modal("show"),this.getWorkGroupTheme(),this.visitForm.controls.idSympathizer.setValue(e);break;case"delete":this.title="Eliminar simpatizante";const o=this.currentArray.find(n=>n.idSympathizer===e);this.name=o.nameSympathizer,this.id=e,$("#deleteModal").modal("show")}}closeModal(){$("#visitModal").modal("hide")}saveVisit(e){this.visitForm.patchValue({...e}),this.visitForm.controls.idUser.setValue(this.idUser),0==this.visitForm.get("idUserVisitor")?.value&&this.visitForm.controls.idUserVisitor.setValue(this.idUser),this.sympathizerSharedService.saveVisit(this.visitForm.value).subscribe({next:i=>{this.alertService.completeRegisterAlert("La visita se guard\xf3 correctamente")},error:i=>{this.alertService.formConnectionErrorAlert()}})}getWorkGroupTheme(){this.userSharedService.getWorkGroupTheme(localStorage.getItem("idUser"),localStorage.getItem("idWorkGroup"),0).subscribe(e=>{this.usersOptions=e})}delete(){this.clickButton&&(this.clickButton=!1,this.sympathizerSharedService.deleteSympathizer(this.id).subscribe(e=>{console.log(e),$("#deleteModal").modal("hide"),this.alertService.completeRegisterAlert("Simpatizante eliminado exitosamente")}))}initData(){this.idWorkGroup=localStorage.getItem("idWorkGroup"),this.idUser=localStorage.getItem("idUser"),this.url=T.c.apiUrl,this.identifier=localStorage.getItem("identifier"),this.enableReports=localStorage.getItem("enableReports"),this.userLevel=localStorage.getItem("userLevel"),this.role=localStorage.getItem("role")}getSympathizers(e="created_at",i="desc",o=""){this.type=e,this.order=i,this.currentArray=[],this.isEmpty=!1,this.sympathizerSharedService.getSympathizers(this.p,this.itemsPerPage,o,this.type,this.order,this.filterForm.value).subscribe({next:n=>{this.sympathizers=n.data,this.totalRecords=n.total,this.currentArray=n.data,!this.flagTotal&&!this.flagParams&&(this.currentTotal=n.total,this.flagTotal=!0),0==n.data.length&&(this.isEmpty=!0)},error:n=>{this.alertService.formConnectionErrorAlert()}})}getSearch(e){const i=this.search;this.searchTerms.next(i),""===i.trim()&&this.clearSearch()}clearSearch(){this.search="",this.results=[]}searchHold(){this.searchTerms.pipe((0,L.B)(1e3),(0,B.F)(),(0,A.n)(e=>(this.p=1,this.currentArray=[],this.isEmpty=!1,this.sympathizerSharedService.getSympathizers(this.p,this.itemsPerPage,e,this.type,this.order,this.filterForm.value)))).subscribe({next:e=>{this.sympathizers=e.data,this.totalRecords=e.total,this.currentArray=e.data,0==e.data.length&&(this.isEmpty=!0)},error:e=>{this.alertService.formConnectionErrorAlert()}})}
vendor: 9,274 bytes, line 1
1onPageChange(e){this.p=e,this.getSympathizers(this.type,this.order,""==this.search?" ":this.search)}static{this.\u0275fac=function(i){return new(i||r)(t.rXU(p.ok),t.rXU(w),t.rXU(F.Ix),t.rXU(v.D),t.rXU(I.n),t.rXU(N.k),t.rXU(X.M),t.rXU(Qt.E))}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["app-sympathizer-list"]],decls:130,vars:27,consts:[["order","matMenu"],["empty",""],["loader",""],["report","matMenu"],["notLevel",""],["notEnable",""],["massiveData",""],["menu","matMenu"],["delete",""],["NotPoi",""],["adminVisit",""],[1,"row","m-2"],[1,"col-12"],[3,"routes"],[1,"row","pt-2"],[1,"col-12","col-md-6"],[1,"page-header"],[1,"col-12","col-md-6","d-flex","justify-content-end"],[1,"page-header",2,"font-weight","500"],[1,"row","py-3"],[1,"d-flex","flex-column","flex-md-row","gap-3"],[1,"dropdown","d-flex"],["mat-button","",1,"btn","btn-light","d-flex","align-items-center","w-100",3,"matMenuTriggerFor"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ms-2"],["id","CaretDown"],["id","Vector","d","M13 6L8 11L3 6","stroke","black","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"scrollable-menu"],[1,"",2,"color","black","text-decoration","none"],["mat-menu-item","",3,"click"],[1,"flex-grow-1","position-relative","d-flex","flex-column"],[1,"input-group","input-group-search"],["type","text","Uppercase","","placeholder","Buscar por palabras clave",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-primary","d-flex","align-items-center","justify-content-center"],["src","assets/icons/MagnifyingGlass.svg",1,"img"],[1,"d-none","d-md-block","m-0",2,"color","#a3a3a3","font-size",".95rem"],[1,"d-flex"],["type","button",1,"btn","btn-outline-primary","d-flex","justify-content-center","align-items-center","w-100","bold",3,"click"],[1,"ms-2"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["d","M12 10.125L12 20.25","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 3.75L12 6.375","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 10.125C13.0355 10.125 13.875 9.28553 13.875 8.25C13.875 7.21447 13.0355 6.375 12 6.375C10.9645 6.375 10.125 7.21447 10.125 8.25C10.125 9.28553 10.9645 10.125 12 10.125Z","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M18.75 17.625L18.7501 20.25","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M18.7501 3.75L18.75 13.875","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M18.75 17.625C19.7855 17.625 20.625 16.7855 20.625 15.75C20.625 14.7145 19.7855 13.875 18.75 13.875C17.7145 13.875 16.875 14.7145 16.875 15.75C16.875 16.7855 17.7145 17.625 18.75 17.625Z","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M5.25007 14.625L5.25 20.25","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M5.25 3.75L5.25007 10.875","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M5.25 14.625C6.28553 14.625 7.125 13.7855 7.125 12.75C7.125 11.7145 6.28553 10.875 5.25 10.875C4.21447 10.875 3.375 11.7145 3.375 12.75C3.375 13.7855 4.21447 14.625 5.25 14.625Z","stroke","#7665FB","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[3,"hidden"],[1,"card","mb-3"],[1,"card-body"],[1,"row","d-flex","align-items-center"],[1,"col-md-10"],[1,"bold"],[1,"card-subtitle","mt-1","mb-0","text-muted"],[1,"col-md-2","d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-primary",3,"click"],[3,"formGroup"],[1,"row"],[1,"col-md-4","mt-3"],["for","validationCustom01"],["formControlName","idEntity","appValidadorForm","","id","inputState",1,"form-control","form-select",3,"change"],["selected","","value",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","idMunicipality","appValidadorForm","","id","inputState",1,"form-control","form-select",3,"change"],["id","inputState","formControlName","idNeighborhood","appValidadorForm","",1,"form-control","form-select"],["formControlName","gender","id","inputState","appValidadorForm","",1,"form-control","form-select"],["formControlName","actor","id","inputState","appValidadorForm","",1,"form-control","form-select"],[1,"card-footer","bg-transparent"],[1,"d-flex","justify-content-end","gap-2"],[1,"btn","btn-outline-primary",3,"click"],[1,"btn","btn-primary",3,"click"],["class","tags pb-3","style","display: block",4,"ngIf"],[4,"ngIf","ngIfElse"],["class","row py-3",4,"ngIf"],[3,"save","usersOptions"],[3,"confirm","title","message","name"],[3,"value"],[1,"tags","pb-3",2,"display","block"],[1,"col-auto","d-flex",2,"flex-wrap","wrap","gap","10px"],["class","badge-stats-filter","style","color: #5e4bfa; background-color: #ece6fe",4,"ngFor","ngForOf"],[1,"col-auto","d-flex","justify-content-center","align-items-center","pt-1",3,"click"],[2,"color","#5e4bfa","cursor","pointer"],[1,"badge-stats-filter",2,"color","#5e4bfa","background-color","#ece6fe"],[2,"font-size","20px","cursor","pointer",3,"click"],[1,"card"],[1,"row","align-items-center"],[1,"col-12","col-md-6","mb-2","mb-md-0"],[1,"showRegisters","mb-0"],[1,"justify-content-end"],["mat-button","",1,"btn","btn-light","download-button",3,"matMenuTriggerFor"],[1,"d-flex","align-items-center","gap-2"],["src","assets/icons/DownloadSimple.svg","alt","Download Icon"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13 6L8 11L3 6","stroke","black","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["xPosition","before"],[1,"table-responsive"],[1,"table","table-hover"],[1,"truncate-text"],[1,"table-header"],[4,"ngFor","ngForOf"],["mat-menu-item","","target","_blank",3,"click"],[1,"menu-note"],[1,"text-center","align-middle"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],[1,"centerImgText"],["src","assets/icons/more-vertical.svg"],[1,"align-middle"],[1,"d-flex","pt-1","justify-content-center"],[3,"ngSwitch"],["class","badge-stats-table","style","color: #E54545; background-color: #FADADA;font-size: 14px;",4,"ngSwitchCase"],["class","badge-stats-table","style","color: #FF8800; background-color: #FFF1E0;font-size: 14px;",4,"ngSwitchCase"],["class","badge-stats-table","style","color: #0F9918; background-color: #E7F5E8;font-size: 14px;",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[2,"color","#5E4BFA","text-decoration","none","cursor","pointer",3,"click"],[1,"align-middle",2,"color","black"],["title","Solicitante relacionado a un punto de inter\xe9s","class","badge-stats-table","style","background-color: #E7F5E8;font-size: 14px;border: none;",4,"ngIf","ngIfElse"],[1,"align-middle",2,"color","#707478"],["class","centerImgText",4,"ngIf","ngIfElse"],[1,"badge-stats-table",2,"color","#E54545","background-color","#FADADA","font-size","14px"],[1,"badge-stats-table",2,"color","#FF8800","background-color","#FFF1E0","font-size","14px"],[1,"badge-stats-table",2,"color","#0F9918","background-color","#E7F5E8","font-size","14px"],["title","Solicitante relacionado a un punto de inter\xe9s",1,"badge-stats-table",2,"background-color","#E7F5E8","font-size","14px","border","none"],[1,"",2,"padding-left","1rem","padding-right","1rem"],["width","20","height","20","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["id","CheckCircle"],["id","Vector","d","M16.125 9.75L10.625 15L7.875 12.375","stroke","#0F9918","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","Vector_2","d","M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z","stroke","#0F9918","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"badge-stats-table",2,"background-color","#F5F6F7","font-size","14px","border","none","padding-left","2rem","padding-right","2rem"],[1,""],["src","assets/icons/Prohibit.svg"],[1,"icon",2,"cursor","pointer",3,"click","ngClass"],["width","20","height","21","viewBox","0 0 20 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_3263_8220)"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.48822 1.07984C9.78915 0.845784 10.2105 0.845784 10.5115 1.07984L18.0115 6.91317C18.2144 7.07105 18.3332 7.3138 18.3332 7.57096V16.7376C18.3332 17.4007 18.0698 18.0366 17.6009 18.5054C17.1321 18.9742 16.4962 19.2376 15.8332 19.2376H4.1665C3.50346 19.2376 2.86758 18.9742 2.39874 18.5054C1.9299 18.0366 1.6665 17.4007 1.6665 16.7376V7.57096C1.6665 7.3138 1.78523 7.07105 1.98822 6.91317L9.48822 1.07984ZM8.33317 17.571H11.6665V10.9043H8.33317V17.571ZM13.3332 17.571V10.071C13.3332 9.61073 12.9601 9.23763 12.4998 9.23763H7.49984C7.0396 9.23763 6.6665 9.61073 6.6665 10.071V17.571H4.1665C3.94549 17.571 3.73353 17.4832 3.57725 17.3269C3.42097 17.1706 3.33317 16.9586 3.33317 16.7376V7.97853L9.99984 2.79335L16.6665 7.97853V16.7376C16.6665 16.9586 16.5787 17.1706 16.4224 17.3269C16.2661 17.4832 16.0542 17.571 15.8332 17.571H13.3332Z","fill","#838E9E",3,"ngClass"],["
1id","clip0_3263_8220"],["width","20","height","20","fill","white","transform","translate(0 0.0703125)"],[1,"icon",3,"ngClass"],[1,"d-flex","justify-content-center"],["src","assets/img/research.gif","alt",""],[1,"mb-2",2,"font-size","3vh"],[1,"row","pt-3"],[1,"col-12","d-flex","justify-content-end","pagination-wrapper"],["previousLabel","","nextLabel","",3,"pageChange"]],template:function(i,o){if(1&i){const n=t.RV6();t.j41(0,"div",11)(1,"div",12),t.nrm(2,"page-header",13),t.j41(3,"div",14)(4,"div",15)(5,"h5",16),t.EFF(6,"Lista de simpatizantes"),t.k0s()(),t.j41(7,"div",17)(8,"span",18),t.EFF(9),t.k0s()()(),t.j41(10,"div",19)(11,"div",12)(12,"div",20)(13,"div",21)(14,"button",22)(15,"span"),t.EFF(16,"Ordenar por..."),t.k0s(),t.qSk(),t.j41(17,"svg",23)(18,"g",24),t.nrm(19,"path",25),t.k0s()()(),t.joV(),t.j41(20,"mat-menu",null,0)(22,"div",26)(23,"a",27)(24,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("created_at","desc"))}),t.EFF(25," M\xe1s recientes "),t.k0s()(),t.j41(26,"a",27)(27,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("created_at","asc"))}),t.EFF(28," M\xe1s antiguas "),t.k0s()(),t.j41(29,"a",27)(30,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("nameSympathizer","asc"))}),t.EFF(31," A-Z Nombre del simpatizante "),t.k0s()(),t.j41(32,"a",27)(33,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("nameSympathizer","desc"))}),t.EFF(34," Z-A Nombre del simpatizante "),t.k0s()(),t.j41(35,"a",27)(36,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("qrcode","asc"))}),t.EFF(37," A-Z Folio "),t.k0s()(),t.j41(38,"a",27)(39,"button",28),t.bIt("click",function(){return t.eBV(n),t.Njj(o.getSympathizers("qrcode","desc"))}),t.EFF(40," Z-A Folio "),t.k0s()()()()(),t.j41(41,"div",29)(42,"div",30)(43,"input",31),t.mxI("ngModelChange",function(c){return t.eBV(n),t.DH7(o.search,c)||(o.search=c),t.Njj(c)}),t.bIt("ngModelChange",function(c){return t.eBV(n),t.Njj(o.getSearch(c))}),t.k0s(),t.j41(44,"button",32),t.nrm(45,"img",33),t.k0s()(),t.j41(46,"small",34),t.EFF(47," Puedes buscar por nombre, folio, n\xfamero de tel\xe9fono o CURP. "),t.k0s()(),t.j41(48,"div",35)(49,"button",36),t.bIt("click",function(){return t.eBV(n),t.Njj(o.isCollapsed=!o.isCollapsed)}),t.j41(50,"span"),t.EFF(51),t.k0s(),t.j41(52,"div",37),t.qSk(),t.j41(53,"svg",38),t.nrm(54,"path",39)(55,"path",40)(56,"path",41)(57,"path",42)(58,"path",43)(59,"path",44)(60,"path",45)(61,"path",46)(62,"path",47),t.k0s()()()()()()(),t.joV(),t.j41(63,"div",48)(64,"div",49)(65,"div",50)(66,"div",51)(67,"div",52)(68,"span",53),t.EFF(69,"Filtros"),t.k0s(),t.j41(70,"h6",54),t.EFF(71," Despu\xe9s de seleccionar una opci\xf3n, haz clic en 'Aplicar filtros' para ver los cambios."),t.k0s()(),t.j41(72,"div",55)(73,"button",56),t.bIt("click",function(){return t.eBV(n),t.Njj(o.cleanForm())}),t.EFF(74,"Limpiar filtros"),t.k0s()()(),t.nrm(75,"hr"),t.j41(76,"form",57)(77,"div",58)(78,"div",59)(79,"label",60),t.EFF(80,"Estado"),t.k0s(),t.j41(81,"select",61),t.bIt("change",function(){return t.eBV(n),t.Njj(o.onSelectToMunicipality())}),t.j41(82,"option",62),t.EFF(83,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(84,ne,2,2,"option",63),t.k0s()(),t.j41(85,"div",59)(86,"label",60),t.EFF(87,"Municipio"),t.k0s(),t.j41(88,"select",64),t.bIt("change",function(){return t.eBV(n),t.Njj(o.onSelectToNeighboorhood())}),t.j41(89,"option",62),t.EFF(90,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(91,ae,2,2,"option",63),t.k0s()(),t.j41(92,"div",59)(93,"label"),t.EFF(94,"Colonia"),t.k0s(),t.j41(95,"select",65)(96,"option",62),t.EFF(97,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(98,se,2,2,"option",63),t.k0s()(),t.j41(99,"div",59)(100,"label",60),t.EFF(101,"Sexo"),t.k0s(),t.j41(102,"select",66)(103,"option",62),t.EFF(104,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(105,le,2,2,"option",63),t.k0s()(),t.j41(106,"div",59)(107,"label",60),t.EFF(108,"Actor importante"),t.k0s(),t.j41(109,"select",67)(110,"option",62),t.EFF(111,"Selecciona una opci\xf3n"),t.k0s(),t.DNE(112,ce,2,2,"option",63),t.k0s()()()()(),t.j41(113,"div",68)(114,"div",69)(115,"button",70),t.bIt("click",function(){return t.eBV(n),t.Njj(o.isCollapsed=!o.isCollapsed)}),t.EFF(116,"Cancelar"),t.k0s(),t.j41(117,"button",71),t.bIt("click",function(){return t.eBV(n),t.Njj(o.buttonFilter())}),t.EFF(118,"Aplicar filtros"),t.k0s()()()()(),t.DNE(119,de,7,1,"div",72),t.j41(120,"div",58)(121,"div",12),t.DNE(122,Ie,2,2,"ng-container",73)(123,Ne,5,0,"ng-template",null,1,t.C5r)(125,$e,3,0,"ng-template",null,2,t.C5r),t.k0s()(),t.DNE(127,Te,3,0,"div",74),t.k0s()(),t.j41(128,"app-visit-modal",75),t.bIt("save",function(c){return t.eBV(n),t.Njj(o.saveVisit(c))}),t.k0s(),t.j41(129,"app-delete-modal",76),t.bIt("confirm",function(){return t.eBV(n),t.Njj(o.delete())}),t.k0s()}if(2&i){const n=t.sdS(21),s=t.sdS(124);t.R7$(2),t.Y8G("routes",t.sMw(23,oe,t.lJ4(20,te),t.lJ4(21,ee),t.lJ4(22,ie))),t.R7$(7),t.SpI("Total de simpatizantes (",o.currentTotal,")"),t.R7$(5),t.Y8G("matMenuTriggerFor",n),t.R7$(29),t.R50("ngModel",o.search),t.R7$(8),t.JRh(o.isCollapsed?"Filtros":"Cerrar filtros"),t.R7$(12),t.Y8G("hidden",o.isCollapsed),t.R7$(13),t.Y8G("formGroup",o.filterForm),t.R7$(8),t.Y8G("ngForOf",o.entities),t.R7$(7),t.Y8G("ngForOf",o.municipalities),t.R7$(7),t.Y8G("ngForOf",o.neighborhoods),t.R7$(7),t.Y8G("ngForOf",o.genderOptions),t.R7$(7),t.Y8G("ngForOf",o.actorOptions),t.R7$(7),t.Y8G("ngIf",o.tags.length>0),t.R7$(3),t.Y8G("ngIf",!o.isEmpty)("ngIfElse",s),t.R7$(5),t.Y8G("ngIf",o.currentArray.length>0),t.R7$(),t.Y8G("usersOptions",o.usersOptions),t.R7$(),t.Y8G("title",o.title)("message","Est\xe1s a punto de eliminar el simpatizante")("name",o.name)}},dependencies:[u.YU,u.Sq,u.bT,u.ux,u.e1,u.fG,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.vS,p.j4,p.JD,f.kk,f.fb,f.Cp,k.$z,k.iY,O.ej,J.X,Z.e,y.y,Q.LG,tt.Q,et.w,O.kf],styles:[".btn-light[_ngcontent-%COMP%]{border:1px solid var(--Gray-300, #B4BBC5);background-color:#fff;box-shadow:0 1px 2px #1018280d;border-radius:.65rem;height:48px;padding:0 1rem}.btn-outline-primary[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:#fff}.form-control[_ngcontent-%COMP%], .d-flex.btn-outline-primary[_ngcontent-%COMP%]{height:48px}.bold[_ngcontent-%COMP%]{font-weight:600}table[_ngcontent-%COMP%]{width:250%}.table-responsive[_ngcontent-%COMP%]{display:block;width:100%;overflow-x:auto;margin:0 auto;font-size:.9rem}.table-header[_ngcontent-%COMP%]{background-color:#f2f4f7;font-weight:300;color:#667085;padding-top:10px;text-align:center;text-wrap:nowrap}td[_ngcontent-%COMP%]{text-align:center}.badge-stats-table[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border:1px solid;border-radius:32px;padding:8px 16px;width:fit-content;text-wrap:nowrap;font-size:14px}.icon[_ngcontent-%COMP%]{display:flex;width:40px;height:40px;align-items:center;justify-content:center;padding:10px;background-color:#f5f6f7;border-radius:109.11px}.icon.active[_ngcontent-%COMP%]{background-color:#ece6fe}.activeIcon[_ngcontent-%COMP%]{fill:#5e4bfa}"]})}}return r})();var Oe=l(8661),Ve=l(4023),V=l(6233),rt=l(4203),nt=l(1447),at=l(1607);const Ge=["stepper"],Me=()=>({url:"/home/dashboard",name:"Inicio"}),Pe=()=>({url:"/home/sympathizer/list",name:"Gesti\xf3n de simpatizantes"}),De=()=>({url:"",name:"Datos del simpatizante"}),Le=(r,a,e)=>[r,a,e];function Be(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",36)(1,"div",37)(2,"div",38)(3,"p",39),t.EFF(4),t.k0s(),t.j41(5,"p",39),t.EFF(6),t.nI1(7,"date"),t.k0s(),t.j41(8,"p",39),t.EFF(9),t.k0s()(),t.j41(10,"div",40)(11,"button",41),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.goToEdit())}),t.EFF(12,"Editar simpatizante"),t.k0s()()()()}if(2&r){const e=t.XpG();t.R7$(4),t.SpI("Registr\xf3: ",e.nameAssigned||"-",""),t.R7$(2),t.SpI("Fecha de registro: ",t.i5U(7,3,e.sympathizer.created_at,"dd/MM/yyyy hh:mm a"),""),t.R7$(3),t.SpI("Folio: ",e.sympathizer.qrcode||"-","")}}function Ae(r,a){if(1&r&&(t.j41(0,"div",36),t.nrm(1,"app-custom-skeleton",42),t.k0s()),2&r){const e=t.XpG();t.R7$(),t.Y8G("config",e.skeletonInfo)}}function Ye(r,a){if(1&r&&(t.j41(0,"p",61),t.EFF(1,"\xbfCu\xe1les? "),t.j41(2,"b"),t.EFF(3),t.k0s()()),2&r){const e=t.XpG(2);
1t.R7$(3),t.JRh(e.sympathizer.typeSupport||"Sin informaci\xf3n")}}function Ue(r,a){if(1&r&&(t.j41(0,"div",81)(1,"a",82),t.qSk(),t.j41(2,"svg",83)(3,"g",84),t.nrm(4,"path",85)(5,"path",86)(6,"path",87),t.k0s(),t.j41(7,"defs")(8,"radialGradient",88),t.nrm(9,"stop",89)(10,"stop",90)(11,"stop",91)(12,"stop",92),t.k0s(),t.j41(13,"radialGradient",93),t.nrm(14,"stop",89)(15,"stop",90)(16,"stop",91)(17,"stop",92),t.k0s()()()()()),2&r){const e=t.XpG(2);t.R7$(),t.Y8G("href",e.sympathizer.instagram,t.B4B)}}function He(r,a){if(1&r&&(t.j41(0,"div")(1,"a",82),t.qSk(),t.j41(2,"svg",83)(3,"g",94),t.nrm(4,"path",95)(5,"path",96),t.k0s(),t.j41(6,"defs")(7,"clipPath",97),t.nrm(8,"rect",98),t.k0s()()()()()),2&r){const e=t.XpG(2);t.R7$(),t.Y8G("href",e.sympathizer.facebook,t.B4B)}}function Xe(r,a){if(1&r&&(t.qex(0),t.j41(1,"p",61),t.EFF(2,"Partido pol\xedtico "),t.j41(3,"b"),t.EFF(4),t.k0s()(),t.j41(5,"p",61),t.EFF(6,"Fecha de afiliaci\xf3n "),t.j41(7,"b"),t.EFF(8),t.nI1(9,"date"),t.k0s()(),t.bVm()),2&r){const e=t.XpG(2);t.R7$(4),t.SpI(" ",e.sympathizer.affiliated_political_party||"Sin informaci\xf3n",""),t.R7$(4),t.SpI(" ",t.i5U(9,2,e.sympathizer.affiliation_date,"dd/MM/yyyy")||"Sin informaci\xf3n","")}}function Je(r,a){if(1&r){const e=t.RV6();t.qex(0),t.j41(1,"div",104),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.openMediaModal(o.item))}),t.nrm(2,"img",105),t.k0s(),t.bVm()}if(2&r){const e=t.XpG().$implicit;t.R7$(2),t.FS9("src",e.item,t.B4B)}}function Ze(r,a){if(1&r){const e=t.RV6();t.j41(0,"a",106),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,n=t.XpG(3);return t.Njj(n.openPDFModal(o.item))}),t.j41(1,"div",107),t.nrm(2,"img",108),t.k0s()(),t.j41(3,"p"),t.EFF(4),t.k0s()}if(2&r){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.JRh(i.getFileName(e.item))}}function qe(r,a){if(1&r&&(t.j41(0,"div",102),t.DNE(1,Je,3,1,"ng-container",103)(2,Ze,5,1,"ng-template",null,5,t.C5r),t.k0s()),2&r){const e=a.$implicit,i=t.sdS(3);t.R7$(),t.Y8G("ngIf",1===e.type)("ngIfElse",i)}}function We(r,a){if(1&r&&(t.j41(0,"div",99)(1,"div",100),t.DNE(2,qe,4,2,"div",101),t.k0s()()),2&r){const e=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",e.urlWithType)}}function Ke(r,a){1&r&&(t.j41(0,"p"),t.EFF(1,"No hay evidencia cargada en este registro"),t.k0s())}function Qe(r,a){if(1&r){const e=t.RV6();t.j41(0,"div",11)(1,"mat-stepper",43,3),t.bIt("selectionChange",function(o){t.eBV(e);const n=t.XpG();return t.Njj(n.onStepChange(o))}),t.j41(3,"mat-step")(4,"div",44)(5,"div",11)(6,"div",45)(7,"div",11)(8,"div",12)(9,"div",36)(10,"p",46),t.qSk(),t.j41(11,"svg",47),t.nrm(12,"path",48)(13,"path",49),t.k0s(),t.EFF(14," Folio: "),t.joV(),t.j41(15,"b",50),t.EFF(16),t.k0s()(),t.j41(17,"p",46),t.qSk(),t.j41(18,"svg",51),t.nrm(19,"path",52),t.k0s(),t.EFF(20," Lugar de levantamiento: "),t.joV(),t.j41(21,"b"),t.EFF(22),t.k0s()(),t.j41(23,"p",46),t.qSk(),t.j41(24,"svg",53),t.nrm(25,"path",54),t.k0s(),t.EFF(26," Periodo: "),t.joV(),t.j41(27,"b"),t.EFF(28),t.k0s()()()()()()()(),t.j41(29,"div",44)(30,"div",11)(31,"div",12)(32,"div",36)(33,"div",44)(34,"div",55),t.qSk(),t.j41(35,"svg",56),t.nrm(36,"path",57)(37,"path",58),t.k0s(),t.joV(),t.j41(38,"h5",59),t.EFF(39,"Datos personales"),t.k0s()(),t.j41(40,"div",60)(41,"p",61)(42,"b"),t.EFF(43),t.k0s()(),t.j41(44,"p",61),t.EFF(45,"Fecha de nacimiento "),t.j41(46,"b"),t.EFF(47),t.nI1(48,"date"),t.k0s()(),t.j41(49,"p",61),t.EFF(50,"Sexo "),t.j41(51,"b"),t.EFF(52),t.k0s()(),t.j41(53,"p",61),t.EFF(54,"Estado civil "),t.j41(55,"b"),t.EFF(56),t.k0s()(),t.j41(57,"p",61),t.EFF(58,"CURP "),t.j41(59,"b"),t.EFF(60),t.k0s()(),t.j41(61,"p",61),t.EFF(62,"Correo electr\xf3nico "),t.j41(63,"b"),t.EFF(64),t.k0s()(),t.j41(65,"p",61),t.EFF(66,"Tel\xe9fono local "),t.j41(67,"b"),t.EFF(68),t.k0s()(),t.j41(69,"p",61),t.EFF(70,"Tel\xe9fono celular "),t.j41(71,"b"),t.EFF(72),t.k0s()(),t.j41(73,"p",61),t.EFF(74,"Lugar de nacimiento "),t.j41(75,"b"),t.EFF(76),t.k0s()(),t.j41(77,"p",61),t.EFF(78,"Escolaridad "),t.j41(79,"b"),t.EFF(80),t.k0s()(),t.j41(81,"p",61),t.EFF(82,"Ocupaci\xf3n "),t.j41(83,"b"),t.EFF(84),t.k0s()(),t.j41(85,"p",61),t.EFF(86,"Lugar de trabajo "),t.j41(87,"b"),t.EFF(88),t.k0s()(),t.j41(89,"p",61),t.EFF(90,"Tel\xe9fono de trabajo "),t.j41(91,"b"),t.EFF(92),t.k0s()(),t.DNE(93,Ye,4,1,"p",62),t.j41(94,"div",63)(95,"p",64),t.EFF(96," Redes sociales "),t.nrm(97,"b"),t.k0s(),t.DNE(98,Ue,18,1,"div",65)(99,He,9,1,"div",66),t.k0s()()(),t.nrm(100,"div",67),t.j41(101,"div",68)(102,"div",69),t.qSk(),t.j41(103,"svg",51),t.nrm(104,"path",52),t.k0s(),t.joV(),t.j41(105,"h5",59),t.EFF(106,"Direcci\xf3n"),t.k0s()(),t.j41(107,"div",60)(108,"p",61)(109,"b"),t.EFF(110),t.k0s()(),t.j41(111,"p",61)(112,"b"),t.EFF(113),t.k0s()(),t.j41(114,"p",61),t.EFF(115,"Secci\xf3n electoral "),t.j41(116,"b"),t.EFF(117),t.k0s()(),t.j41(118,"p",61),t.EFF(119,"Distrito local "),t.j41(120,"b"),t.EFF(121),t.k0s()(),t.j41(122,"p",61),t.EFF(123,"Distrito federal "),t.j41(124,"b"),t.EFF(125),t.k0s()(),t.j41(126,"p",61),t.EFF(127,"Referencia "),t.j41(128,"b"),t.EFF(129),t.k0s()()()(),t.nrm(130,"div",67),t.j41(131,"div",68)(132,"div",69),t.qSk(),t.j41(133,"svg",51),t.nrm(134,"path",70),t.k0s(),t.joV(),t.j41(135,"h5",59),t.EFF(136,"Datos adicionales"),t.k0s()(),t.j41(137,"div",60)(138,"p",61),t.EFF(139,"Temas de inter\xe9s "),t.j41(140,"b"),t.EFF(141),t.k0s()(),t.j41(142,"p",61),t.EFF(143,"Apoyos federales "),t.j41(144,"b"),t.EFF(145),t.k0s()(),t.j41(146,"p",61),t.EFF(147,"Afiliado a un partido pol\xedtico "),t.j41(148,"b"),t.EFF(149),t.k0s()(),t.DNE(150,Xe,10,5,"ng-container",66),t.k0s()(),t.nrm(151,"div",67),t.j41(152,"div",34)(153,"div",55),t.qSk(),t.j41(154,"svg",56),t.nrm(155,"path",71)(156,"path",72),t.k0s(),t.joV(),t.j41(157,"h5",59),t.EFF(158,"Clasificaci\xf3n del simpatizante"),t.k0s()(),t.j41(159,"div",60)(160,"p",61),t.EFF(161,"Punto de inter\xe9s "),t.j41(162,"b"),t.EFF(163),t.k0s()(),t.j41(164,"p",61),t.EFF(165,"Tipo de participaci\xf3n "),t.j41(166,"b"),t.EFF(167),t.k0s()(),t.j41(168,"p",61),t.EFF(169,"Actor importante "),t.j41(170,"b"),t.EFF(171),t.k0s()()()()()()()()(),t.j41(172,"mat-step")(173,"div",44)(174,"div",11)(175,"div",45)(176,"div",11)(177,"div",12)(178,"div",36)(179,"div",73)(180,"div",74),t.qSk(),t.j41(181,"svg",51),t.nrm(182,"path",75),t.k0s()(),t.joV(),t.j41(183,"span",76),t.EFF(184,"Evidencia de participaci\xf3n"),t.k0s()(),t.nrm(185,"hr"),t.j41(186,"p")(187,"span",61),t.EFF(188,"Archivos cargados"),t.k0s()(),t.j41(189,"div",45)(190,"div",11)(191,"div",63),t.DNE(192,We,3,1,"div",77)(193,Ke,2,0,"ng-template",null,4,t.C5r),t.k0s()()(),t.j41(195,"p",78),t.EFF(196,"Bit\xe1cora:"),t.k0s(),t.j41(197,"p"),t.EFF(198),t.k0s()()()()()()()(),t.j41(199,"mat-step")(200,"div",45)(201,"div",11),t.nrm(202,"app-visit-history",79),t.k0s(),t.j41(203,"div",11),t.nrm(204,"app-log-history",80),t.k0s()()()()()}if(2&r){const e=t.sdS(194),i=t.XpG();t.R7$(16),t.JRh(i.sympathizer.qrcode),t.R7$(6),t.SpI(" ",i.sympathizer.idlifting||"Sin informaci\xf3n",""),t.R7$(6),t.SpI(" ",i.sympathizer.period||"Sin informaci\xf3n",""),t.R7$(15),t.E5c("",i.sympathizer.name," ",i.sympathizer.next_name," ",i.sympathizer.last_name,""),t.R7$(4),t.JRh(t.i5U(48,45,i.sympathizer.birthDate,"dd/MM/yyyy")||"Sin informaci\xf3n"),t.R7$(5),t.JRh(i.sympathizer.gender||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.civilStatus||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.curp||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.email||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.ph
1one||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.cellPhone||"Sin informaci\xf3n"),t.R7$(4),t.Lme("",i.sympathizer.birth_municipality_name||"Sin informaci\xf3n",", ",i.sympathizer.birth_entity_name||"Sin informaci\xf3n"," "),t.R7$(4),t.JRh(i.sympathizer.scholarship||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.ocupation||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.workplace||"Sin informaci\xf3n"),t.R7$(4),t.JRh(i.sympathizer.cellPhoneOffice||"Sin informaci\xf3n"),t.R7$(),t.Y8G("ngIf",1==i.sympathizer.federalSupport),t.R7$(5),t.Y8G("ngIf",i.sympathizer.instagram),t.R7$(),t.Y8G("ngIf",i.sympathizer.facebook),t.R7$(11),t.LHq(" ",i.sympathizer.street||"Sin calle"," ",i.sympathizer.streetNumExt||"sin n\xfamero ext.",", ",i.sympathizer.streetNumInt||"sin n\xfamero int.",", CP ",i.sympathizer.postalCode||"sin c\xf3digo postal",""),t.R7$(3),t.E5c(" ",i.sympathizer.neighborhood_name||"sin colonia",", ",i.sympathizer.municipality_name||"sin municipio",", ",i.sympathizer.entity_name||"sin estado",""),t.R7$(4),t.SpI(" ",i.sympathizer.electoralSection||"Sin informaci\xf3n",""),t.R7$(4),t.SpI(" ",i.sympathizer.local_district||"Sin informaci\xf3n",""),t.R7$(4),t.SpI(" ",i.sympathizer.federal_district||"Sin informaci\xf3n",""),t.R7$(4),t.SpI(" ",i.sympathizer.reference||"Sin informaci\xf3n",""),t.R7$(12),t.JRh(i.sympathizer.interests||"NO"),t.R7$(4),t.JRh(1==i.sympathizer.federalSupport?"SI, "+i.sympathizer.typeSupport:"NO"),t.R7$(4),t.SpI(" ",1==i.sympathizer.affiliated?"S\xcd":"NO",""),t.R7$(),t.Y8G("ngIf",1==i.sympathizer.affiliated),t.R7$(13),t.SpI(" ",i.sympathizer.POI_name||"NO",""),t.R7$(4),t.SpI(" ",i.sympathizer.participationType||"NO",""),t.R7$(4),t.SpI(" ",i.sympathizer.actorName||"NO",""),t.R7$(21),t.Y8G("ngIf",i.evidence)("ngIfElse",e),t.R7$(6),t.JRh(i.sympathizer.bitacora||"Sin informaci\xf3n"),t.R7$(4),t.Y8G("visits",i.visits),t.R7$(2),t.Y8G("histories",i.sympathizerH)}}function ti(r,a){if(1&r&&(t.j41(0,"div",11)(1,"div",12)(2,"div",36),t.nrm(3,"app-custom-skeleton",42),t.k0s()()()),2&r){const e=t.XpG();t.R7$(3),t.Y8G("config",e.skeletonConfig)}}let ei=(()=>{class r{constructor(e,i,o,n,s,c,h){this.activeRoute=e,this.sympathizerService=i,this.requestSharedService=o,this.router=n,this.userSharedService=s,this.dialog=c,this.alertService=h,this.selectedTab=0,this.sympathizer=[],this.visits=[],this.sympathizerH=[],this.nameAssigned="",this.urlWithType=[],this.loading=!0,this.skeletonInfo=[{rows:1,cols:[{size:"col-12",rows:3,cols:[{}]}],showHr:!1}],this.skeletonConfig=[{rows:2,cols:[{size:"col-6"}],showHr:!0,br:!0},{rows:1,cols:[{size:"col-3"},{size:"col-9",rows:8,cols:[{}]}],showHr:!0,br:!0},{rows:1,cols:[{size:"col-3"},{size:"col-9",rows:6,cols:[{}]}],showHr:!0,br:!0}]}ngOnInit(){this.idSympathizer=this.activeRoute.snapshot.paramMap.get("idSympathizer"),this.url=T.c.apiUrl,this.getData()}openPDFModal(e){this.dialog.open(Oe.c,{width:"70%",height:"70%",data:{pdfUrl:e}}).afterClosed().subscribe(()=>{})}openMediaModal(e){this.dialog.open(Ve.t,{data:{selectedMedia:e}}).afterClosed().subscribe(()=>{})}getData(){(0,D.p)([this.sympathizerService.getSympathizerData(this.idSympathizer),this.userSharedService.getUserRequestInfo(this.idSympathizer)]).subscribe({next:([e,i])=>{this.sympathizer=e,this.nameAssigned=i[0]?.userName||"",this.sympathizer.url_image_participatio&&""!=this.sympathizer.url_image_participatio&&"[]"!=this.sympathizer.url_image_participatio&&(this.evidence=this.requestSharedService.checkForServerLocation(this.sympathizer.url_image_participatio),this.urlWithType=this.evidence.map(o=>({item:o,type:this.determineFileType(o)}))),this.getHistoryData(),this.getVisit()},error:e=>{this.alertService.formConnectionErrorAlert()},complete:()=>this.loading=!1})}getFileName(e){const i=e.split("/");return decodeURIComponent(i[i.length-1])}determineFileType(e){const i=e.split(".").pop()?.toLowerCase();return i?["jpg","jpeg","png","gif"].includes(i)?1:2:null}getHistoryData(){return new Promise((e,i)=>{this.sympathizerService.getHistoryData(this.idSympathizer).subscribe({next:o=>{this.sympathizerH=o,e(o)},error:o=>{i(o)}})})}getVisit(){return new Promise((e,i)=>{this.sympathizerService.getVisitData(this.idSympathizer).subscribe({next:o=>{this.visits=o,e(o)},error:o=>{i(o)}})})}goToEdit(){this.router.navigate(["/home/sympathizer/update/",this.idSympathizer])}onStepChange(e){this.selectedTab=e.selectedIndex}changeSelected(e){this.stepper.selectedIndex=e}static{this.\u0275fac=function(i){return new(i||r)(t.rXU(F.nX),t.rXU(w),t.rXU(N.k),t.rXU(F.Ix),t.rXU(v.D),t.rXU(H.bZ),t.rXU(I.n))}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["app-detail-sympathizer"]],viewQuery:function(i,o){if(1&i&&t.GBs(Ge,5),2&i){let n;t.mGM(n=t.lsd())&&(o.stepper=n.first)}},decls:51,vars:22,consts:[["loader",""],["report","matMenu"],["loaderInfo",""],["stepper",""],["noEvidence",""],["fileTemplate",""],[1,"row","m-2"],[3,"routes"],[1,"col-12","pt-3"],[1,"page-header"],[1,"row","pt-2"],[1,"col-12"],[1,"card"],["class","card-body",4,"ngIf","ngIfElse"],[1,"row","d-flex","justify-content-between"],[1,"col-12","col-md-7"],[1,"nav","nav-underline"],[1,"nav-item"],[1,"nav-link",2,"padding-left","10px","padding-right","10px",3,"click"],[1,"d-flex","align-items-center"],[1,"col-auto"],[1,"mb-3","btn-download"],["mat-button","",1,"btn","btn-light","btn-download-style",3,"matMenuTriggerFor"],[1,"centerImgText"],[2,"padding-right","0.5rem"],["src","assets/icons/DownloadSimple.svg","alt","Download"],[2,"padding-left","1rem"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["id","CaretDown"],["id","Vector","d","M13 6L8 11L3 6","stroke","black","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["xPosition","before"],["href","","target","_blank",1,"text-dark","text-decoration-none"],["mat-menu-item",""],["target","_blank",1,"text-dark","text-decoration-none",3,"href"],[1,"row","pt-4"],["class","col-12",4,"ngIf","ngIfElse"],[1,"card-body"],[1,"row","d-flex","align-items-center"],[1,"col-12","col-md-6"],[2,"font-weight","500","padding","3px","margin","0"],[1,"col-12","col-md-6",2,"display","flex","justify-content","flex-end"],[1,"btn","btn-outline-primary",2,"font-weight","600",3,"click"],[3,"config"],[2,"background-color","#F9FAFB",3,"selectionChange"],[1,"row","pb-4"],[1,"row"],[1,"card-text","d-flex","align-items-center",2,"gap",".5rem"],["width","20","height","20","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15.0002 3.75H18.75C18.9489 3.75 19.1397 3.82902 19.28
103 3.96967C19.421 4.11032 19.5 4.30109 19.5 4.5V20.25C19.5 20.4489 19.421 20.6397 19.2803 20.7803C19.1397 20.921 18.9489 21 18.75 21H5.25C5.05109 21 4.86032 20.921 4.71967 20.7803C4.57902 20.6397 4.5 20.4489 4.5 20.25V4.5C4.5 4.30109 4.57902 4.11032 4.71967 3.96967C4.86032 3.82902 5.05109 3.75 5.25 3.75H8.9998","stroke","#061C3D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M8.25 6.75V6C8.25 5.00544 8.64509 4.05161 9.34835 3.34835C10.0516 2.64509 11.0054 2.25 12 2.25C12.9946 2.25 13.9484 2.64509 14.6517 3.34835C15.3549 4.05161 15.75 5.00544 15.75 6V6.75H8.25Z","stroke","#061C3D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[2,"color","#5E4BFA"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.99984 1.66667C8.23173 1.66667 6.53603 2.36905 5.28579 3.61929C4.03555 4.86953 3.33317 6.56522 3.33317 8.33333C3.33317 10.915 5.01295 13.4202 6.8548 15.3644C7.75868 16.3185 8.66539 17.0996 9.34707 17.6424C9.60077 17.8444 9.82236 18.0127 9.99984 18.1438C10.1773 18.0127 10.3989 17.8444 10.6526 17.6424C11.3343 17.0996 12.241 16.3185 13.1449 15.3644C14.9867 13.4202 16.6665 10.915 16.6665 8.33333C16.6665 6.56522 15.9641 4.86953 14.7139 3.61929C13.4636 2.36905 11.7679 1.66667 9.99984 1.66667ZM9.99984 19.1667C9.53759 19.86 9.53738 19.8599 9.53714 19.8597L9.53475 19.8582L9.5292 19.8544L9.5101 19.8415C9.49388 19.8305 9.47073 19.8147 9.44114 19.7942C9.38195 19.7532 9.29689 19.6934 9.18966 19.616C8.97529 19.4612 8.6718 19.2352 8.30886 18.9462C7.58428 18.3692 6.61599 17.5357 5.64488 16.5106C3.73672 14.4965 1.6665 11.585 1.6665 8.33333C1.6665 6.1232 2.54448 4.00358 4.10728 2.44078C5.67008 0.877974 7.7897 0 9.99984 0C12.21 0 14.3296 0.877974 15.8924 2.44078C17.4552 4.00358 18.3332 6.1232 18.3332 8.33333C18.3332 11.585 16.263 14.4965 14.3548 16.5106C13.3837 17.5357 12.4154 18.3692 11.6908 18.9462C11.3279 19.2352 11.0244 19.4612 10.81 19.616C10.7028 19.6934 10.6177 19.7532 10.5585 19.7942C10.5289 19.8147 10.5058 19.8305 10.4896 19.8415L10.4705 19.8544L10.4649 19.8582L10.4632 19.8593C10.4629 19.8595 10.4621 19.86 9.99984 19.1667ZM9.99984 19.1667L10.4621 19.86C10.1822 20.0467 9.81705 20.0464 9.53714 19.8597L9.99984 19.1667ZM9.99984 6.66667C9.07936 6.66667 8.33317 7.41286 8.33317 8.33333C8.33317 9.25381 9.07936 10 9.99984 10C10.9203 10 11.6665 9.25381 11.6665 8.33333C11.6665 7.41286 10.9203 6.66667 9.99984 6.66667ZM6.6665 8.33333C6.6665 6.49238 8.15889 5 9.99984 5C11.8408 5 13.3332 6.49238 13.3332 8.33333C13.3332 10.1743 11.8408 11.6667 9.99984 11.6667C8.15889 11.6667 6.6665 10.1743 6.6665 8.33333Z","fill","#101828"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-calendar"],["d","M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"],[1,"col-12","col-md-3","d-flex"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"me-2","mb-1"],["d","M12 15C15.3137 15 18 12.3137 18 9C18 5.68629 15.3137 3 12 3C8.68629 3 6 5.68629 6 9C6 12.3137 8.68629 15 12 15Z","stroke","#061C3D","stroke-width","1.5","stroke-miterlimit","10"],["d","M2.90527 20.2491C3.82736 18.6531 5.15322 17.3278 6.74966 16.4064C8.34611 15.485 10.1569 15 12.0002 15C13.8434 15 15.6542 15.4851 17.2506 16.4065C18.8471 17.3279 20.1729 18.6533 21.0949 20.2493","stroke","#061C3D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"font-size-md"],[1,"col-12","col-md-9"],[1,"card-text"],["class","card-text",4,"ngIf"],[1,"d-flex","justify-content-start"],[1,"card-text",2,"margin-right","16px"],["style","margin-right: 16px",4,"ngIf"],[4,"ngIf"],[1,"custom-divider"],[1,"row","py-4"],[1,"col-12","col-md-3","d-flex",2,"gap",".5rem"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.23223 1.56622C3.70107 1.09738 4.33696 0.833984 5 0.833984H11.6667C11.8877 0.833984 12.0996 0.921782 12.25
159 1.07806L17.2559 6.07806C17.4122 6.23434 17.5 6.4463 17.5 6.66732V16.6673C17.5 17.3304 17.2366 17.9662 16.7678 18.4351C16.2989 18.9039 15.663 19.1673 15 19.1673H5C4.33696 19.1673 3.70107 18.9039 3.23223 18.4351C2.76339 17.9662 2.5 17.3304 2.5 16.6673V3.33398C2.5 2.67094 2.76339 2.03506 3.23223 1.56622ZM5 2.50065C4.77899 2.50065 4.56702 2.58845 4.41074 2.74473C4.25446 2.90101 4.16667 3.11297 4.16667 3.33398V16.6673C4.16667 16.8883 4.25446 17.1003 4.41074 17.2566C4.56702 17.4129 4.77899 17.5006 5 17.5006H15C15.221 17.5006 15.433 17.4129 15.5893 17.2566C15.7455 17.1003 15.8333 16.8883 15.8333 16.6673V7.50065H11.6667C11.2064 7.50065 10.8333 7.12755 10.8333 6.66732V2.50065H5ZM12.5 3.67916L14.6548 5.83398H12.5V3.67916ZM5.83333 7.50065C5.83333 7.04041 6.20643 6.66732 6.66667 6.66732H8.33333C8.79357 6.66732 9.16667 7.04041 9.16667 7.50065C9.16667 7.96089 8.79357 8.33398 8.33333 8.33398H6.66667C6.20643 8.33398 5.83333 7.96089 5.83333 7.50065ZM5.83333 10.834C5.83333 10.3737 6.20643 10.0007 6.66667 10.0007H13.3333C13.7936 10.0007 14.1667 10.3737 14.1667 10.834C14.1667 11.2942 13.7936 11.6673 13.3333 11.6673H6.66667C6.20643 11.6673 5.83333 11.2942 5.83333 10.834ZM5.83333 14.1673C5.83333 13.7071 6.20643 13.334 6.66667 13.334H13.3333C13.7936 13.334 14.1667 13.7071 14.1667 14.1673C14.1667 14.6276 13.7936 15.0006 13.3333 15.0006H6.66667C6.20643 15.0006 5.83333 14.6276 5.83333 14.1673Z","fill","#101828"],["d","M18.75 21H5.24996C5.05106 21 4.8603 20.921 4.71965 20.7803C4.57901 20.6397 4.5 20.4489 4.5 20.25V3.75C4.5 3.55109 4.57901 3.36033 4.71965 3.21968C4.8603 3.07903 5.05106 3 5.24996 3H14.2503L19.5 8.25V20.25C19.5 20.4489 19.421 20.6397 19.2803 20.7803C19.1397 20.921 18.9489 21 18.75 21V21Z","stroke","#061C3D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.25 3V8.25H19.5007","stroke","#061C3D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"d-inline-flex"],[1,"img-container"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.16699 3.33268C3.70675 3.33268 3.33366 3.70578 3.33366 4.16602V15.8327C3.33366 16.19 3.55858 16.4948 3.87457 16.6133L12.7444 7.74343C13.0698 7.41799 13.5975 7.41799 13.9229 7.74343L16.667 10.4875V4.16602C16.667 3.70578 16.2939 3.33268 15.8337 3.33268H4.16699ZM18.3337 12.4985V4.16602C18.3337 2.7853 17.2144 1.66602 15.8337 1.66602H4.16699C2.78628 1.66602 1.66699 2.7853 1.66699 4.16602V15.8327C1.66699 17.2134 2.78628 18.3327 4.16699 18.3327H15.8337C17.2144 18.3327 18.3337 17.2134 18.3337 15.8327V12.5002C18.3337 12.4996 18.3337 12.4991 18.3337 12.4985ZM16.667 12.8445L13.3337 9.51119L6.17884 16.666H15.8337C16.2939 16.666 16.667 16.2929 16.667 15.8327V12.8445ZM7.08366 6.66602C6.85354 6.66602 6.66699 6.85256 6.66699 7.08268C6.66699 7.3128 6.85354 7.49935 7.08366 7.49935C7.31378 7.49935 7.50033 7.3128 7.50033 7.08268C7.50033 6.85256 7.31378 6.66602 7.08366 6.66602ZM5.00033 7.08268C5.00033 5.93209 5.93307 4.99935 7.08366 4.99935C8.23425 4.99935 9.16699 5.93209 9.16699 7.08268C9.16699 8.23328 8.23425 9.16602 7.08366 9.16602C5.93307 9.16602 5.00033 8.23328 5.00033 7.08268Z","fill","#101828"],[1,"card-text","ms-1"],["class","cont-doc",4,"ngIf","ngIfElse"],[1,"card-text","pt-4"],[3,"visits"],[3,"histories"],[2,"margin-right","16px"],["target","_blank",3,"href"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["id","Group"],["id","Vector","d","M12 2.16094C15.2063 2.16094 15.5859 2.175 16.8469 2.23125C18.0188 2.28281 18.6516 2.47969 19.0734 2.64375C19.6313 2.85938 20.0344 3.12188 20.4516 3.53906C20.8734 3.96094 21.1313 4.35938 21.3469 4.91719C21.5109 5.33906 21.7078 5.97656 21.7594 7.14375C21.8156 8.40937 21.8297 8.78906 21.8297 11.9906C21.8297 15.1969 21.8156 15.5766 21.7594 16.8375C21.7078 18.0094 21.5109 18.6422 21.3469 19.0641C21.1313 19.6219 20.8687 20.025 20.4516 20.4422C20.0297 20.8641 19.6313 21.1219 19.0734 21.3375C18.6516 21.5016 18.0141 21.6984 16.8469 21.75C15.5813 21.8062 15.2016 21.8203 12 21.8203C8.79375 21.8203 8.41406 21.8062 7.15313 21.75C5.98125 21.6984 5.34844 21.5016 4.92656 21.3375C4.36875 21.1219 3.96563 20.8594 3.54844 20.4422C3.12656 20.0203 2.86875 19.6219 2.65313 19.0641C2.48906 18.6422 2.29219 18.0047 2.24063 16.8375C2.18438 15.5719 2.17031 15.1922 2.17031 11.9906C2.17031 8.78438 2.18438 8.40469 2.24063 7.14375C2.29219 5.97187 2.48906 5.33906 2.65313 4.91719C2.86875 4.35938 3.13125 3.95625 3.54844 3.53906C3.97031 3.11719 4.36875 2.85938 4.92656 2.64375C5.34844 2.47969 5.98594 2.28281 7.15313 2.23125C8.41406 2.175 8.79375 2.16094 12 2.16094ZM12 0C8.74219 0 8.33438 0.0140625 7.05469 0.0703125C5.77969 0.126563 4.90313 0.332812 4.14375 0.628125C3.35156 0.9375 2.68125 1.34531 2.01563 2.01562C1.34531 2.68125 0.9375 3.35156 0.628125 4.13906C0.332812 4.90313 0.126563 5.775 0.0703125 7.05C0.0140625 8.33437 0 8.74219 0 12C0 15.2578 0.0140625 15.6656 0.0703125 16.9453C0.126563 18.2203 0.332812 19.0969 0.628125 19.8563C0.9375 20.6484 1.34531 21.3188 2.01563 21.9844C2.68125 22.65 3.35156 23.0625 4.13906 23.3672C4.90313 23.6625 5.775 23.8687 7.05 23.925C8.32969 23.9812 8.7375 23.9953 11.9953 23.9953C15.2531 23.9953 15.6609 23.9812 16.9406 23.925C18.2156 23.8687 19.0922 23.6625 19.8516 23.3672C20.6391 23.0625 21.3094 22.65 21.975 21.9844C22.6406 21.3188 23.0531 20.6484 23.3578 19.8609C23.6531 19.0969 23.8594 18.225 23.9156 16.95C23.9719 15.6703 23.9859
115.2625 23.9859 12.0047C23.9859 8.74688 23.9719 8.33906 23.9156 7.05938C23.8594 5.78438 23.6531 4.90781 23.3578 4.14844C23.0625 3.35156 22.6547 2.68125 21.9844 2.01562C21.3188 1.35 20.6484 0.9375 19.8609 0.632812C19.0969 0.3375 18.225 0.13125 16.95 0.075C15.6656 0.0140625 15.2578 0 12 0Z","fill","url(#paint0_radial_1314_20390)"],["id","Vector_2","d","M12 5.83594C8.59688 5.83594 5.83594 8.59688 5.83594 12C5.83594 15.4031 8.59688 18.1641 12 18.1641C15.4031 18.1641 18.1641 15.4031 18.1641 12C18.1641 8.59688 15.4031 5.83594 12 5.83594ZM12 15.9984C9.79219 15.9984 8.00156 14.2078 8.00156 12C8.00156 9.79219 9.79219 8.00156 12 8.00156C14.2078 8.00156 15.9984 9.79219 15.9984 12C15.9984 14.2078 14.2078 15.9984 12 15.9984Z","fill","url(#paint1_radial_1314_20390)"],["id","Vector_3","d","M19.8469 5.59141C19.8469 6.38829 19.2 7.03047 18.4078 7.03047C17.6109 7.03047 16.9688 6.3836 16.9688 5.59141C16.9688 4.79453 17.6156 4.15234 18.4078 4.15234C19.2 4.15234 19.8469 4.79922 19.8469 5.59141Z","fill","#6C3DCB"],["id","paint0_radial_1314_20390","cx","0","cy","0","r","1","gradientUnits","userSpaceOnUse","gradientTransform","translate(0.135118 26.3242) scale(34.2991 34.3125)"],["stop-color","#FEC053"],["offset","0.33","stop-color","#F2203E"],["offset","0.65","stop-color","#B729A8"],["offset","1","stop-color","#5342D6"],["id","paint1_radial_1314_20390","cx","0","cy","0","r","1","gradientUnits","userSpaceOnUse","gradientTransform","translate(5.90538 19.3606) scale(17.6288 17.6288)"],["id","Social icon","clip-path","url(#clip0_1268_23710)"],["id","Vector","d","M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z","fill","#1877F2"],["id","Vector_2","d","M16.6711 15.4688L17.2031 12H13.875V9.75C13.875 8.80102 14.34 7.875 15.8306 7.875H17.3438V4.92188C17.3438 4.92188 15.9705 4.6875 14.6576 4.6875C11.9166 4.6875 10.125 6.34875 10.125 9.35625V12H7.07812V15.4688H10.125V23.8542C11.3674 24.0486 12.6326 24.0486 13.875 23.8542V15.4688H16.6711Z","fill","white"],["id","clip0_1268_23710"],["width","24","height","24","fill","white"],[1,"cont-doc"],[1,"row",2,"text-align","center"],["class","col",4,"ngFor","ngForOf"],[1,"col"],[4,"ngIf","ngIfElse"],[1,"cont-doc",3,"click"],[1,"thumbnail",3,"src"],[1,"d-flex",2,"color","black","cursor","pointer",3,"click"],[1,"thumbnail",2,"background-color","#f0f0f0"],["src","assets/icons/pdf.svg","alt","Descripci\xf3n de la imagen 2",1,"pdf-logo"]],template:function(i,o){if(1&i){const n=t.RV6();t.j41(0,"div",6),t.nrm(1,"page-header",7),t.j41(2,"div",8)(3,"h5",9),t.EFF(4,"Datos del simpatizante \xa0"),t.nrm(5,"small"),t.k0s(),t.j41(6,"div",10)(7,"div",11)(8,"div",12),t.DNE(9,Be,13,6,"div",13)(10,Ae,2,1,"ng-template",null,0,t.C5r),t.k0s()(),t.j41(12,"div",8)(13,"div",14)(14,"div",15)(15,"ul",16)(16,"li",17)(17,"a",18),t.bIt("click",function(){return t.eBV(n),t.Njj(o.changeSelected(0))}),t.j41(18,"div",19),t.EFF(19," Datos generales "),t.k0s()()(),t.j41(20,"li",17)(21,"a",18),t.bIt("click",function(){return t.eBV(n),t.Njj(o.changeSelected(1))}),t.j41(22,"div",19),t.EFF(23," Documentaci\xf3n "),t.k0s()()(),t.j41(24,"li",17)(25,"a",18),t.bIt("click",function(){return t.eBV(n),t.Njj(o.changeSelected(2))}),t.j41(26,"div",19),t.EFF(27," Historial "),t.k0s()()()()(),t.j41(28,"div",20)(29,"div",21)(30,"button",22)(31,"div",23)(32,"div",24),t.nrm(33,"img",25),t.k0s(),t.EFF(34," Descargar datos "),t.j41(35,"div",26),t.qSk(),t.j41(36,"svg",27)(37,"g",28),t.nrm(38,"path",29),t.k0s()()()()(),t.joV(),t.j41(39,"mat-menu",30,1)(41,"a",31)(42,"button",32),t.EFF(43,"PDF"),t.k0s()(),t.j41(44,"a",33)(45,"button",32),t.EFF(46,"Excel"),t.k0s()()()()()()()(),t.j41(47,"div",34),t.DNE(48,Qe,205,48,"div",35)(49,ti,4,1,"ng-template",null,2,t.C5r),t.k0s()()()}if(2&i){const n=t.sdS(11),s=t.sdS(40),c=t.sdS(50);t.R7$(),t.Y8G("routes",t.sMw(18,Le,t.lJ4(15,Me),t.lJ4(16,Pe),t.lJ4(17,De))),t.R7$(8),t.Y8G("ngIf",!o.loading)("ngIfElse",n),t.R7$(8),t.AVh("active",0===o.selectedTab),t.R7$(4),t.AVh("active",1===o.selectedTab),t.R7$(4),t.AVh("active",2===o.selectedTab),t.R7$(5),t.Y8G("matMenuTriggerFor",s),t.R7$(14),t.FCK("href","",o.url,"v2/reports/sympathizers/excel/detail/",o.sympathizer.idSympathizer,"",t.B4B),t.R7$(4),t.Y8G("ngIf",!o.loading)("ngIfElse",c)}},dependencies:[u.Sq,u.bT,f.kk,f.fb,f.Cp,k.$z,V.V5,V.M6,y.y,rt.A,nt.M,at.F,u.vh],styles:['@charset "UTF-8";.img-container[_ngcontent-%COMP%]{padding-right:5px;display:flex;justify-content:center}.img[_ngcontent-%COMP%]{width:25px}.card-text[_ngcontent-%COMP%]{font-weight:500}.nav-link[_ngcontent-%COMP%]{color:#000;-webkit-text-decoration:black;text-decoration:black;stroke:#000;fill:#000}.active[_ngcontent-%COMP%]{color:#5e4bfa!important;stroke:#5e4bfa;fill:#5e4bfa}.btn-light[_ngcontent-%COMP%]{border:1px solid var(--Gray-300, #B4BBC5);background-color:#fff;box-shadow:0 1px 2px #1018280d;border-radius:.65rem;height:48px;padding:0 1rem}.thumbnail[_ngcontent-%COMP%]{width:20vw;height:15vw;object-fit:cover;margin:5px;border-radius:10px;overflow:hidden;display:flex;justify-content:center;align-items:center}.pdf-logo[_ngcontent-%COMP%]{width:20%;height:auto;display:block}.cont-doc[_ngcontent-%COMP%]{display:flex;flex-direction:column}']})}}return r})();
1var C=l(824),G=l(7271),st=l(453),S=l(9629),b=l(6028),j=l(2271),E=l(4910);const ii=[{path:"create",component:K,canActivate:[C.K],data:{guards:[S.h,b.A,j.n,E.a]}},{path:"list",component:we,canActivate:[C.K],data:{guards:[S.h,b.A,j.n,E.a,G.b,st.d]}},{path:"detail/:idSympathizer",component:ei,canActivate:[C.K],data:{guards:[S.h,b.A,j.n,E.a,G.b,st.d]}},{path:"update/:idSympathizer",component:K,canActivate:[C.K],data:{guards:[S.h,b.A,j.n,E.a,G.b]}}];let oi=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275mod=t.$C({type:r})}static{this.\u0275inj=t.G2t({imports:[F.iI.forChild(ii),F.iI]})}}return r})();var ri=l(206),ni=l(8771),ai=l(541);let si=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275mod=t.$C({type:r})}static{this.\u0275inj=t.G2t({imports:[u.MD,oi,p.YN,p.X1,f.Cn,ri.m_,k.Hl,O.ed,ni.h,V.aP,ai.G,y.y,rt.A,Q.D6,tt.Q,et.w,q.Ve,nt.M,at.F,W.k]})}}return r})()}}]);
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.