PageSourceSearch

https://concepcion-santander.gov.co/chunk-Z2JAZNTC.js

js concepcion-santander.gov.co collected 2026-10-03 02:30:32 UTC 34,518 bytes, 1 lines download raw bytes

1import{a as re}from"./chunk-GH2RV5OT.js";import"./chunk-YWAL7HVF.js";import{a as le}from"./chunk-3DC4M3IT.js";import{b as ne,c as oe}from"./chunk-LDL32NDY.js";import"./chunk-YFREARA7.js";import"./chunk-AGCAGPAP.js";import{a as me}from"./chunk-AHQSOXDD.js";import"./chunk-GCE2MEC6.js";import"./chunk-W2ZMKN4C.js";import{A as ee,B as te,D as ie,b as R,c as z,g as O,h as j,j as H,l as G,m as Q,s as Z,t as K,u as J,x as X,z as $}from"./chunk-ICJV4PL6.js";import{a as q}from"./chunk-RIRGXRXY.js";import"./chunk-3GN2FC7K.js";import{t as N}from"./chunk-47CSRN7C.js";import{c as W}from"./chunk-SKH2MXBC.js";import{j as B,k as L,v as Y}from"./chunk-BQLJE42W.js";import{$b as y,Db as x,Ib as v,Jb as p,Mb as k,Pb as P,Qa as T,Qb as M,Rb as A,Sb as b,Tb as s,Ub as I,Xa as d,Ya as D,Zb as w,_b as C,bc as U,da as V,ib as _,mb as m,na as c,oa as u,xb as l,yb as r,zb as f}from"./chunk-YE3BF7DR.js";import{e as de}from"./chunk-4IDNTCH7.js";var S=de(me());var pe=["form"],se=["formDates"],ce=["createContentForm"];function ue(i,n){i&1&&(l(0,"div",26)(1,"b"),s(2,"Generando contenido a partir de la URL, espera unos momentos."),r()())}function _e(i,n){i&1&&(l(0,"span"),s(1,"Debes registrar una fecha"),r())}function fe(i,n){if(i&1&&(l(0,"div",42),_(1,_e,2,0,"span",43),r()),i&2){let e;p();let o=b(4);d(),m("ngIf",(e=o.form.get("showFromDate"))==null||e.errors==null?null:e.errors.required)}}function ve(i,n){i&1&&(l(0,"span"),s(1,"Debes registrar una fecha"),r())}function ge(i,n){if(i&1&&(l(0,"div",42),_(1,ve,2,0,"span",43),r()),i&2){let e;p();let o=b(4);d(),m("ngIf",(e=o.form.get("showToDate"))==null||e.errors==null?null:e.errors.required)}}function he(i,n){i&1&&(l(0,"div",42)(1,"span"),s(2,"La fecha inicial debe ser menor que la fecha final."),r()())}function xe(i,n){if(i&1){let e=x();l(0,"div",27)(1,"div",28)(2,"div",29),v("click",function(){c(e);let t=p();return u(t.model.dateRange=!t.model.dateRange)}),r(),l(3,"form",30,0)(5,"div",31)(6,"div",32),s(7,"Programar publicaci\xF3n"),r(),l(8,"div",33),s(9," Una vez se venza el periodo el contenido pasar\xE1 a la secci\xF3n de contenidos inactivos. "),r(),f(10,"br"),l(11,"div",34)(12,"input",35),y("ngModelChange",function(t){c(e);let a=p();return C(a.isSaveFromDate,t)||(a.isSaveFromDate=t),u(t)}),v("click",function(){c(e);let t=p();return u(t.changeDate("from"))}),r(),s(13," Asigna una fecha de inicio "),r(),l(14,"div",36)(15,"input",37),y("ngModelChange",function(t){c(e);let a=p();return C(a.viewModel.showFromDate,t)||(a.viewModel.showFromDate=t),u(t)}),r(),_(16,fe,2,1,"div",38),r(),l(17,"div",34)(18,"input",39),y("ngModelChange",function(t){c(e);let a=p();return C(a.isSaveToDate,t)||(a.isSaveToDate=t),u(t)}),v("click",function(){c(e);let t=p();return u(t.changeDate("to"))}),r(),s(19," Asigna una fecha de cierre "),r(),l(20,"div",36)(21,"input",40),y("ngModelChange",function(t){c(e);let a=p();return C(a.viewModel.showToDate,t)||(a.viewModel.showToDate=t),u(t)}),r(),_(22,ge,2,1,"div",38),r(),_(23,he,3,0,"div",38),l(24,"button",41),v("click",function(){c(e);let t=p();return u(t.model.dateRange=!t.model.dateRange)}),s(25,"Programar"),r()()()()()}if(i&2){let e,o,t=b(4),a=p();d(12),w("ngModel",a.isSaveFromDate),d(3),m("minDate",a.minDate),w("ngModel",a.viewModel.showFromDate),m("disabled",!a.isSaveFromDate)("required",a.isSaveFromDate),d(),m("ngIf",((e=t.form.get("showFromDate"))==null?null:e.invalid)&&t.submitted),d(2),w("ngModel",a.isSaveToDate),d(3),m("minDate",a.minDate),w("ngModel",a.viewModel.showToDate),m("disabled",!a.isSaveToDate)("required",a.isSaveToDate),d(),m("ngIf",((o=t.form.get("showToDate"))==null?null:o.invalid)&&t.submitted),d(),m("ngIf",a.datesInvalid)}}function we(i,n){if(i&1&&f(0,"h3",47),i&2){let e=p(2);m("innerText",e.model.name)}}function Ce(i,n){if(i&1&&(l(0,"div",53),f(1,"img",54),r()),i&2){let e=p(2);d(),m("src",e.model.embedURL,T)}}function ye(i,n){if(i&1&&(l(0,"div",53),f(1,"img",54),r()),i&2){let e=p(2);d(),m("src",e.model.embedUrl,T)}}function be(i,n){if(i&1){let e=x();l(0,"span"),s(1," \xA0\xA0 "),l(2,"input",55),v("click",function(){c(e);let t=p(2);return u(t.moreInformation(t.model.externalLink))}),r()()}if(i&2){let e=p(2);d(2),k("value",e.model.nameBottonUrl)}}
1function Se(i,n){if(i&1){let e=x();l(0,"div",44)(1,"div",45)(2,"form",46)(3,"div",31),f(4,"h3",47),_(5,we,1,1,"h3",48),f(6,"br"),_(7,Ce,2,1,"div",49)(8,ye,2,1,"div",49),f(9,"br")(10,"p",50)(11,"br"),l(12,"div",51)(13,"input",52),v("click",function(){c(e);let t=p();return u(t.closeModal())}),r(),_(14,be,3,1,"span",43),r()()()()()}if(i&2){let e=p();d(4),m("innerText",e.model.title),d(),m("ngIf",e.model.name),d(2),m("ngIf",!e.model.embedUrl),d(),m("ngIf",e.model.embedUrl),d(2),m("innerText",e.model.body),d(4),m("ngIf",e.model.externalLink)}}function Te(i,n){if(i&1){let e=x();l(0,"div",56)(1,"div",28)(2,"div",29),v("click",function(){c(e);let t=p();return u(t.saved=!t.saved)}),r(),l(3,"div",31)(4,"div",32),s(5),r(),l(6,"div",57),s(7),r(),f(8,"br"),l(9,"div",58),v("click",function(){c(e);let t=p();return u(t.saved=!t.saved)}),s(10,"Entendido"),r()()()()}if(i&2){let e=p();d(5),I(e.alertTitle),d(2),I(e.alertMessage)}}function Ee(i,n){if(i&1){let e=x();l(0,"div",84)(1,"div",85),v("click",function(){c(e);let t=p(2);return u(t.deleteFiles())}),r(),f(2,"img",86),r()}if(i&2){let e=p(2);d(2),m("src",e.model.imageUrl,T)}}function De(i,n){if(i&1&&(l(0,"option",87),s(1),r()),i&2){let e=n.$implicit;m("value",e.id),d(),I(e.value)}}function Ie(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar un link"),r())}function Pe(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar un link v\xE1lido"),r())}function Me(i,n){if(i&1&&(l(0,"div",42),_(1,Ie,2,0,"span",43)(2,Pe,2,0,"span",43),r()),i&2){let e,o;p();let t=b(5);d(),m("ngIf",(e=t.form.get("externalLink"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=t.form.get("externalLink"))==null||o.errors==null?null:o.errors.pattern)}}function Ae(i,n){i&1&&(l(0,"span"),s(1,"El m\xE1ximo de caracteres para el nombre del bot\xF3n es 20"),r())}function Fe(i,n){if(i&1&&(l(0,"div",42),_(1,Ae,2,0,"span",43),r()),i&2){let e;p();let o=b(5);d(),m("ngIf",(e=o.form.get("nameButtonUrl"))==null||e.errors==null?null:e.errors.maxlength)}}function Ve(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar el t\xEDtulo del contenido"),r())}function ke(i,n){i&1&&(l(0,"span"),s(1,"El m\xEDnimo de caracteres para el t\xEDtulo es de 4"),r())}function Ue(i,n){i&1&&(l(0,"span"),s(1,"El m\xE1ximo de caracteres para el t\xEDtulo es de 120"),r())}function Be(i,n){if(i&1&&(l(0,"div",42),_(1,Ve,2,0,"span",43)(2,ke,2,0,"span",43)(3,Ue,2,0,"span",43),r()),i&2){let e,o,t;p();let a=b(5);d(),m("ngIf",(e=a.form.get("name"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=a.form.get("name"))==null||o.errors==null?null:o.errors.minlength),d(),m("ngIf",(t=a.form.get("name"))==null||t.errors==null?null:t.errors.maxlength)}}function Le(i,n){if(i&1){let e=x();l(0,"div",88)(1,"div",89),f(2,"img",90),r(),l(3,"div",91),v("click",function(){c(e);let t=p(2);return u(t.deleteFiles())}),f(4,"span"),s(5," borrar"),r()()}if(i&2){let e=p(2);d(2),m("src",e.model.imageUrl,T)}}function Ye(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar la descripci\xF3n del contenido"),r())}function We(i,n){i&1&&(l(0,"span"),s(1,"El m\xEDnimo de caracteres para la descripci\xF3n es de 20"),r())}function Ne(i,n){i&1&&(l(0,"span"),s(1,"El tama\xF1o m\xE1ximo es de 400 caracteres"),r())}function qe(i,n){if(i&1&&(l(0,"div",42),_(1,Ye,2,0,"span",43)(2,We,2,0,"span",43)(3,Ne,2,0,"span",43),r()),i&2){let e,o,t;p();let a=b(5);d(),m("ngIf",(e=a.form.get("body"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=a.form.get("body"))==null||o.errors==null?null:o.errors.minlength),d(),m("ngIf",(t=a.form.get("body"))==null||t.errors==null?null:t.errors.maxlength)}}function Re(i,n){if(i&1){let e=x();l(0,"div",56)(1,"div",45)(2,"div",29),v("click",function(){c(e);let t=p();return u(t.closeModal())}),r(),l(3,"div",31)(4,"form",59,1),v("ngSubmit",function(){c(e);let t=p();return u(t.sendUpdate())}),l(6,"div",32),s(7,"Edita este contenido."),r(),_(8,Ee,3,1,"div",60),l(9,"div",61)(10,"select",62),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.showForTypeUserId,t)||(a.model.showForTypeUserId=t),u(t)}),_(11,De,2,2,"option",63),r()(),l(12,"div",64)(13,"label",65),s(14,"Enlace:"),r(),l(15,"input",66),v("ngModelChange",function(t){c(e);let a=p();return u(a.crawler(t))}),r(),_(16,Me,3,2,"div",38),r(),l(17,"div",67)(18,"label",68),s(19,"Nombre bot\xF3n URL:"),r(),l(20,"input",69),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.nameBottonUrl,t)||(a.model.nameBottonUrl=t),u(t)}),r(),_(21,Fe,2,1,"div",38),r(),l(22,"div",9)(23,"label"),s(24,"T\xEDtulo*:"),r(),l(25,"input",70),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.title,t)||(a.model.title=t),u(t)}),r(),_(26,Be,4,3,"div",38),r(),l(27,"div",9)(28,"label"),s(29,"Descripcion*:"),r(),l(30,"div",71)(31,"textarea",72),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.body,t)||(a.model.body=t),u(t)}),r(),l(32,"div",73),s(33,"400 Caracteres"),r(),l(34,"div",74),f(35,"br"),_(36,Le,6,1,"div",75),r(),l(37,"div",76)(38,"div",77)(39,"
1span"),s(40,"Adjuntar"),r(),l(41,"div",78)(42,"input",79),v("end",function(t){c(e);let a=p();return u(a.uploadUniqueImage(t))})("broadcast",function(t){c(e);let a=p();return u(a.endFile(t))}),r()()(),l(43,"p",80),s(44," Dimensi\xF3n recomendada 800 x 800px Formatos jpg, jpeg, png "),r()()()(),_(45,qe,4,3,"div",38),f(46,"br"),l(47,"div",9)(48,"div",81)(49,"div",82),v("click",function(){c(e);let t=p();return u(t.model.dateRange=!t.model.dateRange)}),s(50,"Programar "),f(51,"span"),r(),f(52,"input",83),r()()()()()()}if(i&2){let e,o,t,a,h=b(5),g=p();d(8),m("ngIf",g.model.fileID),d(2),w("ngModel",g.model.showForTypeUserId),d(),m("ngForOf",g.dropdownlistNoticias),d(4),m("ngModel",g.model.externalLink),d(),m("ngIf",((e=h.form.get("externalLink"))==null?null:e.invalid)&&h.submitted),d(),m("hidden",!g.modalNoticia||g.hideNameButtonUrl),d(3),w("ngModel",g.model.nameBottonUrl),d(),m("ngIf",((o=h.form.get("nameButtonUrl"))==null?null:o.invalid)&&h.submitted),d(4),w("ngModel",g.model.title),d(),m("ngIf",((t=h.form.get("name"))==null?null:t.invalid)&&h.submitted),d(5),w("ngModel",g.model.body),d(5),m("ngIf",g.model.fileID),d(6),m("obj",g.model),d(3),m("ngIf",((a=h.form.get("body"))==null?null:a.invalid)&&h.submitted)}}function ze(i,n){if(i&1&&(l(0,"option",87),s(1),r()),i&2){let e=n.$implicit;m("value",e.id),d(),I(e.value)}}function Oe(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar un link"),r())}function je(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar un link v\xE1lido"),r())}function He(i,n){if(i&1&&(l(0,"div",42),_(1,Oe,2,0,"span",43)(2,je,2,0,"span",43),r()),i&2){let e,o;p();let t=b(1);d(),m("ngIf",(e=t.form.get("externalLink"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=t.form.get("externalLink"))==null||o.errors==null?null:o.errors.pattern)}}function Ge(i,n){i&1&&(l(0,"span"),s(1,"El m\xE1ximo de caracteres para el nombre del bot\xF3n es 20"),r())}function Qe(i,n){if(i&1&&(l(0,"div",42),_(1,Ge,2,0,"span",43),r()),i&2){let e;p();let o=b(1);d(),m("ngIf",(e=o.form.get("nameButtonUrl"))==null||e.errors==null?null:e.errors.maxlength)}}function Ze(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar el t\xEDtulo del contenido"),r())}function Ke(i,n){i&1&&(l(0,"span"),s(1,"El m\xEDnimo de caracteres para el t\xEDtulo es de 4"),r())}function Je(i,n){i&1&&(l(0,"span"),s(1,"El m\xE1ximo de caracteres para el t\xEDtulo es de 120"),r())}function Xe(i,n){if(i&1&&(l(0,"div",42),_(1,Ze,2,0,"span",43)(2,Ke,2,0,"span",43)(3,Je,2,0,"span",43),r()),i&2){let e,o,t;p();let a=b(1);d(),m("ngIf",(e=a.form.get("name"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=a.form.get("name"))==null||o.errors==null?null:o.errors.minlength),d(),m("ngIf",(t=a.form.get("name"))==null||t.errors==null?null:t.errors.maxlength)}}function $e(i,n){if(i&1){let e=x();l(0,"div",88)(1,"div",89),f(2,"img",86),r(),l(3,"div",91),v("click",function(){c(e);let t=p(2);return u(t.deleteFiles())}),f(4,"span"),s(5," borrar"),r()()}if(i&2){let e=p(2);d(2),m("src",e.model.urlVideo,T)}}function et(i,n){if(i&1){let e=x();l(0,"div",88)(1,"div",89),f(2,"img",86),r(),l(3,"div",91),v("click",function(){c(e);let t=p(2);return u(t.deleteFiles())}),f(4,"span"),s(5," borrar"),r()()}if(i&2){let e=p(2);d(2),m("src",e.model.imageUrl,T)}}function tt(i,n){i&1&&(l(0,"span"),s(1,"Debes ingresar la descripci\xF3n del contenido"),r())}function it(i,n){i&1&&(l(0,"span"),s(1,"El m\xEDnimo de caracteres para la descripci\xF3n es de 20"),r())}function nt(i,n){i&1&&(l(0,"span"),s(1,"El tama\xF1o m\xE1ximo es de 400 caracteres"),r())}function ot(i,n){if(i&1&&(l(0,"div",42),_(1,tt,2,0,"span",43)(2,it,2,0,"span",43)(3,nt,2,0,"span",43),r()),i&2){let e,o,t;p();let a=b(1);d(),m("ngIf",(e=a.form.get("body"))==null||e.errors==null?null:e.errors.required),d(),m("ngIf",(o=a.form.get("body"))==null||o.errors==null?null:o.errors.minlength),d(),m("ngIf",(t=a.form.get("body"))==null||t.errors==null?null:t.errors.maxlength)}}function rt(i,n){if(i&1){let e=x();l(0,"form",92,2),v("ngSubmit",function(){c(e);let t=p();return u(t.sendCreate())}),l(2,"div",93)(3,"select",94),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.showForTypeUserId,t)||(a.model.showForTypeUserId=t),u(t)}),_(4,ze,2,2,"option",63),r()(),l(5,"div",9)(6,"label"),s(7,"Enlace:"),r(),l(8,"input",95),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.externalLink,t)||(a.model.externalLink=t),u(t)}),r(),_(9,He,3,2,"div",38),r(),l(10,"div",96)(11,"label",97),s(12,"Nombre bot\xF3n URL:"),r(),l(13,"input",69),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.nameBottonUrl,t)||(a.model.nameBottonUrl=t),u(t)}),r(),_(14,Qe,2,1,"div",38),r(),l(15,"div",9)(16,"label"),s(17,"T\xEDtulo*:"),r(),l(18,"input",70),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.title,t)||(a.model.title=t),u(t)}),r(),_(19,Xe,4,3,"div",38),r(),l(20,"div",9)(21,"div",71)(22,"textarea",72),y("ngModelChange",function(t){c(e);let a=p();return C(a.model.body,t)||(a.model.body=t),u(t)}),r(),l(23,"div",74),_(24,$e,6,1,"div",75)(25,et,6,1,"div",75),r(),l(26,"div",76)(27,"div",77)(28,"span"),s(29,"Adjuntar"),r(),l(30,"div",78)(31,"input",79),v("end",function(t){c(e);let a=p();return u(a.uploadUniqueImage(t))})("broadcast",function(t){c(e);let a=p();return u(a.endFile(t))}),r()()(),l(32,"span"),s(33,"Dimensi\xF3n recomendada 800 x 800px Formatos jpg, jpeg, png"),r(),l(34,"div",73),s(35,"400 Caracteres"),r()()()(),_(36,ot,4,3,"div",38),f(37,"br"),l(38,"div",9)(39,"div",81)(40,"div",82),v("click",function(){c(e);let t=p();return u(t.model.dateRange=!t.model.dateRange)}),s(41,"Programar "),f(42,"span"),r(),f(43,"input",98),r()()()}if(i&2){let e,o,t,a,h=b(1),g=p();d(3),w("ngModel",g.model.showForTypeUserId),d(),m("ngForOf",g.dropdownlistNoticias),d(4),w("ngModel",g.model.externalLink),d(),m("ngIf",((e=h.form.get("externalLink"))==null?null:e.invalid)&&h.submitted),d(4),w("ngModel",g.model.nameBottonUrl),d(),m("ngIf",((o=h.form.get("nameButtonUrl"))==null?null:o.invalid)&&h.submitted),d(4),w("ngModel",g.model.title),d(),m("ngIf",((t=h.form.get("name"))==null?null:t.invali
1d)&&h.submitted),d(3),w("ngModel",g.model.body),d(2),m("ngIf",g.model.embedUrl&&g.model.fileID==null),d(),m("ngIf",g.model.fileID),d(6),m("obj",g.model),d(5),m("ngIf",((a=h.form.get("body"))==null?null:a.invalid)&&h.submitted),d(7),m("disabled",g.formIsBusy)}}function lt(i,n){if(i&1){let e=x();l(0,"a",111),v("click",function(){c(e);let t=p().$implicit,a=p();return u(a.edit(t))}),f(1,"span",112),r()}}function at(i,n){if(i&1){let e=x();l(0,"div",113),v("click",function(){c(e);let t=p().$implicit,a=p();return u(a.togglePublished(t))}),r()}if(i&2){let e=p().$implicit;m("innerText",e.published?"Inactivar":"Activar")}}function dt(i,n){if(i&1){let e=x();l(0,"div",113),v("click",function(){c(e);let t=p().$implicit,a=p();return u(a.Published_to_Admin(t))}),r()}if(i&2){let e=p().$implicit;m("innerText",e.contentPopupExcludeModels.length==0?"Ocultar":"Mostrar")}}function mt(i,n){i&1&&(l(0,"div",114),s(1,"Contenido Critico"),r())}function pt(i,n){i&1&&(l(0,"div",115),f(1,"img",116),r())}function st(i,n){i&1&&f(0,"br")}function ct(i,n){if(i&1&&(l(0,"div",117),f(1,"img",118),r()),i&2){let e=p().$implicit;d(),m("src",e.embedURL,T)}}function ut(i,n){if(i&1&&(l(0,"div",117),f(1,"img",118),r()),i&2){let e=p().$implicit;d(),m("src",e.embedUrl,T)}}function _t(i,n){if(i&1&&f(0,"h3",119),i&2){let e=p().$implicit;m("innerText",e.title)}}function ft(i,n){if(i&1&&f(0,"h3",119),i&2){let e=p().$implicit;m("innerText",e.name)}}function vt(i,n){if(i&1&&(l(0,"div",120),s(1),r()),i&2){let e=p().$implicit;d(),I(e.message)}}function gt(i,n){if(i&1){let e=x();l(0,"div",99)(1,"div",100)(2,"article",101),_(3,lt,2,0,"a",102)(4,at,1,1,"div",103)(5,dt,1,1,"div",103)(6,mt,2,0,"div",104)(7,pt,2,0,"div",105)(8,st,1,0,"br",43),r(),_(9,ct,2,1,"div",106)(10,ut,2,1,"div",106),l(11,"article",101),_(12,_t,1,1,"h3",107)(13,ft,1,1,"h3",107),f(14,"p",50),_(15,vt,2,1,"div",108),f(16,"div",109),r(),l(17,"button",110),v("click",function(){let t=c(e).$implicit,a=p();return u(a.preview(t))}),s(18,"Previsualizar"),r()()()}if(i&2){let e=n.$implicit;d(3),m("ngIf",!e.contentType),d(),m("ngIf",e.message!=="Vencido"&&!e.contentType),d(),m("ngIf",e.message!=="Vencido"&&e.contentType=="Global"&&!e.isRequired),d(),m("ngIf",e.isRequired),d(),m("ngIf",e.contentType=="Global"),d(),m("ngIf",e.contentType!="Global"),d(),m("ngIf",!e.codeYouTube&&e.embedURL),d(),m("ngIf",!e.codeYouTube&&e.embedUrl),d(2),m("ngIf",e.title),d(),m("ngIf",e.name),d(),m("innerText",e.body),d(),m("ngIf",e.message),d(),m("innerText",e.date)}}var ae=class i{constructor(n,e,o,t,a){this.contentPopupService=n;this.contentService=e;this.helperService=o;this.settingService=t;this.modalService=a}themes=[];block={};aux=null;sliders=[];positionSelect=0;model={};viewModel={};contentFilter={};groupOptions={};dropdownlistNoticias=[];contents=[];editing=!1;filtered=null;showEdit=!1;preview_popup=!1;showhideform=!1;modalNoticia=!0;oldImage=null;minDate;hideNameButtonUrl=!0;form;formDates;createContentForm;formIsBusy=!1;formSubmitted=!1;bckImage;bckVideo;file;callTimer=void 0;loadCrawler;saved;alertTitle;alertMessage;searchPromise;toggleContent;columns=[];isSaveFromDate;isSaveToDate;datesInvalid;searchValue;ngOnInit(){this.activate()}uploadError(){this.formIsBusy=!1}uploadUniqueImage(n){this.model.defaultImage=n.model.filePath,this.model.embedUrl=n.model.filePath}endFile(n){}activate(){this.contentFilter.page=0,this.contentFilter.pageSize=10,this.contentFilter.orderBy="displayOrder",this.contentFilter.published=null,this.model.video=!1,this.model.dateRange=!1,this.minDate=(0,S.default)("YYYY/MM/DD").toDate(),this.loadDropDownListNoticias(),this.getContents(),this.getContentFrom_Admin()}loadDropDownListNoticias(){this.dropdownlistNoticias=[{id:1,value:"Pop-up"}]}showHideFormFunction(){this.model.showForTypeUserId="1",this.modalNoticia=!0,this.showhideform?this.showhideform=!1:this.showhideform=!0}sendCreate(){this.send(this.createContentForm)}sendUpdate(){this.send(this.form)}send(n){n.valid&&!this.formIsBusy&&(this.formIsBusy=!0,this.model.nameBottonUrl==null&&(this.model.nameBottonUrl=null),this.model.contentID?(this.editing&&this.oldImage!=this.model.fileID&&this.model.imageUrl!=null&&(this.model.embedURL=this.model.imageUrl),this.contentPopupService.update(this.model).subscribe({next:e=>{this.closeModal()},error:e=>{this.helperService.handlerException(e)}})):(this.model.published=!1,this.contentPopupService.add(this.model).subscribe({next:e=>{this.closeModal()},error:e=>{this.helperService.handlerException(e)}})))}crawler(n){this.callTimer!==void 0&&this.callTimer!==!0&&clearTimeout(this.callTimer),this.hideNameButtonUrl=!0,this.model.externalLink?(this.hideNameButtonUrl=!(this.model.externalLink.length>0),/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(this.model.externalLink)&&(this.callTimer=setTimeout(()=>{this.formIsBusy=!0,this.loadCrawler=!0,this.contentPopupService.crawler({url:this.model.externalLink}).subscribe({next:e=>{e=e,e.title&&(this.model.title=e.title),e.description&&(this.model.body=e.description),e.image&&(this.model.embedUrl=e.image,this.model.urlVideo=e.image,this.model.filePath=e.image,this.model.imageUrl=e.image,this.model.fileID=null),this.formIsBusy=!1,this.loadCrawler=!1},error:e=>{this.helperService.handlerException(e)}})},1e3))):this.model.nameButtonUrl=""}setAdd(n){this.form&&(this.formSubmitted=!1,this.formIsBusy=!1),this.saved=!0,this.alertTitle="Contenido creado",this.alertMessage="Tu contenido ha sido creado correctamente, b\xFAscalo en el listado de contenidos creados.",this.clearModels(),this.showhideform=!1,this.activate()}errorAdd(n){this.form&&(this.formIsBusy=!1),this.helperService.handlerException(n)}clearModels(){this.model={video:!1},window.scrollTo(0,0)}filterStatus(n){this.contentFilter.published=n,this.contentFilter.page=0,this.filtered=n,this.sliders==null&&(this.sliders=this.contents),n==null?(this.getContents(),this.getContentFrom_Admin()):this.contentPopupService.getState(n).subscribe({next:e=>{this.setContents(e)},error:e=>{this.helperService.handlerException(e)}})}search(n){clearTimeout(this.searchPromise),this.contentFilter.search=n.currentTarget.value,this.searchPromise=setTimeout(()=>this.getContents(),200)}changeDate(n){n==="from"&&!this.model.isSaveFromDate&&(this.viewModel.showFromDate=null),n==="to"&&!this.model.isSaveToDate&&(this.viewModel.showToDate=null)}Published_to_Admin(n){var e={contentID:n.contentID,alias:this.settingService.settings.general.siteKeyword};n.contentPopupExcludeModels.length==0?this.modalService.showConfirm("\xBFEst\xE1s seguro de ocultar este contenido?").subscribe(o=>{o&&(n.published=0,this.contentPopupService.disabledGlobal(e).subscribe({next:t=>{this.succesfulUpdate()},error:t=>{this.helperService.handlerException(t)}}))}):this.modalService.showConfirm("\xBFDeseas mostrar este contenido?").subscribe(o=>{o&&(n.published=0,this.contentPopupService.enabledGlobal(e).subscribe({next:t=>{this.succesfulUpdate()},error:t=>{this.helperService.handlerException(t)}}))})}succesfulUpdate(){this.activate()}togglePublished(n){if(this.toggleContent=n,Object.values(this.sliders).includes(!0),n.published)this.modalService.showConfirm("\xBFEst\xE1s seguro de inactivar este contenido?").subscribe(E=>{E&&(n.published=0,this.contentPopupService.update(n).subscribe())});else{var e="Est\xE1s seguro de activar este contenido?",o=this.columns.find(E=>E.published===!0&&E.contentType!="Global");if(o!==void 0){e="Ya tienes un pop-up activo \xBFdeseas reemplazarlo?";var t=(0,S.default)(),a="YYYY-MM-DD",h=(0,S.default)(o.showFromDate).format(a),g=(0,S.default)(o.showToDate).format(a),F=t!=null?(0,S.default)(t).format(a):null;(0,S.default)(F)>=(0,S.default)(h)&&(0,S.default)(F)<=(0,S.default)(g)&&(e="Ya tienes un pop-up activo. Si deseas publicar este pop-up el otro se inactivar\xE1 a partir de ahora")}this.modalService.showConfirm(e).subscribe(E=>{E&&(o!==void 0&&(o.published=0,this.contentPopupService.update(o).subscribe()),n.published=1,this.contentPopupService.update(n).subscribe(()=>{this.activate()}))})}}setTogglePublished(n){n.result&&(this.toggleContent.published=!this.toggleContent.published,this.contentFilter.page=0,this.getContents())}startFile(n){this.formIsBusy=!0,this.file=n}getContents(){this.contentPopupService.get().subscribe(n=>{this.setContents(n)})}getContentFrom_Admin(){this.contentService.getPopUpNews({published:!0,alias:this.settingService.settings.general.siteKeyword,ShowMode:"1",ShowForTypeUserId:"2"}).subscribe(n=>{this.resultSuperAdmin(n)},n=>{this.helperService.handlerException(n)})}deleteFiles(){this.model.imageUrl=null,this.model.filePath=null,this.model.fileID=null,this.model.defaultImage=null,this.model.embedUrl=null,this.model.video=!1,this.model.urlVideo=null,this.model.codeYouTube=null}resultSuperAdmin(n){var e=n.data;if(e)for(var o=0;o<e.length;o++)e[o].showFromDate&&(e[o].showFromDate=(0,S.default)(e[o].showFromDate,"YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD")),e[o].showToDate&&(e[o].showToDate=(0,S.default)(e[o].showToDate,"YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD")),e[o].date=e[o].modifiedDate.getIntervalTime(),this.contents.push(e[o]),this.columns.push(e[o]),this.sliders.hasOwnProperty(e[o].contentID)&&this.sliders.push({key:e[o].contentID,value:e[o].published})}setContents(n){if(n){this.contentFilter.page===0&&(this.contents=[]);for(var e=0;e<n.length;
1e++)n[e].showFromDate&&(n[e].showFromDate=(0,S.default)(n[e].showFromDate,"YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD")),n[e].showToDate&&(n[e].showToDate=(0,S.default)(n[e].showToDate,"YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD")),n[e].date=n[e].modifiedDate.getIntervalTime(),this.contents.push(n[e]),this.sliders.hasOwnProperty(n[e].contentID)&&this.sliders.push({key:n[e].contentID,value:n[e].published});if(this.contentFilter.page===0)this.columns=n;else var o=this.contentFilter.orderBy==="displayOrder"}}closeModal(){this.showEdit=!1,this.editing=!1,this.preview_popup=!1,this.formSubmitted=!1,this.formIsBusy=!1,this.clearModels(),this.getContents(),this.getContentFrom_Admin()}edit(n){this.showhideform=!1,this.model=structuredClone(n),this.model.showForTypeUserId="1",this.model.contentID=n.contentID,this.model.imageUrl=n.embedURL,this.model.urlVideo=n.defaultImage,this.viewModel.showFromDate=this.model.showFromDate,this.viewModel.showToDate=this.model.showToDate,this.editing=!0,this.isSaveFromDate=this.viewModel.showFromDate!=null,this.isSaveToDate=this.viewModel.showToDate!=null,this.showEdit=!0,this.oldImage=n.fileID,this.hideNameButtonUrl=!0,this.model.externalLink!=null&&(this.hideNameButtonUrl=!(this.model.externalLink.length>0))}preview(n){this.model=structuredClone(n),this.model.showForTypeUserId="1",this.model.contentID=n.contentID,this.model.nameBottonUrl=this.model.nameBottonUrl?this.model.nameBottonUrl:"Ver m\xE1s",this.preview_popup=!0}moreInformation(n){this.closeModal(),window.open(n)}interSearch(n){if(!n||n.keyCode===13){var e=document.getElementById("search_content")?.nodeValue,o=0;this.contentFilter.published==null?o=2:o=parseInt(this.contentFilter.published),e==""||e==null?(this.clearModels(),this.getContents()):(this.clearModels(),this.contentPopupService.getContentName(e,o).subscribe({next:t=>{this.setContents(t)},error:t=>{this.helperService.handlerException(t)}}))}}sendDate(){var n=document.getElementById("showFromDate").nodeValue,e=document.getElementById("showToDate").nodeValue;this.datesInvalid=new Date(n)>new Date(e),this.formDates.valid&&!this.datesInvalid&&(this.model.showFromDate=this.viewModel.showFromDate,this.model.showToDate=this.viewModel.showToDate,this.model.dateRange=!this.model.dateRange)}static \u0275fac=function(e){return new(e||i)(D(oe),D(ne),D(q),D(W),D(N))};static \u0275cmp=V({type:i,selectors:[["app-admin-popup"]],viewQuery:function(e,o){if(e&1&&(P(pe,5),P(se,5),P(ce,5)),e&2){let t;M(t=A())&&(o.form=t.first),M(t=A())&&(o.formDates=t.first),M(t=A())&&(o.createContentForm=t.first)}},standalone:!0,features:[U],decls:36,vars:8,consts:[["formDates","ngForm"],["form","ngForm"],["createContentForm","ngForm"],["class","create-content-load-crawler",4,"ngIf"],[1,"admin-content"],[1,"section-tit"],[1,"sub-title"],["href","/administrador",1,"btn-close"],[1,"icon-close"],[1,"row-input"],["type","button","id","btnNuevoContenido","value","Nuevo contenido",1,"btn-main",3,"click"],["class","modal-wrap-popup","style","z-index:11;",4,"ngIf"],["class","modal-wrap-popup","style","z-index:4;",4,"ngIf"],["class","modal-wrap-popup",4,"ngIf"],["class","create-content","name","createContentForm","novalidate","",3,"ngSubmit",4,"ngIf"],[1,"content_popup"],[1,"filter-popup"],["ng-class","{'active' : contentFilter.published == null }",1,"filter-btn",3,"click"],["ng-class","{'active' : contentFilter.published == true }",1,"filter-btn",3,"click"],["ng-class","{'active' : contentFilter.published == false }",1,"filter-btn",3,"click"],[1,"row-search-popup"],[1,"search-bar-popup"],["id","search_content","name","name","ng-keyup","interSearch($event);","placeholder","Buscar","type","text",3,"ngModelChange","ngModel"],[1,"search-btn"],[1,"content-cards-pop",2,"max-width","1024px","margin","0 auto"],["class","column-card-popup",4,"ngFor","ngForOf"],[1,"create-content-load-crawler"],[1,"modal-wrap-popup",2,"z-index","11"],[1,"modal-inner"],[1,"modal__close-popup",3,"click"],["name","formDates","novalidate",""],[1,"modal-wrapTxt-popup"],[1,"modal__tit-popup"],[1,"modal__txt","modal__txt--black","ta-l"],[1,"modal__txt","ta-l"],["type","checkbox","name","isSaveFromDate",3,"ngModelChange","click","ngModel"],[1,"modal-wrapDate"],["type","text","id","showFromDate","appDateTime","","name","showFromDate","autocomplete","off",3,"ngModelChange","minDate","ngModel","disabled","required"],["class","error",4,"ngIf"],["type","checkbox","name","isSaveToDate",3,"ngModelChange","click","ngModel"],["type","text","id","showToDate","appDateTime","","name","showToDate","autocomplete","off",3,"ngModelChange","minDate","ngModel","disabled","required"],["type","submit",1,"modal__btn-popup","modal__btn--auto",3,"click"],[1,"error"],[4,"ngIf"],[1,"modal-wrap-popup",2,"z-index","4"],[1,"modal-inner","popup-inner"],["novalidate",""],[1,"modal__titpopup_preview",3,"innerText"],["class","modal__titpopup_preview",3,"innerText",4,"ngIf"],["class","content-img",4,"ngIf"],[1,"card__txt",3,"innerText"],[1,"wrap-btnCenter"],["type","submit","value","Cerrar",1,"btn-modal-preview",3,"click"],[1,"content-img"],["alt","imagen",3,"src"],["type","submit",1,"btn-modal-preview",3,"click","value"],[1,"modal-wrap-popup"],[1,"modal__txt-popup"],[1,"modal__btn-popup",3,"click"],["name","form","novalidate","",3,"ngSubmit"],["class","modal-wrapImg",4,"ngIf"],[1,"row-input",2,"margin","auto","width","27%","padding","10px","left","-4pc"],["name","showForTypeUserId","name","showForTypeUserId",2,"width","100%",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"modal-wrapInput"],["for",""],["type","text","name","externalLink","pattern","https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)","maxlength","250",3,"ngModelChange","ngModel"],[1,"row-input",3,"hidden"],[2,"width","150px"],["type","text","maxlength","20","name","nameButtonUrl","placeholder","Ingrese el texto que aparece en el bot\xF3n",3,"ngModelChange","ngModel"],["autocomplete","off","placeholder","Escribe el t\xEDtulo de tu contenido","name","name","required","","aria-required","true","maxlength","120","minlength","4","type","text",3,"ngModelChange","ngModel"],[1,"wrapArea-popup"],["name","body","required","","aria-required","true","minlength","20","maxlength","400","placeholder","Descripci\xF3n*:",1,"textarea-content-popup",3,"ngModelChange","ngModel"],[1,"caract-count"],[1,"wrap-prew"],["class","prew-img",4,"ngIf"],[1,"wrapMultimedia-popup"],[1,"wrapMultimedia-txt-popup"],[1,"btnImg-popup"],["type","file","name","image","appAdminUpload","","accept","image/*","contentsize","1","reg","\\.(jpg|jpeg|png)$",3,"end","broadcast","obj"],[1,"limit"],[1,"wrap-btnMain-popup"],[1,"btn-prog-popup",3,"click"],["type","submit","value","Publicar",1,"btn-main"],[1,"modal-wrapImg"],[1,"modal__btnDelete",3,"click"],["alt","",3,"src"],[3,"value"],[1,"prew-img"],[1,"prew-wrapImg"],["alt","",1,"img_edit_popup",3,"src"],[1,"prew-delete",3,"click"],["name","createContentForm","novalidate","",1,"create-content",3,"ngSubmit"],[1,"row-input",2,"margin","auto","width","27%","padding","10px"],["name","showForTypeUserId",2,"width","calc(100% - 115px)","padding","9px 10px",3,"ngModelChange","ngModel"],["type","text","ng-change","crawler($event)","pattern","https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)","maxlength","250","name","externalLink","placeholder","Ingrese URL donde se redireccionar\xE1 al dar clic",3,"ngModelChange","ngModel"],["ng-hide","!modalNoticia || hideNameButtonUrl",1,"row-input"],[2,"width","101px"],["type","submit","value","Publicar",1,"btn-main",3,"disabled"],[1,"column-card-popup"],["draggable","true",1,"card"],[1,"content_text-pop"],["href","javascript:;","class","btn-edit-popup",3,"click",4,"ngIf"],["class","new-active-popup",3,"innerText","click",4,"ngIf"],["class","new-active-popup","style","margin: 0 10px; background: #de4949;",4,"ngIf"],["class","setBanner-orderCol","style","text-align: right;",4,"ngIf"],["class","content-img pre-img",4,"ngIf"],["class","content-tit-popup",3,"innerText",4,"ngIf"],["style","color:red",4,"ngIf"],[1,"date-conte",3,"innerText"],["type","submit",1,"btn-preview-popup",3,"click"],["href","javascript:;",1,"btn-edit-popup",3,"click"],[1,"icon-edit"],[1,"new-active-popup",3,"click","innerText"],[1,"new-active-popup",2,"margin","0 10px","background","#de4949"],[1,"setBanner-orderCol",2,"text-align","right"],["width","120","src","@assets/images/logo-gov.svg","alt","",1,"setBanner__logoGov"],[1,"content-img","pre-img"],[3,"src"],[1,"content-tit-popup",3,"innerText"],[2,"color","red"]],template:function(e,o){e&1&&(_(0,ue,3,0,"div",3),l(1,"div",4)(2,"h2",5),s(3,"Gestionar pop ups informativos"),r(),l(4,"p",6),s(5,"Configura y crea pop ups informativos para los administradores de los sitios"),r(),l(6,"a",7),f(7,"span",8),r(),l(8,"div",9)(9,"input",10),v("click",function(){return o.showHideFormFunction()}),r()(),_(10,xe,26,13,"div",11)(11,Se,15,6,"div",12)(12,Te,11,2,"div",13)(13,Re,53,14,"div",13)(14,rt,44,14,"form",14),r(),l(15,"div",15)(16,"h2",5),s(17,"Contenidos creados"),r(),l(18,"div",16)(19,"span"),s(20,"Filtrar por:"),r(),l(21,"div",17),v("click",function(){return o.filterStatus(null)}),s(22,"Todos"),r(),l(23,"div",18),v("click",function(){return o.filterStatus(!0)}),s(24,"Activos"),r(),l(25,"div",19),v("click",function(){return o.filterStatus(!1)}),s(26,"Inactivos"),r()(),l(27,"div",20)(28,"p"),s(29,"\xBFQu\xE9 buscas?"),r(),l(30,"div",21)(31,"input",22),y("ngModelChange",function(a){return C(o.searchValue,a)||(o.searchValue=a),a}),r(),f(32,"span",23),r()(),l(33,"div",24),_(34,gt,19,13,"div",25),f(35,"br"),r()()),e&2&&(m("ngIf",o.loadCrawler),d(10),m("ngIf",o.model.dateRange),d(),m("ngIf",o.preview_popup),d(),m("ngIf",o.saved),d(),m("ngIf",o.showEdit),d(),m("ngIf",o.showhideform),d(17
1),w("ngModel",o.searchValue),d(3),m("ngForOf",o.columns))},dependencies:[Y,B,L,ie,Q,K,J,z,R,Z,O,j,X,$,ee,te,G,H,re,le]})};export{ae as AdminPopupComponent};

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.