PageSourceSearch

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

js pau.go.ug collected 2026-10-02 18:39:23 UTC 7,907 bytes, 1 lines download raw bytes

1import{a as j}from"./chunk-FFQJWCDH.js";import{a as z}from"./chunk-VQ5YTHOU.js";import{b as A,e as T,h as E,i as R}from"./chunk-5OAI2AGD.js";import{Fa as I}from"./chunk-M47B3HJQ.js";import{Sa as F,a as w,k as S}from"./chunk-4N2ITM72.js";import{$a as P,Bb as o,E as h,Kb as s,Lb as c,Mb as l,Tb as f,Uc as x,Vb as C,Wc as v,Yc as b,a as m,bd as y,cc as d,gb as a,hb as r,jc as M,mc as O,na as u,zb as _}from"./chunk-EK3NUCT5.js";import"./chunk-YHOLSLLF.js";var k=n=>({"use-pdf-list-height":n});function H(n,B){if(n&1&&(s(0,"section",4),l(1,"h2",5)(2,"pau-pdf-reader",6),c()),n&2){let e=C();o("scrollAnimate",400),a(),o("innerHTML",e.selectedFile.title,P),a(),o("ngClass",O(4,k,e.totalPdfs>=10))("src",e.selectedFile.url)}}function L(n,B){n&1&&(s(0,"section",7)(1,"div",8),l(2,"img",9),c(),s(3,"h2",8),d(4,"No Policies Available"),c(),s(5,"p",8),d(6," Currently, there are no policies uploaded. Please check back later for updates. "),c()()),n&2&&(a(),o("scrollAnimate",100),a(2),o("scrollAnimate",200),a(2),o("scrollAnimate",400))}var et=(()=>{class n{constructor(e,t,i,g,p,D){this.service=e,this.endpoints=t,this.http=i,this.activatedRoute=g,this.seoService=p,this.location=D,this.processing=!0,this.httpSubscription=new m,this.pageBanner="",this.url="/resources/policies",this.endpoint=this.endpoints.policies,this.selectedFile={title:"",url:"",file_size:"",slug:"",date_published:new Date},this.totalPdfs=0,this.routeSub=new m,this.routeParam=null}ngOnInit(){this.routeSub=this.activatedRoute.paramMap.subscribe(e=>{this.routeParam=e.get("policy")}),this.activatedRoute.data.subscribe(e=>{let t=e.seo;t&&this.seoService.updateMeta(t.title,t.description,t.image,t.url,t.keywords)})}ngAfterViewInit(){setTimeout(()=>{this.onFetch()})}onFetch(){let e=`${this.endpoints.pageImages}slug=policies-page&_fields=acf.image&per_page=1`;this.processing=!0,this.service.loading.next(this.processing),this.httpSubscription=this.http.get(e).pipe(h(t=>(this.processing=!1,this.service.loading.next(this.processing),this.service.determineErrorResponse(t),[]))).subscribe({next:t=>{Array.isArray(t)&&t.length>0&&(this.pageBanner=this.service.getCMSMediaProxy(t[0]?.acf?.image)),this.processing=!1,this.service.loading.next(this.processing)},error:t=>{this.processing=!1,this.service.loading.next(this.processing),this.service.determineErrorResponse(t)}})}onSelectedFile(e){this.selectedFile=e,this.location.replaceState(`/publications/policies/${this.selectedFile.slug}`),this.service.isBrowser()&&window.innerWidth<=950&&setTimeout(()=>{this.service.scrollToPdfReader()});let t=`/publications/policies/${this.selectedFile.slug}`;this.service.triggerPrerender(t)}ngOnDestroy(){this.httpSubscription&&this.httpSubscription.unsubscribe(),this.processing=!1}static{this.\u0275fac=function(t){return new(t||n)(r(F),r(I),r(w),r(S),r(R),r(x))}}static{this.\u0275cmp=u({type:n,selectors:[["pau-policies"]],standalone:!0,features:[M],decls:6,vars:7,consts:[[3,"pageBanner","customTitle"],[3,"totalPdfs","selectedFile","url","endpoint","routeParam"],["class","main-section",3,"scrollAnimate",4,"ngIf"],["class","no-items-found",4,"ngIf"],[1,"main-section",3,"scrollAnimate"],[3,"innerHTML"],["id","pdf-reader",3,"ngClass","src"],[1,"no-items-found"],[3,"scrollAnimate"],["src","/assets/images/empty-folder.png","alt","empty folder"]],template:function(t,i){t&1&&(l(0,"pau-breadcrumb",0),s(1,"main")(2,"article")(3,"pau-pdf-list",1),f("totalPdfs",function(p){return i.totalPdfs=p})("selectedFile",function(p){return i.onSelectedFile(p)}),c(),_(4,H,3,6,"section",2)(5,L,7,3,"section",3),c()()),t&2&&(o("pageBanner",i.pageBanner)("customTitle",i.selectedFile.title),a(3),o("url",i.url)("endpoint",i.endpoint)("routeParam",i.routeParam),a(),o("ngIf",i.totalPdfs),a(),o("ngIf",!i.totalPdfs&&!i.processing))},dependencies:[y,v,b,E,A,z,j,T],styles:["main[_ngcontent-%COMP%]{position:relative;padding:60px 0 70px;width:calc(100% - 140px);margin:auto}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{display:grid;grid-template-columns:270px auto;gap:60px}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:var(--headings-custom-font);margin:0;line-height:25px;letter-spacing:var(--headings-letter-spacing);z-index:1;position:relative;text-align:left;grid-column:span 2}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:400}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:16px;font-weight:700;text-transform:uppercase;margin:0 0 12px}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:40px;border:1px solid}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:50px;position:relative;height:900px;height:1326px;min-height:1000px}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   .use-pdf-list-height[_ngcontent-%COMP%]{height:calc(100% - 37px)}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;align-items:center;grid-column:1/-1;margin-top:-50px;padding:40px 0}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_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[_ngcontent-%COMP%]   .no-items-found[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:150px;height:fit-content}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:-15px 0 -25px;text-align:center}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_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 0;line-height:var(--text-line-height);width:360px}@media (max-width: 1190px){main[_ngcontent-%COMP%]{width:calc(100% - 80px)}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{gap:40px}}@media (max-width: 950px){main[_ngcontent-%COMP%]{padding:40px 0 60px}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{gap:50px;grid-template-columns:auto}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{min-height:unset;height:900px!important}}@media (max-width: 768px){main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{height:745px!important}}@media (max-width: 640px){main[_ngcontent-%COMP%]{width:calc(100% - 40px);padding:20px 0 40px}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]{gap:40px;grid-template-columns:auto}}@media (max-width: 560px){main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{height:642px!important}}@media (max-width: 460px){main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{height:527px!important}}@media (max-width: 390px){main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .main-section[_ngcontent-%COMP%]   pau-pdf-reader[_ngcontent-%COMP%]{height:469px!important}main[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]   .no-items-found[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding:0 10px;width:100%}}"]})}}return n})();export{et as PoliciesComponent};

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.