PageSourceSearch

https://armenia-antioquia.gov.co/chunk-AOOZPPLB.js

js armenia-antioquia.gov.co collected 2026-10-03 01:33:02 UTC 15,424 bytes, 1 lines download raw bytes

1import{a as re}from"./chunk-BQDM7SLO.js";import{a as oe}from"./chunk-MNGW2DT3.js";import{a as Y}from"./chunk-GBRQKVYB.js";import"./chunk-CJWEDDVW.js";import{a as se}from"./chunk-YWAL7HVF.js";import"./chunk-AHQSOXDD.js";import"./chunk-GCE2MEC6.js";import"./chunk-W2ZMKN4C.js";import"./chunk-MIHC4Y75.js";import{b as U}from"./chunk-SB5L2XE4.js";import{A as te,B as ie,D as ne,c as O,g as $,h as G,j as Z,l as J,m as K,x as X,z as ee}from"./chunk-ICJV4PL6.js";import{a as W}from"./chunk-RIRGXRXY.js";import"./chunk-3GN2FC7K.js";import{t as Q}from"./chunk-47CSRN7C.js";import{c as B}from"./chunk-SKH2MXBC.js";import{i as H,k as L,v as R}from"./chunk-BQLJE42W.js";import{$b as q,Db as C,Ib as g,Jb as m,Pa as D,Pb as V,Qa as S,Qb as N,Rb as k,Sb as h,Tb as r,Ub as b,Vb as s,Xa as o,Ya as v,Zb as P,_b as F,bc as A,cc as z,da as w,dc as j,ib as _,mb as l,na as f,oa as x,sb as M,tb as E,v as T,vb as y,wb as I,xb as a,yb as i,zb as p}from"./chunk-YE3BF7DR.js";import{e as me}from"./chunk-4IDNTCH7.js";var le=me(se());var de=["form"],ce=()=>({"btn-save":!0}),pe=t=>({"btn-save":!0,"disabled-button":t});function _e(t,n){t&1&&(a(0,"div",4),r(1,"Cargando informaci\xF3n..."),i())}function ue(t,n){t&1&&(a(0,"h3"),r(1,"Informaci\xF3n b\xE1sica"),i())}function fe(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Tipo de solicitante"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.complaintFormUserType.name," ")}}function xe(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Primer nombre"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.firstName," ")}}function ve(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Raz\xF3n social"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.firstName," ")}}function ge(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Segundo nombre"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.lastName," ")}}function Ce(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Primer apellido"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.firstSurName," ")}}function he(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Segundo apellido"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.lastSurName," ")}}function Se(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Tipo de identificaci\xF3n"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.identificationType.name," ")}}function Ee(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"N\xFAmero de indetificaci\xF3n"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.identification," ")}}function ye(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Gen\xE9ro:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.genre," ")}}function Ie(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Fecha de nacimiento:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.birthDate2," ")}}function be(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Tel\xE9fono fijo:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.phoneNumberPersonal," ")}}function Pe(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Tel\xE9fono m\xF3vil:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.mobileNumberPersonal," ")}}function Fe(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Direcci\xF3n:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.addressPersonal," ")}}function qe(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Pa\xEDs:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.countryNamePersonal," ")}}function Te(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Departamento:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.deptoNamePersonal," ")}}function we(t,n){if(t&1&&(a(0,"li")(1,"span"),r(2,"Ciudad:"),i(),r(3),i()),t&2){let e=m(3);o(3),s(" ",e.model.cityNamePersonal," ")}}function De(t,n){if(t&1&&(a(0,"div")(1,"a",15),r(2,"Archivo adjunto"),i()()),t&2){let e=m(3);o(),l("href",e.model.filePath,S)("download",e.model.filePath)}}function Me(t,n){t&1&&(a(0,"span"),r(1,"Debes ingresar la respuesta a la solicitud"),i())}function Ve(t,n){if(t&1&&(a(0,"div",22),_(1,Me,2,0,"span",12),i()),t&2){m();let e=h(5);o(),l("ngIf",e.errors==null?null:e.errors.required)}}function Ne(t,n){if(t&1&&(a(0,"div"),r(1),i()),t&2){let e=m().$implicit;o(),b(e.progress)}}function ke(t,n){if(t&1){let e=C();a(0,"div")(1,"a",24),r(2),i(),a(3,"button",25),g("click",function(){f(e);let c=m().$index,u=m(5);return x(u.removeFile(c))}),p(4,"i",26),i()()}if(t&2){let e=m().$implicit;o(),l("href",e.filePath,S),o(),b(e.name)}
1}function Ae(t,n){if(t&1&&(a(0,"div"),_(1,Ne,2,1,"div",12)(2,ke,5,2,"div",12),i()),t&2){let e=n.$implicit;o(),l("ngIf",e.progress!=="100%"),o(),l("ngIf",e.progress==="100%")}}function ze(t,n){if(t&1){let e=C();a(0,"div")(1,"div")(2,"label"),r(3,"Archivos adjuntos"),i()(),a(4,"div")(5,"input",23),g("end",function(){f(e);let c=m(4);return x(c.endFile())})("start",function(c){f(e);let u=m(4);return x(u.startFile(c))}),i()(),y(6,Ae,3,2,"div",null,E),i()}if(t&2){let e=m(4);o(5),l("reg",".({{extensions.value}})$")("size",e.sizes.value)("obj",e.files),o(),I(e.files)}}function je(t,n){if(t&1){let e=C();a(0,"input",27),g("click",function(){f(e);let c=m(4);return x(c.delegate())}),i()}}function He(t,n){if(t&1){let e=C();a(0,"form",16,0),g("ngSubmit",function(){f(e);let c=m(3);return x(c.resolve())}),a(2,"label"),r(3,"Escribe la respuesta aqu\xED"),i(),a(4,"textarea",17,1),q("ngModelChange",function(c){f(e);let u=m(3);return F(u.model.answer,c)||(u.model.answer=c),x(c)}),i(),_(6,Ve,2,1,"div",18)(7,ze,8,3,"div",12),p(8,"input",19),_(9,je,1,0,"input",20),a(10,"a",21),r(11,"Salir"),i(),p(12,"br"),i()}if(t&2){let e=h(5),d=m(3);o(4),P("ngModel",d.model.answer),o(2),l("ngIf",e.errors&&d.formSubmitted),o(),l("ngIf",d.extensions),o(),l("ngClass",z(5,ce)),o(),l("ngIf",d.model.nDelegate===null||d.model.nDelegate<=2)}}function Le(t,n){if(t&1&&(a(0,"div"),p(1,"a",30),i()),t&2){let e=n.$implicit;o(),l("href",e.filePath,S)("textContent",e.name)}}function Re(t,n){if(t&1&&(a(0,"div")(1,"h3"),r(2,"Archivos adjuntos a la respuesta"),i(),y(3,Le,2,2,"div",null,E),i()),t&2){let e=m(4);o(3),I(e.model.files)}}function Ue(t,n){if(t&1&&(a(0,"div")(1,"h3"),r(2,"Fecha en la que se delego la solicitud"),i(),p(3,"p",29),i()),t&2){let e=m(4);o(3),l("textContent",e.model.answerableDate)}}function Be(t,n){if(t&1&&(a(0,"form")(1,"h3"),r(2,"Respuesta a la solicitud"),i(),p(3,"p",28),_(4,Re,5,0,"div",12),a(5,"h3"),r(6,"Usuario que respondio la solicitud"),i(),p(7,"p",29),_(8,Ue,4,1,"div",12),a(9,"a",21),r(10,"Salir"),i()()),t&2){let e=m(3);o(4),l("ngIf",e.model.files),o(3),l("textContent",e.model.user.name),o(),l("ngIf",e.model.answerableDate)}}function Qe(t,n){if(t&1&&(a(0,"div",6)(1,"h2",7),r(2,"Gesti\xF3n de PQRDS"),i(),a(3,"a",8),p(4,"span",9),i(),a(5,"div",10)(6,"ul")(7,"li")(8,"span")(9,"strong"),r(10,"Estado"),i()(),r(11),i(),a(12,"li")(13,"span")(14,"strong"),r(15,"Fecha de solicitud"),i()(),r(16),i(),a(17,"li")(18,"span")(19,"strong"),r(20,"N\xFAmero"),i()(),r(21),i()(),p(22,"div",11),a(23,"ul"),_(24,ue,2,0,"h3",12)(25,fe,4,1,"li",12)(26,xe,4,1,"li",12)(27,ve,4,1,"li",12)(28,ge,4,1,"li",12)(29,Ce,4,1,"li",12)(30,he,4,1,"li",12)(31,Se,4,1,"li",12)(32,Ee,4,1,"li",12)(33,ye,4,1,"li",12)(34,Ie,4,1,"li",12)(35,be,4,1,"li",12)(36,Pe,4,1,"li",12)(37,Fe,4,1,"li",12)(38,qe,4,1,"li",12)(39,Te,4,1,"li",12)(40,we,4,1,"li",12),a(41,"h3"),r(42,"Informaci\xF3n de contacto"),i(),a(43,"li")(44,"span"),r(45,"Correo electr\xF3nico"),i(),r(46),i(),a(47,"li")(48,"span"),r(49,"Tel\xE9fono fijo"),i(),r(50),i(),a(51,"li")(52,"span"),r(53,"Extensi\xF3n"),i(),r(54),i(),a(55,"li")(56,"span"),r(57,"Tel\xE9fono m\xF3vil"),i(),r(58),i(),a(59,"li")(60,"span"),r(61,"Direcci\xF3n"),i(),r(62),i(),a(63,"li")(64,"span"),r(65,"Pa\xEDs"),i(),r(66),i(),a(67,"li")(68,"span"),r(69,"Departamento"),i(),r(70),i(),a(71,"li")(72,"span"),r(73,"Ciudad"),i(),r(74),i()(),a(75,"h3"),r(76,"Contenido de la solicitud"),i(),p(77,"p",13),_(78,De,3,2,"div",12)(79,He,13,6,"form",14)(80,Be,11,3,"form",12),i()()),t&2){let e=m(2);o(11),s(" ",e.model.status===1?"Abierta":"Cerrada"," "),o(5),s(" ",e.model.date," "),o(5),s(" ",e.model.trackingID," "),o(3),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous&&e.model.complaintFormUserTypeID!==8),o(),l("ngIf",!e.model.anonymous&&e.model.complaintFormUserTypeID===8),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(),l("ngIf",!e.model.anonymous),o(6),s(" ",e.model.email," "),o(4),s(" ",e.model.phoneNumber," "),o(4),s(" ",e.model.extension," "),o(4),s(" ",e.model.mobileNumber," "),o(4),s(" ",e.model.address," "),o(4),s(" ",e.model.countryName," "),o(4),s(" ",e.model.deptoName," "),o(4),s(" ",e.model.cityName," "),o(3),l("innerHTML",e.model.descriptionHtml,D),o(),l("ngIf",e.model.filePath),o(),l("ngIf",e.model.status===1),o(),l("ngIf",e.model.status===2)}}function We(t,n){t&1&&(a(0,"span"),r(1," Debes ingresar el correo electr\xF3nico del usuario a delegar "),i())}function Ye(t,n){t&1&&(a(0,"span"),r(1," Debes ingresar un correo electr\xF3nico v\xE1lido "),i())}function Oe(t,n){if(t&1&&(a(0,"div",22),_(1,We,2,0,"span",12)(2,Ye,2,0,"span",12),i()),t&2){m();let e=h(11);o(),l("ngIf",e.errors==null?null:e.errors.required),o(),l("ngIf",e.errors==null?null:e.errors.pattern)}}function $e(t,n){if(t&1){let e=C();
1a(0,"div",6)(1,"a",31),g("click",function(){f(e);let c=m(2);return x(c.exit())}),p(2,"span",9),i(),a(3,"div",32)(4,"form",33,2),g("ngSubmit",function(){f(e);let c=m(2);return x(c.delegateComplaint())}),a(6,"h2"),r(7,"\xBFQui\xE9n es el responsable?"),i(),p(8,"br")(9,"br"),a(10,"input",34,3),q("ngModelChange",function(c){f(e);let u=m(2);return F(u.model.email,c)||(u.model.email=c),x(c)}),i(),p(12,"br"),_(13,Oe,3,2,"div",18),p(14,"input",35),i()()()}if(t&2){let e=h(11),d=m(2);o(10),P("ngModel",d.model.email),o(3),l("ngIf",e.errors&&d.formdelegateSubmitted),o(),l("ngClass",j(3,pe,d.formdelegateBusy))}}function Ge(t,n){if(t&1&&_(0,Qe,81,32,"div",5)(1,$e,15,5,"div",5),t&2){let e=m();l("ngIf",!e.model.delegate),o(),l("ngIf",e.model.complaintFormID&&e.model.delegate)}}var ae=class t{constructor(n,e,d,c,u,Ze){this.complaintFormService=n;this.route=e;this.helperService=d;this.modalService=c;this.authService=u;this.settingService=Ze;this.id=this.route.snapshot.paramMap.get("id"),this.user=this.authService.user}model={};files=[];extensions;sizes;tempEmail="";id;user;form;formBusy=!1;formSubmitted=!1;formdelegate;formdelegateBusy=!1;formdelegateSubmitted=!1;ngOnInit(){this.activate()}isLoading=!0;activate(){this.id?(this.isLoading=!0,T([this.complaintFormService.validateToken(this.id),this.complaintFormService.globalSettings()]).subscribe({next:n=>{var e=n[1];this.extensions=e.firstOrDefault("keyWord","PQRDS.ValidExtensions"),this.sizes=e.firstOrDefault("keyWord","PQRDS.MaxFileSize"),this.setValidateToken(n[0]),this.isLoading=!1},error:n=>{this.isLoading=!1,this.helperService.handlerException(n)}})):this.isLoading=!1}resolve(){this.form.valid&&!this.formBusy?(this.formBusy=!0,this.model.status="Closed",this.files.length&&(this.model.fileIdentifiers=this.files.map(function(n){return n.fileID})),this.complaintFormService.update(this.model).subscribe({next:()=>{this.setUpdate()},error:n=>{this.errorUpdate(n)}})):this.formSubmitted=!0}startFile(n){this.files.push(n)}endFile(){}removeFile(n){this.files.splice(n,1)}delegate(){this.model.delegate=!0,this.tempEmail=this.model.email,this.model.email=""}delegateComplaint(){this.formdelegate.valid&&!this.formdelegateBusy?(this.formdelegateBusy=!0,this.complaintFormService.delegate(this.model).subscribe({next:n=>{this.setDelegate()},error:n=>{this.errorDelegate(n)}})):this.formdelegateSubmitted=!0}exit(){this.model.email=this.tempEmail,this.model.delegate=!1}errorDelegate(n){this.helperService.handlerException(n),this.model.email=this.tempEmail}setDelegate(){this.modalService.showExit("PQRDS delegada con \xE9xito"),this.model.delegate=!1,location.pathname="/"}setValidateToken(n){if(n.userModel&&(n.userModel.hasPermissions=e=>{if(e&&e.length){for(var d=0;d<e.length;d++)if(e.indexOf(e[d])>-1)return!0;return!1}else return!1},this.user=n.userModel.user,window.localStorage.setItem("token",n.userModel.token),n.userModel.user.permissions&&n.userModel.user.permissions.indexOf("Administrator")!==-1&&(this.user.isAuthorize=!0),this.user.firstsLetter=this.user.name.getFirstsLetters(),this.helperService.freezeObject(this.user)),this.model=n.complaintFormModel,n.complaintFormModel.birthDate!==null&&(this.model.birthDate2=(0,le.default)(n.complaintFormModel.birthDate,"YYYY/MM/DD HH:mm:ss").format("DD MMMM YYYY")),n.complaintFormModel.genderID!==null)switch(this.model.genderID){case 0:this.model.genre="Masculino";break;case 1:this.model.genre="Femenino";break;case 2:this.model.genre="Otro";break;default:}this.model.description&&(this.model.descriptionHtml=this.helperService.trustAsHtml(this.model.description.replace(/\n/g,"<br />"))),this.model.answer&&(this.model.answerHtml=this.helperService.trustAsHtml(this.model.answer.replace(/\n/g,"<br />")))}setUpdate(){this.modalService.showExit(this.settingService.settings.resources["Complaint.Resolve"]),location.pathname="/"}errorValidateToken(n){n.status===404&&(location.pathname="/pagina-no-encontrada")}errorUpdate(n){n.status===500&&this.modalService.showAlert(this.settingService.settings.resources["Complaint.ErrorResolve"])}static \u0275fac=function(e){return new(e||t)(v(re),v(U),v(W),v(Q),v(Y),v(B))};static \u0275cmp=w({type:t,selectors:[["app-pqrs"]],viewQuery:function(e,d){if(e&1&&V(de,5),e&2){let c;N(c=k())&&(d.form=c.first)}},standalone:!0,features:[A],decls:2,vars:1,consts:[["form","ngForm"],["answer","ngModel"],["formdelegate","ngForm"],["email","ngModel"],[1,"spinner"],["class","admin-content",4,"ngIf"],[1,"admin-content"],[1,"section-tit"],["href","/",1,"btn-close"],[1,"icon-close"],[1,"gest-pqr"],[1,"divi
1der"],[4,"ngIf"],[3,"innerHTML"],["novalidate","","name","form",3,"ngSubmit",4,"ngIf"],["target","_blank",2,"color","#3DA7FF",3,"href","download"],["novalidate","","name","form",3,"ngSubmit"],["required","","aria-required","true","name","answer","maxlength","2028","minlength","2",3,"ngModelChange","ngModel"],["class","error",4,"ngIf"],["type","submit","value","Resolver",3,"ngClass"],["type","button","value","Delegar respuesta","class","btn-save",3,"click",4,"ngIf"],["href","/",1,"btn-save"],[1,"error"],["multiple","","appUploadFile","","name","files","type","file","call","pqrs.callfiles",3,"end","start","reg","size","obj"],[3,"href"],["type","button",3,"click"],[1,"icon-delete"],["type","button","value","Delegar respuesta",1,"btn-save",3,"click"],["[textContent]-html","::model.answerHtml"],[3,"textContent"],["target","_blank",3,"href","textContent"],["href","",1,"btn-close",3,"click"],[2,"width","500px","text-align","center","margin","0 auto","padding-top","50px"],["novalidate","","name","formdelegate",3,"ngSubmit"],["autocomplete","off","placeholder","Ingresa el correo electr\xF3nico del responsable","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$","type","email","name","email","required","",1,"ta-c",3,"ngModelChange","ngModel"],["type","submit","value","Enviar",2,"float","none !important","margin","10px auto",3,"ngClass"]],template:function(e,d){e&1&&_(0,_e,2,0,"div",4)(1,Ge,2,2),e&2&&M(d.isLoading?0:1)},dependencies:[R,H,L,ne,K,O,$,G,X,ee,te,ie,J,Z,oe]})};export{ae as PqrsComponent};

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.