1import{a as I}from"./chunk-5PT3UO6A.js";import{f as N}from"./chunk-JZ3DYTF3.js";import{c as L,d as S}from"./chunk-AOP547IC.js";import"./chunk-SLLGF37J.js";import"./chunk-M2POFCJJ.js";import{a as m}from"./chunk-33ETZXUA.js";import{o as x}from"./chunk-TSXT5MDW.js";import{p as O}from"./chunk-ZWPYZVPJ.js";import{$b as y,Ab as r,Bb as p,Ma as h,Mb as a,Pa as d,W as l,_b as c,bb as M,fa as _,ma as s,sb as w,tb as u,tc as g,wa as f,wb as P,xb as b,yb as v,zb as i}from"./chunk-GSPIL6H6.js";var D=(n,t)=>t.id;function R(n,t){if(n&1&&(i(0,"div",10),p(1,"img",14),r()),n&2){let e=a().$implicit;d(),v("src",e.featuredImage,h)}}function A(n,t){if(n&1&&(i(0,"span"),c(1),r(),i(2,"span"),c(3," | "),r()),n&2){let e=a(2).$implicit,o=a();d(),y(o.cityNameById()(e==null?null:e.cityId)||o.stateNameById()(e==null?null:e.stateId))}}function E(n,t){if(n&1&&(i(0,"div",13),w(1,A,4,1),i(2,"span"),c(3),r()()),n&2){let e=a().$implicit,o=a();d(),u((e==null?null:e.cityId)!=null||(e==null?null:e.stateId)!=null?1:-1),d(2),y(o.countryNameById()(e==null?null:e.countryId))}}function B(n,t){if(n&1&&(i(0,"a",5)(1,"div",9),w(2,R,2,1,"div",10),i(3,"div",11)(4,"div",12),c(5),r(),w(6,E,4,2,"div",13),r()()()),n&2){let e=t.$implicit,o=a();v("routerLink",o.articleHref(e)),d(2),u((e==null?null:e.featuredImage)!=null?2:-1),d(3),y(e.headline),d(),u((e==null?null:e.stateId)!=null||(e==null?null:e.cityId)!=null||(e==null?null:e.countryId)!=null?6:-1)}}var k=class n{articleHref=S;newsWebService=l(L);geographyService=l(N);destroyRef=l(_);platformId=l(f);newsArticle=s([]);isLoading=s(!1);countriesList=s([]);statesList=s([]);citiesList=s([]);isStateLoaded=s(!1);isCityLoaded=s(!1);isCountryLoaded=s(!1);countryNameById=g(()=>{let t={};for(let e of this.countriesList())t[Number(e.id)]=e.name;return e=>e!=null?t[e]:void 0});stateNameById=g(()=>{let t={};for(let e of this.statesList())t[Number(e.id)]=e.name;return e=>e!=null?t[e]:void 0});cityNameById=g(()=>{let t={};for(let e of this.citiesList())t[Number(e.id)]=e.name;return e=>e!=null?t[e]:void 0});recentlyVisitedArticle=g(()=>this.newsArticle().slice(0,8));ngOnInit(){O(this.platformId)&&(this.loadNewsArticle(),this.loadCountries(),this.loadStates(),this.loadCities())}loadNewsArticle(t=1,e=10){this.isLoading.set(!0);let o={publicationId:2,page:t,pageSize:e};this.newsWebService.listPublished(o).pipe(m(this.destroyRef)).subscribe({next:C=>{this.newsArticle.set(Array.isArray(C)?C:[]),this.isLoading.set(!1)},error:()=>{this.isLoading.set(!1)}})}loadStates(t=101){this.isStateLoaded.set(!0),this.geographyService.getStates(t).pipe(m(this.destroyRef)).subscribe({next:e=>{this.statesList.set(e),this.isStateLoaded.set(!1)},error:()=>{this.isStateLoaded.set(!1)}})}loadCountries(){this.isCountryLoaded.set(!0),this.geographyService.getCountries().pipe(m(this.destroyRef)).subscribe({next:t=>{this.countriesList.set(t),this.isCountryLoaded.set(!1)},error:()=>{this.isCountryLoaded.set(!1)}})}loadCities(t=101){this.isCityLoaded.set(!0),this.geographyService.getCities(t).pipe(m(this.destroyRef)).subscribe({next:e=>{this.citiesList.set(e),this.isCityLoaded.set(!1)},error:()=>{this.isCityLoaded.set(!1)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=M({type:n,selectors:[["app-recently-visited"]],decls:11,vars:0,consts:[[1,"recently-visited-section"],[1,"recently-title"],[1,"recently-divider"],[1,"recent-news-grid"],[1,"recent-grid"],[1,"recent-news-template","pointer",3,"routerLink"],[1,"recent-ad"],["slotKey","recently_visited_sidebar_top","layout","sidebar"],["slotKey","recently_visited_sidebar_bottom","layout","sidebar"],[1,"recent-news"],[1,"recent-new-img-div"],[1,"news-details"],[1,"recent-title"],[1,"recent-location"],["alt","","loading","lazy","decoding","async",1,"recent-image",3,"src"]],template:function(e,o){e&1&&(i(0,"div",0)(1,"div",1),c(2,"\u092A\u093F\u091B\u0932\u0947 \u0926\u0947\u0916\u0947 \u0917\u090F \u0938\u092E\u093E\u091A\u093E\u0930"),r(),p(3,"div",2),i(4,"div",3)(5,"div",4),P(6,B,7,4,"a",5,D),r(),i(8,"div",6),p(9,"app-homepage-ad-slot",7)(10,"app-homepage-ad-slot",8),r()()()),e&2&&(d(6),b(o.recentlyVisitedArticle()))},dependencies:[I,x],styles:[".recently-visited-section[_ngcontent-%COMP%]{width:90.278vw;margin:4.861vw 4.861vw 0}.recently-title[_ngcontent-%COMP%]{width:90.278vw;
1height:2.847vw;font-weight:600;font-size:1.667vw;letter-spacing:0}.recently-divider[_ngcontent-%COMP%]{height:.069vw;background:linear-gradient(to right,#d4a017 0% 16%,#222 16% 22%,#444 22% 100%)}.recent-news-grid[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:3.472vw;margin-top:2.083vw}.recent-news-grid[_ngcontent-%COMP%] .recent-grid[_ngcontent-%COMP%]{display:grid;grid-template-rows:repeat(4,auto);grid-auto-flow:column;row-gap:1.389vw;column-gap:3.472vw;flex:1;min-width:0}.recent-news-grid[_ngcontent-%COMP%] .recent-news-template[_ngcontent-%COMP%]{width:100%;color:inherit;text-decoration:none}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%]{display:flex;width:100%;gap:1.042vw;padding:.347vw 0;align-items:flex-start}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .recent-new-img-div[_ngcontent-%COMP%]{flex-shrink:0;min-width:9.236vw;overflow:hidden}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .recent-new-img-div[_ngcontent-%COMP%] .recent-image[_ngcontent-%COMP%]{display:block;width:9.236vw;height:6.25vw;object-fit:contain}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.347vw;justify-content:center;min-width:0}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%] .recent-title[_ngcontent-%COMP%]{font-weight:600;font-size:1.111vw;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;word-break:break-word;overflow-wrap:anywhere}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%] .recent-location[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:.347vw;font-weight:400;font-size:.833vw;letter-spacing:0;color:#2d2d2d}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%] .recent-location[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 .139vw}.recent-news-grid[_ngcontent-%COMP%] .recent-ad[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.472vw;width:25.694vw;flex-shrink:0}@media(max-width:490px){.recently-visited-section[_ngcontent-%COMP%]{width:100%;height:auto;margin:0;padding:5.128vw 4.103vw}.recently-title[_ngcontent-%COMP%]{width:100%;height:auto;font-size:6.154vw;font-weight:600;padding-bottom:3.077vw}.recently-divider[_ngcontent-%COMP%]{height:.256vw;background:linear-gradient(to right,#d4a017 0% 18%,#d2d2d2 18% 100%)}.recent-news-grid[_ngcontent-%COMP%]{flex-direction:column;margin-top:5.128vw;gap:0}.recent-news-grid[_ngcontent-%COMP%] .recent-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-template-rows:unset;grid-auto-flow:unset;row-gap:0;column-gap:0;gap:0}.recent-news-grid[_ngcontent-%COMP%] .recent-news-template[_ngcontent-%COMP%]{width:100%;padding:2.051vw 0;border-bottom:.256vw solid #e0e0e0}.recent-news-grid[_ngcontent-%COMP%] .recent-news-template[_ngcontent-%COMP%]:last-child{padding-bottom:0;border-bottom:none}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%]{width:100%;padding:0;gap:3.59vw;align-items:flex-start}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .recent-new-img-div[_ngcontent-%COMP%]{min-width:28.205vw;width:28.205vw;flex-shrink:0}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .recent-new-img-div[_ngcontent-%COMP%] .recent-image[_ngcontent-%COMP%]{width:28.205vw;height:18.974vw;object-fit:contain}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%]{flex:1;min-width:0;gap:1.538vw}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%] .recent-title[_ngcontent-%COMP%]{height:auto;font-weight:600;font-size:4.103vw;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-detail
1s[_ngcontent-%COMP%] .recent-location[_ngcontent-%COMP%]{font-size:3.077vw;color:#757575}.recent-news-grid[_ngcontent-%COMP%] .recent-news[_ngcontent-%COMP%] .news-details[_ngcontent-%COMP%] .recent-location[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 .256vw}.recent-news-grid[_ngcontent-%COMP%] .recent-ad[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};export{k as RecentlyVisited};
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.