PageSourceSearch

https://morth.gov.in/chunk-A7ILPAZI.js

js morth.gov.in collected 2026-10-02 04:43:54 UTC 7,092 bytes, 1 lines download raw bytes

1import{a as H}from"./chunk-ECBPO4LK.js";import{a as O,b as A,c as z,d as D,e as U,f as W,h as j,i as B,n as G,o as q}from"./chunk-74QFMO5U.js";import{a as F,c as k}from"./chunk-BE4Y5S74.js";import{Da as f,Ea as u,Fa as c,Gb as V,La as b,Mb as M,N as g,Na as o,O as p,Oa as v,Pa as C,Ra as w,Sa as E,Ta as R,Wa as T,da as l,ia as x,ja as y,l as S,mb as I,nb as L,oa as _,sb as N,ua as m,v as P,va as i,wa as a,xa as h}from"./chunk-64SLF4GO.js";var K=()=>[];function Q(n,t){if(n&1){let e=f();i(0,"div",7)(1,"div",8)(2,"div",9),h(3,"img",10),i(4,"input",11),R("ngModelChange",function(s){g(e);let d=c();return E(d.searchTerm,s)||(d.searchTerm=s),p(s)}),u("input",function(s){g(e);let d=c();return p(d.onSearch(s))}),a()()(),i(5,"div",12)(6,"div",13)(7,"div",9),h(8,"img",14),i(9,"select",15),u("change",function(s){g(e);let d=c();return p(d.onSortChange(s))}),i(10,"option",16),o(11,"Latest"),a(),i(12,"option",17),o(13,"Oldest"),a()()(),i(14,"div",9),h(15,"img",18),i(16,"select",19),u("change",function(s){g(e);let d=c();return p(d.changePageSize(s))}),i(17,"option",20),o(18,"10 Per Page"),a(),i(19,"option",21),o(20,"15 Per Page"),a(),i(21,"option",22),o(22,"20 Per Page"),a()()()()()()}if(n&2){let e=c();l(4),w("ngModel",e.searchTerm)}}function X(n,t){n&1&&(i(0,"div",7)(1,"div",23)(2,"div",27)(3,"div",7)(4,"div",28)(5,"div",29)(6,"h3"),o(7,"S.No"),a()()(),i(8,"div",30)(9,"div",29)(10,"h3"),o(11,"Name of Research scheme"),a()()(),i(12,"div",31)(13,"div",29)(14,"h3"),o(15,"Executing Institute / Agency"),a()()(),i(16,"div",28)(17,"div",29)(18,"h3"),o(19,"Sanctioned Cost"),a()()()()()()())}function Y(n,t){if(n&1&&(i(0,"div",23)(1,"div",34)(2,"div",7)(3,"div",35)(4,"div",36)(5,"span"),o(6),a()()(),i(7,"div",37)(8,"div",36)(9,"small"),o(10),a()()(),i(11,"div",31)(12,"div",36)(13,"small"),o(14),a()()(),i(15,"div",28)(16,"div",36)(17,"small"),o(18),a()()()()()()),n&2){let e=t.$implicit,r=t.index,s=c(3);l(6),v((s.currentPage-1)*s.pageSize+(r+1)),l(4),v(e.name_research),l(4),v(e.Executing_Institute_Agency),l(4),v(e.Sanctioned_Cost)}}function Z(n,t){if(n&1&&(i(0,"div",32)(1,"div",7),_(2,Y,19,4,"div",33),a()()),n&2){let e=c(2);l(2),m("ngForOf",e.file)}}function $(n,t){if(n&1&&(i(0,"div",2)(1,"div",7)(2,"div",23)(3,"div",24)(4,"div",25),_(5,X,20,0,"div",3)(6,Z,3,1,"div",26),a()()()()()),n&2){let e=c();l(5),m("ngIf",e.slugUrl!=="tenders"),l(),m("ngIf",e.file)}}function ee(n,t){n&1&&(i(0,"div",2),o(1," No data to display. "),a())}function te(n,t){if(n&1){let e=f();i(0,"li")(1,"span",48),u("click",function(){let s=g(e).index,d=c(2);return p(d.setPage(s+1))}),o(2),a()()}if(n&2){let e=t.index,r=c(2);l(),b("active",r.currentPage===e+1),l(),C(" ",e+1," ")}}function ie(n,t){if(n&1){let e=f();i(0,"div",38),h(1,"div",39),i(2,"div",40)(3,"nav",41)(4,"ul",42)(5,"li")(6,"button",43),u("click",function(){g(e);let s=c();return p(s.prevPage())}),h(7,"i",44),a()(),_(8,te,3,3,"li",45),i(9,"li")(10,"button",46),u("click",function(){g(e);let s=c();return p(s.nextPage())}),h(11,"i",47),a()()()()()()}if(n&2){let e=c();l(6),m("disabled",e.currentPage===1),l(2),m("ngForOf",T(3,K).constructor(e.totalPages)),l(2),m("disabled",e.currentPage===e.totalPages)}}var J=class n{constructor(t,e){this.api=t;this.router=e}api;router;data=[];fullList=[];filteredList=[];file=[];imageURL=F.imageUrl;pdfLink;slugs="";slugUrl="";currentPage=1;pageSize=10;totalPages=1;searchTerm="";sortOrder="desc";ngOnInit(){this.router.url.subscribe(t=>{this.slugUrl=t[1]?.path||""}),this.router.paramMap.subscribe(t=>{this.slugs=t.get("slug")||"get-research",this.slugs&&this.getWhatsNew(this.slugs)})}getWhatsNew(t){this.api.fetchDataBySlug(t).pipe(P(e=>(alert(`${e.error?.message||"Error"} \u2014 No data to display`),S(()=>e)))).subscribe(e=>{this.data=e,this.fullList=e?.data||[],this.filteredList=[...this.fullList],this.pdfLink=this.data[0]?.link?.replace(/['"]+/g,"")||"",this.applyFilters()})}applyFilters(){let t=[...this.fullList];if(this.searchTerm.trim()){let e=this.searchTerm.toLowerCase();t=t.filter(r=>r.name_research?.toLowerCase().includes(e)||r.Executing_Institute_Agency?.toLowerCase().includes(e)||r.Sanctioned_Cost?.toLowerCase().includes(e))}
1t.sort((e,r)=>{let s=new Date(e.date).getTime(),d=new Date(r.date).getTime();return this.sortOrder==="asc"?s-d:d-s}),this.filteredList=t,this.totalPages=Math.ceil(this.filteredList.length/this.pageSize),this.currentPage=1,this.updatePage()}updatePage(){let t=(this.currentPage-1)*this.pageSize,e=t+this.pageSize;this.file=this.filteredList.slice(t,e)}setPage(t){t>=1&&t<=this.totalPages&&(this.currentPage=t,this.updatePage())}nextPage(){this.currentPage<this.totalPages&&(this.currentPage++,this.updatePage())}prevPage(){this.currentPage>1&&(this.currentPage--,this.updatePage())}changePageSize(t){this.pageSize=+t.target.value,this.totalPages=Math.ceil(this.filteredList.length/this.pageSize),this.currentPage=1,this.updatePage()}onSearch(t){this.searchTerm=t.target.value,this.applyFilters()}onSortChange(t){this.sortOrder=t.target.value,this.applyFilters()}static \u0275fac=function(e){return new(e||n)(x(k),x(V))};static \u0275cmp=y({type:n,selectors:[["app-research"]],decls:9,vars:4,consts:[[1,"filter-sec"],["action","","id","search_form"],[1,"container","main"],["class","row",4,"ngIf"],[1,"about_cont"],["class","container main",4,"ngIf"],["class","row align-items-center mt-5",4,"ngIf"],[1,"row"],[1,"col-lg-4","col-md-12","mb-md-3"],[1,"search-sec"],["alt","image","src","assets/images/search.svg"],["type","text","id","search","name","search","placeholder","search...",1,"filter_data",3,"ngModelChange","input","ngModel"],[1,"col-lg-8","col-md-12"],[1,"flt_right"],["alt","image","src","assets/images/sort.svg"],["id","short_by","name","short_by",1,"filter_data",3,"change"],["value",""],["value","asc"],["alt","image","src","assets/images/list.svg"],["id","no_of_page","name","no_of_page",1,"filter_data",3,"change"],["value","10"],["value","15"],["value","20"],[1,"col-md-12"],["id","portal",1,"desc"],[1,"table_hd"],["class","table-body",4,"ngIf"],[1,"head_bg"],[1,"col-md-2"],[1,"details_title"],[1,"col-md-5"],[1,"col-md-3"],[1,"table-body"],["class","col-md-12",4,"ngFor","ngForOf"],[1,"list_det_bx","tender_list"],[1,"col-md-1"],[1,"det_cont"],[1,"col-md-6"],[1,"row","align-items-center","mt-5"],[1,"col-md-4"],[1,"col-md-4","d-flex","justify-content-center"],["aria-label","Page navigation"],[1,"pagination","pointer"],["aria-label","Previous page",1,"button-item","previous",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-angle-left"],[4,"ngFor","ngForOf"],["aria-label","Next page",1,"button-item","next",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-angle-right"],[1,"page-link","pointer","hover",3,"click"]],template:function(e,r){e&1&&(h(0,"app-child-menu"),i(1,"section",0)(2,"form",1)(3,"div",2),_(4,Q,23,1,"div",3),a()()(),i(5,"section",4),_(6,$,7,2,"div",5)(7,ee,2,0,"div",5)(8,ie,12,4,"div",6),a()),e&2&&(l(4),m("ngIf",r.file),l(2),m("ngIf",r.file.length),l(),m("ngIf",!r.file.length),l(),m("ngIf",r.totalPages>1))},dependencies:[N,I,L,q,W,j,B,O,A,z,M,G,U,D,H],encapsulation:2})};export{J as Research};

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.