PageSourceSearch

https://quipama-boyaca.gov.co/chunk-PAS65CWB.js

js quipama-boyaca.gov.co collected 2026-10-03 02:29:30 UTC 47,715 bytes, 1 lines download raw bytes

1import{a as Re}from"./chunk-7AXKDO3D.js";import{a as He}from"./chunk-I5TSXDDD.js";import{c as Pe,d as Ae,e as Ue,f as ze}from"./chunk-NJOSICCD.js";import{a as Be}from"./chunk-FJXVFFSC.js";import{a as Ne}from"./chunk-NI37FYAP.js";import{a as De}from"./chunk-GY5G32LD.js";import"./chunk-A63KXHUW.js";import"./chunk-4JXGHBPR.js";import{a as Me}from"./chunk-W2R2W6DK.js";import"./chunk-MNGW2DT3.js";import"./chunk-22BPG5HP.js";import{d as pe}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 te}from"./chunk-GBRQKVYB.js";import"./chunk-CJWEDDVW.js";import{a as Te}from"./chunk-ZW5B5J3B.js";import{b as de}from"./chunk-LDL32NDY.js";import"./chunk-YFREARA7.js";import"./chunk-AGCAGPAP.js";import"./chunk-AHQSOXDD.js";import{a as ee}from"./chunk-GCE2MEC6.js";import{a as Ve}from"./chunk-W2ZMKN4C.js";import"./chunk-GHPWOSPN.js";import"./chunk-4VURBXKO.js";import"./chunk-UVDUOVTO.js";import"./chunk-DQPLM2C5.js";import"./chunk-MIHC4Y75.js";import{b as G}from"./chunk-SB5L2XE4.js";import{A as se,B as Fe,D as ce,b as Ee,c as ie,g as ne,h as oe,j as re,l as le,m as ae,o as we,x as me,z as ke}from"./chunk-ICJV4PL6.js";import{a as Ie}from"./chunk-RIRGXRXY.js";import{a as X}from"./chunk-3GN2FC7K.js";import{q as Se,r as K,t as J}from"./chunk-47CSRN7C.js";import{c as Z}from"./chunk-SKH2MXBC.js";import{J as Y,i as N,j as be,k as H,n as q,v as R}from"./chunk-BQLJE42W.js";import{$b as P,Db as h,Ib as x,Jb as s,Mb as A,Nb as ge,Pa as B,Pb as O,Qa as b,Qb as W,Ra as j,Rb as Q,Sb as k,Tb as c,Ub as F,Vb as C,Wb as Ce,Xa as n,Ya as g,Zb as D,_b as M,bc as z,da as U,dc as S,ec as ye,gc as I,hc as V,ib as _,ic as he,mb as a,na as u,oa as v,sb as L,tb as T,vb as E,wb as w,xb as l,yb as o,zb as d}from"./chunk-YE3BF7DR.js";import{a as xe}from"./chunk-4IDNTCH7.js";var it=["form"],$e=t=>({selected:t});function nt(t,i){if(t&1){let e=h();l(0,"div")(1,"label"),c(2,"Nombres*"),o(),l(3,"input",14),P("ngModelChange",function(m){u(e);let p=s(3);return M(p.model.name,m)||(p.model.name=m),v(m)}),o()()}if(t&2){let e=s(3);n(3),D("ngModel",e.model.name)}}function ot(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar un nombre y apellido que tengan menos de 50 caracteres"),o())}function rt(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar un nombre y apellido"),o())}function lt(t,i){if(t&1&&(l(0,"div",15),_(1,ot,2,0,"span",8)(2,rt,2,0,"span",8),o()),t&2){let e,r;s();let m=k(1);n(),a("ngIf",(e=m.form.get("name"))==null||e.errors==null?null:e.errors.maxlength),n(),a("ngIf",(r=m.form.get("name"))==null||r.errors==null?null:r.errors.required)}}function at(t,i){if(t&1){let e=h();l(0,"div")(1,"label"),c(2,"Correo Electr\xF3nico*"),o(),l(3,"input",16),P("ngModelChange",function(m){u(e);let p=s(3);return M(p.model.email,m)||(p.model.email=m),v(m)}),o()()}if(t&2){let e=s(3);n(3),D("ngModel",e.model.email)}}function mt(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar un correo electr\xF3nico v\xE1lido."),o())}function st(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar un correo electr\xF3nico que tengan menos de 140 caracteres"),o())}function ct(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar un correo electr\xF3nico."),o())}function dt(t,i){if(t&1&&(l(0,"div",15),_(1,mt,2,0,"span",8)(2,st,2,0,"span",8)(3,ct,2,0,"span",8),o()),t&2){let e,r,m;s();let p=k(1);n(),a("ngIf",(e=p.form.get("email"))==null||e.errors==null?null:e.errors.pattern),n(),a("ngIf",(r=p.form.get("email"))==null||r.errors==null?null:r.errors.maxlength),n(),a("ngIf",(m=p.form.get("email"))==null||m.errors==null?null:m.errors.required)}}function pt(t,i){t&1&&(l(0,"span"),c(1,"El mensaje no puede exceder 250 caracteres"),o())}function _t(t,i){if(t&1&&(l(0,"div",15),_(1,pt,2,0,"span",8),o()),t&2){let e;s();let r=k(1);n(),a("ngIf",(e=r.form.get("message"))==null||e.errors==null?null:e.errors.maxlength)}}function ut(t,i){t&1&&(l(0,"div",15)(1,"span"),c(2,"Debes ingresar el Captcha"),o()())}function vt(t,i){if(t&1){let e=h();l(0,"form",7,0),x("ngSubmit",function(){u(e);let m=s(2);return v(m.send())}),_(2,nt,4,1,"div",8)(3,lt,3,2,"div",9)(4,at,4,1,"div",8)(5,dt,4,3,"div",9),l(6,"div")(7,"label"),c(8,"Mensaje"),o(),l(9,"textarea",10),P("ngModelChange",function(m){u(e);let p=s(2);return M(p.model.message,m)||(p.model.message=m),v(m)}),o()(),_(10,_t,2,1,"div",9),l(11,"div"),d(12,"app-captcha"),_(13,ut,3,0,"div",9),o(),l(14,"div",11)(15,"button",12),c(16," Enviar "),o(),l(17,"button",13),x("click",function(){u(e);let m=s(2);return v(m.model={})}),c(18," Cancelar "),o()()()}if(t&2){let e,r,m,p,f=k(1),y=s(2);n(2),a("ngIf",!y.authService.user||!y.authService.user.name),n(),a("ngIf",((e=f.form.get("name"))==null?null:e.invalid)&&f.submitted),n(),a("ngIf",!y.authService.user||!y.authService.user.name),n(),a("ngIf",((r=f.form.get("email"))==null?null:r.
1invalid)&&f.submitted),n(4),D("ngModel",y.model.message),n(),a("ngIf",((m=f.form.get("message"))==null?null:m.invalid)&&f.submitted),n(3),a("ngIf",f.submitted&&((p=f.form.get("captcha"))==null?null:p.invalid))}}function ft(t,i){if(t&1){let e=h();l(0,"div",2)(1,"div",3)(2,"div",4)(3,"div")(4,"p"),c(5,"\xBFEncontraste lo que buscabas?"),o(),l(6,"p"),c(7,"\xBFTe pareci\xF3 \xFAtil este contenido?"),o()(),l(8,"div")(9,"button",5),x("click",function(){u(e);let m=s();return v(m.setHelpedTrue())}),c(10," Si "),o(),l(11,"button",5),x("click",function(){u(e);let m=s();return v(m.setHelpedFalse())}),c(12," No "),o()()(),_(13,vt,19,7,"form",6),o()()}if(t&2){let e=s();n(9),a("ngClass",S(3,$e,e.model.helped===!0)),n(2),a("ngClass",S(5,$e,e.model.helped===!1)),n(2),a("ngIf",e.model.helped!==void 0)}}function gt(t,i){t&1&&(l(0,"div",2)(1,"div",17)(2,"span"),c(3,"Has enviado tu mensaje, gracias por tu participaci\xF3n."),o()()())}var _e=class t{constructor(i,e,r,m,p,f,y,$){this.actRoute=i;this.portalMainService=e;this.feedbackService=r;this.contentService=m;this.settingService=p;this.modalService=f;this.eventEmitterService=y;this.authService=$}content;form;model={};currentUser={};contentModel={};isQualified=!1;captchaValid=!1;visibleCapcha=!1;ngOnInit(){this.activate()}activate(){if(this.currentUser=this.authService.user,this.currentUser.id){var i={friendlyName:this.actRoute.snapshot.params.alias,userId:this.currentUser.id,isLoggin:!0,pageSize:10};this.feedbackService.get(i).subscribe({next:this.setInit,error:this.setError})}else this.isQualified=!1}send(){var i=!0;this.captchaValid=!1;var e=sessionStorage.getItem("keyValueCaptchaFeed");sessionStorage.getItem("visibleCaptchaFeedback")==="true"&&(e=hcaptcha.getResponse(sessionStorage.getItem("captchaWidgetID")),(e&&e.length===0||e==null||e==null)&&(this.captchaValid=!0,i=!1,this.eventEmitterService.reloadCaptchaEvent.emit(!0))),i&&(this.model.captcha=e,this.form.valid&&this.form.submitted&&(this.content?(this.model.contentModel=this.content,this.model.contentID=this.model.contentModel.contentID,this.model.message&&(this.model.message=this.model.message.replace(/^(-|\+|=|\/|\*)/," $&")),this.feedbackService.add(this.model).subscribe({next:r=>this.setResult(r),error:r=>this.setError(r)})):this.contentService.getByFriendlyName(this.actRoute.snapshot.params.alias).subscribe({next:r=>this.setContent(r),error:r=>this.setError(r)})))}setResult(i){this.model={},this.isQualified=!0,this.eventEmitterService.reloadCaptchaEvent.emit(!0)}setHelpedTrue(){this.authService.user.name?this.model.helped=!0:this.loginkeyCloak()}setHelpedFalse(){this.authService.user.name?this.model.helped=!1:this.loginkeyCloak()}loginkeyCloak(){var i={clientId:this.settingService.settings.general.clientId,realm:this.settingService.settings.general.realm,url:`${this.settingService.settings.general.keycloackURI}/auth/`,"ssl-required":"external",resource:this.settingService.settings.general.resourcekeycloak,"public-client":!0,"confidential-port":0},e=new Keycloak(i);let r={idpHint:"oidc"};e.init({}).then(()=>{e.login(r)})}setInit(i){this.isQualified=i.results&&i.results.length>0}setContent(i){this.model.contentModel=i,this.model.contentID=i.contentID,this.model.message&&(this.model.message=this.model.message.replace(/^(-|\+|=|\/|\*)/," $&")),this.feedbackService.add(this.model).subscribe({next:e=>this.setResult(e),error:e=>this.setError(e)})}setError(i){this.eventEmitterService.reloadCaptchaEvent.emit(!0),this.isQualified=!1,i.status===400&&i.data.error&&i.data.error.details&&i.data.error.details.length&&this.modalService.showAlert(i.data.error.details[0].message)}updateCaptchaValue(i){this.model.captcha=i}static \u0275fac=function(e){return new(e||t)(g(G),g(pe),g(De),g(de),g(Z),g(J),g(X),g(te))};static \u0275cmp=U({type:t,selectors:[["app-feedback"]],viewQuery:function(e,r){if(e&1&&O(it,5),e&2){let m;W(m=Q())&&(r.form=m.first)}},inputs:{content:"content"},standalone:!0,features:[z],decls:2,vars:2,consts:[["form","ngForm"],["class","content-descri",4,"ngIf"],[1,"content-descri"],[1,"feedb-wrap"],[1,"feedb-rowUp"],[3,"click","ngClass"],["name","form","novalidate","",3,"ngSubmit",4,"ngIf"],["name","form","novalidate","",3,"ngSubmit"],[4,"ngIf"],["class","error",4,"ngIf"],["rows","3","maxlength","250","name","message","onkeyup","this.value = this.value.replace(/\\n
1/g, '')",3,"ngModelChange","ngModel"],[1,"feedb-wbtn"],["type","submit",1,"feedb-btnMain"],["type","button",1,"feedb-btnMain",3,"click"],["type","text","required","","maxlength","50","name","name",3,"ngModelChange","ngModel"],[1,"error"],["type","text","required","","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$","maxlength","140","name","email",3,"ngModelChange","ngModel"],[1,"feedb-row"]],template:function(e,r){e&1&&_(0,ft,14,7,"div",1)(1,gt,4,0,"div",1),e&2&&(a("ngIf",!r.isQualified),n(),a("ngIf",r.isQualified))},dependencies:[R,N,H,ce,ae,ie,ne,oe,me,se,Fe,le,re,Be]})};var Ct=(t,i)=>({pivot:!0,"carousel-current":t,"carousel-back":i}),We=t=>({left:t}),Qe=t=>({active:t});function yt(t,i){if(t&1){let e=h();l(0,"img",9),x("swipeleft",function(){u(e);let m=s(2);return v(m.next())})("swiperight",function(){u(e);let m=s(2);return v(m.prev())}),o()}if(t&2){let e=s().$implicit,r=s();A("alt",r.content.description!=null?r.content.description:r.content.name),A("title",r.content.description!=null?r.content.description:r.content.name),a("src",e.url,b)}}function bt(t,i){if(t&1&&(d(0,"iframe",10),I(1,"trustResourceUrl")),t&2){let e=s().$implicit;a("src",V(1,1,e.url),j)}}function St(t,i){if(t&1&&(l(0,"div",6),_(1,yt,1,3,"img",7)(2,bt,2,3,"iframe",8),o()),t&2){let e=i.$implicit;a("ngClass",ye(3,Ct,e.current,!e.current)),n(),a("ngIf",!e.video),n(),a("ngIf",e.video)}}function It(t,i){if(t&1){let e=h();l(0,"div",11)(1,"a",12),x("click",function(){u(e);let m=s();return v(m.next())}),o(),l(2,"a",13),x("click",function(){u(e);let m=s();return v(m.prev())}),o()()}}function Tt(t,i){if(t&1&&(l(0,"div",14)(1,"h3")(2,"b"),c(3),o()(),d(4,"div",15),o()),t&2){let e=s();n(3),F(e.gallery.title),n(),a("innerHTML",e.gallery.bodyHtml,B)}}function Et(t,i){if(t&1){let e=h();l(0,"a",20),x("click",function(){u(e);let m=s(2);return v(m.logoSlide(!1))}),d(1,"i",21),l(2,"span"),c(3,"Siguiente"),o()()}}function wt(t,i){if(t&1){let e=h();l(0,"a",22),x("click",function(){u(e);let m=s(2);return v(m.logoSlide(!0))}),d(1,"i",23),l(2,"span"),c(3,"Anterior"),o()()}}function kt(t,i){if(t&1){let e=h();l(0,"img",26),x("click",function(){let m=u(e),p=m.$implicit,f=m.index,y=s(3);return v(y.setPosition(p,f))}),o()}if(t&2){let e=i.$implicit,r=i.index,m=s(3);ge("id","img-",r,""),A("alt",m.content.name),A("title",m.content.name),a("ngClass",S(6,Qe,e.current))("src",e.url,b)}}function Ft(t,i){if(t&1&&(l(0,"ul")(1,"li",24),_(2,kt,1,8,"img",25),o()()),t&2){let e=s(2);n(),a("ngStyle",S(3,We,e.gallery.thumbnails.length>5?"-151px":"0")),n(),a("ngForOf",e.gallery.thumbnails)("ngForTrackBy",e.trackById)}}function Vt(t,i){if(t&1&&(l(0,"div",16),_(1,Et,4,0,"a",17)(2,wt,4,0,"a",18)(3,Ft,3,5,"ul",19),o()),t&2){let e=s();n(),a("ngIf",e.gallery.thumbnails.length>5),n(),a("ngIf",e.gallery.thumbnails.length>5),n(),a("ngIf",e.loadCarousel)}}function Dt(t,i){if(t&1){let e=h();l(0,"a",20),x("click",function(){u(e);let m=s(2);return v(m.logoSlide(!1))}),d(1,"i",21),l(2,"span"),c(3,"Siguiente"),o()()}}function Mt(t,i){if(t&1){let e=h();l(0,"a",22),x("click",function(){u(e);let m=s(2);return v(m.logoSlide(!0))}),d(1,"i",23),l(2,"span"),c(3,"Anterior"),o()()}}function Pt(t,i){if(t&1){let e=h();l(0,"img",26),x("click",function(){let m=u(e),p=m.$implicit,f=m.index,y=s(3);return v(y.setPosition(p,f))}),o()}if(t&2){let e=i.$implicit,r=i.index,m=s(3);ge("id","img-",r,""),A("alt",m.content.name),A("title",m.content.name),a("ngClass",S(6,Qe,e.current))("src",e.url,b)}}function Bt(t,i){if(t&1&&(l(0,"ul")(1,"li",24)(2,"div",28),_(3,Pt,1,8,"img",25),o()()()),t&2){let e=s(2);n(),a("ngStyle",S(3,We,e.gallery.thumbnails.length>5?"-151px":"0")),n(2),a("ngForOf",e.gallery.thumbnails)("ngForTrackBy",e.trackById)}}function At(t,i){if(t&1&&(l(0,"div",27),_(1,Dt,4,0,"a",17)(2,Mt,4,0,"a",18)(3,Bt,4,5,"ul",19),o()),t&2){let e=s();n(),a("ngIf",e.gallery.thumbnails.length>5),n(),a("ngIf",e.gallery.thumbnails.length>5),n(),a("ngIf",e.loadCarousel)}}var ue=class t{constructor(i,e){this.appService=i;this.sanitizer=e}gallery;content={};index=0;topImages=!1;loadCarousel=!1;controlIteration=0;currentIndex=1;startIndex=0;interval=null;left=0;carouselBusy;ngOnInit(){this.activate()}activate(){if(this.gallery.thumbnails.length>1){for(var i=0;i<this.gallery.thumbnails.length;i++)this.gallery.thumbnails[i].id=i,this.gallery.thumbnails[i].fileID=i+1,this.gallery.images[i].fileID=i+1;
1if(this.loadCarousel=!0,this.topImages=this.gallery.thumbnails.length>5,this.topImages&&(this.gallery.thumbnails.unshift(this.gallery.thumbnails.pop()),this.index=1),!this.appService.firstOrDefault(this.gallery.images,"current",!0)){this.startIndex=0,this.gallery.images[0].current=!0;let e=this.appService.firstOrDefault(this.gallery.thumbnails,"fileID",1);e&&(e.current=!0)}setTimeout(()=>{var e=document.getElementById("slide-corousel");e.style.transition="left .3s ease-in-out"})}}next(){this.setInterval(!1)}prev(){this.setInterval(!0)}setPosition(i,e){this.controlIteration=e-1,this.clearCurrent(),i.current=!0;var r=this.appService.firstOrDefault(this.gallery.images,"fileID",i.fileID);r.current=!0}setInterval(i){this.clearCurrent(),i===!0?this.startIndex===0?this.startIndex=this.gallery.images.length-1:this.startIndex--:this.startIndex===this.gallery.images.length-1?this.startIndex=0:this.startIndex++,this.gallery.images[this.startIndex].current=!0,this.gallery.thumbnails[this.startIndex].current=!0}clearCurrent(){var i=this.appService.firstOrDefault(this.gallery.images,"current",!0),e=this.appService.firstOrDefault(this.gallery.thumbnails,"current",!0);i&&(i.current=!1),e&&(e.current=!1)}logoSlide(i){var e=this.appService.firstOrDefault(this.gallery.thumbnails,"current",!0),r=this.gallery.thumbnails.indexOf(e);i?r>0?r--:r=this.gallery.thumbnails.length-1:r<this.gallery.thumbnails.length-1?r++:r=0,this.clearCurrent();var m=this.gallery.thumbnails[r];m.current=!0;var p=this.appService.firstOrDefault(this.gallery.images,"fileID",m.fileID);if(p.current=!0,this.controlIteration<4&&!i){this.controlIteration++;return}else if(this.controlIteration>0&&i){this.controlIteration--;return}if(!this.carouselBusy){this.carouselBusy=!0;var f=document.getElementById("slide-corousel"),y=window.document.getElementsByClassName("carousel-images"),$=y[0].clientWidth+11;if(i)this.index++,f.style.left="0px",setTimeout(()=>{f.style.transition="none",this.gallery.thumbnails.unshift(this.gallery.thumbnails.pop()),f.style.left=$*-1+"px",setTimeout(()=>{f.style.transition="left .3s ease-in-out",this.carouselBusy=!1},20)},300);else{this.index--,f.style.left=$*-2+"px";var fe=xe({},this.gallery.thumbnails[0]);fe.id-=1e4,this.gallery.thumbnails.push(fe),setTimeout(()=>{f.style.transition="none",this.gallery.thumbnails.shift(),f.style.left=$*-1+"px",setTimeout(()=>{f.style.transition="left .3s ease-in-out",this.carouselBusy=!1},20)},300)}}}trackByIndex(i,e){return i}trackById(i,e){return e.id}static \u0275fac=function(e){return new(e||t)(g(ee),g(Y))};static \u0275cmp=U({type:t,selectors:[["app-carousel"]],inputs:{gallery:"gallery"},standalone:!0,features:[z],decls:6,vars:6,consts:[[1,"carousel-content"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["class","nav-carousel",4,"ngIf"],["class","nav-gallery",4,"ngIf"],["class","nav-thumbnail",4,"ngIf"],["class","nav-thumbnail-gallery",4,"ngIf"],[3,"ngClass"],[3,"src","alt","title","swipeleft","swiperight",4,"ngIf"],["style","width: 100%; height: 100%; border: none",3,"src",4,"ngIf"],[3,"swipeleft","swiperight","src","alt","title"],[2,"width","100%","height","100%","border","none",3,"src"],[1,"nav-carousel"],[1,"btn-thumb","thumb-prev","icon-next",3,"click"],[1,"btn-thumb","thumb-next","icon-prev",3,"click"],[1,"nav-gallery"],[3,"innerHTML"],[1,"nav-thumbnail"],["class","btn-thumb thumb-prev",3,"click",4,"ngIf"],["class","btn-thumb thumb-next",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-thumb","thumb-prev",3,"click"],[1,"icon-next"],[1,"btn-thumb","thumb-next",3,"click"],[1,"icon-prev"],["id","slide-corousel",3,"ngStyle"],["class","carousel-images",3,"id","ngClass","src","alt","title","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"carousel-images",3,"click","id","ngClass","src","alt","title"],[1,"nav-thumbnail-gallery"],[2,"display","flex","align-items","center"]],template:function(e,r){e&1&&(l(0,"div",0),_(1,St,3,6,"div",1)(2,It,3,0,"div",2)(3,Tt,5,2,"div",3),o(),_(4,Vt,4,3,"div",4)(5,At,4,3,"div",5)),e&2&&(n(),a("ngForOf",r.gallery.images)("ngForTrackBy",r.trackByIndex),n(),a("ngIf",r.gallery.thumbnails.length>1),n(),a("ngIf",r.gallery.contentType==="Gallery"),n(),a("ngIf",r.gallery.thumbnails.length>1&&r.gallery.contentType!=="Gallery"),n(),a("ngIf",r.gallery.thumbnails.length>1&&r.gallery.contentType==="Gallery"))},dependencies:[R,N,be,H,q,K]})};var Ut=["form"],zt=t=>({"visibility-hidden":t}),Nt=t=>({"box-set":t}),ve=t=>({width:t});function Ht(t,i){if(t&1){let e=h();l(0,"div",17),x("click",function(){u(e);let m=s();return v(m.edit())}),c(1," Editar "),l(2,"span"),d(3,"i",18),o()()}}function Rt(t,i){if(t&1&&d(0,"span",5),t&2){let e=i.$implicit;a("textContent",e.name)}}function $t(t,i){if(t&1){let e=h();l(0,"button",19),x("click",function(){u(e);let m=s();
1return v(m.exportVotes())}),c(1," Descargar resultados "),o()}}function Lt(t,i){if(t&1){let e=h();l(0,"button",19),x("click",function(){u(e);let m=s();return v(m.exportChallenge())}),c(1," Descargar resultados "),o()}}function jt(t,i){t&1&&d(0,"app-helper",35),t&2&&a("key",40)}function Ot(t,i){if(t&1&&d(0,"img",39),t&2){let e=s(3);a("alt",e.model.name)("title",e.model.name)("src",e.model.defaultImage,b)}}function Wt(t,i){if(t&1&&(l(0,"div")(1,"div",36)(2,"a",37),_(3,Ot,1,3,"img",38),o()()()),t&2){let e=s(2);n(2),a("href",e.model.urlLink,b),n(),a("ngIf",e.model.defaultImage)}}function Qt(t,i){if(t&1&&(l(0,"li")(1,"a",37)(2,"span",41),d(3,"img",42),I(4,"iconFileExtension"),l(5,"span"),c(6),I(7,"fileSize"),o()(),d(8,"p",5)(9,"br"),o()()),t&2){let e=i.$implicit;n(),a("href",e.filePath,b),n(2),a("src",V(4,6,e.filePath),b)("alt",e.name)("title",e.name),n(3),F(V(7,8,e.size)),n(2),a("textContent",e.name)}}function qt(t,i){if(t&1&&(l(0,"ul",40)(1,"h3"),c(2,"Archivos para descargar"),o(),E(3,Qt,10,10,"li",null,T),d(5,"br"),o()),t&2){let e=s(2);n(3),w(e.model.downloadFiles)}}function Yt(t,i){if(t&1){let e=h();l(0,"div",20)(1,"div",21)(2,"span"),c(3),o(),c(4," - "),l(5,"span"),c(6),o()(),l(7,"div",22)(8,"a",23),d(9,"h2",24),o(),l(10,"div",21)(11,"span",25),c(12),o()(),l(13,"div",26)(14,"span",16),c(15,"Compartir"),o(),l(16,"div",27)(17,"div",28),x("click",function(){u(e);let m=s();return v(m.portalMainService.shared("Facebook"))}),d(18,"span",29),o(),l(19,"div",30),x("click",function(){u(e);let m=s();return v(m.portalMainService.shared("Twitter"))}),d(20,"span",31),o()(),_(21,jt,1,1,"app-helper",32),o(),d(22,"div",33),o(),_(23,Wt,4,2,"div",10),d(24,"br"),_(25,qt,6,0,"ul",34),d(26,"br"),o()}if(t&2){let e=s();n(3),C(" Modificaci\xF3n: ",e.model.modifiedDate==null?null:e.model.modifiedDate.toDateString()," "),n(3),C(" Creaci\xF3n: ",e.model.creationDate==null?null:e.model.creationDate.toDateString()," "),n(2),a("title",e.model.name)("href",e.model.urlLink,b),n(),a("textContent",e.model.name),n(3),C(" Fecha de expedici\xF3n: ",e.model.startingDate," "),n(9),a("ngIf",e.currentUser==null||e.currentUser.permissions==null?null:e.currentUser.permissions.length),n(),a("innerHTML",e.model.bodyHtml,B),n(),a("ngIf",e.model.defaultImage),n(2),a("ngIf",e.model==null||e.model.downloadFiles==null?null:e.model.downloadFiles.length)}}function Gt(t,i){if(t&1&&(l(0,"div",46)(1,"a",37),d(2,"img",39),o()()),t&2){let e=s(2);n(),a("href",e.model.urlLink,b),n(),a("alt",e.model.name)("title",e.model.name)("src",e.model.defaultImage,b)}}function Zt(t,i){if(t&1&&(l(0,"p",48)(1,"span"),c(2,"Tipo:"),o(),c(3),d(4,"br"),l(5,"span"),c(6,"Valor:"),o(),c(7),I(8,"procedureValue"),d(9,"br"),l(10,"span"),c(11,"Duraci\xF3n:"),o(),c(12),o()),t&2){let e=s(3);n(3),C(" ",e.model.attributes[3].value,""),n(4),C(" ",he(8,3,e.model.attributes[2].value,""),""),n(5),C(" ",e.model.attributes[0].value," ")}}function Kt(t,i){if(t&1&&(l(0,"div"),d(1,"h2",24),l(2,"div",21)(3,"span"),c(4),o(),c(5," - "),l(6,"span"),c(7),o()(),d(8,"div",33),_(9,Zt,13,6,"p",47),o()),t&2){let e=s(2);n(),a("textContent",e.model.name),n(3),C(" Modificaci\xF3n: ",e.model.modifiedDate==null?null:e.model.modifiedDate.toDateString()," "),n(3),C(" Creaci\xF3n: ",e.model.creationDate==null?null:e.model.creationDate.toDateString()," "),n(),a("innerHTML",e.model.bodyHtml,B),n(),a("ngIf",e.model.attributes.length)}}function Jt(t,i){if(t&1&&(l(0,"li")(1,"a",37)(2,"span",41),d(3,"img",39),I(4,"iconFileExtension"),l(5,"span"),c(6),I(7,"fileSize"),o()(),d(8,"p",5)(9,"br"),o()()),t&2){let e=i.$implicit;n(),a("href",e.filePath,b),n(2),a("alt",e.name)("title",e.name)("src",V(4,6,e.filePath),b),n(3),F(V(7,8,e.size)),n(2),a("textContent",e.name)}}function Xt(t,i){if(t&1&&(l(0,"ul",40)(1,"h3"),c(2,"Archivos para descargar"),o(),E(3,Jt,10,10,"li",null,T),d(5,"br"),o()),t&2){let e=s(3);n(3),w(e.model.downloadFiles)}}function ei(t,i){if(t&1&&(l(0,"a",61),c(1),o()),t&2){let e=s(5);a("href",e.model.procedureUrl,b),n(),F(e.model.procedureType)}}function ti(t,i){if(t&1&&(l(0,"div"),c(1),o()),t&2){let e=s(5);n(),C(" ",e.model.procedureType," ")}}function ii(t,i){if(t&1&&(l(0,"div",57)(1,"div",58),d(2,"i",59),o(),_(3,ei,2,2,"a",60)(4,ti,2,1,"div",10),o()),t&2){let e=s(4);n(3),a("ngIf",e.model.procedureUrl),n(),a("ngIf",!e.model.procedureUrl)}}function ni(t,i){if(t&1&&(l(0,"div",57)(1,"div",62),c(2,"$"),o(),l(3,"span"),c(4),I(5,"procedureValue"),o()()),t&2){let e=s(4);n(4),C("Tr\xE1mite ",he(5,1,e.model.procedureValue,e.model.procedureCostType),"")}}function oi(t,i){if(t&1&&(l(0,"div",57),d(1,"div",63),l(2,"span"),c(3),o()()),t&2){let e=s(4);n(3),C("Duraci\xF3n ",e.model.procedureTime,"")}}function ri(t,i){if(t&1&&(l(0,"div",55),_(1,ii,5,2,"div",56)(2,ni,6,4,"div",56)(3,oi,4,1,"div",56),o()),t&2){let e=s(3);n(),a("ngIf",e.model.procedureUrl||e.model.procedureType),n(),a("ngIf",e.model.procedureValue||e.model.procedureCostType),n(),a("ngIf",e.model.procedureTime)}}function li(t,i){if(t&1&&(l(0,"div")(1,"div")(2,"div",49)(3,"span"),c(4),o(),c(5," - "),l(6,"span"),c(7),o()()(),l(8,"h2"),d(9,"a",50),o(),l(10,"div",51)(11,"div",52),d(12,"div",33)(13,"br")(14,"br")(15,"div",53),_(16,Xt,6,0,"ul",34),o(),l(17,"div",52),_(18,ri,4,3,"div",54),o()()()),t&2){let e=s(2);n(4),C(" Modificaci\xF3n: ",e.model.modifiedDate==null?null:e.model.modifiedDate.toDateString()," "),n(3),C(" Creaci\xF3n: ",e.model.creationDate==null?null:e.model.creationDate.toDateString()," "),n(2),a("href",e.model.embedUrl,b)("textContent",e.model.name),n(3),a("innerHTML",e.model.bodyHtml,B),n(4),a("ngIf",e.model==null||e.model.downloadFiles==null?null:e.model.downloadFiles.length),n(2),a("ngIf",e.model.attributes.length)}}function ai(t,i){if(t&1&&(l(0,"div",43),_(1,Gt,3,4,"div",44),l(2,"div",45)(3,"a",23),_(4,Kt,10,5,"div",10)(5,li,19,7,"div",10),o()(),d(6,"br"),o()),t&2){let e=s();n(),a("ngIf",e.model.defaultImage),n(),a("ngClass",S(6,Nt,e.model.defaultImage!==null)),n(),a("title",e.model.name)("href",e.model.urlLink,b),n(),a("ngIf",e.model.contentType!=="Procedure"),n(),a("ngIf",e.model.contentType==="Procedure")}}function mi(t,i){if(t&1&&d(0,"h2",24),t&2){let e=s(2);a("textContent",e.model.name)}}function si(t,i){t&1&&d(0,"app-helper",74)}function ci(t,i){if(t&1&&(l(0,"div")(1,"div",75),d(2,"span",76),c(3),o()()),t&2){let e=s(2);n(3),C(" ",e.model.daysToStart," ")}}function di(t,i){if(t&1&&d(0,"app-carousel",77),t&2){let e=s(2);a("gallery",e.gallery)}}function pi(t,i){if(t&1&&(l(0,"div")(1,"div",78),d(2,"iframe",79),I(3,"trustResourceUrl"),o()()),t&2){let e=s(2);n(2),a("src",V(3,1,e.model.urlEmbedYoutube),j)}}function _i(t,i){if(t&1&&(l(0,"div")(1,"div",80)(2,"span"),c(3,"Fecha de inicio"),o(),l(4,"span"),c(5,"Fecha de final"),o()(),l(6,"div",81),d(7,"div",82),o(),l(8,"div",75),d(9,"span",76),c(10),o()()),t&2){let e=s(2);n(7),a("ngStyle",S(2,ve,e.model.percentageDate+"%")),n(3),C(" Faltan ",e.model.daysToComplete," d\xEDas ")}}function ui(t,i){if(t&1&&(l(0,"div")(1,"span")(2,"b"),c(3,"Base"),o()(),l(4,"div",81),d(5,"div",82),o(),l(6,"div",75),c(7),o()()),t&2){let e=s(2);n(5),a("ngStyle",S(2,ve,e.model.attributes[2].value+"%")),n(2),C(" Porcentaje completado: ",e.model.attributes[2].value," % ")}}function vi(t,i){if(t&1&&d(0,"div",33),t&2){let e=s(2);a("innerHTML",e.model.bodyHtml,B)}}function fi(t,i){if(t&1&&(l(0,"ul",83)(1,"li")(2,"h3"),c(3,"Lugar:"),o(),d(4,"p",5),o(),l(5,"li")(6,"h3"),c(7,"Hora:"),o(),d(8,"p",5),o(),l(9,"li")(10,"h3"),c(11,"Fecha:"),o(),d(12,"p",5),o(),l(13,"li")(14,"h3"),c(15,"Organizador:"),o(),d(16,"p",5),o()()),t&2){let e=s(2);n(4),a("textContent",e.model.attributes[0].value),n(4),a("textContent",e.model.startingDate.getHour()),n(4),a("textContent",e.model.startingDate.getDate()),n(4),a("textContent",e.model.attributes[1].value)}}function gi(t,i){if(t&1&&(l(0,"ul",83)(1,"li")(2,"h3"),c(3,"Base:"),o(),d(4,"p",5),o(),l(5,"li")(6,"h3"),c(7,"Objetivo:"),o(),d(8,"p",5),o()()),t&2){let e=s(2);n(4),a("textContent",e.model.attributes[0].value),n(4),a("textContent",e.model.attributes[1].value)}}function hi(t,i){if(t&1){let e=h();l(0,"li")(1,"a",86),x("click",function(){let m=u(e).$implicit,p=s(3);return v(p.vote(m))}),l(2,"strong"),c(3),o(),d(4,"span",5),o()()}if(t&2){let e=i.$implicit,r=i.$index;n(3),C("",r+1,"."),n(),a("textContent",e.text)}}function xi(t,i){if(t&1&&(l(0,"div",89)(1,"p"),c(2),o(),l(3,"div",90)(4,"div",91),d(5,"div"),o()(),d(6,"br"),o()),t&2){let e=i.$implicit;n(2),F(e.text),n(2),a("ngStyle",S(2,ve,e.percentage+"%"))}}function Ci(t,i){if(t&1&&(l(0,"div",87)(1,"h2",88),c(2),o(),E(3,xi,7,4,"div",89,T),o()),t&2){let e=s(3);n(2),Ce(" ",e.model.sumVotes," ",e.model.sumVotes>1?"Participantes":"Participante"," "),n(),w(e.model.answerOptions)}}function yi(t,i){if(t&1&&(l(0,"div")(1,"ul",84),E(2,hi,5,2,"li",null,T),d(4,"br"),o(),_(5,Ci,5,2,"div",85),o()),t&2){let e=s(2);n(2),w(e.model.answerOptions),n(3),a("ngIf",e.model.sumVotes)}}function bi(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar una opcion"),o())}function Si(t,i){if(t&1&&(l(0,"div",103),_(1,bi,2,0,"span"),o()),t&2){let e,r=s(2).$implicit;s(2);let m=k(28);n(),L(!((e=m.form.get("boleanids"+r.contentPollID))==null||e.errors==null)&&e.errors.required?1:-1)}}function Ii(t,i){if(t&1){let e=h();l(0,"div",95)(1,"div",96)(2,"div",97)(3,"input",98),P("ngModelChange",function(m){u(e);let p=s().$implicit;return M(p.value,m)||(p.value=m),v(m)}),o(),l(4,"label",99),c(5,"Falso"),o()()(),l(6,"div",96)(7,"div",97)(8,"input",100),P("ngModelChange",function(m){u(e);let p=s().$implicit;return M(p.value,m)||(p.value=m),v(m)}),o(),l(9,"label",101),c(10,"Verdadero"),o()()(),_(11,Si,2,1,"div",102),o()}if(t&2){let e,r=s().$implicit;s(2);let m=k(28),p=s();n(3),D("ngModel",r.value),a("name","boleanids"+r.contentPollID),n(5),D("ngModel",r.value),a("name","boleanids"+r.contentPollID),n(3),a("ngIf",((e=m.form.get("boleanids"+r.contentPollID))==null?null:e.invalid)&&
1(!((e=m.form.get("boleanids"+r.contentPollID))!=null&&e.pristine)||p.formSubmitted))}}function Ti(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar una respuesta"),o())}function Ei(t,i){if(t&1&&(l(0,"div",103),_(1,Ti,2,0,"span"),o()),t&2){let e,r=s(2).$implicit;s(2);let m=k(28);n(),L(!((e=m.form.get("value"+r.contentPollID))==null||e.errors==null)&&e.errors.required?1:-1)}}function wi(t,i){if(t&1){let e=h();l(0,"div")(1,"textarea",104),P("ngModelChange",function(m){u(e);let p=s().$implicit;return M(p.value,m)||(p.value=m),v(m)}),o(),_(2,Ei,2,1,"div",102),o()}if(t&2){let e,r=s().$implicit;s(2);let m=k(28),p=s();n(),a("name","value"+r.contentPollID),D("ngModel",r.value),n(),a("ngIf",((e=m.form.get("value"+r.contentPollID))==null?null:e.invalid)&&p.formSubmitted)}}function ki(t,i){if(t&1){let e=h();l(0,"div",96)(1,"div",97)(2,"input",105),P("ngModelChange",function(m){u(e);let p=s(2).$implicit;return M(p.value,m)||(p.value=m),v(m)}),o(),l(3,"label",106),c(4),o()()()}if(t&2){let e=i.$implicit,r=i.$index,m=s(2).$implicit;n(2),a("value",e.contentAnswerID),D("ngModel",m.value),a("name","boleanMID"+m.contentPollID)("id","boleanM-"+r),n(),a("for","boleanM-"+r),n(),F(e.text)}}function Fi(t,i){t&1&&(l(0,"span"),c(1,"Debes ingresar una opcion"),o())}function Vi(t,i){if(t&1&&(l(0,"div",103),_(1,Fi,2,0,"span"),o()),t&2){let e,r=s(2).$implicit;s(2);let m=k(28);n(),L(!((e=m.form.get("boleanMID"+r.contentPollID))==null||e.errors==null)&&e.errors.required?1:-1)}}function Di(t,i){if(t&1&&(l(0,"div",95),E(1,ki,5,6,"div",96,T),_(3,Vi,2,1,"div",102),o()),t&2){let e,r=s().$implicit;s(2);let m=k(28),p=s();n(),w(r.contentAnswers),n(2),a("ngIf",((e=m.form.get("boleanMID"+r.contentPollID))==null?null:e.invalid)&&(((e=m.form.get("boleanMID"+r.contentPollID))==null?null:e.pristine)||p.formSubmitted))}}function Mi(t,i){if(t&1){let e=h();l(0,"div",108)(1,"input",109),P("ngModelChange",function(m){let p=u(e).$implicit;return M(p.value,m)||(p.value=m),v(m)}),o(),d(2,"label",106),l(3,"label",110),c(4),o()()}if(t&2){let e=i.$implicit,r=i.$index,m=s(2).$implicit;n(),a("name","op"+m.contentPollID)("id","op"+m.contentPollID+"-"+r+"chk"),D("ngModel",e.value),n(),a("for","op"+m.contentPollID+"-"+r+"chk"),n(2),F(e.text)}}function Pi(t,i){if(t&1&&(l(0,"div",107),E(1,Mi,5,5,"div",108,T),o()),t&2){let e=s().$implicit;n(),w(e.contentAnswers)}}function Bi(t,i){if(t&1&&(l(0,"div")(1,"article",92)(2,"table")(3,"tbody")(4,"tr")(5,"td"),c(6),o(),l(7,"td")(8,"p",33),I(9,"clearStyles"),c(10,"SSSSSSSS"),o()()()()()(),_(11,Ii,12,5,"div",93)(12,wi,3,3,"div",10)(13,Di,4,1,"div",93)(14,Pi,3,0,"div",94),o()),t&2){let e=i.$implicit,r=i.$index;n(6),C("",r+1,"."),n(2),a("innerHTML",V(9,6,e.text),B),n(3),a("ngIf",e.typeQuestion===2),n(),a("ngIf",e.typeQuestion===1),n(),a("ngIf",e.typeQuestion===3),n(),a("ngIf",e.typeQuestion===4)}}function Ai(t,i){if(t&1&&E(0,Bi,15,8,"div",null,T),t&2){let e=s(2);w(e.model.contentPoll)}}function Ui(t,i){if(t&1&&(l(0,"div",111),d(1,"input",112),o()),t&2){let e=s(2);n(),a("disabled",e.formIsBusy)}}function zi(t,i){if(t&1&&(l(0,"div",115)(1,"p"),c(2),o(),l(3,"div",90)(4,"div",91),d(5,"div"),o()(),l(6,"div",117),c(7),o(),d(8,"br"),o()),t&2){let e=s().$implicit;n(2),F(e.text),n(2),a("ngStyle",S(3,ve,e.porcentage+"%")),n(3),C("",e.porcentage,"%")}}function Ni(t,i){if(t&1&&_(0,zi,9,5,"div",116),t&2){let e=s(2).$implicit;a("ngIf",e.typeQuestion!==1)}}function Hi(t,i){if(t&1&&(l(0,"div",89)(1,"div",119)(2,"div",120)(3,"a",121)(4,"div",122),c(5,"U"),o()()(),l(6,"div",123)(7,"span",124),c(8),o(),l(9,"a",125),c(10),o()(),d(11,"br"),o(),d(12,"br"),o()),t&2){let e=s(),r=e.$implicit,m=e.$index;n(8),C(" usuario ",m+1,""),n(2),F(r.value)}}function Ri(t,i){if(t&1&&_(0,Hi,13,2,"div",118),t&2){let e=s(2).$implicit;a("ngIf",e.typeQuestion===1)}}function $i(t,i){if(t&1&&(l(0,"div",73)(1,"table")(2,"tbody")(3,"tr",114)(4,"td"),c(5),o(),l(6,"td"),d(7,"p",33),I(8,"clearStyles"),o()()()(),E(9,Ni,1,1,"div",115,T),E(11,Ri,1,1,"div",89,T),o()),t&2){let e=s(),r=e.$implicit,m=e.$index;n(5),C("",m+1,"."),n(2),a("innerHTML",V(8,2,r.text),B),n(2),w(r.percentagesPoll),n(2),w(r.userContentPollAnswers)}}function Li(t,i){if(t&1&&_(0,$i,13,4,"div",113),t&2){let e=i.$implicit;a("ngIf",e.votes>0)}}
1function ji(t,i){if(t&1&&(l(0,"li")(1,"a",37)(2,"span",41),d(3,"img",39),I(4,"iconFileExtension"),l(5,"span"),c(6),I(7,"fileSize"),o()(),d(8,"p",5)(9,"br"),o()()),t&2){let e=i.$implicit;n(),a("href",e.filePath,b),n(2),a("alt",e.name)("title",e.name)("src",V(4,6,e.filePath),b),n(3),F(V(7,8,e.size)),n(2),a("textContent",e.name)}}function Oi(t,i){if(t&1&&(l(0,"ul",40)(1,"h3"),c(2,"Archivos para descargar"),o(),E(3,ji,10,10,"li",null,T),d(5,"br"),o()),t&2){let e=s(2);n(3),w(e.model.downloadFiles)}}function Wi(t,i){if(t&1){let e=h();l(0,"div")(1,"div",21)(2,"span"),c(3),o(),c(4," - "),l(5,"span"),c(6),o()(),_(7,mi,1,1,"h2",64),l(8,"div",26)(9,"span",16),c(10,"Compartir"),o(),l(11,"div",27)(12,"div",28),x("click",function(){u(e);let m=s();return v(m.portalMainService.shared("Facebook"))}),d(13,"span",29),o(),l(14,"div",30),x("click",function(){u(e);let m=s();return v(m.portalMainService.shared("Twitter"))}),d(15,"span",31),o()(),_(16,si,1,0,"app-helper",65),o(),_(17,ci,4,1,"div",10)(18,di,1,1,"app-carousel",66)(19,pi,4,3,"div",10),l(20,"article",67),_(21,_i,11,4,"div",10)(22,ui,8,4,"div",10)(23,vi,1,1,"div",68),o(),_(24,fi,17,4,"ul",69)(25,gi,9,2,"ul",69)(26,yi,6,1,"div",10),l(27,"form",70,0),x("ngSubmit",function(){u(e);let m=s();return v(m.votePoll())}),_(29,Ai,2,0),d(30,"br")(31,"br"),_(32,Ui,2,1,"div",71),d(33,"hr",72),E(34,Li,1,1,"div",73,T),o(),_(36,Oi,6,0,"ul",34),o()}if(t&2){let e=s();n(3),C(" Modificaci\xF3n: ",e.model.modifiedDate==null?null:e.model.modifiedDate.toDateString()," "),n(3),C(" Creaci\xF3n: ",e.model.creationDate==null?null:e.model.creationDate.toDateString()," "),n(),a("ngIf",e.model.contentType!=="Gallery"),n(9),a("ngIf",e.currentUser==null||e.currentUser.permissions==null?null:e.currentUser.permissions.length),n(),a("ngIf",e.model.daysToStart),n(),a("ngIf",e.gallery.images.length&&e.model.contentType!=="Hangout"&&e.loadContent),n(),a("ngIf",e.model.contentType==="Hangout"),n(2),a("ngIf",(e.model.contentType==="Challenge"||e.model.contentType==="Convocation")&&e.model.daysToComplete),n(),a("ngIf",e.model.contentType==="Accountability"),n(),a("ngIf",e.model.contentType!=="Gallery"&&e.model.contentType!=="Poll"),n(),a("ngIf",e.model.contentType==="Event"),n(),a("ngIf",e.model.contentType==="Accountability"),n(),a("ngIf",e.model.contentType==="Vote"),n(3),L(e.model.contentType==="Poll"?29:-1),n(3),a("ngIf",e.model.contentType==="Poll"),n(2),w(e.model.contentPoll),n(2),a("ngIf",e.model==null||e.model.downloadFiles==null?null:e.model.downloadFiles.length)}}function Qi(t,i){if(t&1){let e=h();l(0,"app-comments",127),x("updatecounter",function(m){u(e);let p=s(2);return v(p.updateCounter(m))}),o()}if(t&2){let e=s(2);a("alias",e.friendlyName)("content",e.model)}}function qi(t,i){if(t&1&&(l(0,"div"),_(1,Qi,1,2,"app-comments",126),o()),t&2){let e=s();n(),a("ngIf",e.model.commentWallType!==2)}}var qe=class t{constructor(i,e,r,m,p,f,y,$,fe,Yi,Gi,Zi,Ki){this.contentService=i;this.route=e;this.authService=r;this.modalService=m;this.helperService=p;this.trackService=f;this.settingService=y;this.fileService=$;this.portalMainService=fe;this.appService=Yi;this.eventEmitterService=Gi;this.dialog=Zi;this.sanitizer=Ki}alias="";model={};tag={};friendlyName=null;gallery={};hangOutInterval=null;lagComments=6e4;limitInterval=120;intervalComment=0;votePollmodel=[];visibleReCaptcha=!0;form;formUrl;loadContent=!1;canAdminContents=!1;currentUser=null;formIsBusy=!1;formSubmitted=!1;ngOnInit(){this.activate()}activate(){this.currentUser=this.authService.user,this.canAdminContents=this.authService.canAdminContents,this.alias=this.route.snapshot.paramMap.get("alias"),this.gallery.images=[],this.gallery.thumbnails=[],this.gallery.contentType="",this.gallery.title="",this.gallery.body="",this.alias&&(this.friendlyName=this.alias,this.contentService.getByFriendlyName(this.alias).subscribe({next:i=>{this.setContent(i)},error:()=>{this.errorContent()}})),this.eventEmitterService.refresh.subscribe(()=>this.reloadContent()),this.eventEmitterService.$destroy.subscribe(()=>this.destroy())}reloadContent(){this.model={},this.gallery={images:[],thumbnails:[]},this.contentService.getByFriendlyName(this.alias).subscribe({next:i=>{this.setContent(i)},error:()=>{this.errorContent()}})}vote(i){this.visibleReCaptcha=!1,this.authService.callCurrentUser().subscribe({next:e=>{this.visibleReCaptcha=!0;var r={selectedAnswers:[i.contentAnswerID]};this.contentService.vote(this.model,r).subscribe({next:m=>{this.setVote(i,m)},error:()=>{this.errorVote()}})},error:()=>{this.visibleReCaptcha=!0}})}votePoll(){this.form.valid&&!this.formIsBusy?(this.formIsBusy=!0,this.visibleReCaptcha=!1,this.authService.callCurrentUser().subscribe({next:()=>{this.visibleReCaptcha=!0;var i=this.bindVotepollContentPoll();this.contentService.votepoll(this.model,i).subscribe({next:()=>{this.setVotePoll(null,null),this.modalService.showExit("Encuesta guardada de forma exitosa",""),window.history.back()},error:()=>{this.formIsBusy=!1,this.errorVote()}})},error:()=>{this.visibleReCaptcha=!0,this.formIsBusy=!1}})):this.formSubmitted=!0}bindVotepollContentPoll(){var i=[];return this.model.contentPoll&&this.model.contentPoll.length>0&&this.model.contentPoll.forEach(function(e){if(e.value&&i.push({contentPollID:e.contentPollID,typeQuestion:e.typeQuestion,value:String(e.value)}),e.typeQuestion===4&&e.contentAnswers){var r=[];
1e.contentAnswers.forEach(function(m){m.value&&r.push(m.contentAnswerID)}),i.push({contentPollID:e.contentPollID,typeQuestion:e.typeQuestion,SelectedAnswers:r})}}),i}bindVotesum(){this.model.contentPoll&&this.model.contentPoll.length>0&&this.model.contentPoll.forEach(i=>{i.value&&(i.votes=parseInt(i.votes+1)),i.typeQuestion===4&&i.contentAnswers&&(i.votes=parseInt(i.votes+1))})}setVotePoll(i,e){this.formSubmitted=!1,this.formIsBusy=!1,this.bindVotesum(),this.contentService.bindByType(this.model)}updateCounter(i){i===-1&&this.model.countComments===0||(this.model.countComments+=i)}exportVotes(){var i={contentID:this.model.contentID};this.fileService.downloadFile("/api/v1/content/votes/export/",i).subscribe({next:e=>{document.location.href=e}})}exportChallenge(){var i={contentID:this.model.contentID};this.fileService.downloadFile("/api/v1/content/challenge/export/",i).subscribe({next:e=>{document.location.href=e}})}setContent(i){if(this.model=i,this.trackService.add({identifier:i.contentID,type:0}),this.gallery.contentType=this.model.contentType,this.gallery.title=this.model.name,this.model.tags&&this.model.tags.length&&(this.tag.name=this.model.tags[0].name,this.tag.path=this.settingService.settings.routes.Tag.concat("/",this.model.tags[0].friendlyName)),this.model.body&&(this.model.bodyHtml=this.appService.decodeHtmlEntitiesPreservingMarkup(this.model.body),this.gallery.bodyHtml=this.model.body),this.model.embedUrl){var e=this.fileService.getCodeYoutube(this.model.embedUrl);e&&(this.model.codeYouTube=e,this.model.previewYoutube=this.fileService.getPreviewYoutube(e),this.model.urlEmbedYoutube="//www.youtube.com/embed/".concat(this.model.codeYouTube))}if(this.contentService.bindByType(this.model),this.model.date=this.model.modifiedDate.getIntervalTime(),this.model.user.firstsLetter=this.appService.getFirstsLetters(this.model.user.name),(this.model.contentType==="Document"||this.model.contentType==="Link")&&(this.model.embedUrl?this.model.urlLink=this.model.embedUrl:this.model.files&&this.model.files.filter(function(y){return y.isImage===!1}).length&&(this.model.urlLink=this.model.files.filter(function(y){return y.isImage===!1})[0].filePath)),this.model.contentType==="Hangout"&&this.model.startingDate.toDateTime()<=window.currentDate&&(this.hangOutInterval=setInterval(()=>{this.intervalComment+=1,this.intervalComment<=this.limitInterval&&this.eventEmitterService.refreshCommentsEvent.emit()},this.lagComments)),this.portalMainService.seo.title=this.model.name.concat(" - ",this.settingService.settings.resources["Header.Title"]),this.portalMainService.seo.description=this.model.metaDescription,this.model.codeYouTube&&(this.gallery.images.push({url:"//www.youtube.com/embed/"+this.model.codeYouTube+"/?autoplay=0",name:"Youtube",current:!0,video:!0}),this.gallery.thumbnails.push({url:this.model.previewYoutube,name:"Youtube",current:!0,video:!0})),this.model.defaultImage){var r=this.model.defaultImage;if(this.settingService.settings){var m=this.model.defaultImage.indexOf(this.settingService.settings.authorityDomain);m!==-1&&(r=r.replace(this.settingService.settings.authorityDomain,this.helperService.getUrlRoot()))}this.portalMainService.seo.image=r}else this.model.previewYoutube&&(this.portalMainService.seo.image=window.location.protocol+this.model.previewYoutube);if(this.model.files&&this.model.files.length){var p=this.model.files.filter(function(y){return y.isImage===!0});if(this.model.downloadFiles=this.model.files.filter(function(y){return y.isImage===!1}),p.length)for(var f=0;f<p.length;f++)this.gallery.thumbnails.push({url:p[f].thumbnail,name:p[f].name,current:this.gallery.images.length===0}),this.gallery.images.push({url:p[f].filePath,preview:p[f].thumbnail,name:p[f].name})}this.loadContent=!0}edit(){let i=this.dialog.open(Pe,{data:{friendlyName:this.model.friendlyName}});i.componentInstance.contentRefreshed.subscribe(e=>{i.close(),this.reloadContent()})}setVote(i,e){i.votes+=1,this.contentService.bindByType(this.model)}errorContent(){location.pathname="pagina-no-encontrada"}errorVote(){this.modalService.showAlert(this.settingService.settings.resources["Content.AlreadyVoted"])}destroy(){this.hangOutInterval}static \u0275fac=function(e){return new(e||t)(g(de),g(G),g(te),g(J),g(Ie),g(Re),g(Z),g(Ve),g(pe),g(ee),g(X),g(Se),g(Y))};static \u0275cmp=U({type:t,selectors:[["app-content"]],viewQuery:function(e,r){if(e&1&&O(Ut,5),e&2){let m;W(m=Q())&&(r.form=m.first)}},standalone:!0,features:[z],decls:20,vars:13,consts:[["form","ngForm"],[1,"content_all"],[3,"seedValue"],["class","btnEditCont",3,"click",4,"ngIf"],[1,"tags"],[3,"textContent"],[1,"mt20"],["class","btn-main btn-main--v3",3,"click",4,"ngIf"],["class","content-link docu-inner",4,"ngIf"],["class","content-link",4,"ngIf"],[4,"ngIf"],[3,"content"],[1,"shareComt-wrap"],[1,"shareComt-numComt",3,"ngClass"],[1,"shareComt__iconComt"],[1,"icon-comment"],[1,"shareComt__txt"],[1,"btnEditCont",3,"click"],[1,"icon-icon-10"],[1,"btn-main","btn-main--v3",3,"click"],[1,"content-link","docu-inner"],[1,"dateMc-wrap"],[1,"mt10"],["target","_blank",1,"a-mark",3,"title","href"],[1,"section-tit",3,"textContent"],[1,"dateMc-exp"],[1,"shareComt-shareCol"],[1,"shareComt-shareWrap"],[1,"shareComt__fb",3,"click"],[1,"icon-facebook-2"],[1,"shareComt__tw",3,"click"],[1,"icon-twitter"],["classname","toolTip-btn",3,"key",4,"ngIf"],[3,"innerHTML"],["class","file-content",4,"ngIf"],["classname","toolTip-btn",3,"key"],[1,"set-img","mt10"],["target","_blank",3,"href"],[3,"alt","title","src",4,"ngIf"],[3,"alt","title","src"],[1,"file-content"],[1,"img-doc"],[3,"src","alt","title"],[1,"content-link"],["class","set-img",4,"ngIf"],[3,"ngClass"],[1,"set-img"],["class","",4,"ngIf"],[1,""],[1,"tramite__dateMc__wrap"],["target","_blank",1,"section-tit","tramite__detalle__title",3,"href","textContent"],[1,"tramite-row-detail"],[1,"tramite-col"],[1,"divi
1der"],["class","tramite-info",4,"ngIf"],[1,"tramite-info"],["class","tramite-infoRow",4,"ngIf"],[1,"tramite-infoRow"],[1,"tramite-typeIcon"],[1,"icon-person"],["target","_blank","class","procedure-link",3,"href",4,"ngIf"],["target","_blank",1,"procedure-link",3,"href"],[1,"tramite-valueIcon"],[1,"tramite-timeIcon"],["class","section-tit",3,"textContent",4,"ngIf"],["key","40","classname","toolTip-btn",4,"ngIf"],[3,"gallery",4,"ngIf"],[1,"content-descri"],[3,"innerHTML",4,"ngIf"],["class","event-content",4,"ngIf"],["name","form","novalidate","",3,"ngSubmit"],["class","control_comment","style","display: flex; justify-content: center; margin-bottom: 30px",4,"ngIf"],[2,"margin-bottom","30px"],[1,"criteria-groups","criteria-groups--inner"],["key","40","classname","toolTip-btn"],[1,"rest-time"],[1,"icon-clock"],[3,"gallery"],[1,"carousel-content"],[2,"width","100%","height","100%","border","none",3,"src"],[1,"progress-bar-up"],[1,"progress-bar"],[3,"ngStyle"],[1,"event-content"],[1,"votes-content"],["class","criteria-groups criteria-groups--inner","style","overflow-x: hidden",4,"ngIf"],[3,"click"],[1,"criteria-groups","criteria-groups--inner",2,"overflow-x","hidden"],[1,"section-tit","section-tit__light"],[1,"percent-content"],[1,"percent-box"],[1,"mask",3,"ngStyle"],[1,"content-descri-poll"],["style","width: 85%; margin: auto",4,"ngIf"],["style","width: 83%; margin: auto",4,"ngIf"],[2,"width","85%","margin","auto"],[1,"wrapRadios-poll"],[1,"wrapRadios-col"],["type","radio","value","1","id","bolean-1","required","",3,"ngModelChange","ngModel","name"],["for","bolean-1"],["type","radio","value","0","id","bolean-0","required","",3,"ngModelChange","ngModel","name"],["for","bolean-0"],["class","error",4,"ngIf"],[1,"error"],["placeholder","Escriba su respuesta","rows","4","required","","aria-required","true","ng-trim","false","required-empty","","maxlength","560","minlength","10",2,"margin-bottom","0","margin","auto","width","83%","border","solid","border-color","#3b76fb",3,"ngModelChange","name","ngModel"],["type","radio","required","",3,"ngModelChange","value","ngModel","name","id"],[3,"for"],[2,"width","83%","margin","auto"],[1,"divCheck"],["type","checkbox",3,"ngModelChange","name","id","ngModel"],[2,"margin-left","10px"],[1,"control_comment",2,"display","flex","justify-content","center","margin-bottom","30px"],["type","submit","value","Enviar",3,"disabled"],["class","criteria-groups criteria-groups--inner",4,"ngIf"],[2,"font-size","16px","color","#3b76fb","font-weight","700"],[1,"percent-content-poll",2,"height","70px"],["class","percent-content-poll","style","height: 70px",4,"ngIf"],[1,"percent-number"],["class","percent-content",4,"ngIf"],[1,"menu-wrapLog"],[1,"user-img"],["href","mi-perfil"],[1,"no-img"],[1,"menu__colTxt"],[1,"menu__userName"],[1,"menu__btnOut"],[3,"alias","content","updatecounter",4,"ngIf"],[3,"updatecounter","alias","content"]],template:function(e,r){e&1&&(l(0,"section",1),d(1,"app-seed",2),_(2,Ht,4,0,"div",3),l(3,"div",4),E(4,Rt,1,1,"span",5,T),o(),l(6,"div",6),_(7,$t,2,0,"button",7)(8,Lt,2,0,"button",7),o(),_(9,Yt,27,10,"div",8)(10,ai,7,8,"div",9)(11,Wi,37,16,"div",10),d(12,"app-feedback",11),l(13,"div",12)(14,"div",13)(15,"div",14),d(16,"span",15),o(),l(17,"span",16),c(18),o()()(),_(19,qi,2,1,"div",10),o()),e&2&&(n(),a("seedValue",r.tag.name),n(),a("ngIf",r.canAdminContents||r.currentUser.id===(r.model==null||r.model.user==null?null:r.model.user.userID)),n(2),w(r.model.labels),n(3),a("ngIf",r.model.contentType==="Vote"&&r.canAdminContents),n(),a("ngIf",r.model.contentType==="Challenge"&&r.canAdminContents),n(),a("ngIf",r.model.contentType==="Document"),n(),a("ngIf",r.model.contentType==="Link"||r.model.contentType==="Procedure"),n(),a("ngIf",r.model.contentType!=="Link"&&r.model.contentType!=="Document"&&r.model.contentType!=="Procedure"),n(),a("content",r.model),n(2),a("ngClass",S(11,zt,r.model.commentWallType===2)),n(4),C(" ",r.model.countComments," Comentarios"),n(),a("ngIf",r.visibleReCaptcha))},dependencies:[R,N,H,q,Ne,Te,Me,Ae,Ue,ce,ae,ie,Ee,we,ne,oe,me,ke,se,le,re,_e,He,ze,ue,K]})};export{qe as ContentComponent};

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.