PageSourceSearch

https://sanfrancisco-antioquia.gov.co/chunk-JBGNGGB3.js

js sanfrancisco-antioquia.gov.co collected 2026-10-03 01:09:22 UTC 131,346 bytes, 6 lines download raw bytes

1import{a as at}from"./chunk-JZ5Q7DWH.js";import{a as lt}from"./chunk-FJXVFFSC.js";import{a as rt}from"./chunk-NI37FYAP.js";import{a as ot}from"./chunk-UO33UFPH.js";import{a as it}from"./chunk-63JXGLGC.js";import{a as nt}from"./chunk-P7GCTXYA.js";import{a as tt}from"./chunk-BQDM7SLO.js";import{b as Ke,c as Je,d as Ye}from"./chunk-EW27226T.js";import"./chunk-XW23I7H5.js";import"./chunk-Z57MTNEF.js";import"./chunk-O4DRHE5P.js";import"./chunk-535P5NAU.js";import"./chunk-G5UL7PGF.js";import"./chunk-56GIQ6PT.js";import"./chunk-CD2CGC5S.js";import{a as $}from"./chunk-GBRQKVYB.js";import{a as ke}from"./chunk-CJWEDDVW.js";import{a as $e}from"./chunk-GH2RV5OT.js";import"./chunk-YWAL7HVF.js";import"./chunk-LDL32NDY.js";import"./chunk-YFREARA7.js";import"./chunk-AGCAGPAP.js";import"./chunk-AHQSOXDD.js";import{a as Me}from"./chunk-GCE2MEC6.js";import{a as Xe}from"./chunk-W2ZMKN4C.js";import{a as et}from"./chunk-GHPWOSPN.js";import"./chunk-UVDUOVTO.js";import"./chunk-DQPLM2C5.js";import{a as Y}from"./chunk-MIHC4Y75.js";import{b as Le,d as De,e as Pe,g as we}from"./chunk-SB5L2XE4.js";import{A as Qe,B as Ze,D as Ge,b as qe,c as Be,g as Ae,h as Ne,j as Ue,l as We,m as He,o as je,x as Re,y as ze,z as Oe}from"./chunk-ICJV4PL6.js";import{a as Ve}from"./chunk-RIRGXRXY.js";import{a as X}from"./chunk-3GN2FC7K.js";import{t as J}from"./chunk-47CSRN7C.js";import{b as me,c as K}from"./chunk-SKH2MXBC.js";import{D as G,i as be,k as Se,n as Fe,v as Ee,y as Te,z as ae}from"./chunk-BQLJE42W.js";import{$b as P,B as se,Db as E,Dc as Ie,H as oe,Ib as S,Jb as c,Nb as H,O as le,Pb as Ce,Qb as ye,R as _e,Rb as he,Sb as b,Tb as p,Ub as Q,V as ce,Vb as A,Xa as m,Ya as q,Zb as L,_ as re,_b as D,bc as xe,da as pe,dc as Z,ec as h,fa as ue,ib as g,k as ne,lb as j,mb as _,na as f,oa as C,pa as ve,sb as fe,tb as N,v as de,vb as U,wb as W,xb as d,ya as ge,yb as r,zb as F}from"./chunk-YE3BF7DR.js";import{f as ie}from"./chunk-4IDNTCH7.js";var ee=class n{constructor(l,e,i,t,o,a,s,v){this.elementRef=l;this.modalService=e;this.settingService=i;this.fileService=t;this.appService=o;this.eventEmitterService=a;this.sharedSignalsService=s;this.authService=v}multiple;reg;maxsize;hangout;obj;contentsize;document;pqr=!1;nativeElement;ngOnInit(){this.nativeElement=this.elementRef.nativeElement,this.setupDirective()}setupDirective(){let l=!!this.multiple,e=(u,y)=>u===null||u.test(y),i=(u,y)=>{let w=window.URL||window.webkitURL;if(w&&this.contentsize){let B=new Image;B.onload=()=>{y.call(this,u)},B.src=w.createObjectURL(u)}else y.call(this,u)},t=(u,y)=>{!isNaN(y)&&y!==100&&(u.progress=y+"%")},o=(u,y)=>{this.fileService.progressFile&&(this.fileService.progressFile.splice(this.fileService.progressFile.indexOf(u),1),this.sharedSignalsService.progressFile.set(this.fileService.progressFile));let w=this.obj;l?(w.files||(w.files=[]),(!w.imagePrincipal||!w.imagePrincipal.filePath)&&y.isImage?w.imagePrincipal={fileID:y.fileID,filePath:y.filePath}:w.files.push(y)):(this.document?(w.embedImage=null,w.embedUrl=null,w.url=null,w.files=[],w.files.push(y)):this.hangout?w.imagePrincipal={fileID:y.fileID,filePath:y.filePath}:(w.urlVideo=null,w.embedUrl=null,w.video=null,w.imageUrl=y.filePath,w.fileID=y.fileID,y.name&&(w.fileName=y.name)),this.eventEmitterService.endupload.emit()),this.nativeElement.value=""},a=u=>{this.modalService.showAlert(this.settingService.settings.resources["File.ErrorUploadServer"]),this.fileService.progressFile&&(this.fileService.progressFile.splice(this.fileService.progressFile.indexOf(u),1),this.sharedSignalsService.progressFile.set(this.fileService.progressFile)),this.nativeElement.value=""},s=u=>{let y=this.reg?new RegExp(this.reg,"gi"):null,w=this.authService.user.isAuthorize?this.settingService.settings.general.maxUploadFileSizeAdminUsers:this.settingService.settings.general.maxUploadFileSizePublicUsers;if(u.size===0)this.modalService.showAlert("El archivo que intentas subir no tiene peso"),this.nativeElement.value="";else if(u.size>w)this.modalService.showAlert(this.appService.format(this.settingService.settings.resources["File.ErrorUpload"],Math.round(w/1024/1024).toString())),this.nativeElement.value="";else if(u.size>this.maxsize)this.modalService.showAlert(this.appService.format(this.settingService.settings.resources["File.ErrorUpload"],Math.round(parseInt(this.maxsize)/1024/1024).toString())),this.nativeElement.value="";else if(e(y,u.name)){this.fileService.progressFile||(this.fileService.progressFile=[],this.sharedSignalsService.progressFile.set(this.fileService.progressFile));let B={progress:0,name:u.name};this.fileService.progressFile.push(B),this.sharedSignalsService.progressFile.set(this.fileService.progressFile),this.pqr?this.fileService.uploadFilePqr(u,null,x=>t(B,x)).subscribe({next:x=>o(B,x),error:()=>a(B)}):this.fileService.upload(u,null,x=>t(B,x)).subscribe({next:x=>o(B,x),error:()=>a(B)})}else this.modalService.showAlert(this.settingService.settings.resources["File.ErrorUploadType"]),this.nativeElement.value=""},v=()=>{if(this.nativeElement.files&&this.nativeElement.files.length)for(let u=0;u<this.nativeElement.files.length;u++){let y=this.reg?new RegExp(this.reg,"gi"):null;e(y,this.nativeElement.files[u].name)?i(this.nativeElement.files[u],s):(this.modalService.showAlert(this.settingService.settings.resources["File.ErrorUploadType"]),this.nativeElement.value="")}};this.nativeElement.addEventListener("change",v)}static \u0275fac=function(e){return new(e||n)(q(ge),q(J),q(K),q(Xe),q(Me),q(X),q(Y),q($))};static \u0275dir=ue({type:n,selectors:[["","appUpload",""]],inputs:{multiple:"multiple",reg:"reg",maxsize:"maxsize",hangout:"hangout",obj:"obj",contentsize:"contentsize",document:"document",pqr:"pqr"},standalone:!0})};var te=class n{constructor(l,e){this.http=l;this.http=new G(e)}m2mToken=null;tokenExpiration=0;getM2MToken(){let l=Date.now();if(this.m2mToken&&this.tokenExpiration>l)return ne(this.m2mToken);let{tokenEndpoint:e,client_id:i,client_secret:t,grant_type:o,scope:a}=me.m2mAuth,s=btoa(`${i}:${t}`),v=new ae({"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${s}`}),u=new URLSearchParams;return u.set("grant_type",o),u.set("scope",a),this.http.post(e,u.toString(),{headers:v}).pipe(_e(y=>{this.m2mToken=y.access_token,this.tokenExpiration=l+(y.expires_in-60)*1e3}),le(y=>ne(y.access_token)),se(y=>{throw y}))}getHeaders(l){return new ae({"X-External-Authorization":`Bearer ${l}`})}buildPqrsUrl(l){let e=me.PqrsMCD;return e&&e.length?`${e}${l}`:l}getAll(){return this.getM2MToken().pipe(le(l=>{let e=this.getHeaders(l);return this.http.get(this.buildPqrsUrl("/api/v1/complaintformusertype/"),{headers:e})}))}static \u0275fac=function(e){return new(e||n)(re(G),re(Te))};static \u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"})};var ft=["form"],V=(n,l)=>({errorInput:n,OkInput:l}),k=(n,l)=>({errorLabel:n,OkLabel:l}),R=(n,l)=>({errori:n,Oki:l}),Ct=n=>({width:n}),st=n=>({"btn-save btn-save--pqrs":!0,"disabled-button":n});function yt(n,l){n&1&&(d(0,"h2",11),p(1,"Solicita informaci\xF3n"),r())}function ht(n,l){n&1&&(d(0,"h2",11),p(1," Env\xEDa una petici\xF3n o un derecho de petici\xF3n "),r())}function xt(n,l){n&1&&(d(0,"h2",11),p(1,"Env\xEDa una queja"),r())}function It(n,l){n&1&&(d(0,"h2",11),p(1,"Env\xEDa un reclamo"),r())}function bt(n,l){n&1&&(d(0,"h2",11),p(1,"Env\xEDa una denuncia"),r())}function St(n,l){n&1&&(d(0,"h2",11),p(1,"Env\xEDa una sugerencia"),r())}function Ft(n,l){n&1&&(d(0,"h2",12),p(1," Agenda tu cita "),r())}function Et(n,l){n&1&&(d(0,"h2",12),p(1," Solicita datos personales "),r())}function Tt(n,l){n&1&&(d(0,"h2",11),p(1,"Env\xEDa una Felicitaci\xF3n"),r())}function Lt(n,l){if(n&1){let e=E();
1d(0,"div")(1,"h3"),p(2,"Selecciona de que manera desea registrar la solicitud"),r(),d(3,"div",14)(4,"div",15),S("click",function(){f(e);let t=c(4);return C(t.loginFirst())}),d(5,"input",16),S("change",function(t){f(e);let o=c(4);return C(o.validEmailVerifReq(t))}),P("ngModelChange",function(t){f(e);let o=c(4);return D(o.model.anonymous,t)||(o.model.anonymous=t),C(t)}),r(),d(6,"label",17),p(7,"A nombre personal"),r()(),d(8,"div",18)(9,"input",19),S("change",function(t){f(e);let o=c(4);return C(o.validEmailVerifReq(t))}),P("ngModelChange",function(t){f(e);let o=c(4);return D(o.model.anonymous,t)||(o.model.anonymous=t),C(t)}),r(),d(10,"label",20),p(11,"An\xF3nima"),r()()()()}if(n&2){let e=c(4);m(5),_("disabled",!e.user.name),L("ngModel",e.model.anonymous),_("value",!1),m(4),L("ngModel",e.model.anonymous),_("value",!0)}}function Dt(n,l){n&1&&(d(0,"h3"),p(1," A continuaci\xF3n completa tus datos para dar respuesta a tu solicitud "),r())}function Pt(n,l){n&1&&(d(0,"h3"),p(1," Datos del solicitante "),r())}function wt(n,l){n&1&&(d(0,"p"),p(1," Los campos con asterisco (*) son obligatorios "),r())}function kt(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Vt(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"complaintFormUserTypeID","complaintFormUserTypeIDOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","complaintFormUserTypeIDOption-",e.complaintFormUserTypeID,""),j("data-value",e.complaintFormUserTypeID),m(),A(" ",e.name," ")}}function Mt(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el tipo de solicitante"),r())}function qt(n,l){if(n&1&&(d(0,"div",55),g(1,Mt,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("complaintFormUserTypeID"))==null||e.errors==null?null:e.errors.required)}}function Bt(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Tipo de persona "),g(3,kt,2,0,"span",7),r(),d(4,"div",48)(5,"div",49),S("keyup",function(t){f(e);let o=c(5);return C(o.keyup(t,"complaintFormUserTypeID","complaintFormUserTypeIDOption"))}),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.complaintFormUserType,t)||(o.model.complaintFormUserType=t),C(t)}),S("click",function(){f(e);let t=c(5);return C(t.clickSelectCustom("complaintFormUserTypeID"))}),d(6,"div",50),p(7," Escoger "),r(),d(8,"div",51)(9,"div",52),S("click",function(t){f(e);let o=c(5);return C(o.clickOptionSelectCustom(t,"complaintFormUserTypeID","complaintFormUserTypeIDOption",null))}),p(10," Escoger "),r(),U(11,Vt,2,4,"div",53,N),r()(),F(13,"i",47),r(),g(14,qt,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(3);let a=b(2),s=c(2);m(),_("ngClass",h(7,k,((e=a.form.get("complaintFormUserTypeID"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("complaintFormUserTypeID"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("complaintFormUserTypeID"))!=null&&e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("complaintFormUserTypeID"))!=null&&e.pristine)||a.submitted))),m(2),_("ngIf",!s.model.anonymous),m(2),L("ngModel",s.model.complaintFormUserType),_("required",!s.model.anonymous),m(),_("ngClass",h(10,V,((i=a.form.get("complaintFormUserTypeID"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("complaintFormUserTypeID"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("complaintFormUserTypeID"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("complaintFormUserTypeID"))!=null&&i.pristine)||a.submitted))),m(5),W(s.complaintFormUserTypes),m(2),_("ngClass",h(13,R,((t=a.form.get("complaintFormUserTypeID"))==null?null:t.invalid)&&!s.model.anonymous&&!((t=a.form.get("complaintFormUserTypeID"))!=null&&t.pristine),!((t=a.form.get("complaintFormUserTypeID"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("complaintFormUserTypeID"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("complaintFormUserTypeID"))==null?null:o.invalid)&&(!((o=a.form.get("complaintFormUserTypeID"))!=null&&o.pristine)||a.submitted))}}function At(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Nt(n,l){n&1&&(d(0,"span"),p(1,"Debes indicar tu primer nombre"),r())}function Ut(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),r())}function Wt(n,l){if(n&1&&(d(0,"div",55),g(1,Nt,2,0,"span",7)(2,Ut,2,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("firstName"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("firstName"))==null||i.errors==null?null:i.errors.minlength)}}function Ht(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Primer nombre "),g(3,At,2,0,"span",7),r(),d(4,"input",57),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.firstName,t)||(o.model.firstName=t),C(t)}),r(),g(5,Wt,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(7,k,((e=o.form.get("firstName"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("firstName"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("firstName"))!=null&&e.invali
1d)&&!a.model.anonymous)),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(10,V,((i=o.form.get("firstName"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("firstName"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("firstName"))!=null&&i.invalid)&&!a.model.anonymous))("chars","chars")("required",!a.model.anonymous),L("ngModel",a.model.firstName),m(),_("ngIf",((t=o.form.get("firstName"))==null?null:t.invalid)&&!a.model.anonymous&&(!((t=o.form.get("firstName"))!=null&&t.pristine)||o.submitted))}}function jt(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),r())}function Rt(n,l){if(n&1&&(d(0,"div",55),g(1,jt,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("lastName"))==null||e.errors==null?null:e.errors.minlength)}}function zt(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label"),p(2,"Segundo nombre"),r(),d(3,"input",58),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.lastName,t)||(o.model.lastName=t),C(t)}),r(),g(4,Rt,2,1,"div",25),r()}if(n&2){let e;c(4);let i=b(2),t=c(2);m(3),_("chars","chars"),L("ngModel",t.model.lastName),m(),_("ngIf",((e=i.form.get("lastName"))==null?null:e.invalid)&&(((e=i.form.get("lastName"))==null?null:e.pristine)||i.submitted))}}function Ot(n,l){if(n&1&&(d(0,"div",56),g(1,Ht,6,13,"div",21)(2,zt,5,3,"div",21),r()),n&2){let e=c(5);m(),_("ngIf",(e.model.complaintFormUserType==null?null:e.model.complaintFormUserType.name)!=="Persona jur\xEDdica"),m(),_("ngIf",(e.model.complaintFormUserType==null?null:e.model.complaintFormUserType.name)!=="Persona jur\xEDdica")}}function Qt(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Zt(n,l){n&1&&(d(0,"span"),p(1,"Debes indicar tu primer apellido"),r())}function Gt(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),r())}function Kt(n,l){if(n&1&&(d(0,"div",55),g(1,Zt,2,0,"span",7)(2,Gt,2,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("firstSurName"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("firstSurName"))==null||i.errors==null?null:i.errors.minlength)}}function Jt(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Primer apellido "),g(3,Qt,2,0,"span",7),r(),d(4,"input",59),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.firstSurName,t)||(o.model.firstSurName=t),C(t)}),r(),g(5,Kt,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(7,k,((e=o.form.get("firstSurName"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("firstSurName"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("firstSurName"))!=null&&e.invalid)&&!a.model.anonymous)),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(10,V,((i=o.form.get("firstSurName"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("firstSurName"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("firstSurName"))!=null&&i.invalid)&&!a.model.anonymous))("chars","chars")("required",!a.model.anonymous),L("ngModel",a.model.firstSurName),m(),_("ngIf",((t=o.form.get("firstSurName"))==null?null:t.invalid)&&!a.model.anonymous&&(!((t=o.form.get("firstSurName"))!=null&&t.pristine)||o.submitted))}}function Xt(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),r())}function Yt(n,l){if(n&1&&(d(0,"div",55),g(1,Xt,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("lastSurName"))==null||e.errors==null?null:e.errors.minlength)}}function $t(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label"),p(2,"Segundo apellido"),r(),d(3,"input",60),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.lastSurName,t)||(o.model.lastSurName=t),C(t)}),r(),g(4,Yt,2,1,"div",25),r()}if(n&2){let e;c(4);let i=b(2),t=c(2);m(3),_("chars","chars"),L("ngModel",t.model.lastSurName),m(),_("ngIf",((e=i.form.get("lastSurName"))==null?null:e.invalid)&&(((e=i.form.get("lastSurName"))==null?null:e.pristine)||i.submitted))}}function ei(n,l){if(n&1&&(d(0,"div",56),g(1,Jt,6,13,"div",21)(2,$t,5,3,"div",21),r()),n&2){let e=c(5);m(),_("ngIf",(e.model.complaintFormUserType==null?null:e.model.complaintFormUserType.name)!=="Persona jur\xEDdica"),m(),_("ngIf",(e.model.complaintFormUserType==null?null:e.model.complaintFormUserType.name)!=="Persona jur\xEDdica")}}function ti(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function ii(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"identificationTypeID","identificationTypeIDOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","identificationTypeIDOption-",e.identificationTypeID,""),j("data-value",e.identificationTypeID),m(),A(" ",e.name," ")}}function ni(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el tipo de identificaci\xF3n"),r())}function oi(n,l){if(n&1&&(d(0,"div",55),g(1,ni,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("identificationTypeID"))==null||e.errors==null?null:e.errors.required)}}function li(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function ri(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el n\xFAmero de identificaci\xF3n"),F(2,"br"),r())}function ai(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar solo n\xFAmeros sin espacios"),F(2,"br"),r())}function mi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 5 n\xFAmeros"),r())}function di(n,l){if(n&1&&(d(0,"div",55),g(1,ri,3,0,"span",7)(2,ai,3,0,"span",7)(3,mi,2,0,"span",7),r()),n&2){let e,i,t;c(4);let o=b(2);m(),_("ngIf",(e=o.form.get("identification"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=o.form.get("identification"))==null||i.errors==null?null:i.errors.pattern),m(),_("ngIf",(t=o.form.get("identification"))==null||t.errors==null?null:t.errors.minlength)}}function si(n,l){if(n&1){let e=E();d(0,"div",56)(1,"div",46)(2,"label",47),p(3,"Tipo de identificaci\xF3n "),g(4,ti,2,0,"span",7),r(),d(5,"div",48)(6,"div",61),S("keyup",function(t){f(e);let o=c(5);return C(o.keyup(t,"identificationTypeID","identificationTypeIDOption"))}),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.identificationType,t)||(o.model.identificationType=t),C(t)}),S("click",function(){f(e);let t=c(5);return C(t.clickSelectCustom("identificationTypeID"))}),d(7,"div",50),p(8," Escoger "),r(),d(9,"div",62)(10,"div",63),S("click",function(t){f(e);let o=c(5);return C(o.clickOptionSelectCustom(t,"identificationTypeID","identificationTypeIDOption",null))}),p(11," Escoger "),r(),U(12,ii,2,4,"div",53,N),r()(),F(14,"i",47),r(),g(15,oi,2,1,"div",25),r(),d(16,"div",46)(17,"label",47),p(18,"N\xFAmero de identificaci\xF3n "),g(19,li,2,0,"span",7),r(),d(20,"input",64),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.identification,t)||(o.model.identification=t),C(t)}),r(),g(21,di,4,3,"div",25),F(22,"div",65),r()()}if(n&2){let e,i,t,o,a,s,v;c(3);let u=b(2),y=c(2);m(2),_("ngClass",h(14,k,((e=u.form.get("identificationTypeID"))==null?null:e.invalid)&&!y.model.anonymous&&(!((e=u.form.get("identificationTypeID"))!=null&&e.pristine)||u.submitted),!((e=u.form.get("identificationTypeID"))!=null&&e.invali
1d)&&!y.model.anonymous&&(!((e=u.form.get("identificationTypeID"))!=null&&e.pristine)||u.submitted))),m(2),_("ngIf",!y.model.anonymous),m(2),L("ngModel",y.model.identificationType),_("required",!y.model.anonymous),m(),_("ngClass",h(17,V,((i=u.form.get("identificationTypeID"))==null?null:i.invalid)&&!y.model.anonymous&&(!((i=u.form.get("identificationTypeID"))!=null&&i.pristine)||u.submitted),!((i=u.form.get("identificationTypeID"))!=null&&i.invalid)&&!y.model.anonymous&&(!((i=u.form.get("identificationTypeID"))!=null&&i.pristine)||u.submitted))),m(5),W(y.identificationTypes),m(2),_("ngClass",h(20,R,((t=u.form.get("identificationTypeID"))==null?null:t.invalid)&&!y.model.anonymous&&!((t=u.form.get("identificationTypeID"))!=null&&t.pristine),!((t=u.form.get("identificationTypeID"))!=null&&t.invalid)&&!y.model.anonymous&&!((t=u.form.get("identificationTypeID"))!=null&&t.pristine))),m(),_("ngIf",((o=u.form.get("identificationTypeID"))==null?null:o.invalid)&&!y.model.anonymous&&(!((o=u.form.get("identificationTypeID"))!=null&&o.pristine)||u.submitted)),m(2),_("ngClass",h(23,k,((a=u.form.get("identification"))==null?null:a.invalid)&&!y.model.anonymous&&(!((a=u.form.get("identification"))!=null&&a.pristine)||u.submitted),!((a=u.form.get("identification"))!=null&&a.invalid)&&!y.model.anonymous)),m(2),_("ngIf",!y.model.anonymous),m(),_("ngClass",h(26,V,((s=u.form.get("identification"))==null?null:s.invalid)&&!y.model.anonymous&&(!((s=u.form.get("identification"))!=null&&s.pristine)||u.submitted),!((s=u.form.get("identification"))!=null&&s.invalid)&&!y.model.anonymous))("chars","numbers")("required",!y.model.anonymous),L("ngModel",y.model.identification),m(),_("ngIf",((v=u.form.get("identification"))==null?null:v.invalid)&&!y.model.anonymous&&(!((v=u.form.get("identification"))!=null&&v.pristine)||u.submitted))}}function _i(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function ci(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la fecha de nacimiento"),r())}function pi(n,l){if(n&1&&(d(0,"div",55),g(1,ci,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("birthDate"))==null||e.errors==null?null:e.errors.required)}}function ui(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Fecha de nacimiento "),g(3,_i,2,0,"span",7),r(),d(4,"input",66),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.birthDate,t)||(o.model.birthDate=t),C(t)}),r(),ve(),d(5,"svg",67)(6,"g"),F(7,"path",68)(8,"path",69),r()(),g(9,pi,2,1,"div",25),r()}if(n&2){let e,i,t;c(3);let o=b(2),a=c(2);m(),_("ngClass",h(6,k,((e=o.form.get("birthDate"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("birthDate"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("birthDate"))!=null&&e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("birthDate"))!=null&&e.pristine)||o.submitted))),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(9,V,((i=o.form.get("birthDate"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("birthDate"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("birthDate"))!=null&&i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("birthDate"))!=null&&i.pristine)||o.submitted))),L("ngModel",a.model.birthDate),_("required",!a.model.anonymous),m(5),_("ngIf",((t=o.form.get("birthDate"))==null?null:t.invalid)&&!a.model.anonymous&&(!((t=o.form.get("birthDate"))!=null&&t.pristine)||o.submitted))}}function vi(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function gi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el g\xE9nero"),r())}function fi(n,l){if(n&1&&(d(0,"div",55),g(1,gi,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("genderID"))==null||e.errors==null?null:e.errors.required)}}function Ci(n,l){if(n&1){let e=E();d(0,"div")(1,"label"),p(2,"G\xE9nero "),g(3,vi,2,0,"span",7),r(),d(4,"div",14)(5,"div",18)(6,"input",70),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.genderID,t)||(o.model.genderID=t),C(t)}),r(),d(7,"label",71),p(8,"Femenino"),r()(),d(9,"div",18)(10,"input",72),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.genderID,t)||(o.model.genderID=t),C(t)}),r(),d(11,"label",73),p(12,"Masculino"),r()(),d(13,"div",18)(14,"input",74),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.genderID,t)||(o.model.genderID=t),C(t)}),r(),d(15,"label",75),p(16,"Otro"),r()()(),g(17,fi,2,1,"div",25),r()}if(n&2){let e;c(3);let i=b(2),t=c(2);m(3),_("ngIf",!t.model.anonymous),m(3),L("ngModel",t.model.genderID),_("required",!t.model.anonymous),m(4),L("ngModel",t.model.genderID),_("required",!t.model.anonymous),m(4),L("ngModel",t.model.genderID),_("required",!t.model.anonymous),m(3),_("ngIf",((e=i.form.get("genderID"))==null?null:e.invalid)&&
1(!((e=i.form.get("genderID"))!=null&&e.pristine)||i.submitted))}}function yi(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function hi(n,l){n&1&&(d(0,"span"),p(1,"Debes indicar la raz\xF3n social"),r())}function xi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 5 caracteres"),r())}function Ii(n,l){if(n&1&&(d(0,"div",55),g(1,hi,2,0,"span",7)(2,xi,2,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("firstName"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("firstName"))==null||i.errors==null?null:i.errors.minlength)}}function bi(n,l){if(n&1){let e=E();d(0,"div",46)(1,"div")(2,"label",47),p(3,"Razon social "),g(4,yi,2,0,"span",7),r(),d(5,"input",79),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.firstName,t)||(o.model.firstName=t),C(t)}),r(),F(6,"div",65),g(7,Ii,3,2,"div",25),r()()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(2),_("ngClass",h(6,k,((e=o.form.get("firstName"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("firstName"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("firstName"))!=null&&e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("firstName"))!=null&&e.pristine)||o.submitted))),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(9,V,((i=o.form.get("firstName"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("firstName"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("firstName"))!=null&&i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("firstName"))!=null&&i.pristine)||o.submitted)))("required",!a.model.anonymous),L("ngModel",a.model.firstName),m(2),_("ngIf",((t=o.form.get("firstName"))==null?null:t.invalid)&&(!((t=o.form.get("firstName"))!=null&&t.pristine)||o.submitted))}}function Si(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Fi(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"rootLocationIDPersonal","rootLocationIDPersonalOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","rootLocationIDPersonalOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function Ei(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el pa\xEDs"),r())}function Ti(n,l){if(n&1&&(d(0,"div",55),g(1,Ei,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("rootLocationIDPersonal"))==null||e.errors==null?null:e.errors.required)}}function Li(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Di(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"secondLevelLocationIDPersonal","secondLevelLocationIDPersonalOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","secondLevelLocationIDPersonalOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function Pi(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el departamento"),r())}function wi(n,l){if(n&1&&(d(0,"div",55),g(1,Pi,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("secondLevelLocationIDPersonal"))==null||e.errors==null?null:e.errors.required)}}function ki(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Departamento "),g(3,Li,2,0,"span",7),r(),d(4,"div",48)(5,"div",80),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"secondLevelLocationIDPersonal","secondLevelLocationIDPersonalOption"))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.secondLevelLocationPersonal,t)||(o.model.secondLevelLocationPersonal=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("secondLevelLocationIDPersonal"))}),d(6,"div",50),p(7," Escoger "),r(),d(8,"div",81)(9,"div",82),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"secondLevelLocationIDPersonal","secondLevelLocationIDPersonalOption",null))}),p(10," Escoger "),r(),U(11,Di,2,4,"div",53,N),r()(),F(13,"i",47),r(),g(14,wi,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(7,k,((e=a.form.get("secondLevelLocationIDPersonal"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("secondLevelLocationIDPersonal"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("secondLevelLocationIDPersonal"))!=null&&e.invali
1d)&&!s.model.anonymous&&(!((e=a.form.get("secondLevelLocationIDPersonal"))!=null&&e.pristine)||a.submitted))),m(2),_("ngIf",!s.model.anonymous),m(2),L("ngModel",s.model.secondLevelLocationPersonal),_("required",!s.model.anonymous),m(),_("ngClass",h(10,V,((i=a.form.get("secondLevelLocationIDPersonal"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("secondLevelLocationIDPersonal"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("secondLevelLocationIDPersonal"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("secondLevelLocationIDPersonal"))!=null&&i.pristine)||a.submitted))),m(5),W(s.secondLevelLocationsPersonal),m(2),_("ngClass",h(13,R,((t=a.form.get("rootLocationIDPersonal"))==null?null:t.invalid)&&!s.model.anonymous&&!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.pristine),!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("secondLevelLocationIDPersonal"))==null?null:o.invalid)&&(!((o=a.form.get("secondLevelLocationIDPersonal"))!=null&&o.pristine)||a.submitted))}}function Vi(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Mi(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"locationIDPersonal","locationIDPersonalOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","locationIDPersonalOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function qi(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar la ciudad"),r())}function Bi(n,l){if(n&1&&(d(0,"div",55),g(1,qi,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("locationIDPersonal"))==null||e.errors==null?null:e.errors.required)}}function Ai(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Ciudad"),g(3,Vi,2,0,"span",7),r(),d(4,"div",48)(5,"div",83),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"locationIDPersonal","locationIDPersonalOption"))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.locationPersonal,t)||(o.model.locationPersonal=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("locationIDPersonal"))}),d(6,"div",50),p(7," Escoger "),r(),d(8,"div",84)(9,"div",85),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"locationIDPersonal","locationIDPersonalOption",null))}),p(10," Escoger "),r(),U(11,Mi,2,4,"div",53,N),r()(),F(13,"i",47),r(),g(14,Bi,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(7,k,((e=a.form.get("locationIDPersonal"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("locationIDPersonal"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("locationIDPersonal"))!=null&&e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("locationIDPersonal"))!=null&&e.pristine)||a.submitted))),m(2),_("ngIf",!s.model.anonymous),m(2),L("ngModel",s.model.locationPersonal),_("required",!s.model.anonymous),m(),_("ngClass",h(10,V,((i=a.form.get("locationIDPersonal"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("locationIDPersonal"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("locationIDPersonal"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("locationIDPersonal"))!=null&&i.pristine)||a.submitted))),m(5),W(s.thirdLevelLocationsPersonal),m(2),_("ngClass",h(13,R,((t=a.form.get("locationIDPersonal"))==null?null:t.invalid)&&!s.model.anonymous&&!((t=a.form.get("locationIDPersonal"))!=null&&t.pristine),!((t=a.form.get("locationIDPersonal"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("locationIDPersonal"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("locationIDPersonal"))==null?null:o.invalid)&&(!((o=a.form.get("locationIDPersonal"))!=null&&o.pristine)||a.submitted))}}function Ni(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Ui(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la ciudad"),r())}function Wi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el municipio / ciudad"),F(2,"br"),r())}function Hi(n,l){if(n&1&&(d(0,"div",55),g(1,Ui,2,0,"span",7)(2,Wi,3,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("cityPersonal"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("cityPersonal"))==null||i.errors==null?null:i.errors.minlength)}}function ji(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Municipio / Ciudad "),g(3,Ni,2,0,"span",7),r(),d(4,"input",86),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.cityPersonal,t)||(o.model.cityPersonal=t),C(t)}),r(),g(5,Hi,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(6,k,((e=o.form.get("cityPersonal"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("cityPersonal"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("cityPersonal"))!=null&&e.invali
1d)&&!a.model.anonymous)),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(9,V,((i=o.form.get("cityPersonal"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("cityPersonal"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("cityPersonal"))!=null&&i.invalid)&&!a.model.anonymous)),L("ngModel",a.model.cityPersonal),_("required",!a.model.anonymous),m(),_("ngIf",((t=o.form.get("cityPersonal"))==null?null:t.invalid)&&(!((t=o.form.get("cityPersonal"))!=null&&t.pristine)||o.submitted))}}function Ri(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function zi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la vereda o municipio"),r())}function Oi(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la vereda o municipio"),F(2,"br"),r())}function Qi(n,l){if(n&1&&(d(0,"div",55),g(1,zi,2,0,"span",7)(2,Oi,3,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("neighborhoodPersonal"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("neighborhoodPersonal"))==null||i.errors==null?null:i.errors.minlength)}}function Zi(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Vereda / Municipio "),g(3,Ri,2,0,"span",7),r(),d(4,"input",87),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.neighborhoodPersonal,t)||(o.model.neighborhoodPersonal=t),C(t)}),r(),g(5,Qi,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(6,k,((e=o.form.get("neighborhoodPersonal"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("neighborhoodPersonal"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("neighborhoodPersonal"))!=null&&e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("neighborhoodPersonal"))!=null&&e.pristine)||o.submitted))),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(9,V,((i=o.form.get("neighborhoodPersonal"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("neighborhoodPersonal"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("neighborhoodPersonal"))!=null&&i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("neighborhoodPersonal"))!=null&&i.pristine)||o.submitted))),L("ngModel",a.model.neighborhoodPersonal),_("required",!a.model.anonymous),m(),_("ngIf",((t=o.form.get("neighborhoodPersonal"))==null?null:t.invalid)&&(!((t=o.form.get("neighborhoodPersonal"))!=null&&t.pristine)||o.submitted))}}function Gi(n,l){if(n&1){let e=E();d(0,"div",56),g(1,bi,8,12,"div",21),d(2,"div",46)(3,"label",47),p(4,"Pais "),g(5,Si,2,0,"span",7),r(),d(6,"div",48)(7,"div",76),S("keyup",function(t){f(e);let o=c(5);return C(o.keyup(t,"rootLocationIDPersonal","rootLocationIDPersonalOption"))}),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.rootLocationPersonal,t)||(o.model.rootLocationPersonal=t),C(t)}),S("click",function(){f(e);let t=c(5);return C(t.clickSelectCustom("rootLocationIDPersonal"))}),d(8,"div",50),p(9," Escoger "),r(),d(10,"div",77)(11,"div",78),S("click",function(t){f(e);let o=c(5);return C(o.clickOptionSelectCustom(t,"rootLocationIDPersonal","rootLocationIDPersonalOption",null))}),p(12," Escoger "),r(),U(13,Fi,2,4,"div",53,N),r()(),F(15,"i",47),r(),g(16,Ti,2,1,"div",25),r(),g(17,ki,15,16,"div",21)(18,Ai,15,16,"div",21)(19,ji,6,12,"div",21)(20,Zi,6,12,"div",21),r()}if(n&2){let e,i,t,o;c(3);let a=b(2),s=c(2);m(),_("ngIf",(s.model.complaintFormUserType==null?null:s.model.complaintFormUserType.name)==="Persona jur\xEDdica"),m(2),_("ngClass",h(12,k,((e=a.form.get("rootLocationIDPersonal"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("rootLocationIDPersonal"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("rootLocationIDPersonal"))!=null&&e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("rootLocationIDPersonal"))!=null&&e.pristine)||a.submitted))),m(2),_("ngIf",!s.model.anonymous),m(2),L("ngModel",s.model.rootLocationPersonal),_("required",!s.model.anonymous),m(),_("ngClass",h(15,V,((i=a.form.get("rootLocationIDPersonal"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("rootLocationIDPersonal"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("rootLocationIDPersonal"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("rootLocationIDPersonal"))!=null&&i.pristine)||a.submitted))),m(5),W(s.rootLocations),m(2),_("ngClass",h(18,R,((t=a.form.get("rootLocationIDPersonal"))==null?null:t.invali
1d)&&!s.model.anonymous&&!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.pristine),!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("rootLocationIDPersonal"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("rootLocationIDPersonal"))==null?null:o.invalid)&&(!((o=a.form.get("rootLocationIDPersonal"))!=null&&o.pristine)||a.submitted)),m(),_("ngIf",(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)==="Colombia"),m(),_("ngIf",(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)==="Colombia"),m(),_("ngIf",(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)&&(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)!=="Colombia"),m(),_("ngIf",(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)&&(s.model.rootLocationPersonal==null?null:s.model.rootLocationPersonal.name)==="Colombia")}}function Ki(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function Ji(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la direcci\xF3n"),r())}function Xi(n,l){if(n&1&&(d(0,"div",55),g(1,Ji,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("addressPersonal"))==null||e.errors==null?null:e.errors.required)}}function Yi(n,l){if(n&1){let e=E();d(0,"div")(1,"label",47),p(2,"Direcci\xF3n "),g(3,Ki,2,0,"span",7),r(),d(4,"textarea",88),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.addressPersonal,t)||(o.model.addressPersonal=t),C(t)}),r(),g(5,Xi,2,1,"div",25),r()}if(n&2){let e,i,t;c(3);let o=b(2),a=c(2);m(),_("ngClass",h(6,k,((e=o.form.get("addressPersonal"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("addressPersonal"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("addressPersonal"))!=null&&e.invalid)&&!a.model.anonymous)),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(9,V,((i=o.form.get("addressPersonal"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("addressPersonal"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("addressPersonal"))!=null&&i.invalid)&&!a.model.anonymous))("required",!a.model.anonymous),L("ngModel",a.model.addressPersonal),m(),_("ngIf",((t=o.form.get("addressPersonal"))==null?null:t.invalid)&&(!((t=o.form.get("addressPersonal"))!=null&&t.pristine)||o.submitted))}}function $i(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function en(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar un n\xFAmero de tel\xE9fono"),r())}function tn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 7 n\xFAmeros"),F(2,"br"),r())}function nn(n,l){n&1&&(d(0,"span"),p(1,"Debes n\xFAmeros sin espacios"),r())}function on(n,l){if(n&1&&(d(0,"div",55),g(1,en,2,0,"span",7)(2,tn,3,0,"span",7)(3,nn,2,0,"span",7),r()),n&2){let e,i,t;c(4);let o=b(2);m(),_("ngIf",(e=o.form.get("phoneNumberPersonal"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=o.form.get("phoneNumberPersonal"))==null||i.errors==null?null:i.errors.minlength),m(),_("ngIf",(t=o.form.get("phoneNumberPersonal"))==null||t.errors==null?null:t.errors.pattern)}}function ln(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function rn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el n\xFAmero de tel\xE9fono movil"),F(2,"br"),r())}function an(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 10 n\xFAmeros"),F(2,"br"),r())}function mn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar solo n\xFAmeros sin espacios"),r())}function dn(n,l){if(n&1&&(d(0,"div",55),g(1,rn,3,0,"span",7)(2,an,3,0,"span",7)(3,mn,2,0,"span",7),r()),n&2){let e,i,t;c(4);let o=b(2);m(),_("ngIf",(e=o.form.get("mobileNumberPersonal"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=o.form.get("mobileNumberPersonal"))==null||i.errors==null?null:i.errors.minlength),m(),_("ngIf",(t=o.form.get("mobileNumberPersonal"))==null||t.errors==null?null:t.errors.pattern)}}function sn(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function _n(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar tu correo electr\xF3nico"),r())}function cn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar un correo electr\xF3nico v\xE1lido"),r())}function pn(n,l){if(n&1&&(d(0,"div",55),g(1,_n,2,0,"span",7)(2,cn,2,0,"span",7),r()),n&2){let e,i;c(4);let t=b(2);m(),_("ngIf",(e=t.form.get("emailPersonal"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("emailPersonal"))==null||i.errors==null?null:i.errors.pattern)}}function un(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function vn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar tu correo electr\xF3nico"),r())}function gn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar un correo electr\xF3nico v\xE1lido"),r())}function fn(n,l){if(n&1&&(d(0,"div",55),g(1,vn,2,0,"span",7)(2,gn,2,0,"span",7),r()),n&2){let e,i;c(4);let t=b(2);m(),_("ngIf",(e=t.form.get("emailConfirm"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("emailConfirm"))==null||i.errors==null?null:i.errors.pattern)}}function Cn(n,l){n&1&&(d(0,"div",55)(1,"span"),p(2,"Correos no coinciden"),r()())}function yn(n,l){if(n&1){let e=E();d(0,"div",56)(1,"div",46)(2,"label",47),p(3,"Tel\xE9fono fijo "),g(4,$i,2,0,"span",7),r(),d(5,"p",47),p(6," (Si es internacional agrega c\xF3digo de \xE1rea) "),r(),d(7,"input",89),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.phoneNumberPersonal,t)||(o.model.phoneNumberPersonal=t),C(t)}),r(),g(8,on,4,3,"div",25),r(),d(9,"div",46)(10,"label",47),p(11,"Tel\xE9fono M\xF3vil "),g(12,ln,2,0,"span",7),r(),d(13,"p",47),p(14," (Si es internacional agrega c\xF3digo de \xE1rea) "),r(),d(15,"input",90),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.mobileNumberPersonal,t)||(o.model.mobileNumberPersonal=t),C(t)}),r(),g(16,dn,4,3,"div",25),r(),d(17,"div",46)(18,"label",47),p(19," Correo electr\xF3nico"),g(20,sn,2,0,"span",7),r(),d(21,"input",91),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.emailPersonal,t)||(o.model.emailPersonal=t),C(t)}),S("blur",function(t){f(e);let o=c(5);
1return o.validEmail(t),C(o.validEmailVerifReq(t))}),r(),g(22,pn,3,2,"div",25),r(),d(23,"div",46)(24,"label",47),p(25," Confirmar "),g(26,un,2,0,"span",7),r(),d(27,"input",92),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.emailVerif,t)||(o.model.emailVerif=t),C(t)}),S("blur",function(t){f(e);let o=c(5);return C(o.validEmail(t))}),r(),g(28,fn,3,2,"div",25)(29,Cn,3,0,"div",25),r()()}if(n&2){let e,i,t,o,a,s,v,u,y,w,B,x,M,O,z;c(3);let I=b(2),T=c(2);m(2),_("ngClass",h(29,k,((e=I.form.get("phoneNumberPersonal"))==null?null:e.invalid)&&!T.model.anonymous&&(!((e=I.form.get("phoneNumberPersonal"))!=null&&e.pristine)||I.submitted),!((e=I.form.get("phoneNumberPersonal"))!=null&&e.invalid)&&!T.model.anonymous&&(!((e=I.form.get("phoneNumberPersonal"))!=null&&e.pristine)||I.submitted))),m(2),_("ngIf",!T.model.anonymous),m(),_("ngClass",h(32,k,((i=I.form.get("phoneNumberPersonal"))==null?null:i.invalid)&&!T.model.anonymous&&(!((i=I.form.get("phoneNumberPersonal"))!=null&&i.pristine)||I.submitted),!((i=I.form.get("phoneNumberPersonal"))!=null&&i.invalid)&&!T.model.anonymous&&(!((i=I.form.get("phoneNumberPersonal"))!=null&&i.pristine)||I.submitted))),m(2),_("ngClass",h(35,V,((t=I.form.get("phoneNumberPersonal"))==null?null:t.invalid)&&!T.model.anonymous&&(!((t=I.form.get("phoneNumberPersonal"))!=null&&t.pristine)||I.submitted),!((t=I.form.get("phoneNumberPersonal"))!=null&&t.invalid)&&!T.model.anonymous&&(!((t=I.form.get("phoneNumberPersonal"))!=null&&t.pristine)||I.submitted)))("chars","numbers")("required",!T.model.anonymous),L("ngModel",T.model.phoneNumberPersonal),m(),_("ngIf",((o=I.form.get("phoneNumberPersonal"))==null?null:o.invalid)&&(!((o=I.form.get("phoneNumberPersonal"))!=null&&o.pristine)||I.submitted)),m(2),_("ngClass",h(38,k,((a=I.form.get("mobileNumberPersonal"))==null?null:a.invalid)&&!T.model.anonymous&&(!((a=I.form.get("mobileNumberPersonal"))!=null&&a.pristine)||I.submitted),!((a=I.form.get("mobileNumberPersonal"))!=null&&a.invalid)&&!T.model.anonymous)),m(2),_("ngIf",!T.model.anonymous),m(),_("ngClass",h(41,k,((s=I.form.get("mobileNumberPersonal"))==null?null:s.invalid)&&!T.model.anonymous&&(!((s=I.form.get("mobileNumberPersonal"))!=null&&s.pristine)||I.submitted),!((s=I.form.get("mobileNumberPersonal"))!=null&&s.invalid)&&!T.model.anonymous)),m(2),_("ngClass",h(44,V,((v=I.form.get("mobileNumberPersonal"))==null?null:v.invalid)&&!T.model.anonymous&&(!((v=I.form.get("mobileNumberPersonal"))!=null&&v.pristine)||I.submitted),!((v=I.form.get("mobileNumberPersonal"))!=null&&v.invalid)&&!T.model.anonymous))("chars","numbers")("required",!T.model.anonymous),L("ngModel",T.model.mobileNumberPersonal),m(),_("ngIf",((u=I.form.get("mobileNumberPersonal"))==null?null:u.invalid)&&(!((u=I.form.get("mobileNumberPersonal"))!=null&&u.pristine)||I.submitted)),m(2),_("ngClass",h(47,k,!(((y=I.form.get("emailPersonal"))==null?null:y.invalid)===!1&&T.model.emailEqual===!0)&&!T.model.anonymous&&(!((y=I.form.get("emailPersonal"))!=null&&y.pristine)||I.submitted),!((y=I.form.get("emailPersonal"))!=null&&y.invalid)&&T.model.emailEqual&&!T.model.anonymous)),m(2),_("ngIf",!T.model.anonymous||T.emailVerifRequired),m(),_("ngClass",h(50,V,!(((w=I.form.get("emailPersonal"))==null?null:w.invalid)===!1&&T.model.emailEqual===!0)&&!T.model.anonymous&&(!((w=I.form.get("emailPersonal"))!=null&&w.pristine)||I.submitted),!((w=I.form.get("emailPersonal"))!=null&&w.invalid)&&T.model.emailEqual&&!T.model.anonymous))("required",!T.model.anonymous||T.emailVerifRequired),L("ngModel",T.model.emailPersonal),m(),_("ngIf",((B=I.form.get("emailPersonal"))==null?null:B.invalid)&&(!((B=I.form.get("emailPersonal"))!=null&&B.pristine)||I.submitted)),m(2),_("ngClass",h(53,k,!(((x=I.form.get("emailConfirm"))==null?null:x.invalid)===!1&&T.model.emailEqual===!0)&&!T.model.anonymous&&(!((x=I.form.get("emailConfirm"))!=null&&x.pristine)||I.submitted),!((x=I.form.get("emailConfirm"))!=null&&x.invalid)&&T.model.emailEqual&&!T.model.anonymous&&(!((x=I.form.get("emailConfirm"))!=null&&x.pristine)||I.submitted))),m(2),_("ngIf",T.emailVerifRequired),m(),_("ngClass",h(56,V,!(((M=I.form.get("emailConfirm"))==null?null:M.invalid)===!1&&T.model.emailEqual===!0)&&
1!T.model.anonymous&&(!((M=I.form.get("emailConfirm"))!=null&&M.pristine)||I.submitted),!((M=I.form.get("emailConfirm"))!=null&&M.invalid)&&T.model.emailEqual&&!T.model.anonymous&&(!((M=I.form.get("emailConfirm"))!=null&&M.pristine)||I.submitted))),L("ngModel",T.model.emailVerif),_("required",T.emailVerifRequired),m(),_("ngIf",((O=I.form.get("emailConfirm"))==null?null:O.invalid)&&(!((O=I.form.get("emailConfirm"))!=null&&O.pristine)||I.submitted)),m(),_("ngIf",!T.model.emailEqual&&(!((z=I.form.get("emailConfirm"))!=null&&z.pristine)||!((z=I.form.get("emailPersonal"))!=null&&z.pristine)||!((z=I.form.get("emailConfirm"))!=null&&z.pristine)||I.submitted))}}function hn(n,l){if(n&1&&(d(0,"h3",47),p(1),r()),n&2){let e;c(3);let i=b(2),t=c(2);_("ngClass",h(2,k,((e=i.form.get("description"))==null?null:e.invalid)&&!t.model.anonymous&&(!((e=i.form.get("description"))!=null&&e.pristine)||i.submitted),!((e=i.form.get("description"))!=null&&e.invalid)&&!t.model.anonymous&&(!((e=i.form.get("description"))!=null&&e.pristine)||i.submitted))),m(),A(" Escribe acerca de tu solicitud * (",t.characterNum,"/5098 caracteres) ")}}function xn(n,l){if(n&1&&(d(0,"h3",47),p(1),r()),n&2){let e;c(3);let i=b(2),t=c(2);_("ngClass",h(2,k,((e=i.form.get("description"))==null?null:e.invalid)&&!t.model.anonymous&&(!((e=i.form.get("description"))!=null&&e.pristine)||i.submitted),!((e=i.form.get("description"))!=null&&e.invalid)&&!t.model.anonymous&&(!((e=i.form.get("description"))!=null&&e.pristine)||i.submitted))),m(),A(" Cu\xE9ntanos el motivo de tu cita* (",t.characterNum,"/5098 caracteres) ")}}function In(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el contenido de la solicitud"),F(2,"br"),r())}function bn(n,l){n&1&&(d(0,"span"),p(1,"El m\xE1ximo de caracteres permitido es de 2048"),F(2,"br"),r())}function Sn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),r())}function Fn(n,l){if(n&1&&(d(0,"div",55),g(1,In,3,0,"span",7)(2,bn,3,0,"span",7)(3,Sn,2,0,"span",7),r()),n&2){let e,i,t;c(3);let o=b(2);m(),_("ngIf",(e=o.form.get("description"))==null||e.errors==null?null:e.errors.requiredEmpty),m(),_("ngIf",!(!((i=o.form.get("description"))==null||i.errors==null)&&i.errors.requiredEmpty)&&((i=o.form.get("description"))==null||i.errors==null?null:i.errors.maxlength)),m(),_("ngIf",!(!((t=o.form.get("description"))==null||t.errors==null)&&t.errors.requiredEmpty)&&((t=o.form.get("description"))==null||t.errors==null?null:t.errors.minlength))}}function En(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el tipo de cita"),r())}function Tn(n,l){if(n&1&&(d(0,"div",55),g(1,En,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("presential"))==null||e.errors==null?null:e.errors.required)}}function Ln(n,l){if(n&1){let e=E();d(0,"div")(1,"h3"),p(2,"Selecciona el tipo de cita que deseas*"),r(),d(3,"div",14)(4,"div",18)(5,"input",93),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.presential,t)||(o.model.presential=t),C(t)}),r(),d(6,"label",94),p(7,"Presencial"),r()(),d(8,"div",18)(9,"input",95),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.presential,t)||(o.model.presential=t),C(t)}),r(),d(10,"label",96),p(11,"Virtual"),r()()(),g(12,Tn,2,1,"div",25),r()}if(n&2){let e;c(3);let i=b(2),t=c(2);m(5),L("ngModel",t.model.presential),_("required",!t.model.presential),m(4),L("ngModel",t.model.presential),_("required",!t.model.presential),m(3),_("ngIf",((e=i.form.get("presential"))==null?null:e.invalid)&&(!((e=i.form.get("presential"))!=null&&e.pristine)||i.submitted))}}function Dn(n,l){if(n&1&&(d(0,"h3",97),p(1),r()),n&2){let e=c(5);m(),A(" ",e.model.label_cita," ")}}function Pn(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"day","dayOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","dayOption-",e.attentionConfigID,""),j("data-value",e.attentionConfigID),m(),A(" ",e.day," ")}}function wn(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el dia"),r())}function kn(n,l){if(n&1&&(d(0,"div",55),g(1,wn,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("day"))==null||e.errors==null?null:e.errors.required)}}function Vn(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"D\xEDa"),r(),d(3,"div",48)(4,"div",98),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"day","dayOption"))})("onChange",function(){f(e);let t=c(6);return C(t.calculateRange(t.model.DaysAttentions))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.DaysAttentions,t)||(o.model.DaysAttentions=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("day"))}),d(5,"div",50),p(6," Escoger "),r(),d(7,"div",99)(8,"div",100),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"day","dayOption",null))}),p(9," Escoger "),r(),U(10,Pn,2,4,"div",53,N),r()(),F(12,"i",47),r(),g(13,kn,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(6,k,((e=a.form.get("day"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("day"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("day"))!=null&&e.invali
1d)&&!s.model.anonymous&&(!((e=a.form.get("day"))!=null&&e.pristine)||a.submitted))),m(3),L("ngModel",s.model.DaysAttentions),_("required",!s.model.anonymous),m(),_("ngClass",h(9,V,((i=a.form.get("day"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("day"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("day"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("day"))!=null&&i.pristine)||a.submitted))),m(5),W(s.complaintAttentionConfig),m(2),_("ngClass",h(12,R,((t=a.form.get("day"))==null?null:t.invalid)&&!s.model.anonymous&&!((t=a.form.get("day"))!=null&&t.pristine),!((t=a.form.get("day"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("day"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("day"))==null?null:o.invalid)&&(!((o=a.form.get("day"))!=null&&o.pristine)||a.submitted))}}function Mn(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"Hour","HourOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","HourOption-",e,""),j("data-value",e),m(),A(" ",e," ")}}function qn(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar la hora"),r())}function Bn(n,l){if(n&1&&(d(0,"div",55),g(1,qn,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("day"))==null||e.errors==null?null:e.errors.required)}}function An(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Hora"),r(),d(3,"div",48)(4,"div",101),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"Hour","HourOption"))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.HourHtml,t)||(o.model.HourHtml=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("Hour"))}),d(5,"div",50),p(6," Escoger "),r(),d(7,"div",102)(8,"div",103),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"Hour","HourOption",null))}),p(9," Escoger "),r(),U(10,Mn,2,4,"div",53,N),r()(),F(12,"i",47),r(),g(13,Bn,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(6,k,((e=a.form.get("Hour"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("Hour"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("Hour"))!=null&&e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("Hour"))!=null&&e.pristine)||a.submitted))),m(3),L("ngModel",s.model.HourHtml),_("required",!s.model.anonymous),m(),_("ngClass",h(9,V,((i=a.form.get("Hour"))==null?null:i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("Hour"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("Hour"))!=null&&i.invalid)&&!s.model.anonymous&&(!((i=a.form.get("Hour"))!=null&&i.pristine)||a.submitted))),m(5),W(s.tiempo),m(2),_("ngClass",h(12,R,((t=a.form.get("Hour"))==null?null:t.invalid)&&!s.model.anonymous&&!((t=a.form.get("Hour"))!=null&&t.pristine),!((t=a.form.get("Hour"))!=null&&t.invalid)&&!s.model.anonymous&&!((t=a.form.get("Hour"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("Hour"))==null?null:o.invalid)&&(!((o=a.form.get("Hour"))!=null&&o.pristine)||a.submitted))}}function Nn(n,l){if(n&1&&(d(0,"div",56),g(1,Vn,14,15,"div",21)(2,An,14,15,"div",21),r()),n&2){let e=c(5);m(),_("ngIf",e.complaintAttentionConfig.length!==0),m(),_("ngIf",e.complaintAttentionConfig.length!==0)}}function Un(n,l){n&1&&(d(0,"h3"),p(1," Documento adicional "),r())}function Wn(n,l){n&1&&(d(0,"p"),p(1," Adjunta en un solo archivo la documentaci\xF3n que consideres necesaria para realizar tu Petici\xF3n. "),r())}function Hn(n,l){n&1&&(d(0,"div",104)(1,"p"),p(2," Tipos de archivos permitidos: doc, txt, xls, xlsx, docx, ppt, pptx, pdf, mp4, mp3, zip, jpg, jpeg, png, gif, rar. "),r(),d(3,"p"),p(4,"Peso m\xE1ximo permitido 2MB"),r()())}function jn(n,l){if(n&1&&(d(0,"div",108)(1,"div",109),F(2,"i",110),r(),d(3,"div",111),p(4," Arrastre aqu\xED su archivo o haga clic para a\xF1adir "),r(),F(5,"input",112),r()),n&2){let e=c(6);m(5),_("reg",".(doc|txt|xls|xlsx|docx|ppt|pptx|page|number|pdf|tiff|avi|mp4|mp3|zip|7z|rtf|bmp|jpg|jpeg|png|gif|rar)$")("obj",e.model)("pqr",!0)}}function Rn(n,l){n&1&&(d(0,"div",113),F(1,"i",114),d(2,"h5"),p(3,"Subiendo archivos(s)"),r()())}function zn(n,l){if(n&1&&(d(0,"div",105),g(1,jn,6,3,"div",106)(2,Rn,4,0,"div",107),r()),n&2){let e=c(5);m(),_("ngIf",e.progressFile.length==0||e.progressFile.length==null),m(),_("ngIf",e.progressFile.length>0)}}function On(n,l){if(n&1){let e=E();d(0,"div",115)(1,"span",116),p(2),r(),d(3,"div",117),S("click",function(){f(e);let t=c(5);return t.model.fileID=null,C(t.uploadingFile=!1)}),F(4,"i",118),r()()}if(n&2){let e=c(5);m(2),Q(e.model.fileName)}}function Qn(n,l){if(n&1&&(d(0,"div",30)(1,"div",119),F(2,"div",120),d(3,"span"),p(4),r()()()),n&2){let e=l.$implicit;m(2),_("ngStyle",Z(2,Ct,e.progress)),m(2),Q(e.name)}}function Zn(n,l){n&1&&(d(0,"h3"),p(1," Selecciona el medio por el que te gustaria recibir la respuesta a tu solicitud * "),r())}function Gn(n,l){if(n&1){let e=E();d(0,"div")(1,"div",14)(2,"div",18)(3,"input",122),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.responseTypeID,t)||(o.model.responseTypeID=t),C(t)}),r(),d(4,"label",123),p(5),r()()()()}if(n&2){let e=l.$implicit,i=c(6);m(3),H("id","type-",e.responseTypeID,""),L("ngModel",i.model.responseTypeID),_("value",e.responseTypeID),m(),H("for","type-",e.responseTypeID,""),m(),Q(e.name)}}function Kn(n,l){if(n&1&&(d(0,"div",121),U(1,Gn,6,7,"div",null,N),r()),n&2){let e=c(5);m(),W(e.responseTypes)}}function Jn(n,l){n&1&&(d(0,"span"),p(1,"Debes indicar el medio por el cual quieres recibir la respuesta"),r())}function Xn(n,l){if(n&1&&(d(0,"div",55),g(1,Jn,2,0,"span",7),r()),n&2){let e;c(3);let i=b(2);m(),_("ngIf",(e=i.form.get("responseTypeID"))==null||e.errors==null?null:e.errors.required)}}function Yn(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar tu correo electr\xF3nico"),r())}function $n(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar un correo electr\xF3nico v\xE1lido"),r())}function eo(n,l){if(n&1&&(d(0,"div",55),g(1,Yn,2,0,"span",7)(2,$n,2,0,"span",7),r()),n&2){let e,i;c(4);let t=b(2);m(),_("ngIf",(e=t.form.get("email"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("email"))==null||i.errors==null?null:i.errors.pattern)}}function to(n,l){if(n&1){let e=E();d(0,"div")(1,"div",46)(2,"label",47),p(3," Diligencia el correo electr\xF3nico * "),r(),d(4,"input",124),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.email,t)||(o.model.email=t),C(t)}),r(),g(5,eo,3,2,"div",25),r()()}if(n&2){let e,i,t;c(3);let o=b(2),a=c(2);m(2),_("ngClass",h(4,k,((e=o.form.get("email"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("email"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("email"))!=null&&e.invali
1d)&&!a.model.anonymous)),m(2),_("ngClass",h(7,V,((i=o.form.get("email"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("email"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("email"))!=null&&i.invalid)&&!a.model.anonymous)),L("ngModel",a.model.email),m(),_("ngIf",((t=o.form.get("email"))==null?null:t.invalid)&&(!((t=o.form.get("email"))!=null&&t.pristine)||o.submitted))}}function io(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"rootLocationID","rootLocationIDOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","rootLocationIDOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function no(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el pa\xEDs"),r())}function oo(n,l){if(n&1&&(d(0,"div",55),g(1,no,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("rootLocationID"))==null||e.errors==null?null:e.errors.required)}}function lo(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"secondLevelLocationID","secondLevelLocationIDOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","secondLevelLocationIDOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function ro(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar el departamento"),r())}function ao(n,l){if(n&1&&(d(0,"div",55),g(1,ro,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("secondLevelLocationID"))==null||e.errors==null?null:e.errors.required)}}function mo(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2," Departamento * "),r(),d(3,"div",48)(4,"div",129),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"secondLevelLocationID","secondLevelLocationIDOption"))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.secondLevelLocation,t)||(o.model.secondLevelLocation=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("secondLevelLocationID"))}),d(5,"div",50),p(6," Escoger "),r(),d(7,"div",130)(8,"div",131),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"secondLevelLocationID","secondLevelLocationIDOption",null))}),p(9," Escoger "),r(),U(10,lo,2,4,"div",53,N),r()(),F(12,"i",47),r(),g(13,ao,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(6,k,((e=a.form.get("secondLevelLocationID"))==null?null:e.invalid)&&(!((e=a.form.get("secondLevelLocationID"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("secondLevelLocationID"))!=null&&e.invalid)&&(!((e=a.form.get("secondLevelLocationID"))!=null&&e.pristine)||a.submitted))),m(3),L("ngModel",s.model.secondLevelLocation),_("required",s.model.responseTypeID===2),m(),_("ngClass",h(9,V,((i=a.form.get("secondLevelLocationID"))==null?null:i.invalid)&&(!((i=a.form.get("secondLevelLocationID"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("secondLevelLocationID"))!=null&&i.invalid)&&(!((i=a.form.get("secondLevelLocationID"))!=null&&i.pristine)||a.submitted))),m(5),W(s.secondLevelLocations),m(2),_("ngClass",h(12,R,((t=a.form.get("rootLocationID"))==null?null:t.invalid)&&!((t=a.form.get("rootLocationID"))!=null&&t.pristine),!((t=a.form.get("rootLocationID"))!=null&&t.invalid)&&!((t=a.form.get("rootLocationID"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("secondLevelLocationID"))==null?null:o.invalid)&&(!((o=a.form.get("secondLevelLocationID"))!=null&&o.pristine)||a.submitted))}}function so(n,l){if(n&1){let e=E();d(0,"div",54),S("click",function(t){f(e);let o=c(7);return C(o.clickOptionSelectCustom(t,"locationID","locationIDOption",null))}),p(1),r()}if(n&2){let e=l.$implicit;H("id","locationIDOption-",e.id,""),j("data-value",e.id),m(),A(" ",e.name," ")}}function _o(n,l){n&1&&(d(0,"span"),p(1,"Debes seleccionar la ciudad"),r())}function co(n,l){if(n&1&&(d(0,"div",55),g(1,_o,2,0,"span",7),r()),n&2){let e;c(5);let i=b(2);m(),_("ngIf",(e=i.form.get("locationID"))==null||e.errors==null?null:e.errors.required)}}function po(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2," Ciudad * "),r(),d(3,"div",48)(4,"div",132),S("keyup",function(t){f(e);let o=c(6);return C(o.keyup(t,"locationID","locationIDOption"))}),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.location,t)||(o.model.location=t),C(t)}),S("click",function(){f(e);let t=c(6);return C(t.clickSelectCustom("locationID"))}),d(5,"div",50),p(6," Escoger "),r(),d(7,"div",133)(8,"div",134),S("click",function(t){f(e);let o=c(6);return C(o.clickOptionSelectCustom(t,"locationID","locationIDOption",null))}),p(9," Escoger "),r(),U(10,so,2,4,"div",53,N),r()(),F(12,"i",47),r(),g(13,co,2,1,"div",25),r()}if(n&2){let e,i,t,o;c(4);let a=b(2),s=c(2);m(),_("ngClass",h(6,k,((e=a.form.get("locationID"))==null?null:e.invalid)&&
1(!((e=a.form.get("locationID"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("locationID"))!=null&&e.invalid)&&(!((e=a.form.get("locationID"))!=null&&e.pristine)||a.submitted))),m(3),L("ngModel",s.model.location),_("required",s.model.responseTypeID===2),m(),_("ngClass",h(9,V,((i=a.form.get("locationID"))==null?null:i.invalid)&&(!((i=a.form.get("locationID"))!=null&&i.pristine)||a.submitted),!((i=a.form.get("locationID"))!=null&&i.invalid)&&(!((i=a.form.get("locationID"))!=null&&i.pristine)||a.submitted))),m(5),W(s.thirdLevelLocations),m(2),_("ngClass",h(12,R,((t=a.form.get("locationID"))==null?null:t.invalid)&&!((t=a.form.get("locationID"))!=null&&t.pristine),!((t=a.form.get("locationID"))!=null&&t.invalid)&&!((t=a.form.get("locationID"))!=null&&t.pristine))),m(),_("ngIf",((o=a.form.get("locationID"))==null?null:o.invalid)&&(!((o=a.form.get("locationID"))!=null&&o.pristine)||a.submitted))}}function uo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la ciudad"),r())}function vo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 2 caracteres"),F(2,"br"),r())}function go(n,l){if(n&1&&(d(0,"div",55),g(1,uo,2,0,"span",7)(2,vo,3,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("city"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("city"))==null||i.errors==null?null:i.errors.minlength)}}function fo(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Municipio / Ciudad *"),r(),d(3,"input",135),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.city,t)||(o.model.city=t),C(t)}),r(),g(4,go,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(4,k,((e=o.form.get("city"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("city"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("city"))!=null&&e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("city"))!=null&&e.pristine)||o.submitted))),m(2),_("ngClass",h(7,V,((i=o.form.get("city"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("city"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("city"))!=null&&i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("city"))!=null&&i.pristine)||o.submitted))),L("ngModel",a.model.city),m(),_("ngIf",((t=o.form.get("city"))==null?null:t.invalid)&&(!((t=o.form.get("city"))!=null&&t.pristine)||o.submitted))}}function Co(n,l){n&1&&(d(0,"span"),p(1,"*"),r())}function yo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la vereda o municipio"),r())}function ho(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar la vereda o municipio"),F(2,"br"),r())}function xo(n,l){if(n&1&&(d(0,"div",55),g(1,yo,2,0,"span",7)(2,ho,3,0,"span",7),r()),n&2){let e,i;c(5);let t=b(2);m(),_("ngIf",(e=t.form.get("neighborhood"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=t.form.get("neighborhood"))==null||i.errors==null?null:i.errors.minlength)}}function Io(n,l){if(n&1){let e=E();d(0,"div",46)(1,"label",47),p(2,"Vereda / Municipio "),g(3,Co,2,0,"span",7),r(),d(4,"input",136),P("ngModelChange",function(t){f(e);let o=c(6);return D(o.model.neighborhood,t)||(o.model.neighborhood=t),C(t)}),r(),F(5,"div",65),g(6,xo,3,2,"div",25),r()}if(n&2){let e,i,t;c(4);let o=b(2),a=c(2);m(),_("ngClass",h(5,k,((e=o.form.get("neighborhood"))==null?null:e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("neighborhood"))!=null&&e.pristine)||o.submitted),!((e=o.form.get("neighborhood"))!=null&&e.invalid)&&!a.model.anonymous&&(!((e=o.form.get("neighborhood"))!=null&&e.pristine)||o.submitted))),m(2),_("ngIf",!a.model.anonymous),m(),_("ngClass",h(8,V,((i=o.form.get("neighborhood"))==null?null:i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("neighborhood"))!=null&&i.pristine)||o.submitted),!((i=o.form.get("neighborhood"))!=null&&i.invalid)&&!a.model.anonymous&&(!((i=o.form.get("neighborhood"))!=null&&i.pristine)||o.submitted))),L("ngModel",a.model.neighborhood),m(2),_("ngIf",((t=o.form.get("neighborhood"))==null?null:t.invalid)&&(!((t=o.form.get("neighborhood"))!=null&&t.pristine)||o.submitted))}}function bo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar tu direcci\xF3n f\xEDsica"),r())}function So(n,l){if(n&1&&(d(0,"div",55),g(1,bo,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("address"))==null||e.errors==null?null:e.errors.required)}}function Fo(n,l){if(n&1){let e=E();d(0,"div")(1,"div",56)(2,"div",46)(3,"label",47),p(4," Pais * "),r(),d(5,"div",48)(6,"div",125),S("keyup",function(t){f(e);let o=c(5);return C(o.keyup(t,"rootLocationID","rootLocationIDOption"))}),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.rootLocation,t)||(o.model.rootLocation=t),C(t)}),S("click",function(){f(e);let t=c(5);return C(t.clickSelectCustom("rootLocationID"))}),d(7,"div",50),p(8," Escoger "),r(),d(9,"div",126)(10,"div",127),S("click",function(t){f(e);let o=c(5);return C(o.clickOptionSelectCustom(t,"rootLocationID","rootLocationIDOption",null))}),p(11," Escoger "),r(),U(12,io,2,4,"div",53,N),r()(),F(14,"i",47),r(),g(15,oo,2,1,"div",25),r(),g(16,mo,14,15,"div",21)(17,po,14,15,"div",21)(18,fo,5,10,"div",21)(19,Io,7,11,"div",21),r(),d(20,"div")(21,"label",47),p(22,"Direcci\xF3n *"),r(),d(23,"textarea",128),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.address,t)||(o.model.address=t),C(t)}),r(),g(24,So,2,1,"div",25),r()()}if(n&2){let e,i,t,o,a,s,v;c(3);let u=b(2),y=c(2);m(3),_("ngClass",h(14,k,((e=u.form.get("rootLocationID"))==null?null:e.invalid)&&
1(!((e=u.form.get("rootLocationID"))!=null&&e.pristine)||u.submitted),!((e=u.form.get("rootLocationID"))!=null&&e.invalid)&&(!((e=u.form.get("rootLocationID"))!=null&&e.pristine)||u.submitted))),m(3),L("ngModel",y.model.rootLocation),_("required",y.model.responseTypeID===2),m(),_("ngClass",h(17,V,((i=u.form.get("rootLocationID"))==null?null:i.invalid)&&(!((i=u.form.get("rootLocationID"))!=null&&i.pristine)||u.submitted),!((i=u.form.get("rootLocationID"))!=null&&i.invalid)&&(!((i=u.form.get("rootLocationID"))!=null&&i.pristine)||u.submitted))),m(5),W(y.rootLocations),m(2),_("ngClass",h(20,R,((t=u.form.get("rootLocationID"))==null?null:t.invalid)&&!((t=u.form.get("rootLocationID"))!=null&&t.pristine),!((t=u.form.get("rootLocationID"))!=null&&t.invalid)&&!((t=u.form.get("rootLocationID"))!=null&&t.pristine))),m(),_("ngIf",((o=u.form.get("rootLocationID"))==null?null:o.invalid)&&(!((o=u.form.get("rootLocationID"))!=null&&o.pristine)||u.submitted)),m(),_("ngIf",(y.model.rootLocation==null?null:y.model.rootLocation.name)==="Colombia"),m(),_("ngIf",(y.model.rootLocation==null?null:y.model.rootLocation.name)==="Colombia"),m(),_("ngIf",(y.model.rootLocation==null?null:y.model.rootLocation.name)&&(y.model.rootLocation==null?null:y.model.rootLocation.name)!=="Colombia"),m(),_("ngIf",(y.model.rootLocation==null?null:y.model.rootLocation.name)==="Colombia"),m(2),_("ngClass",h(23,k,((a=u.form.get("address"))==null?null:a.invalid)&&!y.model.anonymous&&(!((a=u.form.get("address"))!=null&&a.pristine)||u.submitted),!((a=u.form.get("address"))!=null&&a.invalid)&&!y.model.anonymous&&(!((a=u.form.get("address"))!=null&&a.pristine)||u.submitted))),m(2),_("ngClass",h(26,V,((s=u.form.get("address"))==null?null:s.invalid)&&!y.model.anonymous&&(!((s=u.form.get("address"))!=null&&s.pristine)||u.submitted),!((s=u.form.get("address"))!=null&&s.invalid)&&!y.model.anonymous&&(!((s=u.form.get("address"))!=null&&s.pristine)||u.submitted))),L("ngModel",y.model.address),m(),_("ngIf",((v=u.form.get("address"))==null?null:v.invalid)&&(!((v=u.form.get("address"))!=null&&v.pristine)||u.submitted))}}function Eo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar el n\xFAmero de tel\xE9fono movil"),F(2,"br"),r())}function To(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 10 n\xFAmeros"),F(2,"br"),r())}function Lo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar solo n\xFAmeros sin espacios"),r())}function Do(n,l){if(n&1&&(d(0,"div",55),g(1,Eo,3,0,"span",7)(2,To,3,0,"span",7)(3,Lo,2,0,"span",7),r()),n&2){let e,i,t;c(4);let o=b(2);m(),_("ngIf",(e=o.form.get("mobileNumber"))==null||e.errors==null?null:e.errors.required),m(),_("ngIf",(i=o.form.get("mobileNumber"))==null||i.errors==null?null:i.errors.minlength),m(),_("ngIf",(t=o.form.get("mobileNumber"))==null||t.errors==null?null:t.errors.pattern)}}function Po(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar por lo menos 7 n\xFAmeros"),F(2,"br"),r())}function wo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar solo n\xFAmeros sin espacios"),r())}function ko(n,l){if(n&1&&(d(0,"div",55),g(1,Po,3,0,"span",7)(2,wo,2,0,"span",7),r()),n&2){let e,i;c(4);let t=b(2);m(),_("ngIf",(e=t.form.get("phoneNumber"))==null||e.errors==null?null:e.errors.minlength),m(),_("ngIf",(i=t.form.get("phoneNumber"))==null||i.errors==null?null:i.errors.pattern)}}function Vo(n,l){n&1&&(d(0,"span"),p(1,"Debes ingresar solo n\xFAmeros sin espacios"),r())}function Mo(n,l){if(n&1&&(d(0,"div",55),g(1,Vo,2,0,"span",7),r()),n&2){let e;c(4);let i=b(2);m(),_("ngIf",(e=i.form.get("extension"))==null||e.errors==null?null:e.errors.pattern)}}function qo(n,l){if(n&1){let e=E();d(0,"div",56)(1,"div",46)(2,"label",47),p(3,"Tel\xE9fono m\xF3vil *"),r(),d(4,"p",47),p(5," (Si es internacional agrega c\xF3digo de \xE1rea) "),r(),d(6,"input",137),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.mobileNumber,t)||(o.model.mobileNumber=t),C(t)}),r(),g(7,Do,4,3,"div",25),r(),d(8,"div",46)(9,"label",47),p(10,"Tel\xE9fono fijo"),r(),d(11,"p",47),p(12," (Si es internacional agrega c\xF3digo de \xE1rea) "),r(),d(13,"input",138),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.phoneNumber,t)||(o.model.phoneNumber=t),C(t)}),r(),g(14,ko,3,2,"div",25),r(),d(15,"div",46)(16,"label",47),p(17,"Extensi\xF3n"),r(),d(18,"input",139),P("ngModelChange",function(t){f(e);let o=c(5);return D(o.model.extension,t)||(o.model.extension=t),C(t)}),r(),g(19,Mo,2,1,"div",25),r()()}if(n&2){let e,i,t,o,a,s,v,u,y,w,B;c(3);let x=b(2),M=c(2);m(2),_("ngClass",h(17,k,((e=x.form.get("mobileNumber"))==null?null:e.invalid)&&!M.model.anonymous&&(!((e=x.form.get("mobileNumber"))!=null&&e.pristine)||x.submitted),!((e=x.form.get("mobileNumber"))!=null&&e.invali
1d)&&!M.model.anonymous)),m(2),_("ngClass",h(20,k,((i=x.form.get("mobileNumber"))==null?null:i.invalid)&&!M.model.anonymous&&(!((i=x.form.get("mobileNumber"))!=null&&i.pristine)||x.submitted),!((i=x.form.get("mobileNumber"))!=null&&i.invalid)&&!M.model.anonymous)),m(2),_("ngClass",h(23,V,((t=x.form.get("mobileNumber"))==null?null:t.invalid)&&!M.model.anonymous&&(!((t=x.form.get("mobileNumber"))!=null&&t.pristine)||x.submitted),!((t=x.form.get("mobileNumber"))!=null&&t.invalid)&&!M.model.anonymous&&(!((t=x.form.get("mobileNumber"))!=null&&t.pristine)||x.submitted)))("chars","numbers"),L("ngModel",M.model.mobileNumber),m(),_("ngIf",((o=x.form.get("mobileNumber"))==null?null:o.invalid)&&(!((o=x.form.get("mobileNumber"))!=null&&o.pristine)||x.submitted)),m(2),_("ngClass",h(26,k,((a=x.form.get("phoneNumber"))==null?null:a.invalid)&&!M.model.anonymous&&(!((a=x.form.get("phoneNumber"))!=null&&a.pristine)||x.submitted),!((a=x.form.get("phoneNumber"))!=null&&a.invalid)&&!M.model.anonymous)),m(2),_("ngClass",h(29,k,((s=x.form.get("phoneNumber"))==null?null:s.invalid)&&!M.model.anonymous&&(!((s=x.form.get("phoneNumber"))!=null&&s.pristine)||x.submitted),!((s=x.form.get("phoneNumber"))!=null&&s.invalid)&&!M.model.anonymous)),m(2),_("ngClass",h(32,V,((v=x.form.get("phoneNumber"))==null?null:v.invalid)&&!M.model.anonymous&&(!((v=x.form.get("phoneNumber"))!=null&&v.pristine)||x.submitted),!((v=x.form.get("phoneNumber"))!=null&&v.invalid)&&!M.model.anonymous&&(!((v=x.form.get("phoneNumber"))!=null&&v.pristine)||x.submitted)))("chars","numbers"),L("ngModel",M.model.phoneNumber),m(),_("ngIf",((u=x.form.get("phoneNumber"))==null?null:u.invalid)&&(!((u=x.form.get("phoneNumber"))!=null&&u.pristine)||x.submitted)),m(2),_("ngClass",h(35,k,((y=x.form.get("extension"))==null?null:y.invalid)&&!M.model.anonymous&&(!((y=x.form.get("extension"))!=null&&y.pristine)||x.submitted),!((y=x.form.get("extension"))!=null&&y.invalid)&&!M.model.anonymous&&(!((y=x.form.get("extension"))!=null&&y.pristine)||x.submitted))),m(2),_("ngClass",h(38,V,((w=x.form.get("extension"))==null?null:w.invalid)&&!M.model.anonymous&&(!((w=x.form.get("extension"))!=null&&w.pristine)||x.submitted),!((w=x.form.get("extension"))!=null&&w.invalid)&&!M.model.anonymous&&(!((w=x.form.get("extension"))!=null&&w.pristine)||x.submitted)))("chars","numbers"),L("ngModel",M.model.extension),m(),_("ngIf",((B=x.form.get("extension"))==null?null:B.invalid)&&(!((B=x.form.get("extension"))!=null&&B.pristine)||x.submitted))}}function Bo(n,l){if(n&1&&(d(0,"div")(1,"a",140),p(2,'"Informaci\xF3n sobre posibles costos asociados a la respuesta"'),r()()),n&2){let e=c(5);m(),_("routerLink",e.costPqrdsLink)}}function Ao(n,l){n&1&&(d(0,"div")(1,"a",141),p(2,'"Informaci\xF3n sobre posibles costos asociados a la respuesta"'),r()())}function No(n,l){n&1&&(d(0,"div",55)(1,"span"),p(2,"Debes aceptar el aviso de privacidad"),r()())}function Uo(n,l){n&1&&(d(0,"div",55)(1,"span"),p(2,"Debes ingresar el Captcha"),r()())}function Wo(n,l){n&1&&(d(0,"div",55),p(1," Verifica todos los datos del formulario "),r())}function Ho(n,l){if(n&1){let e=E();d(0,"button",42),S("click",function(){f(e);let t=c(5);return C(t.reset())}),p(1," Limpiar "),r()}}function jo(n,l){if(n&1&&(d(0,"button",142),p(1," Enviar "),r()),n&2){let e=c(5);_("ngClass",Z(2,st,e.formIsBusy))("disabled",e.isTerminos)}}function Ro(n,l){if(n&1&&(d(0,"button",143),p(1," Agendar cita "),r()),n&2){let e=c(5);_("ngClass",Z(1,st,e.formIsBusy))}}function zo(n,l){if(n&1){let e=E();d(0,"div"),g(1,Dt,2,0,"h3",7)(2,Pt,2,0,"h3",7)(3,wt,2,0,"p",7)(4,Bt,15,16,"div",21)(5,Ot,3,2,"div",22)(6,ei,3,2,"div",22)(7,si,23,29,"div",22)(8,ui,10,12,"div",21)(9,Ci,18,8,"div",7)(10,Gi,21,21,"div",22)(11,Yi,6,12,"div",7)(12,yn,30,59,"div",22)(13,hn,2,5,"h3",23)(14,xn,2,5,"h3",23),d(15,"div")(16,"textarea",24),P("ngModelChange",function(t){f(e);let o=c(4);return D(o.model.description,t)||(o.model.description=t),C(t)}),S("keyup",function(){f(e);let t=c(4);return C(t.countChars())}),r(),g(17,Fn,4,3,"div",25),r(),g(18,Ln,13,5,"div",7)(19,Dn,2,1,"h3",26)(20,Nn,3,2,"div",22),F(21,"br")(22,"br"),g(23,Un,2,0,"h3",7)(24,Wn,2,0,"p",7)(25,Hn,5,0,"div",27)(26,zn,3,2,"div",28)(27,On,5,1,"div",29),U(28,Qn,5,4,"div",30,N),g(30,Zn,2,0,"h3",7)(31,Kn,3,0,"div",31)(32,Xn,2,1,"div",25)(33,to,6,10,"div",7)(34,Fo,25,29,"div",7)(35,qo,20,41,"div",22)(36,Bo,3,1,"div",7)(37,Ao,3,0,"div",7),d(38,"h3"),p(39," Aviso de privacidad y autorizaci\xF3n para el tratamiento de datos personales "),r(),d(40,"p"),p(41," La entidad sigue los lineamientos de anonimizaci\xF3n de datos emitidos por el Archivo General de la Naci\xF3n y efectivamente da cumplimiento a los mismos. Seg\xFAn anexo 2 de la resoluci\xF3n 2893 de 2020 "),r(),d(42,"p"),p(43," Puede ver aqu\xED las recomendaciones en torno a las garant\xEDas de anonimato "),d(44,"a",32),p(45,"(Recomendaciones de anonimato)"),r()(),F(46,"br"),d(47,"div",33)(48,"a",34)(49,"button",35),p(50," Ver t\xE9rminos y condiciones de uso "),r()()(),d(51,"div",36)(52,"div",37)(53,"input",38),S("click",function(){f(e);let t=c(4);return C(t.validateTerms())}),P("ngModelChange",function(t){f(e);let o=c(4);return D(o.model.typeprivacy,t)||(o.model.typeprivacy=t),C(t)}),r(),F(54,"label",39),r(),d(55,"label"),p(56),r()(),g(57,No,3,0,"div",25),d(58,"div",40),F(59,"app-captcha"),g(60,Uo,3,0,"div",25),r(),g(61,Wo,2,0,"div",25),d(62,"div",41)(63,"button",42),S("click",function(){f(e);let t=c(4);return C(t.cancel())}),p(64," Cancelar "),r(),g(65,Ho,2,0,"button",43)(66,jo,2,4,"button",44)(67,Ro,2,3,"button",45),r(),F(68,"br"),r()}if(n&2){let e,i,t,o;c(2);let a=b(2),s=c(2);m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",(!s.model.anonymous||(s.model.complaintFormType==null?null:s.model.complaintFormType.name)==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8")&&(s.model.complaintFormUserType==null?null:s.model.complaintFormUserType.name)!=="Persona jur\xEDdica"),m(),_("ngIf",(s.model.complaintFormUserType==null?null:s.model.complaintFormUserType.name)!=="Persona jur\xEDdica"&&(!s.model.anonymous||(s.model.complaintFormType==null?null:s.model.complaintFormType.name)==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8")),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",!s.model.anonymous||s.model.complaintFormType.name==="Agenda tu cita"||s.model.complaintFormType.complaintFormTypeID=="8"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name==="Agenda tu cita"),m(2),_("ngClass",h(41,V,((e=a.form.get("description"))==null?null:e.invalid)&&!s.model.anonymous&&(!((e=a.form.get("description"))!=null&&e.pristine)||a.submitted),!((e=a.form.get("description"))!=null&&e.invali
1d)&&!s.model.anonymous&&(!((e=a.form.get("description"))!=null&&e.pristine)||a.submitted))),L("ngModel",s.model.description),m(),_("ngIf",((i=a.form.get("description"))==null?null:i.invalid)&&(!((i=a.form.get("description"))!=null&&i.pristine)||a.submitted)),m(),_("ngIf",s.model.complaintFormType.name==="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name==="Agenda tu cita"&&s.complaintAttentionConfig.length!==0),m(),_("ngIf",s.model.complaintFormType.name==="Agenda tu cita"),m(3),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"&&!s.model.fileID),m(),_("ngIf",s.model.fileID),m(),W(s.progressFile),m(2),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",((t=a.form.get("responseTypeID"))==null?null:t.invalid)&&(!((t=a.form.get("responseTypeID"))!=null&&t.pristine)||a.submitted)&&s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.responseTypeID===1),m(),_("ngIf",s.model.responseTypeID===2),m(),_("ngIf",s.model.responseTypeID===3),m(),_("ngIf",s.costPqrdsLink&&s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",!s.costPqrdsLink&&s.model.complaintFormType.name!=="Agenda tu cita"),m(16),L("ngModel",s.model.typeprivacy),m(3),Q(s.checkDescription),m(),_("ngIf",a.submitted&&((o=a.form.get("typeprivacy"))==null?null:o.invalid)),m(3),_("ngIf",a.submitted&&s.captchaValid),m(),_("ngIf",a.submitted&&a.invalid),m(4),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name!=="Agenda tu cita"),m(),_("ngIf",s.model.complaintFormType.name==="Agenda tu cita")}}function Oo(n,l){if(n&1&&(d(0,"div")(1,"label"),p(2," El siguiente enlace fue dispuesto por el Ministerio P\xFAblico en cumplimiento del Art\xEDculo 18 del Decreto 103 de 2015 para el registro de solicitudes de informaci\xF3n p\xFAblica bajo el procedimiento especial de Identificaci\xF3n Reservada. "),r(),F(3,"br")(4,"br"),d(5,"a",144),p(6,"Identificaci\xF3n reservada"),r(),F(7,"br")(8,"br"),r()),n&2){let e=c(4);m(5),_("routerLink",e.complaintAnonymousUrl)}}function Qo(n,l){if(n&1&&(d(0,"div"),g(1,Lt,12,5,"div",7)(2,zo,69,44,"div",7)(3,Oo,9,1,"div",7),r()),n&2){let e=c(3);m(),_("ngIf",e.model.complaintFormType.name!=="Agenda tu cita"&&e.model.complaintFormType.name!=="Solicitud de datos personales"),m(),_("ngIf",e.model.complaintFormType.name!=="Solicitud de informaci\xF3n"||!e.model.anonymous),m(),_("ngIf",e.model.anonymous&&e.model.complaintFormType.name==="Solicitud de informaci\xF3n"&&e.complaintAnonymousUrl)}}function Zo(n,l){if(n&1){let e=E();d(0,"div")(1,"form",9,0),S("ngSubmit",function(){f(e);let t=b(2),o=c(2);return C(o.send(t))}),d(3,"div",10),g(4,yt,2,0,"h2",11)(5,ht,2,0,"h2",11)(6,xt,2,0,"h2",11)(7,It,2,0,"h2",11)(8,bt,2,0,"h2",11)(9,St,2,0,"h2",11)(10,Ft,2,0,"h2",12)(11,Et,2,0,"h2",12)(12,Tt,2,0,"h2",11),r(),d(13,"div",13),g(14,Qo,4,3,"div",7),F(15,"br"),r()()()}if(n&2){let e,i=c(2);m(4),fe((e=i.model.complaintFormType==null?null:i.model.complaintFormType.complaintFormTypeID)===1?4:e===2?5:e===3?6:e===4?7:e===5?8:e===6?9:e===7?10:e===8?11:e===9?12:-1),m(10),_("ngIf",i.model.complaintFormType==null?null:i.model.complaintFormType.name)}}function Go(n,l){if(n&1&&(d(0,"div",150),p(1),r()),n&2){let e=c(3);m(),A(" SOLICITUD ENVIADA ",e.model.complaintFormType.name," ")}}function Ko(n,l){n&1&&(d(0,"div",150),p(1," LA CITA HA SIDO AGENDADA "),r())}function Jo(n,l){if(n&1){let e=E();d(0,"div",145)(1,"div",146),g(2,Go,2,1,"div",147)(3,Ko,2,0,"div",147),d(4,"p"),p(5," espera que nos comuniquemos o consulta el estado en el que se encuentra con tu n\xFAmero de seguimiento. "),r(),F(6,"br"),d(7,"p"),p(8,"Tu n\xFAmero de seguimiento es:"),r(),d(9,"div",148),p(10),r(),d(11,"div")(12,"button",149),S("click",function(){f(e);let t=c(2);return C(t.back())}),p(13," Volver "),r()()()()}if(n&2){let e=c(2);m(2),_("ngIf",e.model.complaintFormType.complaintFormTypeID!==7),m(),_("ngIf",e.model.complaintFormType.name==="Agenda tu cita"),m(7),A(" ",e.model.response," ")}}function Xo(n,l){if(n&1&&(d(0,"div",3),F(1,"app-seed",4),d(2,"h2",5),p(3,"PQRDS (Recepci\xF3n de Solicitudes)"),r(),d(4,"div",6),F(5,"br"),g(6,Zo,16,2,"div",7)(7,Jo,14,3,"div",8),r()()),n&2){let e=c();m(),_("seedValue","PQRDS Recepci\xF3n de Solicitudes")("seedSecondValue","PQRDS"),m(5),_("ngIf",!e.model.response),m(),_("ngIf",e.model.response)}}var dt=class n{constructor(l,e,i,t,o,a,s,v,u,y,w,B,x,M,O,z,I){this.authService=l;this.settingService=e;this.portalMainService=i;this.complaintFormService=t;this.helperService=o;this.labelservice=a;this.locationService=s;this.complaintformtypeService=v;this.identificationTypeService=u;this.complaintFormUserTypeService=y;this.complaintAttentionConfigService=w;this.actRoute=B;this.modalService=x;this.userService=M;this.router=O;this.eventEmitterService=z;this.sharedSignalsService=I;Ie(()=>{this.progressFile=this.sharedSignalsService.progressFile()})}form;model={};complaintAnonymousUrl=null;selectedComplaint=null;label_cita=null;emailVerif=null;rootLocations=[];secondLevelLocations=[];complaintFormTypes=[];identificationTypes=[];complaintFormUserTypes=[];responseTypes=[];complaintAttentionConfig=[];thirdLevelLocations=[];tiempo=[];urlTracing="";captchaValid=!1;emailEqual=!0;emailVerifRequired=!0;isTerminos=!0;characterNum=0;validLogIn=!1;hourAfternoon=[{id:12,name:"12:00 M."},{id:13,name:"01:00 P.M."},{id:14,name:"02:00 P.M."},{id:15,name:"03:00 P.M."},{id:16,name:"04:00 P.M."},{id:17,name:"05:00 P.M."},{id:18,name:"06:00 P.M."},{id:19,name:"07:00 P.M."},{id:20,name:"08:00 P.M."},{id:21,name:"09:00 P.M."},{id:22,name:"10:00 P.M."},{id:23,name:"11:00 P.M."},{id:24,name:"12:00 P.M."}];uploadingFile=!1;checkDescription="";user=null;costPqrdsLink="";secondLevelLocationsPersonal=[];thirdLevelLocationsPersonal=[];formIsBusy=!1;progressFile=[];loading=!1;ngOnInit(){this.user=this.authService.user,this.activate()}activate(){this.loading=!0,setTimeout(()=>
1{this.user.name?(this.model.anonymous=!1,this.model.firstName=this.user.name,this.model.lastName=this.user.secondname,this.model.firstSurName=this.user.lastname,this.model.lastSurName=this.user.secondlastname,this.model.identificationTypeID=this.user.identificationTypeId,this.model.identification=this.user.identification,this.model.birthDate=this.user.birthDate,this.model.genderID=this.user.genderID+"",this.model.rootLocationIDPersonal=this.user.countryId,this.model.cityPersonal=this.user.city,this.model.addressPersonal=this.user.address,this.model.emailPersonal=this.user.email,this.model.mobileNumberPersonal=this.user.phone,this.model.complaintFormType.active=!0,this.model.email=this.user.email,this.model.neighborhoodPersonal=this.user.neighborhood):this.model.anonymous=!0,this.clickOptionSelectCustom(void 0,"secondLevelLocationIDPersonal","secondLevelLocationIDPersonalOption",this.user.departmentId+"")},2e3),this.costPqrdsLink=this.settingService.settings.general.costPqrdsLink,this.urlTracing=this.settingService.settings.routes.Complaint.concat("/seguimiento"),this.complaintAnonymousUrl=this.settingService.settings.general.complaintAnonymousUrl,this.responseTypes.push({responseTypeID:1,name:"Por correo electr\xF3nico"}),this.responseTypes.push({responseTypeID:2,name:"Por correspondencia f\xEDsica"}),this.responseTypes.push({responseTypeID:3,name:"Por tel\xE9fono"}),this.responseTypes.push({responseTypeID:4,name:"seguimiento por ticket"}),this.portalMainService.seo.title="Peticiones, quejas y reclamos",this.model.anonymous=this.portalMainService.goLogin,this.complaintFormService.globalSettings().subscribe({next:l=>{this.checkDescription=l.firstOrDefault("keyWord","PQRDS.AvisoPrivacidad").value},error:l=>this.helperService.handlerException(l)}),this.labelservice.getByFriendlyName("mensaje-horario-sugerido").subscribe({next:l=>{this.setlabel_cita(l)},error:l=>{this.model.label_cita="El servicio no est\xE1 disponible en este momento"}}),de([this.locationService.getRoot(),this.complaintformtypeService.getAll(),this.identificationTypeService.getAll(),this.complaintFormUserTypeService.getAll(),this.complaintAttentionConfigService.getRoot()]).pipe(oe(()=>this.loading=!1)).subscribe({next:l=>{this.setGetRoot(l[0]),this.setComplaintFormTypes(l[1]),this.setIdentificationType(l[2]),this.setComplaintFormUserType(l[3]),this.setComplaintAttentionConfig(l[4]),this.selectComplaint(parseInt(this.actRoute.snapshot.params.id)),this.clickOptionSelectCustomValue(this.model.identificationTypeID,"identificationTypeID","identificationTypeIDOption"),this.clickOptionSelectCustomValue(this.model.rootLocationIDPersonal,"rootLocationIDPersonal","rootLocationIDPersonalOption"),this?.model?.identificationTypeID==2&&this.clickOptionSelectCustomValue(7,"complaintFormUserTypeID","complaintFormUserTypeIDOption")},error:l=>this.errorComplaintFormTypes()}),this.eventEmitterService.endupload.subscribe(l=>this.endupload(l))}reset(){this.eventEmitterService.reloadCaptchaEvent.emit(!0);var l=this.model.complaintFormType;this.model={anonymous:!this.user.name,complaintFormType:l}}getItem(l,e,i){var t=[],o={},a={},s=[];switch(l){case"complaintFormUserTypeID":o=this.model.complaintFormUserType,t=this.complaintFormUserTypes;break;case"identificationTypeID":o=this.model.identificationType,t=this.identificationTypes;break;case"rootLocationIDPersonal":o=this.model.rootLocationPersonal,t=this.rootLocations;break;case"secondLevelLocationIDPersonal":o=this.model.secondLevelLocationPersonal,t=this.secondLevelLocationsPersonal;break;case"locationIDPersonal":o=this.model.locationPersonal,t=this.thirdLevelLocationsPersonal;break;case"rootLocationID":o=this.model.rootLocation,t=this.rootLocations;break;case"secondLevelLocationID":o=this.model.secondLevelLocation,t=this.secondLevelLocations;break;case"day":o=this.model.DaysAttentions,t=this.complaintAttentionConfig;break;case"Hour":o=this.model.HourHtml,t=this.tiempo;break;default:break}if(l==="day"?s=t.filter(function(u){return u.day.startsWith(e)}):l==="Hour"?s=t.filter(function(u){return u.startsWith(e)}):s=t.filter(function(u){return u.name.startsWith(e)}),o){switch(l){case"complaintFormUserTypeID":document.getElementById("".concat(i,"-").concat(o.complaintFormUserTypeID)).classList.toggle("optionSelected");break;case"identificationTypeID":document.getElementById("".concat(i,"-").concat(o.identificationTypeID)).classList.toggle("optionSelected");break;case"rootLocationIDPersonal":document.getElementById("".concat(i,"-").concat(o.id)).classList.toggle("optionSelected");break;case"secondLevelLocationIDPersonal":document.getElementById("".concat(i,"-").concat(o.id)).classList.toggle("optionSelected");break;case"locationIDPersonal":document.getElementById("".concat(i,"-").concat(o.id)).classList.toggle("optionSelected");break;case"rootLocationID":document.getElementById("".concat(i,"-").concat(o.id)).classList.toggle("optionSelected");break;case"secondLevelLocationID":document.getElementById("".concat(i,"-").concat(o.id)).classList.toggle("optionSelected");break;case"day":document.getElementById("".concat(i,"-").concat(o.attentionConfigID)).classList.toggle("optionSelected");break;case"Hour":document.getElementById("".concat(i,"-").concat(o)).classList.toggle("optionSelected");break;default:break}if(l==="day")if(o.day.startsWith(e)){var v=s.indexOf(o);v===s.length-1?a=s[0]:a=s[v+1]}else a=s[0];else if(l==="Hour")if(o.startsWith(e)){var v=s.indexOf(o);v===s.length-1?a=s[0]:a=s[v+1]}else a=s[0];else if(o.name.startsWith(e)){var v=s.indexOf(o);v===s.length-1?a=s[0]:a=s[v+1]}else a=s[0]}else a=s[0];return a}keyup(l,e,i){var t=this.getItem(e,l.key.toUpperCase(),i);if(t!==void 0){var o=document.getElementById(e),a=o.children[0];switch(a.textContent=t.name,e){case"complaintFormUserTypeID":this.model.complaintFormUserType=t,this.form.form.get("complaintFormUserTypeID")?.setValue(t);var s=document.getElementById("".concat(i,"-").concat(t.complaintFormUserTypeID)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.complaintFormUserTypeID)).classList.toggle("optionSelected");break;case"identificationTypeID":this.model.identificationType=t,this.form.form.get("identificationTypeID")?.setValue(t);var s=document.getElementById("".concat(i,"-").concat(t.identificationTypeID)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.identificationTypeID)).classList.toggle("optionSelected");break;case"rootLocationIDPersonal":var s=document.getElementById("".concat(i,"-").concat(t.id)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.id)).classList.toggle("optionSelected"),this.model.rootLocationPersonal=t,this.form.form.get("rootLocationIDPersonal")?.setValue(t),this.changeLocationRootPersonal(null);break;case"secondLevelLocationIDPersonal":var s=document.getElementById("".concat(i,"-").concat(t.id)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.id)).classList.toggle("optionSelected"),this.model.secondLevelLocationPersonal=t,this.form.form.get("secondLevelLocationIDPersonal")?.setValue(t),this.changeSecondLevelLocationsPersonal(null);break;case"locationIDPersonal":var s=document.getElementById("".concat(i,"-").concat(t.id)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.id)).classList.toggle("optionSelected"),this.model.locationPersonal=t,this.form.form.get("locationIDPersonal")?.setValue(t);break;case"rootLocationID":this.model.rootLocation=t,this.form.form.get("rootLocationID")?.setValue(t),this.changeLocationRoot(null);var s=document.getElementById("".concat(i,"-").concat(t.id)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.id)).classList.toggle("optionSelected");break;case"secondLevelLocationID":this.model.secondLevelLocation=t,this.form.form.get("secondLevelLocationID")?.setValue(t),this.changeSecondLevelLocations(null);var s=document.getElementById("".concat(i,"-").concat(t.id)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.id)).classList.toggle("optionSelected");break;case"day":this.model.DaysAttentions=t,this.form.form.get("day")?.setValue(t);var s=document.getElementById("".concat(i,"-").concat(t.attentionConfigID)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t.attentionConfigID)).classList.toggle("optionSelected");break;case"Hour":var s=document.getElementById("".concat(i,"-").concat(t)).offsetTop;document.getElementById(i).scrollTop=s,document.getElementById("".concat(i,"-").concat(t)).classList.toggle("optionSelected"),this.model.HourHtml=t,this.form.form.get("Hour")?.setValue(t);break;default:break}}}clickSelectCustom(l){var e=document.getElementById(l);if(e){var i=e.children[0];i.classList.toggle("isActive"),e.classList.toggle("isActive"),document.addEventListener("click",t=>{var o=!e.contains(t.target);o&&(e.classList.remove("isActive"),i.classList.remove("isActive"))})}}clickOptionSelectCustomValue(l,e,i){var t=document.getElementById(e);if(t){var o=t.children[0];o.textContent="";var a=l;switch(e){case"complaintFormUserTypeID":o.textContent=this.complaintFormUserTypes.filter(v=>v.complaintFormUserTypeID==l)[0].name;var s=this.complaintFormUserTypes.find(function(v){return v.complaintFormUserTypeID===parseInt(a)});this.model.complaintFormUserType?document.getElementById("".concat(i,"-").concat(this.model.complaintFormUserType.complaintFormUserTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),this.model.complaintFormUserType=s,this.form.form.get("complaintFormUserTypeID")?.setValue(s);break;case"identificationTypeID":o.textContent=this.identificationTypes.filter(v=>v.identificationTypeID==l)[0].name;var s=this.identificationTypes.find(function(v){return v.identificationTypeID===parseInt(a)});this.model.identificationType?document.getElementById("".concat(i,"-").concat(this.model.identificationType.identificationTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),this.model.identificationType=s,this.form.form.get("identificationTypeID")?.setValue(s);break;case"rootLocationIDPersonal":o.textContent=this.rootLocations.filter(v=>v.id==l)[0].name;var s=this.rootLocations.find(function(v){return v.id===parseInt(a)});this.model.rootLocationPersonal?document.getElementById("".concat(i,"-").concat(this.model.rootLocationPersonal.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),this.model.rootLocationPersonal=s,this.form.form.get("rootLocationIDPersonal")?.setValue(s),this.changeLocationRootPersonal(null);break;case"secondLevelLocationIDPersonal":var s=this.secondLevelLocationsPersonal.find(function(v){return v.id===parseInt(a)});this.model.secondLevelLocationPersonal?document.getElementById("".concat(i,"-").concat(this.model.secondLevelLocationPersonal.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger"))?.classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.secondLevelLocationPersonal=s,this.form.form.get("secondLevelLocationIDPersonal")?.setValue(s),this.changeSecondLevelLocationsPersonal(null);break;case"locationIDPersonal":var s=this.thirdLevelLocationsPersonal.find(function(v){return v.id===parseInt(a)});this.model.locationPersonal?document.getElementById("".concat(i,"-").concat(this.model.locationPersonal.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.locationPersonal=s,this.form.form.get("locationIDPersonal")?.setValue(s);break;case"rootLocationID":var s=this.rootLocations.find(function(v){return v.id===parseInt(a)});this.model.rootLocation?document.getElementById("".concat(i,"-").concat(this.model.rootLocation.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.rootLocation=s,this.form.form.get("rootLocationID")?.setValue(s),this.changeLocationRoot(null);break;case"secondLevelLocationID":var s=this.secondLevelLocations.find(function(v){return v.id===parseInt(a)});this.model.secondLevelLocation?document.getElementById("".concat(i,"-").concat(this.model.secondLevelLocation.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.secondLevelLocation=s,this.form.form.get("secondLevelLocationID")?.setValue(s),this.changeSecondLevelLocations(null);break;case"day":var s=this.complaintAttentionConfig.find(function(v){return v.attentionConfigID===parseInt(a)});this.model.DaysAttentions?document.getElementById("".concat(i,"-").concat(this.model.DaysAttentions.attentionConfigID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s.attentionConfigID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.DaysAttentions=s,this.form.form.get("day")?.setValue(s);break;case"Hour":var s=this.tiempo.find(function(v){return v===a});this.model.HourHtml?document.getElementById("".concat(i,"-").concat(this.model.HourHtml)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),s?document.getElementById("".concat(i,"-").concat(s)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.HourHtml=s,this.form.form.get("Hour")?.setValue(s);break;default:break}}}clickOptionSelectCustom(l,e,i,t){return ie(this,null,function*(){var o=document.getElementById(e),a=o?.children[0]||{textContent:""};if(l?.target){a.textContent=(l?.target).textContent||"";var s=t||(l?.target).getAttribute("data-value");switch(e){case"complaintFormUserTypeID":var v=this.complaintFormUserTypes.find(function(u){return u.complaintFormUserTypeID===parseInt(s)});this.model.complaintFormUserType?document.getElementById("".concat(i,"-").concat(this.model.complaintFormUserType.complaintFormUserTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.complaintFormUserTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.complaintFormUserType=v,this.form.form.get("complaintFormUserTypeID")?.setValue(v);break;case"identificationTypeID":var v=this.identificationTypes.find(function(u){return u.identificationTypeID===parseInt(s)});this.model.identificationType?document.getElementById("".concat(i,"-").concat(this.model.identificationType.identificationTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.identificationTypeID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.identificationType=v,this.form.form.get("identificationTypeID")?.setValue(v);break;case"rootLocationIDPersonal":var v=this.rootLocations.find(function(u){return u.id===parseInt(s)});this.model.rootLocationPersonal?document.getElementById("".concat(i,"-").conca
1t(this.model.rootLocationPersonal.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.rootLocationPersonal=v,this.form.form.get("rootLocationIDPersonal")?.setValue(v),yield this.changeLocationRootPersonal(null);break;case"secondLevelLocationIDPersonal":yield this.changeLocationRootPersonal(null);var v=this.secondLevelLocationsPersonal?.find(function(u){return u.id===parseInt(s)});this.model.secondLevelLocationPersonal?document.getElementById("".concat(i,"-").concat(this.model.secondLevelLocationPersonal.id))?.classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger"))?.classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id))?.classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger"))?.classList.toggle("optionSelected"),a.textContent=v?.name,this.model.secondLevelLocationPersonal=v,this.form.form.get("secondLevelLocationIDPersonal")?.setValue(v),yield this.changeSecondLevelLocationsPersonal(null),t&&(yield this.clickOptionSelectCustom(void 0,"locationIDPersonal","locationIDPersonalOption",this.user.locationId+"")),s!=this.model.locationPersonal?.parentLocationId&&this.clickOptionSelectCustom(void 0,"locationIDPersonal","locationIDPersonalOption","");break;case"locationIDPersonal":yield this.changeSecondLevelLocationsPersonal(null);var v=this.thirdLevelLocationsPersonal?.find(function(u){return u.id===parseInt(s)});this.model.locationPersonal?document.getElementById("".concat(i,"-").concat(this.model.locationPersonal.id))?.classList?.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger"))?.classList?.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id))?.classList?.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger"))?.classList?.toggle("optionSelected"),a.textContent=v?.name,this.model.locationPersonal=v,this.form.form.get("locationIDPersonal")?.setValue(v);break;case"rootLocationID":var v=this.rootLocations.find(function(u){return u.id===parseInt(s)});this.model.rootLocation?document.getElementById("".concat(i,"-").concat(this.model.rootLocation.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.rootLocation=v,this.form.form.get("rootLocationID")?.setValue(v),this.changeLocationRoot(null);break;case"secondLevelLocationID":var v=this.secondLevelLocations.find(function(u){return u.id===parseInt(s)});this.model.secondLevelLocation?document.getElementById("".concat(i,"-").concat(this.model.secondLevelLocation.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.secondLevelLocation=v,this.form.form.get("secondLevelLocationID")?.setValue(v),this.changeSecondLevelLocations(null);break;case"locationID":var v=this.thirdLevelLocations.find(function(u){return u.id===parseInt(s)});this.model.locationID?document.getElementById("".concat(i,"-").concat(this.model.location.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.id)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.location=v,this.form.form.get("locationID")?.setValue(v);break;case"day":var v=this.complaintAttentionConfig.find(function(u){return u.attentionConfigID===parseInt(s)});this.model.DaysAttentions?document.getElementById("".concat(i,"-").concat(this.model.DaysAttentions.attentionConfigID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v.attentionConfigID)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.DaysAttentions=v,this.form.form.get("day")?.setValue(v),this.calculateRange(this.model.DaysAttentions);break;case"Hour":var v=this.tiempo.find(u=>u===s);this.model.HourHtml?document.getElementById("".concat(i,"-").concat(this.model.HourHtml)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.remove("optionSelected"),v?document.getElementById("".concat(i,"-").concat(v)).classList.toggle("optionSelected"):document.getElementById("".concat(i,"-Escoger")).classList.toggle("optionSelected"),this.model.HourHtml=v,this.form.form.get("Hour")?.setValue(v);break;default:break}}})}validateTerms(){this.isTerminos=!0;
1let l=document.getElementById("typeprivacy");l.checked=!1,this.complaintFormService.getMessagePolicy().subscribe({next:e=>{this.modalService.showConfirm(e.value,"Autorizaci\xF3n").subscribe(i=>{i?(this.isTerminos=!1,l.checked=!0,this.model.typeprivacy=!0):(this.isTerminos=!0,l.checked=!1,this.model.typeprivacy=!1)})},error:console.error})}send(l){if(this.loading=!0,this.model.anonymous?(this.model.complaintFormType.name==="Agenda tu cita"||this.model.complaintFormType.name==="Solicitud de datos personales")&&(this.model.birthDate=document.getElementById("date-birthdate").value):this.model.birthDate=document.getElementById("date-birthdate").value,this.model.emailEqual=this.model.emailEqual!=null?this.model.emailEqual:!0,l.valid&&!this.formIsBusy&&this.model.emailEqual){var e=!0,i=sessionStorage.getItem("keyValueCaptcha");if(this.captchaValid=!1,sessionStorage.getItem("visibleCaptcha")==="true"){this.captchaValid=!1;var i=hcaptcha.getResponse(sessionStorage.getItem("captchaWidgetID"));i&&i.length===0&&(this.captchaValid=!0,e=!1)}if(e){this.model.captcha=i,this.formIsBusy=!0,this.model.complaintFormType&&this.model.complaintFormType.complaintFormTypeID&&(this.model.complaintFormTypeID=this.model.complaintFormType.complaintFormTypeID),this.model.complaintFormUserType&&this.model.complaintFormUserType.complaintFormUserTypeID&&(this.model.complaintFormUserTypeID=this.model.complaintFormUserType.complaintFormUserTypeID),this.model.identificationType&&this.model.identificationType.identificationTypeID&&(this.model.identificationTypeID=this.model.identificationType.identificationTypeID),this.model.rootLocationPersonal&&(this.model.rootLocationPersonal.id===1?this.model.locationPersonal&&(this.model.locationPersonalID=this.model.locationPersonal.id):(this.model.locationPersonalID=this.model.rootLocationPersonal.id,this.model.locationPersonal=this.model.rootLocationPersonal)),this.model.rootLocation&&(this.model.rootLocation.id===1?this.model.location&&(this.model.locationID=this.model.location.id):(this.model.locationID=this.model.rootLocation.id,this.model.location=this.model.rootLocation));for(var t in this.model)this.model[t]===""&&(this.model[t]=null);this.model.anonymous&&(this.model.genderID=null),this.model.presential=parseInt(this.model.presential),this.model.DaysAttentions?this.model.DaysAttentions.day&&(this.model.day=this.model.DaysAttentions.day):this.model.day=null,this.complaintFormService.insert(this.model).pipe(oe(()=>this.loading=!1)).subscribe({next:o=>this.setInsertComplaint(o),error:o=>this.errorInsertComplaint(o),complete:()=>this.formIsBusy=!1}),this.register(this.model)}}else this.loading=!1}register(l){var e={email:l.emailPersonal,name:l.firstName,identificationType:{identificationTypeID:l.identificationTypeID},identification:l.identification,secondname:l.lastName||"",lastname:l.firstSurName,secondlastname:l.lastSurName||"",address:l.addressPersonal,phone:l.mobileNumberPersonal,loa:"loa:1",country:{id:l.rootLocationPersonal&&l.rootLocationPersonal.id?l.rootLocationPersonal.id:1,name:l.rootLocationPersonal&&l.rootLocationPersonal.name?l.rootLocationPersonal.name:""},department:{id:l.secondLevelLocationPersonal&&l.secondLevelLocationPersonal.id?l.secondLevelLocationPersonal.id:1,name:l.secondLevelLocationPersonal&&l.secondLevelLocationPersonal.name?l.secondLevelLocationPersonal.name:""},location:{id:l.locationPersonal&&l.locationPersonal.id?l.locationPersonal.id:1,name:l.locationPersonal&&l.locationPersonal.name?l.locationPersonal.name:""},neighborhood:l.neighborhoodPersonal,genderID:l.genderID,birthDate:l.birthDate,captcha:l.captcha,friendlyName:this.user.friendlyName};return l.captcha&&l.captcha.length===0?!1:(this.userService.update(e).subscribe({error:i=>this.errorCreateUser(i)}),!0)}showData(l){console.log("showData"),console.log(l)}errorCreateUser(l){console.log("errorCreateUser"),console.log(l)}changeLocationRoot(l){this.model.rootLocation&&this.model.rootLocation.name==="Colombia"&&this.locationService.getChildrens(this.model.rootLocation.id).subscribe({next:e=>this.getSecondLevelLocation(e),error:e=>this.errorSecondLevelLocation(e)})}changeLocationRootPersonal(l){this.model.rootLocationPersonal&&this.model.rootLocationPersonal.name==="Colombia"&&this.locationService.getChildrens(this.model.rootLocationPersonal.id).subscribe({next:e=>this.secondLevelLocationsPersonal=e,error:e=>this.errorSecondLevelLocation(e)})}changeComplaintFormType(l){(this.model.complaintFormType.name==="Petici\xF3n"||this.model.complaintFormType.name==="Denuncia")&&(this.model.anonymous=!this.user.n
1ame)}selectComplaint(l){this.selectedComplaint=l,this.model.complaintFormType=this.complaintFormTypes.firstOrDefault("complaintFormTypeID",l)}cancel(){this.router.navigate([this.settingService.settings.routes.Complaint])}back(){window.location.reload()}changeAttachFile(l){!this.model.isAttachment&&this.model.fileID&&delete this.model.fileID}changeSecondLevelLocations(l){this.model.secondLevelLocation&&this.locationService.getChildrens(this.model.secondLevelLocation.id).subscribe({next:e=>this.getThirdLevelLocation(e),error:e=>this.errorThirdLevelLocation(e)})}changeSecondLevelLocationsPersonal(l){return ie(this,null,function*(){this.model.secondLevelLocationPersonal&&this.locationService.getChildrens(this.model.secondLevelLocationPersonal.id).subscribe({next:e=>this.thirdLevelLocationsPersonal=e,error:e=>this.errorThirdLevelLocation(e)})})}setComplaintFormTypes(l){this.complaintFormTypes=l.results,this.changeStatusTypes(!0)}setIdentificationType(l){this.identificationTypes=l,this.changeStatusIdentificationType(!0)}setComplaintFormUserType(l){this.complaintFormUserTypes=l}setComplaintAttentionConfig(l){this.complaintAttentionConfig=l}setlabel_cita(l){var e=l;this.model.label_cita=e.description}changeIdentificationType(l){var e=document.getElementById("complaintFormUserTypeID");if(this.model.complaintFormUserType)switch(this.changeStatusIdentificationType(!1),this.model.complaintFormUserType.name){case"Ni\xF1os, Ni\xF1as y Adolecentes":var i=this.identificationTypes.firstOrDefault("name","Tarjeta de identidad");i&&(i.active=!0),e.blur();break;case"Persona jur\xEDdica":var i=this.identificationTypes.firstOrDefault("name","NIT");i&&(i.active=!0),e.blur();break;default:this.changeStatusIdentificationType(!0),e.blur();break}else this.changeStatusIdentificationType(!0);e.blur()}changeStatusTypes(l){for(var e=0;e<this.complaintFormTypes.length;e++)this.complaintFormTypes[e].active=l}changeStatusIdentificationType(l){for(var e=0;e<this.identificationTypes.length;e++)this.identificationTypes[e].active=l}setGetRoot(l){this.rootLocations=l}getSecondLevelLocation(l){this.secondLevelLocations=l}setInsertComplaint(l){this.helperService.piwikTrackEvent("Pqrds","Enviar","complaint.controller"),this.model.response=l.trackingID,this.user.name&&(this.model.firstName=this.user.name,this.model.email=this.user.email),window.scrollTo(0,0)}getThirdLevelLocation(l){this.thirdLevelLocations=l}errorComplaintFormTypes(){}errorSecondLevelLocation(l){}errorInsertComplaint(l){this.eventEmitterService.reloadCaptchaEvent.emit(!0),l.status===400&&l.error&&l.error.details&&l.error.details.length&&this.modalService.showAlert(l.error.details[0].message)}errorThirdLevelLocation(l){}calculateRange(l){this.tiempo=[];var e=parseInt(l.hourInitAm),i=parseInt(l.hourEndAm),t=parseInt(l.hourInitPm),o=parseInt(l.hourEndPm);for(let a=e;a<=i;a+=1){if(a===12){this.tiempo.push(a+":00 M.");continue}this.tiempo.push(a+":00 A.M.")}for(let a=t;a<=o;a+=1)a===12&&this.tiempo.includes(a+":00 M.")||this.tiempo.push(this.gethourAfternoonById(this.hourAfternoon,a));this.model.day=l.day}gethourAfternoonById(l,e){for(var i=0;i<=l.length;i++)if(l[i].id===e)return l[i].name}validEmail(l){var e=document.getElementById("emailConfirm"),i=document.getElementById("emailPersonal");e.value!==i.value?this.model.emailEqual=!1:this.model.emailEqual=!0}endupload(l){this.uploadingFile=!1}uploading(){this.uploadingFile=!0}countChars(){var l=document.getElementById("description").value;this.characterNum=l.length}validEmailVerifReq(l){l===!1||!this.model.anonymous&&this.user.name,setTimeout(()=>{var e=document.getElementById("emailPersonal");this.emailVerifRequired=e?.required,e?.value.trim()!=""&&(this.emailVerifRequired=!0)},100)}loginKey(){!this.user.name&&(this.model.complaintFormType.name==="Agenda tu cita"||this.model.complaintFormType.name==="Solicitud de datos personales")&&(this.model.anonymous=!0,this.portalMainService.loginkeyCloakModal(),this.validLogIn=!1)}loginFirst(){this.user.name||this.portalMainService.getExternalLinkModal(this.settingService.settings.general.autenticatorGovCoURI,!0,"Para hacer una pet
1ici\xF3n a t\xEDtulo personal debes iniciar sesi\xF3n, para lo cual ser\xE1 redirigido al siguiente link:","Siguiente","An\xF3nimo")}static \u0275fac=function(e){return new(e||n)(q($),q(K),q(Ye),q(tt),q(Ve),q(et),q(Je),q(it),q(Ke),q(te),q(nt),q(Le),q(J),q(ke),q(De),q(X),q(Y))};static \u0275cmp=pe({type:n,selectors:[["app-complaint-form"]],viewQuery:function(e,i){if(e&1&&Ce(ft,5),e&2){let t;ye(t=he())&&(i.form=t.first)}},standalone:!0,features:[xe],decls:2,vars:3,consts:[["form","ngForm"],["message","Cargando...","size","md",3,"show","overlay"],["class","content_all",4,"ngIf"],[1,"content_all"],[3,"seedValue","seedSecondValue"],[1,"section-tit"],[1,"wrap-pqrs"],[4,"ngIf"],["class","pqr-response",4,"ngIf"],["novalidate","","name","form",3,"ngSubmit"],["id","select1"],[1,"sub-title","sub-title-bold"],["ng-init","loginKey()",1,"sub-title","sub-title-bold"],[1,"pqr-form"],[1,"wrapRadios"],[1,"wrapRadios-col",3,"click"],["name","anonimus","id","personal","type","radio",3,"change","ngModelChange","disabled","ngModel","value"],["for","personal"],[1,"wrapRadios-col"],["name","anonimus","id","anonimo","type","radio",3,"change","ngModelChange","ngModel","value"],["for","anonimo"],["class","pqrs-col",4,"ngIf"],["class","pqrs-row",4,"ngIf"],[3,"ngClass",4,"ngIf"],["placeholder","Ej. Descripci\xF3n de la solicitud","required-empty","","maxlength","5098","minlength","2","name","description","id","description",1,"areaFix",3,"ngModelChange","keyup","ngClass","ngModel"],["class","error",4,"ngIf"],["name","label_cita",4,"ngIf"],["style","color: #a9a9a9",4,"ngIf"],["class","pqr-fileV3",4,"ngIf"],["class","pqrs-wAdd",4,"ngIf"],[1,"content-progress"],["class","pqrs-wAnswer",4,"ngIf"],["title","Recomendaciones de anonimato Seg\xFAn anexo 2 de la resoluci\xF3n 2893 de 2020.","href","/anonimato","target","_blank",2,"color","#005dca"],[2,"display","inline-block"],["title","T\xE9rminos y condiciones de uso segun anexo 2 de la resoluci\xF3n 2893 de 2020","href","/politicas","target","_blank"],["type","button",1,"btn-save","btn-save--pqrsLine"],[1,"checkPqrds"],[1,"divCheck"],["name","typeprivacy","id","typeprivacy","required","","type","checkbox",3,"click","ngModelChange","ngModel"],["for","typeprivacy"],[1,"pqrs-captcha"],[1,"wrapBtnFormPqrs"],["type","button",1,"btn-save","btn-save--pqrsLine",3,"click"],["type","button","class","btn-save btn-save--pqrsLine",3,"click",4,"ngIf"],["id","enviarPQRS","type","submit",3,"ngClass","disabled",4,"ngIf"],["type","submit",3,"ngClass",4,"ngIf"],[1,"pqrs-col"],[3,"ngClass"],[1,"selectWrapper"],["tabindex","0","ngDefaultControl","","name","complaintFormUserTypeID","id","complaintFormUserTypeID",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],[1,"selectCustom-trigger",3,"ngClass"],["id","complaintFormUserTypeIDOption",1,"selectCustom-options"],["id","complaintFormUserTypeIDOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],[1,"selectCustom-option",3,"id"],[1,"selectCustom-option",3,"click","id"],[1,"error"],[1,"pqrs-row"],["autocomplete","off","placeholder","Ej. Juan","appChars","","name","firstName","maxlength","50","minlength","2","type","text",3,"ngModelChange","ngClass","chars","required","ngModel"],["autocomplete","off","placeholder","Ej. Alejandro","appChars","","name","lastName","maxlength","50","minlength","2","type","text",3,"ngModelChange","chars","ngModel"],["autocomplete","off","placeholder","Ej. Dur\xE1n","appChars","","name","firstSurName","maxlength","50","minlength","2","type","text",3,"ngModelChange","ngClass","chars","required","ngModel"],["autocomplete","off","placeholder","Ej. Torres","appChars","","name","lastSurName","maxlength","50","minlength","2","type","text",3,"ngModelChange","chars","ngModel"],["tabindex","0","name","identificationTypeID","ngDefaultControl","","id","identificationTypeID",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","identificationTypeIDOption",1,"selectCustom-options"],["id","identificationTypeIDOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["autocomplete","off","placeholder","Ej. 1010167567","appChars","","name","identification","pattern","\\d+","maxlength","10","minlength","5","type","text",3,"ngModelChange","ngClass","chars","required","ngModel"],[2,"height","6px"],["id","date-birthdate","autocomplete","off","placeholder","Ej. 1930-01-07","readonly","","appDateTime","","type","text","name","birthDate",3,"ngModelChange","ngClass","ngModel","required"],["version","1.1","id","Capa_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 18.14 21.23",0,"xml","space","preserve",2,"enable-background","new 0 0 18.14 21.23"],["id","Trazado_113","d",`M3.81,3.15c0.75-0.83-0.52-2.56,1.54-2.53C7.32,0.65,6.1,2.26,6.77,3.06h4.65
2		                                c0.59-0.77-0.58-2.59,1.56-2.43c1.84,0.14,0.61,1.64,1.39,2.52c0.26,0,0.75-0.02,1.23,0c1.54,0.06,2.18,0.69,2.19,2.25
3		                                c0.02,4.3,0.02,8.61,0,12.91c-0.01,1.64-0.66,2.28-2.29,2.28c-4.3,0.02-8.61,0.02-12.91,0c-1.56-0.01-2.23-0.65-2.24-2.2
4		                                c-0.03-4.35-0.03-8.7,0-13.05c0.01-1.53,0.68-2.15,2.24-2.2C3.04,3.14,3.49,3.15,3.81,3.15z M2.26,18.68h13.63V6.92H2.26
5		                                L2.26,18.68z`],["id","Trazado_114","d",`M7.92,13.82l4.22-4.63c1.86,1.15,1.88,1.3,0.59,2.59c-1.37,1.37-2.77,2.73-4.11,4.13
6		                                c-0.61,0.64-1.11,0.72-1.71,0.01c-0.48-0.56-1.02-1.07-1.54-1.6c-1.24-1.28-1.23-1.38,0.42-2.5L7.92,13.82z`],["type","radio","value","1","name","genderID","id","genre-1",3,"ngModelChange","ngModel","required"],["for","genre-1"],["type","radio","value","0","name","genderID","id","genre-0",3,"ngModelChange","ngModel","required"],["for","genre-0"],["type","radio","value","2","name","genderID","id","genre-2",3,"ngModelChange","ngModel","required"],["for","genre-2"],["tabindex","0","name","rootLocationIDPersonal","ngDefaultControl","","id","rootLocationIDPersonal",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","rootLocationIDPersonalOption",1,"selectCustom-options"],["id","rootLocationIDPersonalOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["autocomplete","off","placeholder","Ej. Contoso S.A.S","name","firstName","maxlength","50","minlength","5","type","text",3,"ngModelChange","ngClass","required","ngModel"],["tabindex","0","ngDefaultControl","","name","secondLevelLocationIDPersonal","id","secondLevelLocationIDPersonal",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","secondLevelLocationIDPersonalOption",1,"selectCustom-options"],["id","secondLevelLocationIDPersonalOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["tabindex","0","ngDefaultControl","","name","locationIDPersonal","id","locationIDPersonal",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","locationIDPersonalOption",1,"selectCustom-options"],["id","locationIDPersonalOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["autocomplete","off","placeholder","Ej. Santiago de Chile","type","text","maxlength","50","minlength","2","name","cityPersonal",3,"ngModelChange","ngClass","ngModel","required"],["autocomplete","off","placeholder","Ej. Chico","type","text","maxlength","50","minlength","2","name","neighborhoodPersonal",3,"ngModelChange","ngClass","ngModel","required"],["placeholder","Ej. Cra 34 # 23 - 45 Apto 501","maxlength","250","name","addressPersonal",1,"areaFix",3,"ngModelChange","ngClass","required","ngModel"],["autocomplete","off","placeholder","Ej. 572346578","appChars","","type","text","maxlength","15","minlength","7","pattern","\\d+","name","phoneNumberPersonal",3,"ngModelChange","ngClass","chars","required","ngModel"],["autocomplete","off","placeholder","Ej. 573014560098","appChars","","type","text","maxlength","15","minlength","10","pattern","\\d+","name","mobileNumberPersonal",3,"ngModelChange","ngClass","chars","required","ngModel"],["autocomplete","off","placeholder","Ej. [email protected]","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$","type","email","name","emailPersonal","id","emailPersonal","maxlength","250",3,"ngModelChange","blur","ngClass","required","ngModel"],["autocomplete","off","placeholder","[email protected]","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$","type","email","name","emailConfirm","id","emailConfirm","hidden","emailConfirm","maxlength","250",3,"ngModelChange","blur","ngClass","ngModel","required"],["name","presential","id","presen-1","type","radio","value","1",3,"ngModelChange","ngModel","required"],["for","presen-1"],["name","presential","id","presen-0","type","radio","value","0",3,"ngModelChange","ngModel","required"],["for","presen-0"],["name","label_cita"],["tabindex","0","ngDefaultControl","","name","day","id","day",1,"selectCustom",3,"keyup","onChange","ngModelChange","click","ngModel","required"],["id","dayOption",1,"selectCustom-options"],["id","dayOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["tabindex","0","ngDefaultControl","","name","Hour","id","Hour",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","HourOption",1,"selectCustom-options"],["id","HourOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],[2,"color","#a9a9a9"],[1,"pqr-fileV3"],["class","pqr-button-file",4,"ngIf"],["class","loader-spinner-pqrs",4,"ngIf"],[1,"pqr-button-file"],[1,"wrap-icon"],[1,"pqrs-icon"],[1,"pqr-txt-btn"],["type","file","appUpload","","maxsize","2097152",3,"reg","obj","pqr"],[1,"loader-spinner-pqrs"],[1,"ico-spinner-pqrs"],[1,"pqrs-wAdd"],[1,"pqr-addFileName"],[1,"",3,"click"],[1,"icon-close"],[1,"content-progress-row"],[3,"ngStyle"],[1,"pqrs-wAnswer"],["name","responseTypeID","required","","type","radio",3,"ngModelChange","id","ngModel","value"],[3,"for"],["autocomplete","off","placeholder","[email protected]","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$","type","email","required","","name","email","maxlength","250",3,"ngModelChange","ngClass","ngModel"],["tabindex","0","ngDefaultControl","","name","rootLocationID","id","rootLocationID",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","rootLocationIDOption",1,"selectCustom-options"],["id","rootLocationIDOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["placeholder","Ej. Cra 34 # 23 - 45 Apto 501","required","","maxlength","250","name","address",1,"areaFix",3,"ngModelChange","ngClass","ngModel"],["tabindex","0","ngDefaultControl","","name","secondLevelLocationID","id","secondLevelLocationID",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","secondLevelLocationIDOption",1,"selectCustom-options"],["id","secondLevelLocationIDOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["tabindex","0","ngDefaultControl","","name","locationID","id","locationID",1,"selectCustom",3,"keyup","ngModelChange","click","ngModel","required"],["id","locationIDOption",1,"selectCustom-options"],["id","locationIDOption-Escoger","data-value","",1,"selectCustom-option",3,"click"],["autocomplete","off","placeholder","Ej. Santiago de Chile","type","text","maxlength","50","minlength","2","required","","name","city",3,"ngModelChange","ngClass","ngModel"],["required","","autocomplete","off","placeholder","Ej. Chico","type","text","maxlength","50","minlength","2","name","neighborhood",3,"ngModelChange","ngClass","ngModel"],["autocomplete","off","placeholder","Ej. 573014560098","appChars","","required","","type","text","maxlength","15","minlength","10","pattern","\\d+","name","mobileNumber",3,"ngModelChange","ngClass","chars","ngModel"],["autocomplete","off","placeholder","Ej. 572346578","a
6ppChars","","type","text","maxlength","15","minlength","7","pattern","\\d+","name","phoneNumber",3,"ngModelChange","ngClass","chars","ngModel"],["autocomplete","off","placeholder","Ej. 543","appChars","","type","text","maxlength","15","pattern","\\d+","name","extension",3,"ngModelChange","ngClass","chars","ngModel"],["target","_blank",1,"pqrs__info","mt20",3,"routerLink"],[1,"pqrs__info","mt20"],["id","enviarPQRS","type","submit",3,"ngClass","disabled"],["type","submit",3,"ngClass"],["target","_blank",1,"btn-save",3,"routerLink"],[1,"pqr-response"],[1,"box-follow","box-follow-response"],["class","pqr-responseTit",4,"ngIf"],[1,"pqr-num"],[1,"btn-save","btn-save--pqrs",3,"click"],[1,"pqr-responseTit"]],template:function(e,i){e&1&&(F(0,"app-loading-spinner",1),g(1,Xo,8,4,"div",2)),e&2&&(_("show",i.loading)("overlay",!1),m(),_("ngIf",!i.loading))},dependencies:[Ee,be,Se,Fe,Ge,He,Be,qe,je,Ae,Ne,Re,Oe,Qe,Ze,ze,We,Ue,we,Pe,rt,lt,ot,$e,ee,at]})};export{dt as ComplaintFormComponent};

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.