PageSourceSearch

https://gcore.com/chunk-ZXKQEELA.js

js gcore.com collected 2026-09-24 08:29:15 UTC 10,662 bytes, 2 lines download raw bytes

1import{a as me,b as pe}from"./chunk-AIKRY6KR.js";import{a as de}from"./chunk-L3IOHOIN.js";import{a as le,b as A}from"./chunk-TEDCDKPV.js";import"./chunk-RZVKQPQT.js";import"./chunk-KETPFOFP.js";import"./chunk-QGHS3H3B.js";import"./chunk-OBTBY6WX.js";import"./chunk-JQY7SDL4.js";import{a as se}from"./chunk-KPYHIJ2X.js";import{a as ce}from"./chunk-SFMLZ7XM.js";import"./chunk-VPC3ZTDO.js";import"./chunk-P7IO2MAN.js";import"./chunk-AWC63SYU.js";import"./chunk-XE5YZCGL.js";import"./chunk-U2R3PQKV.js";import{a as ae}from"./chunk-33U7CWH6.js";import"./chunk-HZ4C2I5A.js";import"./chunk-UOITRGZK.js";import{a as te,b as ie}from"./chunk-2TL7DSS6.js";import"./chunk-V5ZGPBJ2.js";import"./chunk-W6CTV5QR.js";import{a as X,c as ne,x as oe}from"./chunk-QJR3TNSK.js";import{o as Z,q as ee}from"./chunk-ORHRSOOZ.js";import"./chunk-DBVLANSY.js";import"./chunk-HNJ6M6TB.js";import"./chunk-YFQ7JV6D.js";import{k as re}from"./chunk-QTFKSNAC.js";import"./chunk-W4XBYBVE.js";import{C as K,j as W,n as Y,s as G,t as J,y as S}from"./chunk-5BWIBOEJ.js";import{$b as s,D as I,Db as H,Dc as q,Ea as $,Ec as z,Qa as D,Tb as h,Ub as j,Uc as b,Vb as _,Wb as y,X as R,Xb as T,Yb as g,Zb as u,_b as c,ac as l,ad as x,bc as m,bd as M,dd as Q,g as O,gb as N,h as B,ha as p,jc as P,nb as a,nc as w,o as F,pc as r,q as E,qa as f,r as V,ra as C,vd as U}from"./chunk-TWWR6OUJ.js";import{a as v,b as L}from"./chunk-ZRJ5ZCFR.js";var _e=n=>({"gc-archive-hero-item":n});function ue(n,t){if(n&1&&m(0,"gc-button",14),n&2){let e=t.$implicit;c("config",e)}}function ve(n,t){if(n&1&&(s(0,"div",5),g(1,ue,1,1,"gc-button",14,y),l()),n&2){let e=r();a(),u(e.headerLinks)}}function fe(n,t){if(n&1&&m(0,"gcore-tab-list",8),n&2){let e=r(),i=r();c("currentTab",i.currentNavTab)("tabs",e.navMenuTabs)("isLinks",!0)("noLine",!0)("size","sm")}}function Ce(n,t){if(n&1&&m(0,"gcore-tab-list",8),n&2){let e=r(),i=r();c("currentTab",i.currentNavTab)("tabs",e.navBlogTabs)("isLinks",!0)("noLine",!0)("size","sm")}}function xe(n,t){if(n&1){let e=P();s(0,"gcore-filter-select",15),w("selectionChange",function(o){f(e);let d=r(2);return C(d.filterPosts(o.name,o.value))}),l()}if(n&2){let e=t.$implicit,i=r(),o=r();c("filter",e)("isRight",!!i.navMenuBlog)("activeValue",o.activeFilters[e.name??""]||null)}}function ye(n,t){if(n&1&&(s(0,"div",16),m(1,"gcore-no-result",18),l()),n&2){let e=r(2);a(),c("data",e.noResult)}}function Te(n,t){if(n&1&&(s(0,"div",19),m(1,"gc-article-card",20),l()),n&2){let e=t.$implicit,i=t.$index,o=r(4);c("ngClass",b(5,_e,o.featuredPost&&i===0)),a(),c("isBig",o.featuredPost&&i===0)("isPriority",i===0)("content",e)("state",o.resourcesState)}}function Pe(n,t){if(n&1&&(s(0,"div",12),g(1,Te,2,7,"div",19,T),x(3,"slice"),l()),n&2){let e=r(3);a(),u(Q(3,0,e.archivePosts,0,e.cardAmount))}}function we(n,t){if(n&1){let e=P();h(0,ye,2,1,"div",16),h(1,Pe,4,4,"div",12),s(2,"gcore-load-more",17),w("showMoreEvent",function(o){f(e);let d=r(2);return C(d.showMore(o))})("showLessEvent",function(o){f(e);let d=r(2);return C(d.showMore(o))}),l()}if(n&2){let e=r(),i=r();_(i.archivePosts!=null&&i.archivePosts.length?-1:0),a(),_(i.archivePosts!=null&&i.archivePosts.length?1:-1),a(),c("maxValue",i.archivePosts.length)("startValue",i.startValue)("step",e.showMore.showMoreStep)("showMoreButtonText",e.showMore.showMoreButtonText)("showLessButtonText",e.showMore.showLessButtonText)("showMoreText",e.showMore.showMoreText)}}function be(n,t){if(n&1&&(s(0,"div",19),m(1,"gc-article-card",21),l()),n&2){let e=t.$implicit,i=t.$index,o=r(3);c("ngClass",b(4,_e,o.featuredPost&&i===0)),a(),c("isBig",o.featuredPost&&i===0)("content",e)("state","pending")}}function Me(n,t){if(n&1&&(s(0,"div",12),g(1,be,2,6,"div",19,y),l()),n&2){let e=r(2);a(),u(e.skeletonCards)}}function Se(n,t){if(n&1&&(s(0,"section",0)(1,"div",1)(2,"div",2)(3,"h1",3),q(4),l(),m(5,"p",4),h(6,ve,3,0,"div",5),l()(),s(7,"div",6)(8,"div",7),h(9,fe,1,5,"gcore-tab-list",8),h(10,Ce,1,5,"gcore-tab-list",8),s(11,"div",9),g(12,xe,1,3,"gcore-filter-select",10,T),l()(),s(14,"div",11),h(15,we,3,8),x(16,"async"),j(17,Me,3,0,"div",12),l()()(),m(18,"gcore-cta-section",13)),n&2){let e=t,i=r();a(4),z(e.pageTitle),a(),c("innerHTML",e.pageDescription,N),a(),_(e.headerLinks&&e.headerLinks.length>0?6:-1),a(3),_(e.navMenu?9:-1),a(),_(e.navMenuBlog?10:-1),a(2),u(e.filters),a(3),_(M(16,7,i.posts$)?15:i.isHydration?-1:17),a(3),c("content",e.joinSection)}}var he=class k{constructor(){this.resourcesState="pending",this.activeFilters={},this.collectionPosts=[],this.archivePosts=[],this.cardDate=!0,this.cardType=!1,this.cardReadTime=!1,this.featuredPost=!0,this.readText="",this.ICONS_COLLECTION=re,this.strapiService=p(oe),this.seoService=p(ne),this.route=p(Z),this.router=p(ee),this.cd=p(U),this.platformId=p(D),this.pendingTasks=p($),this.isHydration=!1,this.skeletonCards=Array(10).fill({headline:"",description:""})}showMore(t){this.cardAmount=t}ngOnInit(){this.isHydration=typeof document<"u"&&!!document.querySelector("[ngh]"),this.currentNavTab=this.route.
1snapshot.url[0]?.path??"",this.route.queryParams.subscribe(t=>{this.activeFilters=Object.fromEntries(Object.entries(t).filter(e=>!e[0].startsWith("utm"))),this.collectionPosts.length>0&&this.applyPosts()}),this.content$=this.getPageContent(),this.posts$=this.getPosts()}filterPosts(t,e){this.activeFilters[t]=e,this.updateQueryParams(),(e==null||e==="")&&delete this.activeFilters[t],this.applyPosts()}applyPosts(){if(!this.collectionPosts||!Array.isArray(this.collectionPosts)||this.collectionPosts.length===0){this.archivePosts=[],this.cd.markForCheck();return}this.archivePosts=this.collectionPosts.filter(t=>{if(!t)return!1;if(Object.keys(this.activeFilters).length===0)return!0;let e=Array.isArray(t.filter)?t.filter:[],i=Object.values(this.activeFilters).filter(o=>o&&o!=="");return i.length===0?!0:i.every(o=>e.includes(o))}).map(t=>{let e={headline:t.pageTitle,description:t.pageText,media:t.featuredImage,linkUrl:t.link?t.link:`/${this.route.snapshot.routeConfig?.path??""}/${t.route}`};if(this.cardDate&&(e.date=t.customPublishDate,e.startDate=t.startDate,e.endDate=t.endD
1ate,e.additional=t.address),this.cardType&&this.filters&&this.filters.length>0){let i=this.filters.find(o=>o.name!=null&&["Type","Typ"].includes(o.name));if(i&&Array.isArray(t.filter)){let o=t.filter.map(d=>i.options?.find(ge=>ge.value===d)).find(d=>d!==void 0);o&&(e.label=o.label)}}return this.cardReadTime&&(e.reading=this.cardReadTime,e.readText=this.readText),e}),this.cd.markForCheck()}updateQueryParams(){let t=v({},this.activeFilters);this.router.navigate([],{relativeTo:this.route,queryParams:t,queryParamsHandling:"merge"})}getPageContent(){return V([this.strapiService.getPageFromCollection("archive-pages",this.route.snapshot.routeConfig?.path??""),this.strapiService.getSingleContentType("blog-page","blogPage")]).pipe(ie(this),E(([t,e])=>(this.seoService.setMetaInfo(t.metaData),this.featuredPost=t.featuredPost,this.cardDate=t.cardDate,this.cardType=t.cardType,this.cardReadTime=t.cardReadTime,this.readText=e.readText??"",this.filters=t.filters,!S(this.platformId)&&window.innerWidth<1176?this.startValue=e.showMore.showCardItems:this.startValue=t.featuredPost?e.showMore.showCardItems+1:e.showMore.showCardItems,this.resourcesState="loaded",this.cd.markForCheck(),L(v(v({},t),e),{navBlogTabs:e.navBlog?.map(i=>({value:i.url,label:i.text})),navMenuTabs:e.nav?.map(i=>({value:i.url,label:i.text}))}))),I(t=>(console.error(t),O)))}getPosts(){return this.strapiService.getCollectionType(A(this.route.snapshot.routeConfig?.path??""),"archive",this.getRequestParam
1s()).pipe(R(t=>{t&&Array.isArray(t)?this.collectionPosts=t.filter(Boolean):this.collectionPosts=[],this.applyPosts()}))}getRequestParams(){let t=new K().set("sort[0]","customPublishDate:desc");return X.preview!=="preview"&&(t=t.set("filters[publishedAt][$notNull]","true")),S(this.platformId)&&(this.pendingTasks.run(()=>F(this.strapiService.getCollectionType(A(this.route.snapshot.routeConfig?.path??""),"archive",t))),t=t.set("pagination[page]","1").set("pagination[pageSize]","13")),t}static{this.\u0275fac=function(e){return new(e||k)}}static{this.\u0275cmp=H({type:k,selectors:[["gcore-archive"]],decls:2,vars:3,consts:[[1,"gc-pt_16","gc-pb_24","gc-pt-md_12","gc-archive-section"],[1,"gc-container","gc-container_grid"],[1,"gc-text-align_center","gc-grid-col_3","gc-grid-col-span_8","gc-grid-col-sm_full"],[1,"gc-hero-title_lg","gc-text_primary"],[1,"gc-mt_4","gc-paragraph_lg","gc-text_secondary",3,"innerHTML"],[1,"gc-mt_6","gc-display_inline-flex","gc-gap_2"],[1,"gc-mt_16","gc-mt-md_12"],[1,"gc-container","gc-flex","gc-justify_between","gc-align-items_end","gc-flex_wrap"],[1,"gc-mr_2",3,"currentTab","tabs","isLinks","noLine","size"],[1,"gc-mb_4","gc-flex","gc-gap_2"],[3,"filter","isRight","activeValue"],[1,"gc-border-top_primary"],[1,"gc-container","gc-container_grid","gc-pt_12"],[3,"content"],[3,"config"],[3,"selectionChange","filter","isRight","activeValue"],[1,"gc-container","gc-pt_12"],[3,"showMoreEvent","showLessEvent","maxValue","startValue","step","showMoreButtonText","showLessButtonText","showMoreText"],[3,"data"],[1,"gc-mb_16","gc-mb-md_12","gc-grid-col-span_4",3,"ngClass"],[3,"isBig","isPriority","content","state"],[3,"isBig","content","state"]],template:function(e,i){if(e&1&&(h(0,Se,19,9),x(1,"async")),e&2){let o;_((o=M(1,1,i.content$))?0:-1,o)}},dependencies:[J,W,se,le,ce,me,pe,ae,de,Y,G],styles:['.gc-archive-section[_ngcontent-%COMP%]{margin-top:4.75rem}@media(max-width:1175px){.gc-archive-section[_ngcontent-%COMP%]{margin-top:3.75rem}}@media(max-width:599px){.gc-archive-section[_ngcontent-%COMP%]{margin-top:3.563rem}}.gc-archive-hero-item[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media(max-width:1175px){.gc-archive-hero-item[_ngcontent-%COMP%]{grid-column-end:span 4}}.gc-archive-active-link[_ngcontent-%COMP%]{position:relative;color:#150c18}.gc-archive-active-link[_ngcontent-%COMP%]:after{content:"";display:block;width:100%;height:.25rem;background:#ff4c00;position:absolute;bottom:-1.25rem;left:0}@media(max-width:799px){.gc-archive-active-link[_ngcontent-%COMP%]:after{display:none}}@media(max-width:799px){.gc-archive-nav[_ngcontent-%COMP%]{position:relative;z-index:2}.gc-archive-nav-list[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1;background-color:#fff;width:calc(100vw - 3rem);border:1px solid #cccccc;border-radius:.75rem;padding:.5rem 0rem;margin-top:.5rem}.gc-archive-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:.5rem 1rem}.gc-archive-nav_open[_ngcontent-%COMP%]   .gc-archive-nav-list[_ngcontent-%COMP%]{display:block}}'],changeDetection:0})}};he=B([te()],he);export{he as ArchiveComponent};
2//# sourceMappingURL=chunk-ZXKQEELA.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.