PageSourceSearch

https://cda.gov.ae/chunk-MA73VVOH.js

js cda.gov.ae collected 2026-10-02 14:31:47 UTC 2,186 bytes, 1 lines download raw bytes

1import{b as o}from"./chunk-C3THZXEI.js";import{a}from"./chunk-GYTGTEVW.js";import{E as C,I as f,M as m,Q as g,Wc as s,Yc as R,m as l,p as i,vc as A,y as p}from"./chunk-RCJKBQY7.js";var U=180*1e3,h=class c{http=g(A);languageService=g(R);bannerCache=new Map;serviceCardsCache=new Map;getSocialResponsibility(){let t=`${a.AppConfig.apiBaseUrl}${s.homeBaseUrl}/social-responsibility`;return this.http.get(t,{transferCache:!1}).pipe(i(n=>{let e=o(n);return!e.isSuccess||!e.result?null:{imageUrl:e.result.imageUrl??e.result.ImageUrl,description:e.result.description??e.result.Description}}),p(()=>l(null)))}getBannerSlides(){return this.getCachedCriticalRequest(this.bannerCache,()=>{let t=`${a.AppConfig.apiBaseUrl}${s.BannerBaseUrl}`;return this.http.get(t,{transferCache:!0}).pipe(i(n=>{let e=o(n);return!e.isSuccess||!Array.isArray(e.result)?null:e.result.map(r=>({title:r.title??"",description:r.description??"",imageUrl:r.imageUrl??null,icon:r.icon??null}))}))})}getServiceCards(){return this.getCachedCriticalRequest(this.serviceCardsCache,()=>{let t=`${a.AppConfig.apiBaseUrl}${s.ServiceCardBaseUrl}`;return this.http.get(t,{transferCache:!0}).pipe(i(n=>{let e=o(n);return!e.isSuccess||!Array.isArray(e.result)?null:e.result.map(r=>({title:r.title??"",description:r.description??"",icon:r.icon??"",imageUrl:r.imageUrl??null,url:r.url??null}))}))})}getContactUs(){let t=`${a.AppConfig.apiBaseUrl}${s.homeBaseUrl}/contact-us`;return this.http.get(t,{transferCache:!1}).pipe(i(n=>{let e=o(n);return!e.isSuccess||!e.result?null:{description:e.result.description??e.result.Description,locations:e.result.locations??e.result.Locations??[],contactMetrics:e.result.contactMetrics??e.result.ContactMetrics??[]}}),p(()=>l(null)))}getCachedCriticalRequest(t,n){let e=(this.languageService.getCurrentLanguage()||"en").trim().toLowerCase(),r=Date.now(),u=t.get(e);if(u&&u.expiresAt>r)return u.request$;t.delete(e);let d=n().pipe(f(v=>{v===null&&t.delete(e)}),p(()=>(t.delete(e),l(null))),C({bufferSize:1,refCount:!1}));return t.set(e,{expiresAt:r+U,request$:d}),d}static \u0275fac=function(n){return new(n||c)};static \u0275prov=m({token:c,factory:c.\u0275fac,providedIn:"root"})};export{h as a};

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.