PageSourceSearch

https://pau.go.ug/chunk-P652BF4Z.js

js pau.go.ug collected 2026-10-02 18:39:48 UTC 17,143 bytes, 1 lines download raw bytes

1import{a as Wt}from"./chunk-IJUFIQXS.js";import{b as Nt,e as Gt,h as Jt,i as Kt}from"./chunk-5OAI2AGD.js";import{A as st,B as pt,Ba as Ht,C as lt,Ca as Vt,D as mt,Da as Lt,E as gt,F as dt,Fa as Ut,H as ft,I as ht,J as ut,K as Mt,L as _t,M as Ct,Q as Pt,R as xt,S as Ot,T as vt,U as bt,V as yt,W as wt,X as St,Y as qt,a as K,aa as Tt,b as W,ba as At,c as X,d as Y,da as kt,e as Z,fa as Ft,g as tt,ga as It,ha as Et,i as et,ia as Rt,ja as Qt,k as nt,ka as Dt,la as $t,m as it,ma as Bt,na as zt,u as ot,v as at,y as rt,z as ct,za as jt}from"./chunk-M47B3HJQ.js";import{Ha as V,Oa as L,Pa as N,Qa as U,Ra as G,Sa as J,T as Q,a as E,aa as D,da as $,ea as B,k as R,oa as z,r as d,ra as j,wa as H}from"./chunk-4N2ITM72.js";import{$a as x,Bb as a,E as M,Kb as c,Lb as s,Mb as l,Qb as b,Tb as O,Vb as g,Wc as A,Xc as k,Yc as F,a as v,ab as q,bd as I,cc as m,dc as y,gb as r,hb as h,jc as T,mc as _,na as S,w,xa as C,ya as P,zb as u}from"./chunk-EK3NUCT5.js";import"./chunk-YHOLSLLF.js";var Xt=i=>({"route-param-search-result":i}),Yt=i=>({"loading-more":i}),Zt=i=>({"selected-topic":i});function te(i,p){i&1&&l(0,"mat-progress-spinner",16)}function ee(i,p){if(i&1&&(c(0,"section",17)(1,"mat-icon",18),m(2,"warning"),s(),c(3,"p"),m(4," Sorry, no results matching "),c(5,"b"),m(6),s(),m(7," were found! "),l(8,"br"),m(9," Please try searching for something else or choose among the categories below. "),s()()),i&2){let e=g();r(6),y(e.search.value)}}function ne(i,p){if(i&1){let e=b();c(0,"div",21),O("click",function(){let t=C(e).$implicit,o=g(2);return P(o.onFetchTopicItems(t))}),c(1,"div",22),l(2,"img",23),s(),l(3,"h3",24),s()}if(i&2){let e=p.$implicit,n=p.index,t=g(2);a("ngClass",_(5,Zt,t.topic===e))("scrollAnimate",(n+1)*100),r(2),a("src",e.image,q)("alt",e.title),r(),a("innerHTML",e.title,x)}}function ie(i,p){if(i&1&&(c(0,"header",19),u(1,ne,4,7,"div",20),s()),i&2){let e=g();r(),a("ngForOf",e.topics)}}function oe(i,p){if(i&1&&(c(0,"mat-expansion-panel",27)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),l(3,"span",28),s()(),c(4,"section"),l(5,"p",28),s()()),i&2){let e=p.$implicit,n=p.index,t=g(2);a("expanded",t.searchResult&&t.search.value||t.routeParams.faq!=="")("scrollAnimate",(n+1)*150),r(3),a("innerHTML",e.title,x),r(2),a("innerHTML",e.content,x)}}function ae(i,p){if(i&1&&(c(0,"mat-accordion",25),u(1,oe,6,4,"mat-expansion-panel",26),s()),i&2){let e=g();r(),a("ngForOf",e.subTopics)}}function re(i,p){i&1&&l(0,"mat-progress-spinner",16)}function ce(i,p){if(i&1&&(c(0,"section",29),u(1,re,1,0,"mat-progress-spinner",8),s()),i&2){let e=g();r(),a("ngIf",e.processing)}}var Mn=(()=>{class i{constructor(e,n,t,o,f){this.service=e,this.endpoints=n,this.http=t,this.activatedRoute=o,this.seoService=f,this.processing=!0,this.httpSubscription=new v,this.pageBanner="",this.topics=[],this.subTopics=[],this.search=new nt,this.searching=!1,this.searchResult=!1,this.routeSub=new v,this.routeParams={faq:""},this.title="Frequently Asked Questions"}ngOnInit(){this.activatedRoute.data.subscribe(e=>{let n=e.seo;n&&this.seoService.updateMeta(n.title,n.description,n.image,n.url,n.keywords)}),this.routeSub=this.activatedRoute.paramMap.subscribe(e=>{this.routeParams={faq:e.get("faq")||""},this.onFetchFAQQueryParam()}),this.search.valueChanges.subscribe(e=>{e&&e.trim()!==""&&(this.searchResult=!1)})}ngAfterViewInit(){setTimeout(()=>{this.httpSubscription=this.fetchMultiple().pipe(M(e=>(this.processing=!1,this.service.loading.next(this.processing),this.service.determineErrorResponse(e),[]))).subscribe({next:e=>{if(Array.isArray(e)&&e.length===2){let n=e[0]?.[0],t=e[1];this.pageBanner=this.service.getCMSMediaProxy(n?.acf?.image),this.topics=t.map(o=>({title:o.name,image:this.service.getCMSMediaProxy(o.acf?.image),id:o.id})),this.routeParams.faq||this.onFetchTopicItems(this.topics[0])}this.processing=!1,this.service.loading.next(this.processing)},error:e=>{this.processing=!1,this.service.loading.next(this.processing),this.service.determineErrorResponse(e)}})})}fetchMultiple(){this.processing=!0,this.service.loading.next(this.processing);let n=`${this.endpoints.faqsCategories}&_fields=id,name,acf.image,slug&per_page=4`,t=this.http.get(this.endpoints.pageImages+"slug=faqs-page&_fields=acf.image&per_page=1"),o=this.http.get(n);return w([t,o])}onFetchTopicItems(e){this.service.onScrollToTop(),this.topic=e;let n=`${this.endpoints.faqs}faqs-category=${e.id}&_fields=title,acf.content&per_page=50`;this.processing=!0,this.searching=!1,this.searchResult=!1,this.search.reset(),this.routeParam
1s.faq="",this.httpSubscription=this.http.get(n).pipe(M(t=>(this.processing=!1,this.service.determineErrorResponse(t),[]))).subscribe({next:t=>{Array.isArray(t)&&t.length>0&&(this.subTopics=t.map(o=>({title:o.title?.rendered,content:o.acf.content.replaceAll(d.cms.media,d.cms.mediaProxy)||""}))),this.processing=!1},error:t=>{this.processing=!1,this.service.determineErrorResponse(t)}})}onSearch(){if(this.search.value){this.routeParams.faq="",this.searching=!0;let e=this.search.value.trim(),n=new RegExp(`(${e})`,"gi"),t=`${this.endpoints.faqs}search=${encodeURIComponent(e)}&_fields=title,acf.content&per_page=50`;this.httpSubscription=this.http.get(t).pipe(M(o=>(this.searching=!1,this.service.determineErrorResponse(o),[]))).subscribe({next:o=>{Array.isArray(o)&&o.length>0?this.subTopics=o.map(f=>({title:f.title?.rendered.replace(n,"<mark>$1</mark>"),content:f.acf.content.replaceAll(d.cms.media,d.cms.mediaProxy).replace(n,"<mark>$1</mark>")||""})):this.subTopics.length=0,this.searchResult=!0,this.searching=!1},error:o=>{this.searching=!1,this.service.determineErrorResponse(o)}})}}onFetchFAQQueryParam(){let e=`${this.endpoints.faqs}slug=${this.routeParams.faq}&_fields=title,acf.content&per_page=1`;this.processing=!0,this.searching=!1,this.searchResult=!1,this.httpSubscription=this.http.get(e).pipe(M(n=>(this.processing=!1,this.service.determineErrorResponse(n),[]))).subscribe({next:n=>{Array.isArray(n)&&n.length>0&&(this.subTopics=n.map(t=>({title:t.title?.rendered,content:t.acf.content.replaceAll(d.cms.media,d.cms.mediaProxy)||""}))),this.processing=!1},error:n=>{this.processing=!1,this.service.determineErrorResponse(n)}})}ngOnDestroy(){this.httpSubscription&&this.httpSubscription.unsubscribe(),this.processing=!1}static{this.\u0275fac=function(n){return new(n||i)(h(J),h(Ut),h(E),h(R),h(Kt))}}static{this.\u0275cmp=S({type:i,selectors:[["pau-faqs"]],standalone:!0,features:[T],decls:22,vars:19,consts:[["input",""],[3,"pageBanner","customTitle"],[1,"search-field",3,"ngClass"],["appearance","fill"],["matPrefix",""],["matInput","",3,"keydown.enter","formControl"],["mat-button","","matSuffix","",1,"search-button",3,"click","ngClass","disabled"],[1,"button-label"],["class","inline-mat-spinner","mode","indeterminate",4,"ngIf"],[1,"button-text"],[1,"faqs-container",3,"ngClass"],["class","no-search-result",4,"ngIf"],["class","topics",4,"ngIf"],["multi","",4,"ngIf"],["class","loading-faqs-details",4,"ngIf"],[1,"contact-us"],["mode","indeterminate",1,"inline-mat-spinner"],[1,"no-search-result"],["color","warning"],[1,"topics"],["class","topic","matRipple","",3,"ngClass","scrollAnimate","click",4,"ngFor","ngForOf"],["matRipple","",1,"topic",3,"click","ngClass","scrollAnimate"],[1,"topic-image"],[3,"src","alt"],[1,"topic-title",3,"innerHTML"],["multi",""],[3,"expanded","scrollAnimate",4,"ngFor","ngForOf"],[3,"expanded","scrollAnimate"],[3,"innerHTML"],[1,"loading-faqs-details"]],template:function(n,t){if(n&1){let o=b();l(0,"pau-breadcrumb",1),c(1,"section",2)(2,"mat-form-field",3)(3,"mat-icon",4),m(4,"search"),s(),c(5,"mat-label"),m(6,"Search Frequently Asked Question"),s(),c(7,"input",5,0),O("keydown.enter",function(){return C(o),P(t.onSearch())}),s(),c(9,"button",6),O("click",function(){return C(o),P(t.onSearch())}),c(10,"div",7),u(11,te,1,0,"mat-progress-spinner",8),c(12,"span",9),m(13),s()()()()(),c(14,"main")(15,"article",10),u(16,ee,10,1,"section",11)(17,ie,2,1,"header",12)(18,ae,2,1,"mat-accordion",13)(19,ce,2,1,"section",14),s(),c(20,"article",15),l(2
11,"pau-contact-us-form"),s()()}n&2&&(a("pageBanner",t.pageBanner)("customTitle",t.title),r(),a("ngClass",_(13,Xt,t.routeParams.faq)),r(6),a("formControl",t.search),r(2),a("ngClass",_(15,Yt,t.searching))("disabled",t.processing),r(2),a("ngIf",t.searching),r(2),y(t.searching?"Searching":"Search"),r(2),a("ngClass",_(17,Xt,t.routeParams.faq)),r(),a("ngIf",!t.searching&&t.searchResult&&!t.subTopics.length),r(),a("ngIf",!t.searching&&!t.subTopics.length||!t.searchResult||!t.search.value),r(),a("ngIf",!t.processing&&!t.searching&&t.subTopics.length),r(),a("ngIf",t.processing))},dependencies:[I,A,k,F,Jt,Nt,Q,K,X,Y,Z,W,L,H,V,pt,lt,mt,j,z,gt,dt,ft,ht,ut,Ct,Pt,xt,wt,yt,Ot,vt,bt,St,G,U,_t,Mt,st,at,rt,ct,qt,Tt,D,Ft,It,Rt,Et,Qt,B,$,At,Dt,$t,Bt,N,zt,jt,Ht,Vt,kt,Lt,Wt,ot,tt,et,it,Gt],styles:[".search-field[_ngcontent-%COMP%]{position:relative;z-index:1;top:-123px;display:flex;flex-direction:column;justify-content:center;align-content:center;align-items:center}.search-field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:520px;height:70px;font-size:14px}.search-field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   .search-button[_ngcontent-%COMP%]{background-color:var(--primary-color);border-radius:40px;min-width:90px;font-size:11px;font-weight:600;margin-right:-5px}.search-field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   .loading-more[_ngcontent-%COMP%]{background-color:#fff!important;min-width:fit-content!important;padding:0 16px 0 3px;border:1px solid #9c9c9c;border:1px solid var(--primary-color)}.search-field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   .loading-more[_ngcontent-%COMP%]   .button-label[_ngcontent-%COMP%]{display:flex;opacity:80%;align-items:center;justify-content:center;gap:10px}main[_ngcontent-%COMP%]{position:relative;margin-top:-70px;background-color:var(--offwhite-background-color)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{width:var(--second-maximum-page-width);margin:auto;display:flex;flex-direction:column;gap:60px;padding:80px 0 70px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:20px;overflow-x:auto;overflow-y:hidden}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]{width:215px;height:170px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background-color:#fff;transition:background-color .33s ease-in-out;cursor:pointer}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-image[_ngcontent-%COMP%]{width:60px;height:60px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]{font-family:var(--headings-custom-font);font-size:11px;font-weight:400;margin:10px 0 0;line-height:20px;padding:10px 15px;text-align:center;letter-spacing:var(--headings-letter-spacing)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]:hover{background-color:var(--primary-color)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .selected-topic[_ngcontent-%COMP%]{background-color:var(--primary-color)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   mark[_ngcontent-%COMP%]{background-color:#ffeb3b;padding:0 2px;border-radius:3px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .loading-faqs-details[_ngcontent-%COMP%]{height:200px;display:flex;flex-direction:row;align-items:center;justify-content:center}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .no-search-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;align-items:center}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .no-search-result[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:60px!important;height:60px!important;background-color:#fdbe1636;border-radius:6px;font-size:30px!important;color:#fdbe16}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .no-search-result[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text-color);text-align:center;letter-spacing:var(--content-letter-spacing);font-size:var(--text-font-size);padding:0;margin:15px 0;line-height:var(--text-line-height)}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]{padding:70px 0 60px;display:grid}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]   .to
1pics[_ngcontent-%COMP%]{grid-row:2}main[_ngcontent-%COMP%]   .contact-us[_ngcontent-%COMP%]{background-color:#fff;width:100%}main[_ngcontent-%COMP%]   .contact-us[_ngcontent-%COMP%]   pau-contact-us-form[_ngcontent-%COMP%]{width:var(--second-maximum-page-width);margin:auto;display:flex;flex-direction:column;gap:60px;padding:70px 0}@media (max-width: 1190px){.search-field[_ngcontent-%COMP%]{top:-105px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{width:calc(100% - 80px);padding:60px 0}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]{padding:40px 0}main[_ngcontent-%COMP%]   .contact-us[_ngcontent-%COMP%]   pau-contact-us-form[_ngcontent-%COMP%]{width:calc(100% - 80px);padding:60px 0}}@media (max-width: 950px){.search-field[_ngcontent-%COMP%]{top:0;background-color:var(--offwhite-background-color);padding:40px 0 20px}.search-field.route-param-search-result[_ngcontent-%COMP%]{padding:40px 0 20px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{padding:70px 0;gap:40px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]{width:calc(100vw - 80px);overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:0 40px 10px 0;margin-bottom:-10px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]{flex:0 0 auto;width:180px;scroll-snap-align:start}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]{padding:50px 0 40px;margin-top:22px}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]{width:calc(100vw - 80px)}}@media (max-width: 640px){.search-field[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:calc(100vw - 40px)}.search-field.route-param-search-result[_ngcontent-%COMP%]{padding:30px 0 10px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{width:calc(100% - 40px)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]{width:calc(100vw - 40px)}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]{height:140px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]{width:calc(100vw - 40px)}main[_ngcontent-%COMP%]   .contact-us[_ngcontent-%COMP%]   pau-contact-us-form[_ngcontent-%COMP%]{width:calc(100% - 40px)}}@media (max-width: 560px){.search-field[_ngcontent-%COMP%]{padding:40px 0 20px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{gap:40px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]{width:150px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]{margin:5px 0 0;padding:10px 0}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]{padding:40px 0;margin-top:30px}}@media (max-width: 460px){main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]{gap:20px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]{width:140px;height:130px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-image[_ngcontent-%COMP%]{width:50px;height:50px}main[_ngcontent-%COMP%]   article.faqs-container[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]   .topic[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]{padding:2px 0}main[_ngcontent-%COMP%]   article.route-param-search-result[_ngcontent-%COMP%]{padding:40px 0}}"]})}}return i})();export{Mn as FAQsComponent};

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.