PageSourceSearch

https://tunja-boyaca.gov.co/chunk-ODCOI7SL.js

js tunja-boyaca.gov.co collected 2026-10-02 07:57:39 UTC 6,524 bytes, 1 lines download raw bytes

1import{a as B}from"./chunk-535P5NAU.js";import{a as k}from"./chunk-GCE2MEC6.js";import{a as H}from"./chunk-RIRGXRXY.js";import"./chunk-3GN2FC7K.js";import{t as N}from"./chunk-47CSRN7C.js";import"./chunk-SKH2MXBC.js";import{j as F,k as M,v as O}from"./chunk-BQLJE42W.js";import{Db as b,Ib as _,Jb as f,Qa as y,Tb as u,Ua as T,V as R,Xa as c,Ya as h,bc as I,da as C,dc as w,ib as v,mb as l,na as g,oa as x,pb as E,xb as p,yb as s,zb as a}from"./chunk-YE3BF7DR.js";import"./chunk-4IDNTCH7.js";var S=class i{innerWidth=500;constructor(){}reorder(t,e){var n=[],r=0;window.innerWidth<=this.innerWidth||e?(n.push({column:[],width:"100%"}),r=1):(n.push({column:[],width:"calc(50% - 10px)"}),n.push({column:[],width:"calc(50% - 10px)"}),r=2);for(var o=0,d=0;d<t.length;d++)n[o].column.push(t[d]),o<r-1?o++:o=0;return n}reorderAdd(t,e,n){if(document.getElementsByClassName("column-card")[0]){for(var r=0,o=t.length,d=0,m=0;m<o;m++)d+=t[m].column.length;if(o>1&&(r=t[0].length>t[1].length?1:0),n)for(var r=0,m=d;m<e.length;m++)t[r].column.push(e[m]),r<o-1?r++:r=0;else var m=d,W=setTimeout(()=>{if(m<e.length){if(o>1){var $=document.getElementsByClassName("column-card")[0].clientHeight,j=document.getElementsByClassName("column-card")[1].clientHeight;$>j?t[1].column.push(e[m]):t[0].column.push(e[m])}else t[r].column.push(e[m]),r<o-1?r++:r=0;m++}else clearTimeout(W)}
1,50)}}static \u0275fac=function(e){return new(e||i)};static \u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"})};var P=i=>({width:i});function D(i,t){if(i&1&&a(0,"img",24),i&2){let e=f().$implicit;l("src",e.userModel.image,y)("alt",e.userModel.image)}}function q(i,t){if(i&1&&a(0,"div",25),i&2){let e=f().$implicit;l("innerText",e.userModel.firstsLetter)}}function L(i,t){if(i&1&&(p(0,"div",26),a(1,"img",24),s()),i&2){let e=f().$implicit;c(),l("src",e.defaultImage,y)("alt",e.defaultImage)}}function U(i,t){if(i&1&&(p(0,"li"),a(1,"span",16),u(2,": "),a(3,"span",16),s()),i&2){let e=t.$implicit;c(),l("innerText",e.reasonName),c(2),l("innerText",e.comment)}}function G(i,t){if(i&1){let e=b();p(0,"div",10)(1,"div",11)(2,"div",12),v(3,D,1,2,"img",13)(4,q,1,1,"div",14),s(),p(5,"div",15),a(6,"h4",16)(7,"h5",16),s(),a(8,"br"),s(),v(9,L,2,2,"div",17),p(10,"article",18),a(11,"h3",19),s(),p(12,"div",20)(13,"ul"),v(14,U,4,2,"li",21),s(),p(15,"div",22)(16,"button",23),_("click",function(){let r=g(e).$implicit,o=f(2);return x(o.resolve(r,!0))}),u(17,"Bloquear"),s(),p(18,"button",23),_("click",function(){let r=g(e).$implicit,o=f(2);return x(o.resolve(r,!1))}),u(19,"Omitir"),s(),a(20,"br"),s()()()}if(i&2){let e=t.$implicit;c(3),l("ngIf",e.userModel.image),c(),l("ngIf",!e.userModel.image),c(2),l("innerText",e.userModel.name),c(),l("innerText",e.elapsedTime),c(2),l("ngIf",e.defaultImage),c(2),l("innerText",e.value),c(3),l("ngForOf",e.reports)}}function J(i,t){if(i&1&&(p(0,"div",8),v(1,G,21,7,"div",9),s()),i&2){let e=t.$implicit;E(w(3,P,e.width)),c(),l("ngForOf",e.column)}}function K(i,t){if(i&1){let e=b();p(0,"div")(1,"a",27),_("click",function(){g(e);let r=f();return x(r.nextPage())}),u(2," Cargar m\xE1s reportados"),a(3,"span",28),s()()}}var V=class i{constructor(t,e,n,r,o){this.helperService=t;this.reportService=e;this.responsiveService=n;this.modalService=r;this.appService=o}columns=[];contents=[];filter={};ngOnInit(){this.activate()}activate(){this.filter.reportType="Comment",this.filter.page=0,this.filter.pageSize=10,this.reportService.get(this.filter).subscribe({next:t=>this.setReport(t),error:t=>this.helperService.handlerException(t)})}change(t){this.filter.reportType=t,this.filter.page=0,this.reportService.get(this.filter).subscribe({next:e=>this.setReport(e),error:e=>this.helperService.handlerException(e)})}resolve(t,e){var n={elementID:t.elementID,ban:e,reportType:this.filter.reportType};e?this.modalService.showConfirm("Al momento de bloquear este elemento no podr\xE1 ser visto m\xE1s en la plataforma. \xBFEst\xE1s seguro de bloquearlo?").subscribe({next:r=>{r&&this.reportService.resolve(n).subscribe({next:o=>this.setResolve(t,o),error:o=>this.helperService.handlerException(o)})}}):this.reportService.resolve(n).subscribe({next:r=>this.setResolve(t,r),error:r=>this.helperService.handlerException(r)})}nextPage(){this.filter.page+=1,this.reportService.get(this.filter).subscribe({next:t=>this.setReport(t),error:t=>this.helperService.handlerException(t)})}setReport(t){if(t.results){this.filter.page===0&&(this.contents=[]);for(var e=0;e<t.results.length;e++)t.results[e].userModel.firstsLetter=this.appService.getFirstsLetters(t.results[e].userModel.name),this.contents.push(t.results[e]);if(this.filter.page===0)this.columns=this.responsiveService.reorder(this.contents);else{var n=this.filter.orderBy==="displayOrder";this.responsiveService.reorderAdd(this.columns,this.contents)}this.filter.hasNextPage=t.meta.hasNextPage}}setResolve(t,e){var n=this.contents.indexOf(t);this.contents.splice(n,1),this.columns=this.responsiveService.reorder(this.contents)}onResize(t){let e=t.target.innerWidth;(this.columns.length>1&&e<=this.responsiveService.innerWidth||this.columns.length===1&&e>this.responsiveService.innerWidth)&&(this.columns=this.responsiveService.reorder(this.contents))}static \u0275fac=function(e){return new(e||i)(h(H),h(B),h(S),h(N),h(k))};static \u0275cmp=C({type:i,selectors:[["app-reports"]],hostBindings:function(e,n){e&1&&_("resize",function(o){return n.onResize(o)},!1,T)},standalone:!0,features:[I],decls:11,vars:2,consts:[[1,"admin-content"],[1,"section-tit"],["href","/administrador",1,"btn-close"],[1,"icon-close"],[1,"content-cards"],["class","column-card",3,"style",4,"ngFor","ngForOf"],[1,"clear"],[4,"ngIf"],[1,"column-card"],["class","card","style","overflow-x:hidden;",4,"ngFor","ngForOf"],[1,"card",2,"overflow-x","hidden"],[1,"user-box"],[1,"user-img"],[3,"src","alt",4,"ngIf"],["class","no-img",3,"innerText",4,"ngIf"],[1,"user_idea"],[3,"innerText"],["class","content-img",4,"ngIf"],[1,"content_text",2,"margin-top","20px"],[1,"content-tit",3,"innerText"],[1,"report-box"],[4,"ngFor","ngForOf"],[1,"box-btn"],[1,"btn-save",3,"click"],[3,"src","alt"],[1,"no-img",3,"innerText"],[1,"content-img"],["href","",1,"more-page",3,"click"],[1,"icon-down"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"h2",1),u(2,"Comentarios reportados"),s(),p(3,"a",2),a(4,"span",3),s(),a(5,"br"),p(6,"div",4),v(7,J,2,5,"div",5),s(),a(8,"div",6),v(9,K,4,0,"div",7),a(10,"br"),s()),e&2&&(c(7),l("ngForOf",n.columns),c(2),l("ngIf",n.filter.hasNextPage))},dependencies:[O,F,M]})};export{V as ReportsComponent};

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.