PageSourceSearch

https://elcarmen-bolivar.gov.co/chunk-LO4RL4H7.js

js elcarmen-bolivar.gov.co collected 2026-09-25 11:09:25 UTC 6,669 bytes, 1 lines download raw bytes

1import{a as ne}from"./chunk-KDYAPSMV.js";import{a as te}from"./chunk-C7AUMABW.js";import{a as ie}from"./chunk-EOEOCEUL.js";import{a as ee}from"./chunk-4SYJTDU2.js";import{a as $}from"./chunk-LH7AKJBU.js";import{a as O}from"./chunk-M7VQHQXJ.js";import{b as q}from"./chunk-BAGWPQZV.js";import{A as Y,D as Z,b as W,c as R,g as H,h as P,j as G,l as J,m as z,s as K,t as Q,u as U,x as X}from"./chunk-TZ2MW36L.js";import{a as L}from"./chunk-WZBVDNS6.js";import"./chunk-3KOQRKYT.js";import{t as F}from"./chunk-MTKRVMUJ.js";import"./chunk-SHTGYNA2.js";import{k as j,u as N}from"./chunk-4YERUHPX.js";import{B as E,Cc as V,Db as B,Ib as b,Jb as h,Sb as _,Tb as d,Ub as T,Xa as l,Ya as f,Yb as S,Zb as k,_b as C,ac as w,da as D,ib as g,k as x,mb as c,na as p,oa as u,r as A,tb as M,vb as I,wb as y,xb as r,yb as a,zb as v}from"./chunk-DQGQ5ICO.js";import"./chunk-4IDNTCH7.js";var re=(i,n)=>n.labelID;function le(i,n){i&1&&(r(0,"span"),d(1,"Debes ingresar el nombre del bloque"),a())}function oe(i,n){if(i&1&&(r(0,"div",17),g(1,le,2,0,"span",11),a()),i&2){let e;h();let t=_(5);l(),c("ngIf",(e=t.form.get("name"))==null||e.errors==null?null:e.errors.required)}}function se(i,n){if(i&1&&(r(0,"option",10),d(1),a()),i&2){let e=n.$implicit;c("value",e.tagID),l(),T(e.name)}}function ce(i,n){i&1&&(r(0,"span"),d(1,"Debes seleccionar una de las secciones"),a())}function me(i,n){if(i&1&&(r(0,"div",17),g(1,ce,2,0,"span",11),a()),i&2){let e;h();let t=_(5);l(),c("ngIf",(e=t.form.get("tagID"))==null||e.errors==null?null:e.errors.required)}}function de(i,n){if(i&1){let e=B();r(0,"li",19)(1,"input",20),C("ngModelChange",function(o){let m=p(e).$implicit;return k(m.selected,o)||(m.selected=o),u(o)}),a(),r(2,"label",21),d(3),a()()}if(i&2){let e=n.$implicit;l(),c("id","lbl"+e.labelID)("name","lbl"+e.labelID),S("ngModel",e.selected),l(),c("for","lbl"+e.labelID),l(),T(e.name)}}function pe(i,n){i&1&&(r(0,"span"),d(1,"Debes seleccionar uno de los temas"),a())}function ue(i,n){if(i&1&&(r(0,"div",17),g(1,pe,2,0,"span",11),a()),i&2){let e;h(2);let t=_(5);l(),c("ngIf",(e=t.form.get("color"))==null||e.errors==null?null:e.errors.required)}}function fe(i,n){if(i&1&&(r(0,"div")(1,"label",8),d(2,"Selecciona una o varias categorias (Opcional)"),a(),r(3,"ul",18),I(4,de,4,5,"li",19,re),a(),g(6,ue,2,1,"div",7),a()),i&2){let e,t=h(),o=_(5);l(4),y(t.labels),l(2),c("ngIf",((e=o.form.get("color"))==null?null:e.invalid)&&o.submitted)}}var ae=class i{constructor(n,e,t,o,m,s,ge){this.actRoute=n;this.blocksService=e;this.helperService=t;this.tagService=o;this.labelService=m;this.modalService=s;this.sharedSignalsService=ge;V(()=>{this.gov=this.sharedSignalsService.gov(),this.topBar=this.sharedSignalsService.topBar(),this.linkAccess=this.sharedSignalsService.linkAccess(),this.logoTopBar=this.sharedSignalsService.logoTopBar(),this.headerTitle=this.sharedSignalsService.headerTitle()})}block={json:{tagID:""}};tags=[];labels=[];formIsBusy=!1;gov;topBar;linkAccess;logoTopBar;headerTitle;ngOnInit(){this.activate()}back(){this.blocksService.goBack(this.actRoute.snapshot.params)}activate(){let n=this.actRoute.snapshot.params.id;this.blocksService.get(n).pipe(A(e=>(this.block=e,this.block.json=JSON.parse(e.frame),this.block.json.tagID===void 0&&(this.block.json.tagID=null),this.block.json.labelIdentifiers||(this.block.json.labelIdentifiers=[]),this.tagService.getByValidContent("2"))),E(e=>(this.helperService.handlerException(e),x(e)))).subscribe(e=>{this.tags=e,this.tags.unshift({tagID:null,name:"Seleccione"}),this.block.json.tagID&&this.getTags()})}getTags(){this.block.json.tagID?this.labelService.get({defaultTagID:this.block.json.tagID}).subscribe({next:n=>{this.labels=[];for(var e=0;e<n.results.length;e++){var t=n.results[e];t.selected=this.block.json.labelIdentifiers.indexOf(t.labelID)>-1,this.labels.push(t)}},error:n=>this.helperService.handlerException(n)}):this.labels=[]}send(n){n.valid&&!this.formIsBusy&&(this.formIsBusy=!0,this.block.json.labelIdentifiers=this.labels.filter(e=>e.selected).map(e=>e.labelID),this.block.frame=JSON.stringify(this.block.json),this.blocksService.update(this.block).subscribe({next:()=>{this.formIsBusy=!1,this.modalService.showExit('Bloque "'+this.block.name+'" actualizado')},error:e=>this.helperService.handlerException(e),complete:()=>this.formIsBusy=!1}))}static \u0275fac=function(e){return new(e||i)(f(q),f($),f(L),f(te),f(ne),f(F),f(O))};static \u0275cmp=D({type:i,selectors:[["app-admin-block-calendar"]],standalone:!0,features:[w],decls:29,vars:7,consts:[["form","ngForm"],[3,"backEvent"],[1,"content_all"],[1,"adminBlock__subTit"],["novalidate","","name","form",3,"ngSubmit"],[1,"adminBlock__label","adminBlock__label--line"],["type","text","name","name","maxlength","30","required","","aria-required","true",3,"ngModelChange","ngModel"],["class","error",4,"ngIf"],[1,"adminBlock__label","mt20"],["name","tagID","required","","aria-required","true",1,"select","select--default",3,"change","ngModelChange","ngModel"],[3,"value"],[4,"ngIf"],[1,"mt20"],["type","button",1,"btn-main-2",3,"click","disabled"],[1,"icon-close"],["type","submit",1,"btn-main-2",3,"disabled"],[1,"icon-save-2"],[1,"error"],[1,"adminBlock-listCat"],[1,"adminBlock-wLine"],["type","checkbox",3,"ngModelChange","id","name","ngModel"],[3,"for"]],template:function(e,t){if(e&1){let o=B();r(0,"app-admin-header",1),b("backEvent",function(){return p(o),u(t.back())}),a(),v(1,"app-admin-desktop"),r(2,"div",2),v(3,"div",3),r(4,"form",4,0),b("ngSubmit",function(){p(o);let s=_(5);return u(t.send(s))}),r(6,"p")(7,"label",5),d(8,"Nombre del bloque"),a(),r(9,"span"),d(10,"30 caracteres"),a()(),r(11,"div")(12,"input",6),C("ngModelChange",function(s){return p(o),k(t.block.name,s)||(t.block.name=s),u(s)}),a(),g(13,oe,2,1,"div",7),a(),r(14,"div")(15,"label",8),d(16,"Selecciona una secci\xF3n*"),a(),r(17,"select",9),b("change",function(){return p(o),u(t.getTags())}),C("ngModelChange",function(s){return p(o),k(t.block.json.tagID,s)||(t.block.json.tagID=s),u(s)}),I(18,se,2,2,"option",10,M),a(),g(20,me,2,1,"div",7),a(),g(21,fe,7,1,"div",11),r(22,"div",12)(23,"button",13),b("click",function(){return p(o),u(t.back())}),v(24,"span",14),d(25,"Cancelar "),a(),r(26,"button",15),v(27,"span",16),d(28," Guardar "),a()()()()}if(e&2){let o,m,s=_(5);l(12),S("ngModel",t.block.name),l(),c("ngIf",((o=s.form.get("name"))==null?null:o.invalid)&&s.submitted),l(4),S("ngModel",t.block.json.tagID),l(),y(t.tags),l(2),c("ngIf",((m=s.form.get("tagID"))==null?null:m.invalid)&&s.submitted),l(),c("ngIf",t.labels.length>0),l(2),c("disabled",t.formIsBusy),l(3),c("disabled",t.formIsBusy)}},dependencies:[N,j,Z,z,Q,U,R,W,K,H,P,X,Y,J,G,ee,ie]})};export{ae as AdminBlockCalendarComponent};

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.