1import{_ as V}from"./B47freKx.js";import{d as T,_ as M}from"./CGQCiG8I.js";import{_ as S}from"./D0vEMF1N.js";import{c as D,_ as N}from"./DI00T0ea.js";import{a as L,P as $,N as A,S as O}from"./BEhs4APM.js";import{d as R,ap as K,l as n,m as a,z as l,q as m,v,j as I,D as d,c as q,y as i,F as k,a3 as E,x as c,A as p,a5 as b}from"./e-t0kx40.js";import"./Cru0sa3T.js";import"./CSKFKSpS.js";import"./AREPTzaU.js";import"./BwRmkhRh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d87a9b05-ced3-4e8e-8211-55803fa3a7b2",e._sentryDebugIdIdentifier="sentry-dbid-d87a9b05-ced3-4e8e-8211-55803fa3a7b2")}catch{}})();const F={class:"swiper-box relative mb-5 text-left"},G=["innerHTML"],H={class:"relative mx-2 flex h-full flex-col gap-y-6 overflow-hidden rounded-md bg-white shadow-md md:mx-0"},U={key:0,class:"aspect-h-9 aspect-w-16 relative"},W={key:0,class:"bg-primary absolute bottom-0 left-0 line-clamp-1 rounded-tr-md px-3 py-1 text-[12px] font-bold text-white uppercase"},Y={class:"flex h-full flex-col items-start justify-start gap-5 px-6 pb-8"},Z={class:"line-clamp-2 w-full text-start text-[14px] font-bold md:text-left md:text-[18px]"},J={key:0,class:"line-clamp-2 text-sm font-normal md:mt-3"},Q={class:"relative mt-auto flex w-full flex-col justify-between sm:flex-row sm:items-center"},X={key:0,class:"pt-10 text-center"},ee=R({__name:"Blog",props:{postIds:{default:()=>[]},staticPosts:{default:()=>[]},order:{default:()=>[]},youtubeVideoIds:{default:()=>[]},heading:{default:"Przeczytaj artykuÅy w <strong><a href='https://www.alab.pl/centrum-wiedzy' target='_blank' rel='noopener noreferrer'>Centrum Wiedzy</a></strong>"},headingClass:{default:"pr-24 text-left text-[18px] lg:text-[36px]"},swiperClass:{default:"relative -mx-10! mt-6 sm:-mx-3! md:-mx-0! md:mt-12 xl:mx-0"},ctaText:{default:""},category:{type:Boolean,default:!0},description:{type:Boolean,default:!0},readMoreUrl:{default:"https://www.alab.pl/centrum-wiedzy"},readMoreText:{default:"Zobacz wszystkie artykuÅy"},showReadMoreButton:{type:Boolean,default:!0}},async setup(e){let r,y;const o=e,B={768:{slidesPerView:2.15,slidesPerGroup:2,centeredSlides:!1},1024:{slidesPerView:3.15,slidesPerGroup:3,centeredSlides:!1}},g=t=>t.youtubeId?t.youtubeId:typeof t.id<"u"?t.id:t.customId??t.url,P=[...o.postIds].sort((t,u)=>t-u).join("-"),j=[...o.youtubeVideoIds].sort().join("-"),z=o.postIds.length>0||o.youtubeVideoIds.length>0,{data:C}=([r,y]=K(()=>T(`lp-blog-${P}-${j}`,()=>z?$fetch("/api/blog/lp-posts",{query:{ids:o.postIds.join(","),youtubeIds:o.youtubeVideoIds.join(",")}}):Promise.resolve([]),{default:()=>[]})),r=await r,y(),r),w=q(()=>{const u=[...C.value??[],...o.staticPosts];return o.order.length===0?u:[...u].sort((h,f)=>{const _=o.order.indexOf(g(h)),x=o.order.indexOf(g(f));return(_===-1?1/0:_)-(x===-1?1/0:x)})});return(t,u)=>{const h=V,f=M,_=S,x=D;return a(),n(k,null,[l("div",F,[l("h2",{class:I(e.headingClass),innerHTML:e.heading},null,10,G),d(w).length>0?(a(),v(d(O),{key:0,class:I(e.swiperClass),pagination:{clickable:!0},"slides-per-view":1.15,"slides-per-group":1,"space-between":20,breakpoints:B,"centered-slides":!0,modules:[d($),d(A)],navigation:!0},{default:i(()=>[(a(!0),n(k,null,E(d(w),s=>(a(),v(d(L),{key:g(s),class:"p-1"},{default:i(()=>[l("article",H,[s.featured_image_url?(a(),n("div",U,[c(h,{src:s.featured_image_url,alt:s.title,width:"768",height:"513",class:"object-cover"},null,8,["src","alt"]),e.category&&s.categories?(a(),n("div",W,p(s.categories),1)):m("",!0)])):m("",!0),l("div",Y,[l("p",Z,[c(f,{to:s.url,target:"_blank",rel:"noopener noreferrer",external:""},{default:i(()=>[b(p(s.title),1)]),_:2},1032,["to"])]),e.description&&s.short_description?(a(),n("p",J,p(s.short_description),1)):m("",!0),l("div",Q,[c(f,{to:s.url,target:"_blank",rel:"noopener noreferrer",class:"nowrap flex items-center justify-center gap-1 text-sm font-[600] hover:underline",external:""},{default:i(()=>[b(p(e.ctaText||t.$t("homepage.learn_more"))+" ",1),c(_,{class:"size-3"})]),_:1},8,["to"])])])])]),_:2},1024))),128))]),_:1},8,["class","modules"])):m("",!0)]),e.showReadMoreButton?(a(),n("div",X,[c(f,{to:e.readMoreUrl,target:"_blank"},{default:i(()=>[c(x,{theme:"white",class:"bg-white"},{default:i(()=>[b(p(e.readMoreText),1)]),_:1})]),_:1},8,["to"])])):m("",!0)],64)}}}),ue=Object.assign(N(ee,[["__scopeId","data-v-91610987"]]),{__name:"LpBlog"});export{ue 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.