PageSourceSearch

https://gventure.net/chunk-2HCJHI5N.js

js gventure.net collected 2026-10-09 01:40:23 UTC 6,674 bytes, 1 lines download raw bytes

1import{a as O}from"./chunk-4O7E22FO.js";import{a as E}from"./chunk-O5DPHFDO.js";import{a as F}from"./chunk-E5E4RHRY.js";import"./chunk-RUH7ZOET.js";import{b as k,c as I,l as T,q as P}from"./chunk-ZEFZKZO5.js";import{j as B,k as M,q as S}from"./chunk-LCU56ZIS.js";import{$a as _,Ab as r,Bb as g,Ib as y,Ka as x,Lb as w,Nb as m,Qa as o,T as u,Va as p,Xb as s,Y as h,Z as b,Zb as f,dc as v,eb as c,sc as C,yb as l,zb as a}from"./chunk-L4YEUFMX.js";var j=i=>["/blogs",i];function R(i,t){i&1&&g(0,"app-loader")}function V(i,t){i&1&&(a(0,"div",13),s(1," Failed to load blogs. Please try again. "),r())}function z(i,t){if(i&1&&(a(0,"div",18)(1,"div",19)(2,"a",20),g(3,"img",21),a(4,"span",22),s(5),r()(),a(6,"div",23)(7,"h4",24)(8,"a",25),s(9),r()(),a(10,"div",26)(11,"div",27),g(12,"i",28),s(13),r()()()()()),i&2){let e=t.$implicit;o(2),l("routerLink",v(7,j,e.slug)),o(),l("src",e.image,x)("alt",e.title),o(2),f(" ",e.category," "),o(3),l("routerLink",v(9,j,e.slug)),o(),f(" ",e.title," "),o(4),f(" ",e.date," ")}}function D(i,t){i&1&&(a(0,"span"),s(1,"Load More"),r())}function A(i,t){i&1&&(a(0,"span"),s(1,"Loading..."),r())}function N(i,t){if(i&1){let e=y();a(0,"div",29)(1,"button",30),w("click",function(){h(e);let d=m(2);return b(d.loadMore())}),c(2,D,2,0,"span",10)(3,A,2,0,"span",10),r()()}if(i&2){let e=m(2);o(),l("disabled",e.loadingMore),o(),l("ngIf",!e.loadingMore),o(),l("ngIf",e.loadingMore)}}function U(i,t){if(i&1&&(a(0,"div",14)(1,"div",15),c(2,z,14,11,"div",16),r(),c(3,N,4,3,"div",17),r()),i&2){let e=m();o(2),l("ngForOf",e.blogs)("ngForTrackBy",e.trackByBlog),o(),l("ngIf",e.currentPage<e.lastPage)}}var L=class i{constructor(t,e,n){this.blogService=t;this.titleService=e;this.metaService=n}blogs=[];categories=[];loading=!0;error=!1;currentPage=1;lastPage=1;selectedCategory=null;loadingMore=!1;cdr=u(C);viewRefresh=u(E);ngOnInit(){this.loadBlogs(),this.loadCategories(),this.setDefaultMetaTags()}ngAfterViewInit(){this.viewRefresh.refresh(this.cdr)}loadBlogs(t=1){t===1?(this.loading=!0,this.error=!1,this.blogs=[]):this.loadingMore=!0,this.blogService.getBlogs(t,this.selectedCategory||void 0).subscribe({next:e=>{t===1?(this.blogs=e.blogs,this.updateMetaTags(e.metaTags)):this.blogs=[...this.blogs,...e.blogs],this.currentPage=e.pagination.current_page,this.lastPage=e.pagination.last_page,this.loading=!1,this.loadingMore=!1,this.viewRefresh.refresh(this.cdr)},error:e=>{console.error("Error loading blogs:",e),this.error=!0,this.loading=!1,this.loadingMore=!1,this.viewRefresh.refresh(this.cdr)}})}loadCategories(){this.blogService.getCategories().subscribe({next:t=>{this.categories=t,this.viewRefresh.refresh(this.cdr)},error:t=>{console.error("Error loading categories:",t)}})}loadMore(){this.currentPage<this.lastPage&&!this.loadingMore&&this.loadBlogs(this.currentPage+1)}filterByCategory(t){this.selectedCategory!==t&&(this.selectedCategory=t,this.currentPage=1,this.loadBlogs())}getPopularTags(){let e=this.blogs.reduce((n,d)=>n.concat(d.tags||[]),[]).reduce((n,d)=>(n[d]=(n[d]||0)+1,n),{});return Object.entries(e).sort(([,n],[,d])=>d-n).slice(0,10).map(([n])=>n)}getAuthorInitials(t){return t.author?t.author.split(" ").map(e=>e[0]).join("").toUpperCase():"AU"}trackByBlog(t,e){return e?.slug??t.toString()}setDefaultMetaTags(){this.titleService.setTitle("Blog - Latest Insights & News"),this.metaService.updateTag({name:"description",content:"Stay updated with the latest trends in business communication and technology through our expert insights and industry analysis."})}updateMetaTags(t){t&&t.forEach(e=>{e.name==="title"?this.titleService.setTitle(e.content):e.name?this.metaService.updateTag({name:e.name,content:e.content}):e.property&&this.metaService.updateTag({property:e.property,content:e.content})})}static \u0275fac=function(e){return new(e||i)(p(F),p(I),p(k))};static \u0275cmp=_({type:i,selectors:[["app-blogs"]],decls:19,vars:3,consts:[[1,"breadcrumb-section","position-relative","fix"],[1,"container"],[1,"bread-content","text-center"],[1,"d-flex","align-items-center","gap-3","justify-content-center"],["href","/",1,"p3-clr"],[1,"p3-clr"],[1,"white"],[1,"white","visible_from_right"],["src","assets/img/element/bread-ele.png","alt","img","loading","lazy",1,"bread-ele"],[1,"blog-section","fix","section-padding"],[4,"ngIf"],["class","text-center text-danger my-5",4,"ngIf"],["class","news-wrapper",4,"ngIf"],[1,"text-center","text-danger","my-5"],[1,"news-wrapper"],[1,"row","justify-content-center","g-4"],["class","col-xl-4 col-md-6  ","data-wow-delay",".3s",4,"ngFor","ngForOf","ngForTrackBy"],["class","text-center mt-4",4,"ngIf"],["data-wow-delay",".3s",1,"col-xl-4","col-md-6"],[1,"news-single-items","rounded-3","p-xxl-2","p-1","border","overflow-hidden","style1"],[1,"news-image","position-relative","d-block","rounded-3","overflow-hidden",3,"routerLink"],["loading","lazy",1,"rounded-3","overflow-hidden",3,"src","alt"],[1,"m-lg-3","m-sm-2","m-1","trns","blog-badge1","position-absolute","top-0","start-0","z-1","fw_500","bg-white","d-inline-block","py-xl-2","py-1","px-3","rounded-5","text-uppercase","fs-eight","black"],[1,"news-content"],[1,"news-title","mb-xxl-4","mb-3","pb-xxl-1"],[1,"black",3,"routerLink"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","gap-1","pra","fs-eight","heading-font"],[1,"fas","fa-clock","black"],[1,"text-center","mt-4"],[1,"btn","btn-dark","px-4","py-2","rounded-pill",3,"click","disabled"]],template:function(e,n){e&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"ul",3)(4,"li")(5,"a",4),s(6,"Home"),r()(),a(7,"li",5),s(8,"/"),r(),a(9,"li",6),s(10,"Our blog"),r()(),a(11,"h1",7),s(12,"Our blog"),r()()(),g(13,"img",8),r(),a(14,"section",9)(15,"div",1),c(16,R,1,0,"app-loader",10)(17,V,2,0,"div",11)(18,U,4,3,"div",12),r()()),e&2&&(o(16),l("ngIf",n.loading),o(),l("ngIf",n.error&&!n.loading),o(),l("ngIf",!n.loading&&!n.error))},dependencies:[T,P,S,B,M,O],styles:[".breadcrumb-section[_ngcontent-%COMP%]{margin-top:88px!important}.breadcrumb-section[_ngcontent-%COMP%]{background:url(/assets/img/banner/blog.webp) no-repeat center center;background-size:cover;z-index:1}@media (max-width: 768px){.breadcrumb-section[_ngcontent-%COMP%]{margin-top:68px!important}}.news-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.news-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}.news-title[_ngcontent-%COMP%]{line-height:1.5;min-height:3rem}.news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-word;text-decoration:none}"]})};export{L as BlogsComponent};

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.