1import{a as q,b as Y,c as J,d as K,e as Q}from"./chunk-CXJKUPOL.js";import{a as $}from"./chunk-DI5BH2A2.js";import{a as z}from"./chunk-SEZHGVNJ.js";import"./chunk-TEDCDKPV.js";import"./chunk-RZVKQPQT.js";import"./chunk-KETPFOFP.js";import"./chunk-QGHS3H3B.js";import"./chunk-OIHPRXM3.js";import"./chunk-CYTICSJO.js";import"./chunk-OBTBY6WX.js";import"./chunk-JQY7SDL4.js";import{a as U}from"./chunk-KPYHIJ2X.js";import"./chunk-W42JUUA5.js";import"./chunk-BWUZGX4A.js";import"./chunk-U2R3PQKV.js";import"./chunk-WPQWENR2.js";import"./chunk-33U7CWH6.js";import"./chunk-HZ4C2I5A.js";import"./chunk-UOITRGZK.js";import{a as f,b as G}from"./chunk-LCB4XITO.js";import{a as E,b as H}from"./chunk-2TL7DSS6.js";import"./chunk-V5ZGPBJ2.js";import"./chunk-W6CTV5QR.js";import{c as j,x as R}from"./chunk-QJR3TNSK.js";import{o as O}from"./chunk-ORHRSOOZ.js";import"./chunk-DBVLANSY.js";import"./chunk-HNJ6M6TB.js";import"./chunk-YFQ7JV6D.js";import"./chunk-QTFKSNAC.js";import"./chunk-W4XBYBVE.js";import{n as I,t as N}from"./chunk-5BWIBOEJ.js";import{$b as s,D as x,Db as M,Tb as k,U as P,Vb as A,_b as a,ac as d,ad as B,bc as o,bd as L,g as b,h as v,ha as l,j as y,nb as c,pc as w,q as _,r as T,vd as F}from"./chunk-TWWR6OUJ.js";import{a as n,b as g}from"./chunk-ZRJ5ZCFR.js";function Z(C,t){if(C&1&&(s(0,"section",0),o(1,"gcore-scroll-progress-bar"),s(2,"div",1),o(3,"gcore-breadcrumbs",2),s(4,"div",3),o(5,"gc-article-header-new",4),s(6,"div",5)(7,"div",6),o(8,"gcore-editor-new",7),d(),s(9,"div",8)(10,"div",9),o(11,"gcore-sidebar-toc-new",10),d()()()()(),o(12,"gcore-resources-section",11),d(),o(13,"gcore-cta-section",4)),C&2){let r=t,i=w();c(3),a("items",r.breadcrumbs)("pageTitle",r.pageTitle),c(2),a("content",i.articleHeader),c(3),a("text",r.pageText),c(3),a("shareLink",i.shareLink)("author",r.author)("text",r.pageText)("filter",r.filter),c(),a("content",i.sliderContent)("filter",r.filter)("hiddenArticle",r.route),c(),a("content",r.joinSection)}}var V=class u{constructor(){this.strapiService=l(R),this.seoService=l(j),this.schemaService=l(G),this.route=l(O),this.cd=l(F)}ngOnInit(){this.content$=this.getPageContent(),this.cd.markForCheck()}getPageContent(){return T([this.strapiService.getPageFromCollection("blogs",this.route.snapshot.routeConfig?.path??""),this.strapiService.getSingleContentType("blog-page","blogPage"),this.strapiService.getPageFromCollection("archive-pages","blog")]).pipe(H(this),P(([t,r,i])=>{this.seoService.setMetaInfo(t.metaData,t.featuredImage),this.shareLink=r.shareLink||"",this.sliderContent={source:"blog",sectionConfig:{darkTheme:!1,secondaryTheme:!1,topMargin:"lg",bottomMargin:"none"},variant:"slider-horizontal",headline:r.blogSliderTitle,quantity:6};let m=!!(t.authorName||t.author),W=(Array.isArray(i?.filters)?i.filters:[]).flatMap(e=>Array.isArray(e?.options)?e.options:[]),X=Object.fromEntries(W.filter(e=>typeof e?.value=="string"&&e.value.trim()!=="").map(e=>[String(e.value).trim().toLowerCase(),e.label])),S=(Array.isArray(t?.filter)?t.filter:[]).map(e=>String(e).trim().toLowerCase()).map(e=>[e,X[e]]).filter(([,e])=>!!e);if(m){let e=t.author,p=t.authorName||e?.name||"",h=e?.profile_url||"";return this.setSeo(t,p,h),this.articleHeader={authorName:p,authorText:r.authorText,customPublishDate:t.customPublishDate,pageText:t.pageText,readText:r.readText,featuredImage:t.featuredImage,pageTitle:t.pageTitle,filterLabels:S},y(n(g(n({},t),{author:g(n({},e),{image:e?.image&&Array.isArray(e.image)&&e.image.length>0?e.image[0]:null})}),r))}return this.strapiService.getItemFromCollection("authors","Gcore Team","name").pipe(_(e=>{let p=e?.name||e?.attributes?.name||"Gcore Team",h=e?.profile_url||e?.attributes?.profile_url||"";return this.setSeo(t,p,h),this.articleHeader={authorName:p,customPublishDate:t.customPublishDate,pageText:t.pageText,readText:r.readText,featuredImage:t.featuredImage,pageTitle:t.pageTitle,filterLabels:S},n(g(n({},t),{author:g(n({},e),{image:e?.image&&Array.isArray(e.image)&&e.image.length>0?e.image[0]:null})}),r)}))}),x(t=>(console.error(t),b)))}setSeo(t,r,i){let m=Q({pageData:t,authorName:r,authorProfileUrl:i,section:"Blog"});this.schemaService.setSchemas([{type:f.Company},{type:f.Article,data:m}])}static{this.\u0275fac=function(r){return new(r||u)}}static{this.\u0275cmp=M({type:u,selectors:[["gcore-blog"]],decls:2,vars:3,consts:[[1,"gc-pt_24","gc-pb_24","gc-content-check"],[1,"gc-container"],[3,"items","pageTitle"],[1,"gc-pt_14","gc-pt-md_8"],[3,"content"],[1,"gc-container_grid","gc-mt_14","gc-mt-sm_0"],[1,"gc-grid-col-span_8","gc-grid-col-sm_full","gc-mt-sm_12"],[3,"text"],[1,"gc-grid-col-span_4","gc-grid-col-sm_full","gc-pt-sm_14"],[1,"gc-article-toc"],[3,"shareLink","author","text","filter"],[3,"content","filter","hiddenArticle"]],template:function(r,i){if(r&1&&(k(0,Z,14,12),B(1,"async")),r&2){let m;A((m=L(1,1,i.content$))?0:-1,m)}},dependencies:[N,$,U,z,q,Y,J,K,I],styles:["@media(max-width:799px){.gc-container_grid[_ngcontent-%COMP%] .gc-grid-col-span_8[_ng
1content-%COMP%]{order:2}}.gc-article-toc[_ngcontent-%COMP%]{position:sticky;top:4.5rem}.gc-article-toc-mobile[_ngcontent-%COMP%]{position:sticky;top:6rem;background:#fff;z-index:1}@media(max-width:599px){.gc-article-toc-mobile[_ngcontent-%COMP%]{top:7rem}}"],changeDetection:0})}};V=v([E()],V);export{V as BlogComponent}; 2//# sourceMappingURL=chunk-YWPC3APH.js.map
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.