1import{a as D}from"./chunk-LG43OBZI.js";import{a as H}from"./chunk-EX564BAV.js";import{a as M,b as y}from"./chunk-JJWZCX27.js";import{a as G}from"./chunk-VBHBQ6TX.js";import"./chunk-NELI4RIV.js";import{a as O}from"./chunk-CKFXJ4M6.js";import"./chunk-RT3CAFKL.js";import{a as R}from"./chunk-VO6FFMQ2.js";import"./chunk-X73BQY4W.js";import"./chunk-PTO72U72.js";import"./chunk-VRY2PTRO.js";import"./chunk-WDOKTICK.js";import"./chunk-W4BNGQYG.js";import"./chunk-CJRMVZKU.js";import"./chunk-MS6LDHGK.js";import{s as F,t as b}from"./chunk-Z4UR2IU6.js";import{T as N,f as w,g as I,p as A}from"./chunk-C3SWPGF7.js";import{$b as p,Bb as E,Hb as _,Ob as C,Pb as r,Qc as q,Rb as T,Rc as x,_b as m,ac as s,ec as P,ib as v,jc as g,kc as l,oa as d,ob as o,tb as h,vc as S,wa as f,xa as u}from"./chunk-7RSPASZG.js";import"./chunk-TSRGIXR5.js";function V(n,t){if(n&1){let e=P();m(0,"li",13)(1,"div",14),g("click",function(){let a=f(e).index,c=S(6),L=l();return u(L.toggleAccordion(a,c))}),s(2,"div",15)(3,"h3",16),q(4,"padZero"),p(),m(5,"div",17,0),s(7,"div",18),p()()}if(n&2){let e=t.$implicit,i=t.index,a=l();C("data-wow-delay",i*300+"ms"),o(),T("active",a.isActive(i)),o(2),r("innerHTML","<span>"+x(4,5,a.PER_PAGE*(a.CURRENT_PAGE-1)+(i+1))+". </span>"+e.question,v),o(4),r("innerHTML",e.answer,v)}}function k(n,t){if(n&1){let e=P();m(0,"div",19)(1,"app-pom-paginator",20),g("goPage",function(a){f(e);let c=l();return u(c.goToPage(a))}),p()()}if(n&2){let e=l();o(),r("pagesToShow",5)("page",e.CURRENT_PAGE)("perPage",e.PER_PAGE)("count",e.ITEM_COUNT)("loading",e.LOADING)}}function X(n,t){n&1&&s(0,"app-pom-not-found-template",21)}var U=class n{faqService=d(M);spinnerService=d(R);renderer=d(h);path="/parliament/faq";faqs=[];CURRENT_PAGE=1;PER_PAGE=9;ITEM_COUNT=0;LOADING=!1;SEARCH_TEXT="";activeIndex=null;constructor(){}ngOnInit(){this.spinnerService.visibility.subscribe(t=>this.LOADING=t),this.initialiseData()}initialiseData(){let t=this.CURRENT_PAGE-1;this.faqService.getAll(t,this.PER_PAGE,this.SEARCH_TEXT).then(e=>{this.faqs=e.data,this.ITEM_COUNT=e.count,this.activeIndex=null})}goToPage(t){this.CURRENT_PAGE=t,this.initialiseData()}onSearch(t){this.SEARCH_TEXT=t,this.CURRENT_PAGE=1,this.initialiseData()}toggleAccordion(t,e){this.activeIndex===t?(this.renderer.setStyle(e,"maxHeight","0px"),this.activeIndex=null):(document.querySelectorAll(".acc-content").forEach(a=>this.renderer.setStyle(a,"maxHeight","0px")),this.renderer.setStyle(e,"maxHeight",e.scrollHeight+"px"),this.activeIndex=t)}isActive(t){return this.activeIndex===t}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=E({type:n,selectors:[["app-faq-page"]],decls:13,vars:4,consts:[["contentDiv",""],[3,"path"],[1,"place-section","pb-5"],[1,"auto-container"],[3,"onSearch"],[1,"inner-content"],[1,"row","clearfix"],[1,"col-lg-12","col-md-12","col-sm-12","content-column"],[1,"content-box"],[1,"accordion-box"],["class","accordion block wow animate__animated animate__fadeInUp","data-wow-duration","1500ms",4,"ngFor","ngForOf"],["aria-label","Page navigation","class","pagination-wrapper centred py-2",4,"ngIf"],["titlePrefix","News ",4,"ngIf"],["data-wow-duration","1500ms",1,"accordion","block","wow","animate__animated","animate__fadeInUp"],[1,"acc-btn",3,"click"],[1,"icon-outer"],[3,"innerHTML"],[1,"acc-content"],[1,"text","auto-container",3,"innerHTML"],["aria-label","Page navigation",1,"pagination-wrapper","centred","py-2"],[3,"goPage","pagesToShow","page","perPage","count","loading"],["titlePrefix","News "]],template:function(e,i){e&1&&(s(0,"app-pom-page-template",1),m(1,"section",2)(2,"div",3)(3,"app-pom-search",4),g("onSearch",function(c){return i.onSearch(c)}),p(),m(4,"div",5)(5,"div",3)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul",9),_(10,V,8,7,"li",10),p()()()()()(),_(11,k,2,5,"div",11),p()(),_(12,X,1,0,"app-pom-not-found-template",12)),e&2&&(r("path",i.path),o(10),r("ngForOf",i.faqs),o(),r("ngIf",i.ITEM_COUNT>i.PER_PAGE),o(),r("ngIf",i.faqs&&i.faqs.length===0&&!i.LOADING))},dependencies:[G,H,D,y,O,A,w,I,F,b,N],encapsulation:2})};export{U as FaqPageComponent};
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.