PageSourceSearch

https://macaravita-santander.gov.co/chunk-LX4KIOLD.js

js macaravita-santander.gov.co collected 2026-10-03 02:29:22 UTC 24,492 bytes, 2 lines download raw bytes

1import{a as we}from"./chunk-7AXKDO3D.js";import{a as pe,b as me,c as de,d as _e,e as ue,f as ve,g as fe,h as be,i as he,j as Ce,k as xe,l as Se,m as ye,n as Te,o as Ie,p as Ee}from"./chunk-VEJU3GJM.js";import{b as ke}from"./chunk-MTXEX5SI.js";import{a as ge}from"./chunk-NJOSICCD.js";import"./chunk-FJXVFFSC.js";import"./chunk-DDWO7UT6.js";import{a as Le}from"./chunk-NI37FYAP.js";import"./chunk-UO33UFPH.js";import"./chunk-4JXGHBPR.js";import"./chunk-W2R2W6DK.js";import"./chunk-UV44MRQP.js";import"./chunk-MNGW2DT3.js";import"./chunk-22BPG5HP.js";import{d as se}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 oe}from"./chunk-GBRQKVYB.js";import"./chunk-CJWEDDVW.js";import{a as ae}from"./chunk-ZW5B5J3B.js";import"./chunk-GH2RV5OT.js";import"./chunk-YWAL7HVF.js";import{b as I}from"./chunk-LDL32NDY.js";import"./chunk-YFREARA7.js";import"./chunk-AGCAGPAP.js";import"./chunk-AHQSOXDD.js";import{a as ie}from"./chunk-GCE2MEC6.js";import{a as re}from"./chunk-W2ZMKN4C.js";import{a as ce}from"./chunk-GHPWOSPN.js";import"./chunk-4VURBXKO.js";import"./chunk-UVDUOVTO.js";import{a as le}from"./chunk-DQPLM2C5.js";import{a as ne}from"./chunk-MIHC4Y75.js";import{b as W,d as X}from"./chunk-SB5L2XE4.js";import"./chunk-ICJV4PL6.js";import{a as te}from"./chunk-RIRGXRXY.js";import{a as ee}from"./chunk-3GN2FC7K.js";import{t as Z}from"./chunk-47CSRN7C.js";import{c as T}from"./chunk-SKH2MXBC.js";import{k as Y,n as K,v as Q}from"./chunk-BQLJE42W.js";import{Ab as L,Bb as w,Db as b,Dc as J,H as N,Ib as f,Jb as o,Tb as s,Ub as F,Vb as G,Wb as z,Xa as m,Ya as d,Yb as H,bb as j,bc as q,cc as U,da as V,dc as D,fa as A,ib as g,mb as c,na as u,oa as v,p as k,qb as $,sb as C,tb as x,v as R,va as P,vb as S,wb as y,xb as a,ya as O,yb as r,zb as l}from"./chunk-YE3BF7DR.js";import{a as M,f as B}from"./chunk-4IDNTCH7.js";var E=class i{constructor(t,e,n,p){this.elementRef=t;this.contentService=e;this.modalService=n;this.settingService=p}start=new P;onInputChange(){this.onChange()}model;reg;contentType;tagId;nativeElement;ngOnInit(){this.nativeElement=this.elementRef.nativeElement}validateFile=(t,e)=>t===null||t.test(e);parseResponse(t){if(typeof t=="object"&&t!==null)return t;if(typeof t=="string"&&t.trim())try{return JSON.parse(t.replace(/^\uFEFF/,"").trim())}catch{return{success:!1,completed:!0,errorType:"InvalidResponse",message:"El servidor devolvi\xF3 una respuesta inv\xE1lida.",errors:[t]}}return{success:!1,completed:!0,errorType:"EmptyResponse",message:"El servidor no devolvi\xF3 el resultado de la carga.",errors:[]}}emitFinished(t){let e=this.parseResponse(t);this.start.emit({phase:"finished",result:e})}emitEmptyResponse(){this.emitFinished({success:!1,completed:!0,errorType:"EmptyResponse",message:"El servidor no devolvi\xF3 el resultado de la carga.",errors:[],processed:0})}errorUpload=t=>{this.nativeElement.value="";let e=t?.error;e instanceof Blob&&(e=null);let n=this.parseResponse(e??{success:!1,completed:!0,errorType:"UploadError",message:this.settingService.settings.resources["File.ErrorUploadServer"],errors:[]});this.emitFinished(n)};onChange(){this.nativeElement.files&&this.nativeElement.files.length&&this.modalService.showConfirm("\xBFEst\xE1 seguro de subir este archivo?").subscribe({next:t=>{if(t)for(var e=0;e<this.nativeElement.files.length;e++){var n=this.reg?new RegExp(this.reg,"gi"):null;if(this.validateFile(n,this.nativeElement.files[e].name)){this.start.emit({phase:"started"});let p=!1;this.contentService.bulkLoad(this.nativeElement.files[e],this.contentType,this.tagId).pipe(N(()=>{p||(p=!0,this.emitEmptyResponse())})).subscribe({next:_=>{p=!0,this.emitFinished(_)},error:_=>{p=!0,this.errorUpload(_)},complete:()=>{p||(p=!0,this.emitEmptyResponse())}})}else this.modalService.showAlert("Usa un archivo de Microsoft Excel para cargar la informaci\xF3n."),this.nativeElement.value=""}else this.nativeElement.value=""}})}
1static \u0275fac=function(e){return new(e||i)(d(O),d(I),d(Z),d(T))};static \u0275dir=A({type:i,selectors:[["","appBulkContent",""]],hostBindings:function(e,n){e&1&&f("change",function(){return n.onInputChange()})},inputs:{model:"model",reg:"reg",contentType:"contentType",tagId:"tagId"},outputs:{start:"start"},standalone:!0})};var Ne=()=>["Contents"],De=i=>({display:i});function Ve(i,t){if(i&1){let e=b();a(0,"a",2),f("click",function(){u(e);let p=o();return v(p.editBlock())}),l(1,"span",3),s(2,`Editar
2`),r()}}function Ae(i,t){if(i&1&&l(0,"app-seed",5),i&2){let e=o(2);c("seedValue",e.tag.name)}}function Pe(i,t){if(i&1&&l(0,"app-helper",12),i&2){let e=o(2);c("key",e.getToolTipID())("classname","toolTip-btn")}}function Oe(i,t){if(i&1&&(a(0,"label"),s(1),r()),i&2){let e=t.$implicit;m(),z("(",e.procedureTypeID,") ",e.name,", ")}}function je(i,t){if(i&1){let e=b();a(0,"div",18)(1,"div",19),s(2,"Carga masiva de tr\xE1mites"),r(),a(3,"p",20),s(4," Ten en cuenta las siguientes recomendaciones "),r(),a(5,"p",20),s(6," 1. El archivo debe ser en formato Excel (xlsx) "),r(),a(7,"p",21),s(8,"2. El archivo debe tener 12 columnas"),r(),a(9,"ul",22)(10,"li"),l(11,"span"),s(12,"La primer columna representa la fecha de creacion (Puede ir vacia) "),r(),a(13,"li"),l(14,"span"),s(15,"La segunda columna representa la fecha de modificaci\xF3n (Puede ir vacia) "),r(),a(16,"li"),l(17,"span"),s(18,"La tercer columna representa el identificador del tramite (Puede ir vacio para crear un nuevo tramite) "),r(),a(19,"li"),l(20,"span"),s(21,"La cuarta columna tiene el nombre del tr\xE1mite (Obligatorio y m\xE1ximo 150 caracteres) "),r(),a(22,"li"),l(23,"span"),s(24,"La quinta columna tiene la descripci\xF3n (Obligatorio) "),r(),a(25,"li"),l(26,"span"),s(27,"La sexta columna tiene la URL del tr\xE1mite (Obligatorio) "),r(),a(28,"li"),l(29,"span"),s(30,"La septima columna tiene las categorias separadas por comas (Puede ir vacia) "),r(),a(31,"li"),l(32,"span"),s(33," La octava columna debe tener el identificador del tipo de tramite (Obligatorio). A continuaci\xF3n el listado de tipos de tr\xE1mite con su correspondiente identificador. "),S(34,Oe,2,2,"label",null,x),r(),a(36,"li"),l(37,"span"),s(38," La novena columna el identificador del tipo de costo (0) Sin costo, (1) Con costo y (2) Costo Exacto) "),r(),a(39,"li"),l(40,"span"),s(41," La decima columna debe tener el Costo exacto (Obligatorio, Valor n\xFAmerico, en caso de que el tipo de costo sea 2, de lo contrario el valor debe ser 0) "),r(),a(42,"li"),l(43,"span"),s(44," La decima primera columna debe tener el tiempo que dura el tr\xE1mite (Obligatorio y m\xE1ximo 21 caracteres) "),r(),a(45,"li"),l(46,"span"),s(47,' La decima segunda columna tiene la URL exacta del tr\xE1mite (Opcional En caso de que el tipo de tramite sea "Tr\xE1mite en l\xEDnea") '),r()(),a(48,"p",20),s(49," 3. El archivo debe ir sin encabezado "),r(),a(50,"p",23),s(51," En el caso que el excel tenga un error el sistema te informar\xE1 de las filas a corregir con sus correspondientes errores "),l(52,"br"),a(53,"b"),s(54,"Si deseas descargar los tramites actuales para actualizarlos de forma masiva puedes \xA0"),r(),a(55,"b")(56,"a",24),f("click",function(){u(e);let p=o(3);return v(p.downloadProcedures())}),s(57,"descargarlos Aqu\xED"),r()()(),a(58,"div",25)(59,"input",26),f("start",function(p){u(e);let _=o(3);return v(_.start(p))}),r(),l(60,"i",27),a(61,"span"),s(62,"Agregar archivo"),r()()()}if(i&2){let e=o(3);c("ngStyle",D(2,De,e.startProcess?"none":"block")),m(34),y(e.procedureTypes),m(25),c("tagId",e.tag.tagID)}}function $e(i,t){if(i&1){let e=b();a(0,"div",28)(1,"p",19),s(2,"Carga masiva de contrataci\xF3n"),r(),a(3,"p",21),s(4," Ten en cuenta las siguientes recomendaciones "),r(),a(5,"p",20),s(6," Sube el archivo con los datos de contrataci\xF3n a cargar "),r(),a(7,"p",20),s(8," 1. El archivo debe ser en formato Excel (xlsx) "),r(),a(9,"p",21),s(10,"2. Debe tener 3 columnas."),r(),a(11,"ul",29)(12,"li"),l(13,"span"),s(14,"La primera el nombre (Requerida - m\xE1ximo 200 caracteres) "),r(),a(15,"li"),l(16,"span"),s(17,"La segunda la descripci\xF3n (Requerida)"),r(),a(18,"li"),l(19,"span"),s(20,"La tercera la url (Requerida)"),r()(),a(21,"p",21),s(22,"3. Debe ir sin encabezado"),r(),a(23,"div",30)(24,"input",31),f("start",function(p){u(e);let _=o(3);return v(_.start(p))}),r(),l(25,"i",27),a(26,"span"),s(27,"Agregar archivo"),r()()()}if(i&2){let e=o(3);c("ngStyle",D(2,De,e.startProcess?"none":"block")),m(24),c("tagId",e.tag.tagID)}}
2function Ge(i,t){if(i&1&&(a(0,"div",20),s(1),r()),i&2){let e=o().ngIf;m(),H(" Total: ",e.total," | Insertados: ",e.inserted||0," | Actualizados: ",e.updated||0," | Procesados: ",e.processed||0," | Fallidos: ",e.failed||0," ")}}function ze(i,t){if(i&1&&(a(0,"div",20),l(1,"span",35),s(2),r()),i&2){let e=t.$implicit;m(2),G(" ",e," ")}}function He(i,t){if(i&1&&(a(0,"div"),S(1,ze,3,1,"div",20,x),r()),i&2){let e=o().ngIf;m(),y(e.errors)}}function qe(i,t){if(i&1&&(L(0),a(1,"p",20),l(2,"span"),a(3,"label"),s(4),r()(),g(5,Ge,2,5,"div",33)(6,He,3,0,"div",1),w()),i&2){let e=t.ngIf;m(2),$(e.success?"icon-check green":"icon-close red"),m(2),F(e.message),m(),c("ngIf",e.total!==void 0),m(),c("ngIf",e.errors==null?null:e.errors.length)}}function Ue(i,t){i&1&&(a(0,"div",20),s(1," Procesando archivo, por favor espere... "),r())}function Je(i,t){if(i&1){let e=b();a(0,"div",36)(1,"button",37),f("click",function(){u(e);let p=o(4);return v(p.finalize())}),s(2," Aceptar "),r()()}}function Ye(i,t){if(i&1&&(a(0,"div",32)(1,"div",19),s(2,"Carga masiva"),r(),g(3,qe,7,5,"ng-container",1)(4,Ue,2,0,"div",33)(5,Je,3,0,"div",34),r()),i&2){let e=o(3);m(3),c("ngIf",e.loadResult),m(),c("ngIf",!e.loadResult&&!e.loadFinish),m(),c("ngIf",e.loadFinish)}}function Ke(i,t){if(i&1&&(a(0,"div",13)(1,"div",14),g(2,je,63,4,"div",15)(3,$e,28,4,"div",16)(4,Ye,6,3,"div",17),r()()),i&2){let e=o(2);m(2),c("ngIf",e.tag.friendlyName==="tramites-y-servicios"&&e.canAdminContents),m(),c("ngIf",e.tag.friendlyName==="contrataciones"&&e.canAdminContents),m(),c("ngIf",e.startProcess)}}function Qe(i,t){i&1&&l(0,"div")}function We(i,t){if(i&1&&l(0,"app-block-global-banner",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function Xe(i,t){if(i&1&&l(0,"app-block-hero-banner",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function Ze(i,t){if(i&1&&l(0,"app-block-featured",39),i&2){let e=o(2).$implicit,n=o(3);c("block",e)("section",n.tag)}}function et(i,t){if(i&1&&l(0,"app-block-global-middle-slider",39),i&2){let e=o(2).$implicit,n=o(3);c("block",e)("section",n.tag)}}function tt(i,t){if(i&1&&l(0,"app-block-short-cut",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function it(i,t){if(i&1&&l(0,"app-block-gallery",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function nt(i,t){}function ot(i,t){if(i&1&&l(0,"app-block-logo",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function at(i,t){if(i&1&&l(0,"app-block-map",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function rt(i,t){if(i&1&&l(0,"app-block-person",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function lt(i,t){if(i&1&&l(0,"app-block-social-network",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function st(i,t){}function ct(i,t){if(i&1&&l(0,"app-block-global-shortcut",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function pt(i,t){if(i&1&&l(0,"app-block-newsletter",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function mt(i,t){if(i&1&&l(0,"app-block-section",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function dt(i,t){if(i&1&&l(0,"app-block-global-logo",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function _t(i,t){if(i&1){let e=b();a(0,"app-list-content",42),f("labelFiltered",function(p){u(e);let _=o(5);return v(_.filterLabel(p))})("viewMoreCalled",function(){u(e);let p=o(5);return v(p.viewMore())})("sublabelFiltered",function(p){u(e);let _=o(5);return v(_.filterSubLabel(p))})("batchTooggled",function(){u(e);let p=o(5);return v(p.toggleBatch())}),r()}if(i&2){let e=o(2).$implicit,n=o(3);c("model",e)("tag",n.tag)("labels",n.labels)("selectedLabelID",n.selectedLabelID)("showLabels",n.showLabels)("isLoadingMore",n.isLoadingMore)("sublabels",n.sublabels)("selectedSubLabelID",n.selectedSubLabelID)("enableNew",n.enableNew)("editMassive",n.editMassive)}}function ut(i,t){if(i&1&&l(0,"app-block-viewed-sections",38),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function vt(i,t){if(i&1&&l(0,"app-block-calendar",41),i&2){let e=o(2).$implicit,n=o(3);c("model",e)("section",n.tag)}}function gt(i,t){if(i&1&&(L(0),g(1,We,1,2,"app-block-global-banner",38)(2,Xe,1,2,"app-block-hero-banner",38)(3,Ze,1,2,"app-block-featured",39)(4,et,1,2,"app-block-global-middle-slider",39)(5,tt,1,2,"app-block-short-cut",38)(6,it,1,2,"app-block-gallery",38)(7,nt,0,0)(8,ot,1,2,"app-block-logo",38)(9,at,1,2,"app-block-map",38)(10,rt,1,2,"app-block-person",38)(11,lt,1,2,"app-block-social-network",38)(12,st,0,0)(13,ct,1,2,"app-block-global-shortcut",38)(14,pt,1,2,"app-block-newsletter",38)(15,mt,1,2,"app-block-section",38)(16,dt,1,2,"app-block-global-logo",38)(17,_t,1,10,"app-list-content",40)(18,ut,1,2,"app-block-viewed-sections",38)(19,vt,1,2,"app-block-calendar",41),w()),i&2){let e,n=o().$implicit;m(),C((e=n.type)===1?1:e===2?2:e===12?3:e===3?4:e===6?5:e===8?6:e===15?7:e===5?8:e===9?9:e===14?10:e===11?11:e===16?12:e===7?13:e===10?14:e===13?15:e===4?16:e===17?17:e===18?18:e===19?19:-1)}}function ft(i,t){if(i&1&&g(0,gt,20,1,"ng-container"),i&2){let e=t.$implicit;C(e.status===1?0:-1)}}function bt(i,t){if(i&1&&(a(0,"section",11),S(1,ft,1,1,null,null,x),r()),i&2){let e=o(2);m(),y(e.blocks)}}function ht(i,t){if(i&1&&(a(0,"section")(1,"article")(2,"section",4),l(3,"app-seed",5),g(4,Ae,1,1,"app-seed",6),a(5,"div",7)(6,"h2",8),s(7),r(),g(8,Pe,1,2,"app-helper",9),r()(),g(9,Ke,5,3,"div",10)(10,Qe,1,0,"div",1)(11,bt,3,0,"section",11),r()()),i&2){let e=o();m(3),c("seedValue",e.tag.name),m(),c("ngIf",!e.showSeed),m(3),F(e.tag.name),m(),c("ngIf",e.hasPermissions(U(7,Ne))&&e.showToolTitle()),m(),c("ngIf",e.displayBatchModal),m(),c("ngIf",e.editMassive),m(),C(e.editMassive?-1:11)}}var Fe=class i{constructor(t,e,n,p,_,h,Ct,xt,St,yt,Tt,It,Et,kt,Lt,wt){this.authService=t;this.eventEmitterService=e;this.actRoute=n;this.blocksService=p;this.helperService=_;this.contentService=h;this.renderer=Ct;this.settingService=xt;this.router=St;this.trackService=yt;this.labelService=Tt;this.portalMainService=It;this.appService=Et;this.sharedSignalsService=kt;this.subLabelService=Lt;this.fileService=wt;this.tagInfo=this.actRoute.snapshot.data.tagInfo,this.tag=this.tagInfo,J(()=>{this.canAdminContents=this.sharedSignalsService.canAdminContents()})}seedValue="";showSeed=!0;MIN_ITEMS_TO_PAGE=50;isLoadingMore=!1;totalCount=null;defaultTagID=0;contentFilter=0;friendlyName="";tagInfo;tag;labels=[];
2sublabels=[];selectedLabel={};selectedSubLabel={};enableNew=!1;blocks=[];messages=[];errors=[];loadResult=null;loadFinish=!1;startProcess=!1;displayBatchModal=!1;load=!1;showLabels=!1;procedureTypes;selectedLabelID;contentType;selectedSubLabelID;canAdminContents;user;editMassive=!1;ngOnInit(){this.user=this.authService.user,this.activate()}showToolTitle(){return this.tag.friendlyName==="retos-de-participacion"||this.tag.friendlyName==="proyectos-en-ejecucion"||this.tag.friendlyName==="normatividad"}getToolTipID(){switch(this.tag.friendlyName){case"retos-de-participacion":return 33;case"proyectos-en-ejecucion":return 36;case"normatividad":return 111;default:return null}}activate(){this.tag.isPrivate?this.authService.user.id?this.startSection():localStorage.getItem("token")?(this.eventEmitterService.startUser.subscribe(()=>this.startSection()),this.eventEmitterService.startErrorUser.subscribe(()=>this.triggerLogin())):this.triggerLogin():this.startSection()}triggerLogin(){this.authService.callCurrentUser().subscribe({next:t=>{this.startSection()},error:t=>{console.error(t),this.router.navigate(["/"])}})}startSection(){this.selectedLabel.name="Todas las categor\xEDas",this.friendlyName=this.actRoute.snapshot.params.alias,this.loadBlocks(this.tag),this.setGetTag(this.tag)}editBlock(){window.document.location.href="/administrador/bloques/"+this.tag.tagID}loadBlocks(t){this.blocksService.all({tagID:t.tagID}).subscribe({next:e=>{for(var n=0;n<e.length;n++)e[n].frame&&(e[n].frame=JSON.parse(e[n].frame)),this.blocks.push(e[n])},error:e=>this.helperService.handlerException(e)})}finalize(){this.messages=[],this.errors=[],this.loadResult=null,this.loadFinish=!1,this.startProcess=!1,this.displayBatchModal=!this.displayBatchModal,window.location.reload()}downloadProcedures(){return this.fileService.downloadFile("/api/v1/contents/proceduretypes/export/",{}).subscribe({next:t=>{document.location.href=t}}),!1}toggleBatch(){this.displayBatchModal=!this.displayBatchModal}start(t){if(t?.phase==="finished"){this.finished(t.result);return}this.messages=[],this.errors=[],this.loadResult=null,this.loadFinish=!1,this.startProcess=!0}finished(t){this.applyBulkLoadResponse(t);let e=this.loadResult;this.loadFinish=!0,e?.completed&&e.processed>0&&this.eventEmitterService.refresh.emit()}applyBulkLoadResponse(t){let e=this.normalizeBulkLoadResponse(t);this.loadResult=e;let n=Array.isArray(e.errors)?e.errors:[];this.messages=[{key:"message",value:e.message,type:e.success?"success":"error"}],n.length>0&&(this.errors=[{key:"error",details:n}])}normalizeBulkLoadResponse(t){if(typeof t=="string")try{return JSON.parse(t.replace(/^\uFEFF/,"").trim())}catch{return{success:!1,completed:!0,errorType:"InvalidResponse",message:"El servidor devolvi\xF3 una respuesta inv\xE1lida.",errors:[t],processed:0}}return!t||typeof t!="object"||t instanceof Blob?{success:!1,completed:!0,errorType:"InvalidResponse",message:"El servidor no devolvi\xF3 un resultado v\xE1lido.",errors:[],processed:0}:M({success:!1,completed:!0,message:"No fue posible obtener el resultado de la carga.",errors:[],processed:0},t)}displayLabelMenu(t){t.stopPropagation();var e=document.getElementById("menu-labels");e.classList.contains("hide-element")?this.renderer.removeClass(e,"hide-element"):this.renderer.addClass(e,"hide-element")}filterLabel(t){console.log("label filterLabal()",t),t?(sessionStorage.setItem("posscroll",(window.scrollY||document.documentElement.scrollTop||document.getElementsByTagName("html")[0].scrollTop).toString()),this.router.navigate(["/".concat(this.settingService.settings.routes.Tag,"/",this.friendlyName,"/",t.friendlyName)])):this.router.navigate(["/".concat(this.settingService.settings.routes.Tag,"/",this.friendlyName)])}filterSubLabel(t){if(t){this.selectedSubLabelID=t.subLabelID,this.tag.labelID=t.labelID,this.tag.subLabelID=t.subLabelID;var e=this.appService.firstOrDefault(this.labels,"labelID",t.labelID);e?(sessionStorage.setItem("posscroll",(window.scrollY||document.documentElement.scrollTop||document.getElementsByTagName("html")[0].scrollTop).toString()),this.router.navigate(["/".concat(this.settingService.settings.routes.Tag,"/",this.friendlyName,"/",e.friendlyName,"/",t.friendlyName)])):this.router.navigate(["/".concat(this.settingService.settings.routes.Tag,"/",this.friendlyName)])}else this.router.navigate(["/".concat(this.settingService.settings.routes.Tag,"/",this.friendlyName)])}setGetTag(t){this.defaultTagID=t.tagID,t.friendlyName==="tramites-y-servicios"&&this.contentService.getProcedureTypes().subscribe({next:e=>{this.procedureTypes=e},error:e=>this.helperService.handlerException(e)}),this.trackService.add({identifier:t.tagID,type:1}),this.labelService.get({pageSize:this.MIN_ITEMS_TO_PAGE,defaultTagID:this.defaultTagID,withCounter:!0}).subscribe({next:e=>this.setLabels(t,e),error:e=>this.errorLabels(e)})}setLoader(t){this.isLoadingMore=t}viewMore(){if(this.showLabels=!0,(this.totalCount||0)>this.MIN_ITEMS_TO_PAGE&&this.labels.length<this.totalCount){this.setLoader(!0),this.fethMoreLabels();return}}fethMoreLabels(){return B(this,null,function*(){let t=this.totalCount||0,{defaultTagID:e}=this,n=Math.ceil(t/this.MIN_ITEMS_TO_PAGE)-1,p=Array(n).fill(0).map((_,h)=>this.labelService.get({pageSize:this.MIN_ITEMS_TO_PAGE,page:++h,defaultTagID:e,withCounter:!0}));try{R(p).pipe(k(_=>_.map(({results:h})=>
2h)),k(_=>_.flat())).subscribe(_=>{this.labels=[...this.labels,..._]})}finally{this.setLoader(!1),this.showLabels=!0}})}setLabels(t,e){if(this.labels=e.results,this.totalCount=e.meta.totalCount,this.actRoute.snapshot.params.id){var n=this.appService.firstOrDefault(this.labels,"friendlyName",this.actRoute.snapshot.params.id);n?(this.selectedLabelID=n.labelID,this.selectedLabel.name=n.name,this.selectedLabel.description=n.description,t.labelID=n.labelID,this.portalMainService.seo.title=n.name.concat(" - ",this.settingService.settings.resources["Header.Title"]),this.portalMainService.seo.description=n.description,this.subLabelService.getByLabelId(this.selectedLabelID).subscribe({next:p=>{this.setSublabels(t,p),this.load=!0},error:p=>{this.load=!0,this.helperService.handlerException(p)}})):this.load=!0}else this.selectedLabelID=null,this.portalMainService.seo.title=t.name,this.portalMainService.seo.description=t.description,this.load=!0;this.tag.validContentTypes&&this.tag.validContentTypes.length&&(this.contentType=this.tag.validContentTypes[0])}setSublabels(t,e){if(e.length>0&&(this.sublabels=e,this.actRoute.snapshot.params.subid)){var n=this.appService.firstOrDefault(this.sublabels,"friendlyName",this.actRoute.snapshot.params.subid);n&&(this.selectedSubLabelID=n.subLabelID,this.selectedSubLabel.name=n.name,this.selectedSubLabel.description=n.description,t.subLabelID=n.subLabelID)}}errorGetTag(t){this.router.navigate(["pagina-no-encontrada"])}errorLabels(t){this.load=!0}getHomeData(){return{labels:this.labels,selectedLabelID:this.selectedLabelID,showLabels:this.showLabels,isLoadingMore:this.isLoadingMore,sublabels:this.sublabels,selectedSubLabelID:this.selectedSubLabelID,enableNew:this.enableNew,editMassive:this.editMassive}}hasPermissions(t){return this.authService.hasPermissions(t)}static \u0275fac=function(e){return new(e||i)(d(oe),d(ee),d(W),d(le),d(te),d(I),d(j),d(T),d(X),d(we),d(ce),d(se),d(ie),d(ne),d(ge),d(re))};static \u0275cmp=V({type:i,selectors:[["app-tag"]],standalone:!0,features:[q],decls:2,vars:2,consts:[["class","carousel-btnEdit",3,"click",4,"ngIf"],[4,"ngIf"],[1,"carousel-btnEdit",3,"click"],[1,"icon-edit"],[1,"content_all"],[3,"seedValue"],[3,"seedValue",4,"ngIf"],[1,"w-sectionTit"],[1,"section-tit"],[3,"key","classname",4,"ngIf"],["class","modal-wrap",4,"ngIf"],[2,"min-height","500px"],[3,"key","classname"],[1,"modal-wrap"],[1,"modal-inner","modal-inner--xl","modal__max-h"],[3,"ngStyle",4,"ngIf"],["class","w100",3,"ngStyle",4,"ngIf"],["class","w100",4,"ngIf"],[3,"ngStyle"],[1,"modal__titV2"],[1,"modal__subTitV2","mt20"],[1,"modal__subTitV2"],[1,"modal-list","mt20"],[1,"modal__txt","ta-l"],["href","#",3,"click"],[1,"modal-wAdd"],["appBulkContent","","type","file","reg","\\.(xlsx)$","contentType","Procedure",3,"start","tagId"],[1,"icon-file"],[1,"w100",3,"ngStyle"],[1,"modal-list"],[1,"modal-wAdd","mt20"],["type","file","appBulkContent","","reg","\\.(xlsx)$","contentType","Link",3,"start","tagId"],[1,"w100"],["class","modal__subTitV2 mt20",4,"ngIf"],["style","margin-top: 15px",4,"ngIf"],[1,"icon-close","red"],[2,"margin-top","15px"],["type","button",1,"btn-save",3,"click"],[1,"section-wrapper","pos-relative",3,"model","section"],[1,"section-wrapper","pos-relative",3,"block","section"],["id","wall",1,"pos-relative","content_all","display-block",3,"model","tag","labels","selectedLabelID","showLabels","isLoadingMore","sublabels","selectedSubLabelID","enableNew","editMassive"],["id","block-cal",1,"section-wrapper","pos-relative",3,"model","section"],["id","wall",1,"pos-relative","content_all","display-block",3,"labelFiltered","viewMoreCalled","sublabelFiltered","batchTooggled","model","tag","labels","selectedLabelID","showLabels","isLoadingMore","sublabels","selectedSubLabelID","enableNew","editMassive"]],template:function(e,n){e&1&&g(0,Ve,3,0,"a",0)(1,ht,12,8,"section",1),e&2&&(c("ngIf",n.canAdminContents),m(),c("ngIf",n.load))},dependencies:[Q,Y,K,E,Ee,Ie,Te,Se,xe,Ce,he,be,me,ke,fe,ve,ue,_e,de,Le,ae,ye,pe],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]})};export{Fe as TagComponent};

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.