PageSourceSearch

https://www.sicop.go.cr/app/chunk-DKMR7GTL.js

js sicop.go.cr collected 2026-09-24 10:36:37 UTC 17,840 bytes, 1 lines download raw bytes

1import{a as ze}from"./chunk-NSMA3U6H.js";import"./chunk-BUBCYHJV.js";import{a as Ye}from"./chunk-5Y3O2CDB.js";import{a as Ce}from"./chunk-2GN46ZDK.js";import"./chunk-WFQRE6IY.js";import{a as He,b as We}from"./chunk-OLZVXAQ7.js";import{d as Re,e as Ne,k as Pe,p as Me,q as Oe,r as ke,s as $e,z as Ve}from"./chunk-AG3EHNB6.js";import{a as qe}from"./chunk-NFBH3F5G.js";import"./chunk-UHZ54QHX.js";import"./chunk-PAI7FOID.js";import"./chunk-HDY4NT42.js";import{a as je}from"./chunk-NGIKKMLJ.js";import{a as we,b as be}from"./chunk-3SANYZ3F.js";import"./chunk-G4KFNE7X.js";import"./chunk-KG6R6QUP.js";import{A as Se,D as Fe,F as Te,H as Le,I as Ee,J as Ae,K as Be,a as pe,g as ge,h as he,k as P,m as ve,o as $,q as ye,r as xe,w as De,x as Ie}from"./chunk-MUU65CXZ.js";import{k as me,l as _e}from"./chunk-7IVFI2FS.js";import{ka as se,ta as ue,ua as fe}from"./chunk-MGSDDNPA.js";import{a as R}from"./chunk-XH5D6B5K.js";import"./chunk-AIJ4F5A2.js";import{a as N}from"./chunk-XSXYUUKU.js";import{a as ce}from"./chunk-XHNGDIF7.js";import"./chunk-I5R5WRGN.js";import"./chunk-5UP6MAPF.js";import{a as de}from"./chunk-SEXZRFBM.js";import{g as le}from"./chunk-IGL3EGMZ.js";import{A as oe,n as ie,o as ne,s as ae,w as re}from"./chunk-F37HJFNW.js";import{Ac as F,Cc as T,Fc as te,Hb as r,Ib as o,Jb as h,Kb as W,Lb as B,Nb as k,Rb as v,Sb as l,U as V,Vb as E,Yb as Y,Z as q,Za as a,Zb as z,_a as C,_b as G,bc as Q,ca as j,cc as p,dc as m,ec as A,fc as x,ic as U,jc as J,kc as X,ma as f,na as g,oc as K,pc as Z,qc as y,rb as w,rc as ee,wb as s,xb as O,zb as H}from"./chunk-XWFS6DNU.js";import{a as M}from"./chunk-TWZW5B45.js";var Ge=(()=>{class t{constructor(e){this.http=e,this.BASE_URL=de.baseUrl,this.EP_AWARDED_CONTRACT_DEADLINE_API=`${this.BASE_URL}bid/api/v1/public/epAwardedContractsDeadline`}listPage(e){return this.http.post(`${this.EP_AWARDED_CONTRACT_DEADLINE_API}/listPage`,e)}requestDownload(e){return this.http.post(`${this.EP_AWARDED_CONTRACT_DEADLINE_API}/requestDownload`,e)}static{this.\u0275fac=function(i){return new(i||t)(q(le))}}static{this.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Je=["dt"],Xe=()=>({width:"50rem"}),Ke=()=>({"1199px":"75vw","575px":"90vw"}),Ze=()=>[],et=()=>[5,10,25,50],tt=()=>({"border-collapse":"separate"}),it=()=>({"border-collapse":"separate","min-width":"1800px"}),nt=t=>({width:t});function at(t,d){if(t&1&&(r(0,"strong"),p(1),o()),t&2){let e=l(2).$implicit;a(),m(e.summary)}}function rt(t,d){if(t&1&&(r(0,"div"),p(1),o()),t&2){let e=l(2).$implicit;a(),m(e.detail)}}function ot(t,d){if(t&1&&(W(0),w(1,at,2,1,"strong",32)(2,rt,2,1,"div",32),B()),t&2){let e=l().$implicit;a(),s("ngIf",e.summary),a(),s("ngIf",e.detail)}}function lt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l(2).$implicit;a(),m(e.text)}}function st(t,d){if(t&1&&w(0,lt,2,1,"span",32),t&2){let e=l().$implicit;s("ngIf",e.text)}}function dt(t,d){if(t&1&&(r(0,"p-message",30),w(1,ot,3,2,"ng-container",31)(2,st,1,1,"ng-template",null,1,te),o()),t&2){let e=d.$implicit,i=Q(3);s("severity",e.severity)("styleClass",e.styleClass)("icon",e.icon)("closeIcon",e.closeIcon)("life",e.life)("closable",e.closable),a(),s("ngIf",e.summary||e.detail)("ngIfElse",i)}}function pt(t,d){if(t&1&&h(0,"p-sortIcon",36),t&2){let e=l().$implicit;s("field",e.field)}}function ct(t,d){if(t&1&&(r(0,"th",34),p(1),w(2,pt,1,1,"p-sortIcon",35),o()),t&2){let e=d.$implicit;s("ngStyle",ee(4,nt,e.width))("pSortableColumn",e.sortable?e.field:void 0),a(),A(" ",e.header," "),a(),s("ngIf",e.sortable)}}function mt(t,d){if(t&1&&(r(0,"tr"),w(1,ct,3,6,"th",33),o()),t&2){let e=l();a(),s("ngForOf",e.columns)}}function _t(t,d){if(t&1){let e=k();r(0,"span")(1,"div")(2,"p-button",39),v("click",function(){f(e);let n=l(2).$implicit,c=l();return g(c.showCartelDetail(n.cartelNo))})("keydown.enter",function(){f(e);let n=l(2).$implicit,c=l();return g(c.showCartelDetail(n.cartelNo))}),p(3),o(),h(4,"br"),r(5,"small"),p(6),o()()()}if(t&2){let e=l().$implicit,i=l().$implicit,n=l();a(),O("text-align",n.colAlign[e.field]||"left"),a(),s("link",!0),a(),A(" ",i.instCartelNo," "),a(3),m(i.instNm)}}function ut(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),m(i[e.field])}}function ft(t,d){if(t&1&&(r(0,"span"),p(1),F(2,"date"),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),m(T(2,1,i[e.field],"dd/MM/yyyy HH:mm"))}}function gt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l(2).$implicit;a(),x(" ",e.wbidDur," ",e.wbidDurCriteriNm,"")}}function ht(t,d){if(t&1&&(r(0,"span"),p(1),F(2,"date"),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),m(T(2,1,i[e.field],"dd/MM/yyyy HH:mm"))}}function Ct(t,d){if(t&1&&(r(0,"span"),p(1),F(2,"date"),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),m(T(2,1,i[e.field],"dd/MM/yyyy HH:mm"))}}function wt(t,d){if(t&1&&(r(0,"span"),p(1),F(2,"date"),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),m(T(2,1,i[e.field],"dd/MM/yyyy HH:mm"))}}function bt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),x(" ",i[e.field]," ",i.wbidDurCriteriNm,"")}}function vt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),x(" ",i[e.field]," ",i.wbidDurCriteriNm,"")}}function yt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),x(" ",i[e.field]," ",i.wbidDurCriteriNm,"")}}function xt(t,d){if(t&1&&(r(0,"span"),p(1),o()),t&2){let e=l().$implicit,i=l().$implicit;a(),x(" ",i[e.field]," ",i.wbidDurCriteriNm,"")}}function Dt(t,d){if(t&1&&(r(0,"td"),w(1,_t,7,5,"span",32)(2,ut,2,1,"span",32)(3,ft,3,4,"span",32)(4,gt,2,2,"span",32)(5,ht,3,4,"span",32)(6,Ct,3,4,"span",32)(7,wt,3,4,"span",32)(8,bt,2,2,"span",32)(9,vt,2,2,"span",32)(10,yt,2,2,"span",32)(11,xt,2,2,"span",32),o()),t&2){let e=d.$implicit,i=l(2);O("text-align",i.colAlign[e.field]||"left"),a(),s("ngIf",e.field==="instCartelNo"),a(),s("ngIf",e.field=="cartelCate"),a(),s("ngIf",e.field=="openBidDt"),a(),s("ngIf",e.field=="wbidDur"||e.field=="wbidDurCriteriNm"),a(),s("ngIf",e.field=="examDt"),a(),s("ngIf",e.field=="adjuFinalDt"),a(),s("ngIf",e.field=="adjuFirm"),a(),s("ngIf",e.field=="deadlineOpenbidActFinal"||e.field=="wbidDurCriteriNm"),a(),s("ngIf",e.field=="difference"||e.field=="wbidDurCriteriNm"),a(),s("ngIf",e.field=="deadlineOpenComu"||e.field=="wbidDurCriteriNm"),a(),s("ngIf",e.field=="adjuRealStr"||e.field=="wbidDurCriteriNm")}}function It(t,d){if(t&1&&(r(0,"tr",37),w(1,Dt,12,13,"td",38),o()),t&2){let e=d.$implicit,i=d.columns;s("pSelectableRow",e),a(),s("ngForOf",i)}}function St(t,d){t&1&&(r(0,"tr")(1,"td",40),p(2,"No se encontraron registros."),o()())}var di=(()=>{class t{constructor(e,i,n,c,_,u,D,I,S){this.pageService=e,this.formBuilder=i,this.dialogService=n,this.labelPipe=c,this.labelService=_,this.loaderService=u,this.service=D,this.coCommonCdService=I,this.notificationService=S,this.programIds=R,this.labels=[],this.types=[],this.iconTitle="assets/images/portal/Icon-Titles.png",this.messages=[],this.rows=10,this.dataTakeMsg=!1,this.pageRequest=this.pageService.getPageRequest(),this.pageResponse=this.pageService.getDefaultPageResponse(),this.COL_WIDTH={XS:"90px",S:"120px",M:"180px",L:"260px",XL:"340px"},this.colAlign={instCartelNo:"center",instNm:"center",cartelCate:"center",openBidDt:"center",wbidDur:"center",adjuFirm:"center",examDt:"center",adjuFinalDt:"center",deadlineOpenbidActFinal:"center",difference:"center",deadlineOpenComu:"center",adjuRealStr:"center"},this.validateToReqDownload=()=>
1{let{summary:b,detail:L}=this.validateform();return b||L?(this.showMessage(b,L),!1):!0},this.serviceToReqDownload=b=>{this.searchForm.patchValue({typeFile:b});let L=this.pageService.createFormFilter(this.searchForm.value);return this.pageRequest=this.pageService.getPageRequest(0,this.rows,L),this.service.requestDownload(this.pageRequest)}}showCartelDetail(e){let i=`https://www.sicop.go.cr/moduloPcont/pcont/ctract/es/CE_CEJ_ESQ002.jsp?cartelNo=${e}`;this.dialogService.open(Ce,M({closable:!0,data:{legacyUrl:i},header:this.getLabel("ttl_cartel_link"),styleClass:"sicop-modal"},be))}ngOnInit(){this.initMinDate=new Date,this.initMinDate.setMonth(this.initMinDate.getMonth()-3),this.searchForm=this.formBuilder.group({bgnYmd:[this.initMinDate,$.required],endYmd:[new Date,$.required],instCartelNo:[null],cartelInstCd:[null],typeFile:[null]}),this.labels=this.labelService.labels,this.initTableColumns();let e=this.pageService.createFormFilter(this.searchForm.value);this.pageRequest=this.pageService.getPageRequest(0,this.rows,e),this.updatePageResponse()}getLabel(e,i){return this.labels.find(n=>n.programId==(i??R.EP_DEADLINE_ADJ_CATE)&&n.objectId==e)?.esNm??""}initTableColumns(){this.columns=[{ref:"instCartelNo",field:"instCartelNo",header:this.getLabel("attr_inst_cartel_no_inst"),width:this.COL_WIDTH.L},{ref:"cartelCate",field:"cartelCate",header:this.getLabel("attr_item"),width:this.COL_WIDTH.L},{ref:"openBidDt",field:"openBidDt",header:this.getLabel("attr_open_dt"),sortable:!0,width:this.COL_WIDTH.L},{ref:"wbidDur",field:"wbidDur",header:this.getLabel("attr_act_final_cartel_dt"),width:this.COL_WIDTH.L},{ref:"examDt",field:"examDt",header:this.getLabel("attr_final_act_dt"),sortable:!0,width:this.COL_WIDTH.L},{ref:"adjuFinalDt",field:"adjuFinalDt",header:this.getLabel("attr_comun_act_dt"),sortable:!0,width:this.COL_WIDTH.L},{ref:"adjuFirm",field:"adjuFirm",header:this.getLabel("attr_firm_act_dt"),sortable:!0,width:this.COL_WIDTH.L},{ref:"deadlineOpenbidActFinal",field:"deadlineOpenbidActFinal",header:this.getLabel("attr_period_open_act"),width:this.COL_WIDTH.L},{ref:"difference",field:"difference",header:this.getLabel("attr_diff"),width:this.COL_WIDTH.L},{ref:"deadlineOpenComu",field:"deadlineOpenComu",header:this.getLabel("attr_period_open_notifi"),width:this.COL_WIDTH.L},{ref:"adjuRealStr",field:"adjuRealStr",header:this.getLabel("attr_deadline_act"),width:this.COL_WIDTH.L}]}showDataTakeMsg(){this.dataTakeMsg=!0}lazyLoad(e){let i=this.pageService.createFormFilter(this.searchForm.value);this.pageRequest=this.pageService.getPageRequestEvent(e,i),this.searchForm.valid&&this.updatePageResponse()}onSubmit(e){let i=this.pageService.createFormFilter(this.searchForm.value),{summary:n,detail:c}=this.validateform();if(n||c){this.showMessage(n,c);return}this.pageRequest=this.pageService.getPageRequest(0,this.rows,i),this.updatePageResponse()}updatePageResponse(){this.loaderService.showLoader(),this.service.listPage(this.pageRequest).subscribe({next:e=>{this.loaderService.hideLoader(),this.pageResponse=e},error:e=>{this.loaderService.hideLoader(),this.showNotification(this.getLabel("msg_error_consulting_list"),"error")}})}validateform(){this.messages=[];let e="",i="",n=this.searchForm.get("instCartelNo"),c=this.searchForm.get("cartelInstCd"),_=this.searchForm.get("bgnYmd"),u=this.searchForm.get("endYmd"),D=c?.value;if(D&&D.length!==10&&D.length!==12)return e="msg_inst_reg_no_invalid",i="msg_inst_reg_no_max_length",{summary:e,detail:i};if(n?.errors?.minlength||n?.errors?.maxlength)return e="msg_inst_cartel_no_invalid",i="msg_inst_cartel_no_max_length",{summary:e,detail:i};if(_?.errors?.required)return e="msg_dt_ymd_invalid",i="msg_bgn_ymd_req",{summary:e,detail:i};if(u?.errors?.required)return e="msg_dt_ymd_invalid",i="msg_end_ymd_req",{summary:e,detail:i};let I=new Date(_?.value);I.setHours(0,0,0,0);let S=new Date(u?.value);if(S.setHours(0,0,0,0),I>S)return e="msg_dt_ymd_invalid",i="msg_date_older_one_year",{summary:e,detail:i};let b=new Date(I);return b.setFullYear(b.getFullYear()+1),b.setHours(0,0,0,0),S>b?(e="msg_dt_ymd_invalid",i="msg_date_older_year",{summary:e,detail:i}):{summary:e,detail:i}}openInstSearch(){this.dialogService.open(Ye,M({closable:!0,data:{},header:this.labelPipe.transform("attr_title",R.SEARCH_INST_REPORT),styleClass:"sicop-modal"},we)).onClose.subscribe(e=>{e&&this.searchForm.patchValue({cartelInstCd:e.bizRegNo})})}cleanInstSearch(){this.searchForm.patchValue({cartelInstCd:""})}preExecutionFnOnReqDownload(){this.loaderService.showLoader()}finallyFnOnReqDownload(){this.loaderService.hideLoader()}errorOnReqDownload(e){let i=e.error?.message,n=this.getLabel(i?.startsWith("msg")?i:"msg_error_consulting_list");this.showNotification(n,"error")}showNotification(e,i){this.notificationService.show({message:e,type:i})}showMessage(e,i){this.messages=[{severity:"error",summary:this.getLabel(e),detail:this.getLabel(i)}]}static{this.\u0275fac=function(i){return new(i||t)(C(qe),C(Te),C(P),C(N),C(ce),C(Be),C(Ge),C(je),C(pe))}}static{this.\u0275cmp=j({type:t,selectors:[["app-awarded-contracts-deadlines"]],viewQuery:function(i,n){if(i&1&&Y(Je,5),i&2){let c;
1z(c=G())&&(n.dt=c.first)}},standalone:!0,features:[K([N,P]),Z],decls:51,vars:43,consts:[["dt",""],["textOnly",""],[1,"row","mt-3"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"m-0"],[1,"pi","pi-folder"],["icon","pi pi-exclamation-circle",1,"btn","btn-link","custom-large-button",3,"click","keydown.enter","link"],[3,"visibleChange","header","modal","visible","breakpoints","maximizable","draggable"],[3,"severity","styleClass","icon","closeIcon","life","closable",4,"ngFor","ngForOf"],[3,"ngSubmit","formGroup"],[1,"row","g-3","mt-2","align-items-end"],[1,"col-md-4"],["for","inputInstCartelNo",1,"form-label"],["pInputText","","id","inputInstCartelNo","formControlName","instCartelNo","maxlength","24",1,"w-100"],["for","inputCartelInstCd",1,"form-label"],[1,"d-flex","align-items-end","gap-2"],["pInputText","","id","inputCartelInstCd","formControlName","cartelInstCd","maxlength","12","readonly","",1,"w-100"],["icon","pi pi-search",1,"button-search","p-button-sm",3,"onClick"],["icon","pi pi-eraser",1,"button-clean","p-button-sm",3,"onClick"],["for","bgnYmd",1,"form-label"],[1,"d-flex","gap-2"],["inputId","bgnYmd","styleClass","w-100 sicop-calendar","formControlName","bgnYmd","dateFormat","dd/mm/yy","placeholder","Desde","appendTo","body",3,"showIcon","iconDisplay"],["inputId","endYmd","styleClass","w-100 sicop-calendar","formControlName","endYmd","dateFormat","dd/mm/yy","placeholder","Hasta","appendTo","body",3,"showIcon","iconDisplay"],[1,"col","d-flex","justify-content-end"],["type","submit","icon","pi pi-search","iconPos","left",1,"button-search",3,"label"],[3,"preExecutionFn","errorFn","finallyFn","validateFn","serviceFn"],["showGridlines","","tableStyleClass","sicop-table","dataKey","seqno",3,"onLazyLoad","value","columns","lazy","paginator","rows","totalRecords","rowsPerPageOptions","showCurrentPageReport","currentPageReportTemplate","tableStyle","scrollable"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"severity","styleClass","icon","closeIcon","life","closable"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["id","headerCol","class","p-3 text-center",3,"ngStyle","pSortableColumn",4,"ngFor","ngForOf"],["id","headerCol",1,"p-3","text-center",3,"ngStyle","pSortableColumn"],[3,"field",4,"ngIf"],[3,"field"],[3,"pSelectableRow"],[3,"text-align",4,"ngFor","ngForOf"],[1,"btn","btn-link","p-0",3,"click","keydown.enter","link"],["colspan","8",1,"text-center"]],template:function(i,n){if(i&1){let c=k();r(0,"p-card")(1,"div",2)(2,"div",3)(3,"h5",4),h(4,"i",5),p(5),o(),r(6,"div")(7,"p-button",6),v("click",function(){return f(c),g(n.showDataTakeMsg())})("keydown.enter",function(){return f(c),g(n.showDataTakeMsg())}),o(),r(8,"p-dialog",7),X("visibleChange",function(u){return f(c),J(n.dataTakeMsg,u)||(n.dataTakeMsg=u),g(u)}),r(9,"p")(10,"span"),p(11),o(),h(12,"br"),r(13,"span"),p(14),o(),h(15,"br"),r(16,"span"),p(17),o(),h(18,"br"),o()()()()(),h(19,"br"),w(20,dt,4,8,"p-message",8),r(21,"form",9),v("ngSubmit",function(u){return f(c),g(n.onSubmit(u))}),r(22,"div",10)(23,"div",11)(24,"label",12),p(25),o(),h(26,"input",13),o(),r(27,"div",11)(28,"label",14),p(29),o(),r(30,"div",15),h(31,"input",16),r(32,"p-button",17),v("onClick",function(){return f(c),g(n.openInstSearch())}),o(),r(33,"p-button",18),v("onClick",function(){return f(c),g(n.cleanInstSearch())}),o()()(),r(34,"div",11)(35,"label",19),p(36),o(),r(37,"div",20),h(38,"p-datepicker",21)(39,"p-datepicker",22),o()()(),r(40,"div",2)(41,"div",23),h(42,"p-button",24),o()()()(),r(43,"download-formats",25),v("preExecutionFn",function(){return f(c),g(n.preExecutionFnOnReqDownload())})("errorFn",function(u){return f(c),g(n.errorOnReqDownload(u))})("finallyFn",function(){return f(c),g(n.finallyFnOnReqDownload())}),o(),r(44,"p-card")(45,"div")(46,"p-table",26,0),v("onLazyLoad",function(u){return f(c),g(n.lazyLoad(u))}),w(48,mt,2,1,"ng-template",27)(49,It,2,2,"ng-template",28)(50,St,3,0,"ng-template",29),o()()()}i&2&&(a(5),A(" ",n.getLabel("attr_title"),""),a(2),s("link",!0),a(),H(y(37,Xe)),E("header",n.getLabel("desc_report_adju")),s("modal",!0),U("visible",n.dataTakeMsg),s("breakpoints",y(38,Ke))("maximizable",!1)("draggable",!1),a(3),m(n.getLabel("desc_report_
11")),a(3),m(n.getLabel("desc_report_2")),a(3),m(n.getLabel("desc_report_3")),a(3),s("ngForOf",n.messages||y(39,Ze)),a(),s("formGroup",n.searchForm),a(4),m(n.getLabel("attr_inst_cartel_no")),a(4),m(n.getLabel("attr_find_inst")),a(7),m(n.getLabel("attr_dt_adju_final")),a(2),s("showIcon",!0)("iconDisplay","input"),a(),s("showIcon",!0)("iconDisplay","input"),a(3),E("label",n.getLabel("btn_consult")),a(),s("validateFn",n.validateToReqDownload)("serviceFn",n.serviceToReqDownload),a(3),E("currentPageReportTemplate",n.getLabel("page",n.programIds.PT_BOARD)),s("value",n.pageResponse.content)("columns",n.columns)("lazy",!0)("paginator",!0)("rows",n.rows)("totalRecords",n.pageResponse.totalElements)("rowsPerPageOptions",y(40,et))("showCurrentPageReport",!0)("tableStyle",y(41,tt))("scrollable",!0)("tableStyle",y(42,it)))},dependencies:[fe,ue,se,Ve,Me,Oe,$e,ke,oe,ie,ne,ae,re,_e,me,We,He,Ne,Re,Pe,Ae,Ee,Le,De,ve,ye,xe,Fe,Ie,Se,he,ge,ze],styles:[".custom-large-button .pi{font-size:1.5rem}"]})}}return t})();export{di as AwardedContractsDeadlinesComponent};

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.