PageSourceSearch

https://toribio-cauca.gov.co/chunk-V6O3JDD2.js

js toribio-cauca.gov.co collected 2026-10-02 13:24:03 UTC 17,618 bytes, 1 lines download raw bytes

1import{a as X}from"./chunk-BLCRQHO6.js";import{a as J}from"./chunk-MNGW2DT3.js";import"./chunk-GBRQKVYB.js";import"./chunk-CJWEDDVW.js";import{a as N}from"./chunk-ZW5B5J3B.js";import"./chunk-AHQSOXDD.js";import{a as G}from"./chunk-GCE2MEC6.js";import"./chunk-W2ZMKN4C.js";import"./chunk-MIHC4Y75.js";import{e as k,g as U}from"./chunk-SB5L2XE4.js";import{A as Q,D as q,c as j,g as O,h as P,j as W,l as R,m as $,s as H,t as K,u as B}from"./chunk-ICJV4PL6.js";import{a as z}from"./chunk-RIRGXRXY.js";import"./chunk-3GN2FC7K.js";import{t as D}from"./chunk-47CSRN7C.js";import{c as V}from"./chunk-SKH2MXBC.js";import{i as I,j as F,k as w,v as M}from"./chunk-BQLJE42W.js";import{$b as y,Db as f,Ib as d,Jb as g,Qa as S,Tb as m,Ub as E,Vb as C,Xa as s,Ya as x,Zb as L,_b as b,bc as A,da as T,dc as _,ib as u,mb as a,na as h,oa as v,xb as r,yb as n,zb as c}from"./chunk-YE3BF7DR.js";import"./chunk-4IDNTCH7.js";var Z=i=>({theme1:!0,active:i}),ee=i=>({theme2:!0,active:i}),te=i=>({theme3:!0,active:i}),ie=i=>({theme4:!0,active:i}),ne=i=>({theme5:!0,active:i}),oe=i=>({theme6:!0,active:i}),re=i=>({theme7:!0,active:i});function ae(i,e){if(i&1&&(r(0,"div"),m(1),n()),i&2){let t=g().$implicit;s(),C(" ",t.value," ")}}function le(i,e){i&1&&(r(0,"div",30)(1,"span"),m(2,"Debes ingresar un valor"),n()())}function se(i,e){if(i&1){let t=f();r(0,"div")(1,"textarea",28),y("ngModelChange",function(l){h(t);let p=g().$implicit;return b(p.editValue,l)||(p.editValue=l),v(l)}
1),n(),u(2,le,3,0,"div",29),n()}if(i&2){let t=g().$implicit;s(),L("ngModel",t.editValue),s(),a("ngIf",t.error)}}function me(i,e){if(i&1){let t=f();r(0,"div")(1,"button",31),d("click",function(){h(t);let l=g().$implicit,p=g();return v(p.edit(l))}),m(2,"Editar"),n()()}}function ce(i,e){if(i&1){let t=f();r(0,"div")(1,"button",31),d("click",function(){h(t);let l=g().$implicit,p=g();return v(p.save(l))}),m(2,"Guardar"),n(),r(3,"button",31),d("click",function(){h(t);let l=g().$implicit,p=g();return v(p.cancel(l))}),m(4,"Cancelar"),n()()}}function pe(i,e){if(i&1&&(r(0,"tr",26)(1,"td"),m(2),n(),r(3,"td"),u(4,ae,2,1,"div",27)(5,se,3,2,"div",27),n(),r(6,"td"),u(7,me,3,0,"div",27)(8,ce,5,0,"div",27),n()()),i&2){let t=e.$implicit;s(2),E(t.friendlyName),s(2),a("ngIf",!t.edit),s(),a("ngIf",t.edit),s(2),a("ngIf",!t.edit),s(),a("ngIf",t.edit)}}function ge(i,e){if(i&1&&(r(0,"option",32),m(1),n()),i&2){let t=e.$implicit;a("ngValue",t.id),s(),C(" ",t.name," ")}}function de(i,e){if(i&1){let t=f();r(0,"div",37)(1,"span",38),d("click",function(){h(t);let l=g(2);return v(l.removeLargeLogo())}),n()()}}function ue(i,e){if(i&1&&c(0,"img",39),i&2){let t=g(2);a("src",t.imageLargeLogo.imageUrl,S)}}function he(i,e){if(i&1){let t=f();r(0,"div",33)(1,"form")(2,"div",20)(3,"div",34),u(4,de,2,0,"div",35)(5,ue,1,1,"img",22),r(6,"input",36),d("end",function(l){h(t);let p=g();return v(p.saveLargeLogo(l))}),n()()(),r(7,"label")(8,"span"),m(9,"Logo Institucional "),n(),m(10," Tama\xF1o maximo de 300px x 100px"),c(11,"br"),m(12," Formato PNG"),n()()()}if(i&2){let t=g();s(4),a("ngIf",t.imageLargeLogo.imageUrl),s(),a("ngIf",t.imageLargeLogo.imageUrl),s(),a("reg",".(png)$")("maxw",300)("maxh",100)("param","?asFormat=png")("size",2097152)("obj",t.imageLargeLogo)}}function ve(i,e){if(i&1){let t=f();r(0,"div",37)(1,"span",38),d("click",function(){h(t);let l=g(2);return v(l.removeFirstLogo())}),n()()}}function fe(i,e){if(i&1&&c(0,"img",39),i&2){let t=g(2);a("src",t.imageFirstLogo.imageUrl,S)}}function _e(i,e){if(i&1){let t=f();r(0,"div",37)(1,"span",38),d("click",function(){h(t);let l=g(2);return v(l.removeLastLogo())}),n()()}}function Se(i,e){if(i&1&&c(0,"img",39),i&2){let t=g(2);a("src",t.imageLastLogo.imageUrl,S)}}function xe(i,e){if(i&1){let t=f();r(0,"div",40)(1,"form")(2,"div",20)(3,"div",21),u(4,ve,2,0,"div",35)(5,fe,1,1,"img",22),r(6,"input",41),d("end",function(l){h(t);let p=g();return v(p.saveFirstLogo(l))}),n()()(),r(7,"label")(8,"span"),m(9,"Logo Institucional 1"),n(),m(10," Tama\xF1o obligatorio 300 x 300 "),c(11,"br"),m(12," Formato PNG transparente"),n()(),r(13,"form")(14,"div",20)(15,"div",21),u(16,_e,2,0,"div",35)(17,Se,1,1,"img",22),r(18,"input",42),d("end",function(l){h(t);let p=g();return v(p.saveLastLogo(l))}),n()()(),r(19,"label")(20,"span"),m(21,"Logo institucional 2 "),n(),m(22," Tama\xF1o obligatorio 300 x 300 "),c(23,"br"),m(24," Formato PNG transparente"),n()()()}if(i&2){let t=g();s(4),a("ngIf",t.imageFirstLogo.imageUrl),s(),a("ngIf",t.imageFirstLogo.imageUrl),s(),a("contentsize",1)("reg",".(png)$")("param","?asFormat=png")("size",2097152)("obj",t.imageFirstLogo),s(10),a("ngIf",t.imageLastLogo.imageUrl),s(),a("ngIf",t.imageLastLogo.imageUrl),s(),a("contentsize",1)("reg",".(png)$")("param","?asFormat=png")("size",2097152)("obj",t.imageLastLogo)}}function Ce(i,e){if(i&1&&c(0,"img",39),i&2){let t=g();a("src",t.image.imageUrl,S)}}function Le(i,e){if(i&1&&c(0,"img",39),i&2){let t=g();a("src",t.imageFavicon.imageUrl,S)}}function be(i,e){if(i&1&&c(0,"img",39),i&2){let t=g();a("src",t.imageAppleTouchIcon.imageUrl,S)}}var Y=class i{constructor(e,t,o,l,p){this.resourceService=e;this.settingService=t;this.helperService=o;this.modalService=l;this.appService=p}resources=[];image={};imageModel={};imageFavicon={};imageFirstLogo={};imageLastLogo={};favicon={};imageAppleTouchIcon={};appleTouchIcon={};imageLargeLogo={};themeModel={};modelQuantity=[];amountLogos="2";theme="";firstLogo={};amountLogosModel={};amountLogosDisabled=!1;largeLogoModel={};lastLogo={};ngOnInit(){this.activate()}activate(){this.modelQuantity.push({id:"1",name:"Solo un logo"}),this.modelQuantity.push({id:"2",name:"Dos logos institucionales"}),this.resourceService.get({pageSize:500}).subscribe({next:e=>this.setResources(e),error:e=>this.helperService.handlerException(e)}),this.settingService.get({pageSize:500}).subscribe({next:e=>this.setSettings(e),error:e=>this.helperService.handlerException(e)})}edit(e){for(var t=this.resources.filter(l=>l.edit),o=0;o<t.length;o++)t[o].edit=!1;
1e.edit=!e.edit,e.editValue=e.value}save(e){e.editValue!==""?(e.value=e.editValue,e.error=!1,e.edit=!e.edit,this.resourceService.update(e).subscribe()):e.error=!0}cancel(e){e.editValue=e.value,e.edit=!e.edit,e.error=!1}saveImage(e){this.imageModel.settingID?(this.imageModel.value=e.file.filePath,this.settingService.update(this.imageModel).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.FacebookImage"))}saveFavicon(e){this.favicon.settingID?(this.favicon.value=e.file.filePath,this.settingService.update(this.favicon).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.Favicon"))}saveAppleTouchIcon(e){this.appleTouchIcon.settingID?(this.appleTouchIcon.value=e.file.filePath,this.settingService.update(this.appleTouchIcon).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.AppleTouchIcon"))}saveFirstLogo(e){this.firstLogo.settingID?(this.firstLogo.value=e.file.filePath,this.settingService.update(this.firstLogo).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.FirstLogo"))}saveAmountLogos(){this.amountLogosModel.settingID?(this.amountLogosModel.value=this.amountLogos,this.amountLogosDisabled=!0,this.settingService.update(this.amountLogosModel).subscribe({next:e=>this.amountLogosDisabled=!1,error:e=>{this.amountLogosDisabled=!1,this.helperService.handlerException(e)}})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.AmountLogos"))}saveLargeLogo(e){this.largeLogoModel.settingID?(this.largeLogoModel.value=e.file.filePath,this.settingService.update(this.largeLogoModel).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.LastLogo"))}saveLastLogo(e){this.lastLogo.settingID?(this.lastLogo.value=e.file.filePath,this.settingService.update(this.lastLogo).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})):this.modalService.showAlert(this.settingService.settings.resources["General.ErrorKey"].replace('"{0}"',"GeneralSettings.LargeLogo"))}removeFirstLogo(){this.modalService.showConfirm("\xBFDeseas eliminar el primer logo?").subscribe({next:()=>{this.firstLogo.value="",this.settingService.update(this.firstLogo).subscribe({next:e=>this.setUpdate(e),error:e=>this.helperService.handlerException(e)})},error:e=>console.error(e)})}removeLastLogo(){this.modalService.showConfirm("\xBFDeseas eliminar el segundo logo?").subscribe({next:()=>{this.lastLogo.value="",this.settingService.update(this.lastLogo).subscribe({next:e=>this.setUpdate(e),error:e=>this.helperService.handlerException(e)})},error:e=>console.error(e)})}removeLargeLogo(){this.modalService.showConfirm("\xBFDeseas eliminar el logo?").subscribe({next:()=>{this.largeLogoModel.value="",this.settingService.update(this.largeLogoModel).subscribe({next:e=>this.setUpdate(e),error:e=>this.helperService.handlerException(e)})},error:e=>console.error(e)})}changeTheme(e){this.theme=e,this.themeModel.value=e,this.settingService.update(this.themeModel).subscribe({next:t=>this.setUpdate(!0),error:t=>this.helperService.handlerException(t)})}setResources(e){this.setItemResource(e.results,"T\xEDtulo de la plataforma","PageTitle.Home"),this.setItemResource(e.results,"Meta-Description","PageDescription.Home"),this.setItemResource(e.results,"Cabecera sitio","Header.Title")}setSettings(e){this.imageModel=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.FacebookImage"),this.favicon=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.Favicon"),this.appleTouchIcon=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.AppleTouchIcon"),this.themeModel=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.ThemeSite"),this.firstLogo=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.FirstLogo"),this.lastLogo=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.LastLogo"),this.amountLogosModel=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.AmountLogos"),this.largeLogoModel=this.appService.firstOrDefault(e.results,"keyWord","GeneralSettings.LargeLogo"),this.themeModel&&(this.theme=this.themeModel.value),this.imageModel&&(this.image.imageUrl=this.imageModel.value),this.favicon&&(this.imageFavicon.imageUrl=this.favicon.value),this.appleTouchIcon&&(this.imageAppleTouchIcon.imageUrl=this.appleTouchIcon.value),this.firstLogo&&(this.imageFirstLogo.imageUrl=this.firstLogo.value),this.lastLogo&&(this.imageLastLogo.imageUrl=this.lastLogo.value),this.amountLogosModel&&(this.amountLogos=this.amountLogosModel.value),this.largeLogoModel&&(this.imageLargeLogo.imageUrl=this.largeLogoModel.value)}setItemResource(e,t,o){var l=this.appService.firstOrDefault(e,"name",o);l&&(l.friendlyName=t,this.resources.push(l))}setUpdate(e){e&&window.location.reload()}trackByIndex(e,t){return e}static \u0275fac=function(t){return new(t||i)(x(X),x(V),x(z),x(D),x(G))};static \u0275cmp=T({type:i,selectors:[["app-admin-configuration"]],standalone:!0,features:[A],decls:89,vars:45,consts:[[1,"admin-content"],[1,"tit-v3"],["routerLink","/administrador",1,"btn-close"],[1,"icon-close"],[1,"tableAdmin","mt20"],["width","30%"],["width","40%"],["width","30%",2,"text-align","right"],["cellspacing","0",4,"ngFor","ngForOf","ngForTrackBy"],[1,"subTit-v3","mt-20"],["name","amountLogos",1,"logos-header",3,"ngModelChange","change","disabled","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"key","classname"],["class","wLogosAdmin wLogosAdmin--doble mt20",4,"ngIf"],["class","wLogosAdmin mt20",4,"ngIf"],[1,"divi
1der","mt-20"],[1,"mt-20"],[1,"select-themes"],[3,"click","ngClass"],[1,"wImgAdmin"],[1,"logos-box"],[1,"logos-img"],["alt","imagen",3,"src",4,"ngIf"],["accept","image/*","title","Selecciona la imagen principal","appUploadFile","","name","firstLogo","type","file",2,"z-index","2",3,"end","contentsize","reg","obj","param"],["accept","image/*","title","Selecciona la imagen principal","appUploadFile","","name","favicon","type","file",2,"z-index","2",3,"end","contentsize","reg","param","obj"],["accept","image/*","title","Selecciona la imagen principal","appUploadFile","","name","appleTouch","type","file",2,"z-index","2",3,"end","contentsize","reg","param","obj"],["cellspacing","0"],[4,"ngIf"],["maxlength","200","type","text",1,"tableAdmin--inputLine",3,"ngModelChange","ngModel"],["class","error",4,"ngIf"],[1,"error"],[1,"",3,"click"],[3,"ngValue"],[1,"wLogosAdmin","wLogosAdmin--doble","mt20"],[1,"logos-img",2,"width","300px","height","100px"],["class","delete_img","style","z-index: 100",4,"ngIf"],["accept","image/*","title","Selecciona la imagen principal","appUploadFile","","name","favicon","type","file",2,"z-index","2",3,"end","reg","maxw","maxh","param","size","obj"],[1,"delete_img",2,"z-index","100"],[1,"icon-close",3,"click"],["alt","imagen",3,"src"],[1,"wLogosAdmin","mt20"],["appUploadFile","","accept","image/*","title","Selecciona la imagen principal","name","favicon","type","file",2,"z-index","2",3,"end","contentsize","reg","param","size","obj"],["accept","image/*","title","Selecciona la imagen principal","appUploadFile","","name","favicon","type","file",2,"z-index","2",3,"end","contentsize","reg","param","size","obj"]],template:function(t,o){t&1&&(r(0,"div",0)(1,"h2",1),m(2,"Configuraci\xF3n del sitio"),n(),r(3,"a",2),c(4,"span",3),n(),r(5,"table",4)(6,"thead")(7,"tr")(8,"th",5),m(9,"T\xEDtulos de la plataforma"),n(),r(10,"th",6),m(11,"Mostrando"),n(),c(12,"th",7),n()(),r(13,"tbody"),u(14,pe,9,5,"tr",8),n()(),r(15,"p",9),m(16,"Logos institucionales"),n(),r(17,"p"),m(18," Puedes elegir entre dos logos o solamente un logo institucional (El nombre de la entidad no se mostrar\xE1) "),n(),r(19,"form")(20,"select",10),y("ngModelChange",function(p){return b(o.amountLogos,p)||(o.amountLogos=p),p}),d("change",function(){return o.saveAmountLogos()}),u(21,ge,2,2,"option",11),n(),c(22,"app-helper",12),n(),u(23,he,13,8,"div",13)(24,xe,25,14,"div",14),c(25,"div",15),r(26,"p",9),m(27,"Temas (Elige un color)"),n(),r(28,"form",16)(29,"ul",17)(30,"li",18),d("click",function(){return o.changeTheme("theme1")}),c(31,"span"),n(),r(32,"li",18),d("click",function(){return o.changeTheme("theme2")}),c(33,"span"),n(),r(34,"li",18),d("click",function(){return o.changeTheme("theme3")}),c(35,"span"),n(),r(36,"li",18),d("click",function(){return o.changeTheme("theme4")}),c(37,"span"),n(),r(38,"li",18),d("click",function(){return o.changeTheme("theme5")}),c(39,"span"),n(),r(40,"li",18),d("click",function(){return o.changeTheme("theme6")}),c(41,"span"),n(),r(42,"li",18),d("click",function(){return o.changeTheme("theme7")}),c(43,"span"),n(),c(44,"br"),n()(),c(45,"div",15),r(46,"p",9),m(47,"Im\xE1genes complementarias"),n(),r(48,"div",19)(49,"form")(50,"div",20)(51,"div",21),u(52,Ce,1,1,"img",22),r(53,"input",23),d("end",function(p){return o.saveImage(p)}),n()(),c(54,"br"),n(),r(55,"label")(56,"span"),m(57,"Imagen principal"),n(),m(58," Es la imagen por defecto que se ver\xE1 cuando compartes la este sitio en alguna plataforma "),c(59,"br"),m(60,"Tama\xF1o obligatorio 600 x 315 "),c(61,"br"),m(62," Formato PNG Transparente "),n()(),r(63,"form")(64,"div",20)(65,"div",21),u(66,Le,1,1,"img",22),r(67,"input",24),d("end",function(p){return o.saveFavicon(p)}),n()()(),r(68,"label")(69,"span"),m(70,"Favicon "),n(),m(71," Es el \xEDcono que se ve en las pesta\xF1as de los navegadores "),c(72,"br"),m(73," Tama\xF1o obligatorio 300 x 300 "),c(74,"br"),m(75," Formato PNG Transparente "),n()(),r(76,"form")(77,"div",20)(78,"div",21),u(79,be,1,1,"img",22),r(80,"input",25),d("end",function(p){return o.saveAppleTouchIcon(p
1)}),n()()(),r(81,"label")(82,"span"),m(83,"Apple Touch Icon "),n(),m(84," Es el \xEDcono que se ve en un dispositivo apple "),c(85,"br"),m(86," Tama\xF1o obligatorio 300 x 300 "),c(87,"br"),n()()(),c(88,"div",15),n()),t&2&&(s(14),a("ngForOf",o.resources)("ngForTrackBy",o.trackByIndex),s(6),a("disabled",o.amountLogosDisabled),L("ngModel",o.amountLogos),s(),a("ngForOf",o.modelQuantity),s(),a("key",65)("classname","toolTip-btn toolTip__createSel"),s(),a("ngIf",o.amountLogos==="1"),s(),a("ngIf",o.amountLogos==="2"),s(6),a("ngClass",_(31,Z,o.theme==="theme1")),s(2),a("ngClass",_(33,ee,o.theme==="theme2")),s(2),a("ngClass",_(35,te,o.theme==="theme3")),s(2),a("ngClass",_(37,ie,o.theme==="theme4")),s(2),a("ngClass",_(39,ne,o.theme==="theme5")),s(2),a("ngClass",_(41,oe,o.theme==="theme6")),s(2),a("ngClass",_(43,re,o.theme==="theme7")),s(10),a("ngIf",o.image.imageUrl),s(),a("contentsize",1)("reg",".(gif|jpg|jpeg|png|bmp)$")("obj",o.image)("param","?elementType=facebook"),s(13),a("ngIf",o.imageFavicon.imageUrl),s(),a("contentsize",1)("reg",".(png)$")("param","?asFormat=png")("obj",o.imageFavicon),s(12),a("ngIf",o.imageAppleTouchIcon.imageUrl),s(),a("contentsize",1)("reg",".(png)$")("param","?asFormat=png")("obj",o.imageAppleTouchIcon))},dependencies:[M,I,F,w,q,$,K,B,j,H,O,P,Q,R,W,N,U,k,J]})};export{Y as AdminConfigurationComponent};

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.