PageSourceSearch

https://parliament.gov.mw/chunk-QQYGXZQZ.js

js parliament.gov.mw collected 2026-09-25 06:43:37 UTC 7,238 bytes, 1 lines download raw bytes

1import{a as E}from"./chunk-HHEDRXB5.js";import{a as Z}from"./chunk-LNGVCMAS.js";import{a as Q}from"./chunk-Z7WSWILP.js";import{b as K}from"./chunk-XBKWFSFE.js";import{a as J}from"./chunk-HBLGEQ4P.js";import"./chunk-AFIQDRIC.js";import"./chunk-QUW347F2.js";import"./chunk-UGLME56J.js";import"./chunk-BCUM6MUG.js";import{a as $,g as z}from"./chunk-RESS5MLH.js";import{f as b}from"./chunk-SR5WHKYH.js";import"./chunk-W4BNGQYG.js";import{$ as L,I as V,K as Y,Y as B,ea as j,fa as W,ga as X,ja as q,l as O}from"./chunk-7TR4GPKW.js";import{$b as s,Bb as G,Cc as M,Dc as N,Ec as D,Hb as x,Pb as m,Qc as k,Rc as F,Wb as R,Xb as w,Yb as C,Zb as P,_b as o,ac as A,ec as I,ia as v,jc as d,kc as h,na as y,oa as c,ob as r,wa as g,wc as l,xa as S,xc as _,yc as u}from"./chunk-7RSPASZG.js";import{g as U}from"./chunk-TSRGIXR5.js";var T=class n extends E{constructor(e){super(e,"/pom-sessions","id")}static \u0275fac=function(t){return new(t||n)(y(b))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};var H=class n extends E{constructor(e){super(e,"/pom-hansards","id")}getBySessionYear(e,t,i,p,a){return U(this,null,function*(){return yield this.apiService.api("GET",`${this.path}/${e}/${t}/session-year?page=${i}&limit=${p}&query=${a}`)})}static \u0275fac=function(t){return new(t||n)(y(b))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};var ie=(n,e)=>e.id;function ne(n,e){if(n&1&&(o(0,"option",7),l(1),s()),n&2){let t=e.$implicit;m("value",t),r(),_(t)}}function ae(n,e){if(n&1&&(o(0,"option",7),l(1),s()),n&2){let t=e.$implicit;m("value",t.id),r(),_(t.name)}}function re(n,e){if(n&1){let t=I();o(0,"div",9)(1,"div",12)(2,"div",13)(3,"div",14)(4,"span",15),l(5,"Hansard"),s()(),o(6,"h5",16),l(7),s(),o(8,"p",17),l(9),k(10,"date"),s(),o(11,"p",18),l(12),s(),o(13,"div",19)(14,"div",20)(15,"a",21),d("click",function(){let p=g(t).$implicit,a=h();return S(a.download(p.documentUrl))}),l(16," Download minutes (PDF/Word) "),s(),o(17,"a",22),d("click",function(){let p=g(t).$implicit,a=h();return S(a.download(p.videoUrl))}),l(18," Watch on YouTube "),s(),o(19,"a",23),d("click",function(){let p=g(t).$implicit,a=h();return S(a.download(p.audioUrl))}),l(20," Listen to audio "),s()()()(),o(21,"div",24)(22,"small",25),l(23),s()()()()}if(n&2){let t=e.$implicit;r(7),_(t.pomSessionDayMeeting.pomSessionDay.pomSession.name),r(2),u("Date of Meeting: ",F(10,4,t.pomSessionDayMeeting.pomSessionDay.date),""),r(3),u(" ",t.pomSessionDayMeeting.title,". "),r(11),u("Status: Published \u2022 Reference: ",t.reference,"")}}function oe(n,e){if(n&1){let t=I();o(0,"div",10)(1,"app-pom-paginator",26),d("goPage",function(p){g(t);let a=h();return S(a.goToPage(p))}),s()()}if(n&2){let t=h();r(),m("pagesToShow",5)("page",t.CURRENT_PAGE)("perPage",t.PER_PAGE)("count",t.ITEM_COUNT)("loading",t.LOADING)}}function se(n,e){n&1&&A(0,"app-pom-not-found-template",11),n&2&&m("titlePrefix","Hansard ")}var f=class n{router=c(Y);route=c(V);spinnerService=c(z);dataService=c($);sessionService=c(T);hansardService=c(H);pageTile;path="/business/hansards";docCategory="Hansards";filter;year="all";years=[];searchPlaceholder="Search in hansards "+this.year+"...";minYear=1960;maxYear=new Date().getFullYear();SEARCH_TEXT="";CURRENT_PAGE=1;PER_PAGE=6;ITEM_COUNT=0;LOADING=!1;sessions;session;session_id="all";session_name="all";hansards;isLoading=!0;constructor(){}ngOnInit(){this.spinnerService.visibility.subscribe(e=>{this.isLoading=e}),this.spinnerService.visibility.subscribe(e=>{this.LOADING=e});for(let e=this.minYear;e<=this.maxYear;e++)this.years.push(e);this.route.params.subscribe(e=>{let t=e.year?e.year:null;t&&(this.year=t,this.pageTile="Hansards of "+this.year,this.searchPlaceholder="Search in hansards "+this.year+"..."),this.sessionService.getAll().then(i=>{this.sessions=i}),this.initialiseData()})}onYearSelect(e){this.router.navigateByUrl(this.getParentPath()+"/"+e).then(()=>{})}onSessionSelect(e){let t=this.sessions.find(i=>i.id===e);t&&(this.session=t,this.session_name=t.name,this.session_id=t.id),this.initialiseData()}
1getParentPath(){let e=this.router.url.split("/").filter(Boolean);return e.length>2&&e.pop(),"/"+e.join("/")}onSearch(e){this.SEARCH_TEXT=e,this.reset()}download(e){window.open(`${this.dataService.getUrl(e)}`,"_blank","noopener")}reset(){this.CURRENT_PAGE=0,this.ITEM_COUNT=0}initialiseData(){let e=this.CURRENT_PAGE>0?this.CURRENT_PAGE-1:this.CURRENT_PAGE;this.hansardService.getBySessionYear(this.session_id,this.year,e,this.PER_PAGE,this.SEARCH_TEXT).then(t=>{this.hansards=t.data,this.ITEM_COUNT=t.count},()=>{this.reset()})}goToPage(e){this.CURRENT_PAGE!=e&&(this.CURRENT_PAGE=e,this.initialiseData())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=G({type:n,selectors:[["app-hansards"]],decls:25,vars:13,consts:[[3,"path"],[1,"auto-container","my-4"],[3,"onSearch","placeholder"],[1,"row","align-items-center","my-4"],[1,"col","col-sm-12","col-md-4"],[1,"form-select",3,"ngModelChange","ngModel"],[3,"value","selected"],[3,"value"],[1,"row","g-4"],[1,"col-12","col-md-6","col-lg-4"],["aria-label","Page navigation",1,"pagination-wrapper","centred"],[3,"titlePrefix"],[1,"card","shadow-sm","h-100","border-0"],[1,"card-body","d-flex","flex-column"],[1,"mb-2"],[1,"badge","bg-primary-subtle","text-primary","border","border-primary"],[1,"card-title","mb-1"],[1,"text-muted","mb-3"],[1,"card-text"],[1,"mt-auto"],[1,"d-grid","gap-2"],["download","",1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-secondary",3,"click"],[1,"card-footer","bg-transparent","border-0","pt-0"],[1,"text-body-secondary"],[3,"goPage","pagesToShow","page","perPage","count","loading"]],template:function(t,i){t&1&&(A(0,"app-pom-page-template",0),o(1,"div",1)(2,"app-pom-search",2),d("onSearch",function(a){return i.onSearch(a)}),s(),o(3,"div",1)(4,"div",3)(5,"div",4),l(6),o(7,"select",5),D("ngModelChange",function(a){return N(i.year,a)||(i.year=a),a}),d("ngModelChange",function(a){return i.onYearSelect(a)}),o(8,"option",6),l(9),s(),C(10,ne,2,2,"option",7,w),s()(),o(12,"div",4),l(13),o(14,"select",5),D("ngModelChange",function(a){return N(i.session_id,a)||(i.session_id=a),a}),d("ngModelChange",function(a){return i.onSessionSelect(a)}),o(15,"option",7),l(16),s(),C(17,ae,2,2,"option",7,w),s()()()()(),o(19,"div",1)(20,"div",8),C(21,re,24,6,"div",9,ie),x(23,oe,2,5,"div",10),s()(),x(24,se,1,1,"app-pom-not-found-template",11)),t&2&&(m("path",i.path),r(2),m("placeholder",i.searchPlaceholder),r(4),u(" ","Filter by year ("+i.year+")"," "),r(),M("ngModel",i.year),r(),m("value","all")("selected",i.year==="all"),r(),_("All years"),r(),P(i.years),r(3),u(" ","Filter by session ("+i.session_name+")"," "),r(),M("ngModel",i.session_id),r(),m("value","all"),r(),_("All sessions"),r(),P(i.sessions),r(4),P(i.hansards),r(2),R(i.ITEM_COUNT>i.PER_PAGE?23:-1),r(),R(!i.hansards&&!i.isLoading?24:-1))},dependencies:[K,q,W,X,j,B,L,Q,O,J,Z],encapsulation:2})};var Ie=[{path:"",component:f,data:{title:"Hansards",breadcrumb:[{label:"Home",url:"/"},{label:"Hansards",url:""}]}},{path:":year",component:f,data:{title:"Hansards",breadcrumb:[{label:"Home",url:"/"},{label:"Hansards",url:"/business/hansards"},{label:"Hansards {{filter}}",url:""}]}}];export{Ie as HANSARDS_ROUTES};

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.