1import{L as O,az as F,aA as H,c as W,ae as Y,Z as w,B as q,q as n,s as g,t as i,Q as b,o as a,z as k,R as A,as as L,S as E,al as P,ac as T,ag as N,af as $,i as d,at as z,M as G,ad as K,aG as j,m,n as t,p as h,bf as J,J as M,a6 as Q}from"./AD6TCemB.js";import{C as U}from"./DSPVUcQf.js";import{A as Z}from"./D8rUavB6.js";import{u as X}from"./BiRkbko4.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};u.SENTRY_RELEASE={id:"1.0.130"};var p=new u.Error().stack;p&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[p]="04e9d2d2-6e47-4038-8fdc-bf4f527dc6d8",u._sentryDebugIdIdentifier="sentry-dbid-04e9d2d2-6e47-4038-8fdc-bf4f527dc6d8")}catch{}})();const x={"data-page-name":"blog"},ee={class:"hero"},te={class:"wrapper"},ae={class:"previews"},se={class:"wrapper"},re={key:0,class:"cards"},le={class:"intro"},oe={key:1,class:"cards"},ie=2,ne=O({__name:"index",setup(u){F(e=>({v110d97ec:B}));const p=H("primary-simple"),B=`url('${p}')`,{t:f}=W(),v=Y(),y=e=>{switch(e){case M.BUSINESS:return f(h.BUSINESS.i18nKey);case M.TECHNICAL:return f(h.TECHNICAL.i18nKey);default:return}},{data:o}=w({operation:"BlogArticleFeatured",options:{transform:e=>t(e,"featured.data[0]")||t(e,"latest.data[0]")}}),C=m(()=>t(o.value,"id")),{data:V}=w({operation:"LatestBlogArticlesByCategory",variables:{exclude:m(()=>d(C.value)?[C.value]:[])}}),D=e=>{const s=t(e,"slug"),r=t(e,"categories[0].slug"),l=y(r),_=t(e,"authors",[]).map(S=>t(S,"data.name")).filter(S=>d(S)),c=d(s)?v(`${h.BLOG.path}${s}`):null;return{title:t(e,"data.title"),image:{src:t(e,"data.data.preview_picture_url"),alt:t(e,"data.title")},previewTimeToRead:t(e,"data.data.preview_time_to_read"),categorySlug:r,categoryTitle:l,authors:_,link:c,buttonProps:{label:f("Read_the_Blog"),target:"_blank"}}},R=m(()=>{if(k(o.value))return null;const e=t(o.value,"slug"),s=t(o.value,"categories[0].slug"),r=y(s),l=t(o.value,"authors",[]).map(c=>t(c,"data.name")).filter(c=>d(c)),_=d(e)?v(`${h.BLOG.path}${e}`):null;return{title:t(o.value,"data.title"),image:{src:t(o.value,"data.data.preview_picture_url"),alt:t(o.value,"data.title")},publishAt:t(o.value,"publish_at"),previewTimeToRead:t(o.value,"data.data.preview_time_to_read"),link:_,categorySlug:s,categoryTitle:r,authors:l,description:t(o.value,"data.preview"),buttonProps:{label:f("Read_the_Blog"),target:"_blank"}}}),I=m(()=>Object.values(V.value||{}).flatMap(e=>(e.data||[]).map(s=>{const r=t(s,"categories[0].slug");return{id:s.id,category:{title:y(r),slug:d(r)?r.startsWith("/")?r:`/${r}`:void 0},cardProps:D(J(s,["publish_at"]))}})));return X("blog"),q({link:[{rel:"preload",as:"image",href:p,fetchpriority:"high"}]}),(e,s)=>{const r=z;return n(),g("div",x,[i("section",ee,[s[0]||(s[0]=i("div",{class:"background"},[i("div",{class:"gradient"}),i("div",{class:"pattern"})],-1)),i("div",te,[i("h1",null,b(e.$t("Blog")),1),("isEmpty"in e?e.isEmpty:a(k))(a(R))?E("",!0):(n(),A(a(Z).PreviewFeaturedGuides,L({key:0},a(R),{"featured-label":e.$t("Featured_Article"),accent:"purple"}),null,16,["featured-label"]))])]),i("section",ae,[i("div",se,[P(j,{name:"fade"},{default:T(()=>[("isEmpty"in e?e.isEmpty:a(k))(a(I))?(n(),g("ul",oe,[(n(),g(N,null,$(ie,l=>i("li",{key:l},[P(a(U).ResourceSkeleton)])),64))])):(n(),g("ul",re,[(n(!0),g(N,null,$(a(I),({category:l,id:_,cardProps:c})=>(n(),g("li",{key:_},[i("div",le,[("isString"in e?e.isString:a(d))(l.title)&&("isString"in e?e.isString:a(d))(l.slug)?(n(),A(r,{key:0,to:l.slug,class:"category-title"},{default:T(()=>[G(b(l.title),1)]),_:2},1032,["to"])):E("",!0),("isString"in e?e.isString:a(d))(l.slug)?(n(),A(a(K).Card,{key:1,to:a(v)(l.slug),theme:"dark",tag:"app-link","trailing-icon":"arrow-right"},{default:T(()=>[G(b(e.$t("View_All")),1)]),_:1},8,["to"])):E("",!0)]),P(a(U).Resource,L({ref_for:!0},c),null,16)]))),128))]))]),_:1})])])])}}}),pe=Q(ne,[["__scopeId","data-v-6a41f49e"]]);export{pe as default};
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.