PageSourceSearch

https://www.flexi-med.sk/_nuxt/Ckw7s_8j.js

js flexi-med.sk collected 2026-10-07 14:05:27 UTC 4,050 bytes, 1 lines download raw bytes

1import{d as w,e as S,c as i,o as s,F as m,f as q,a as r,g as l,w as p,h as j,i as D,t as c,j as T,k as g,l as z,m as E,r as L,n as R,p as V,q as h,s as F,v as y,x as k}from"#entry";import{_ as P}from"./BWv90oxP.js";import{_ as I}from"./4m_Wtg8Q.js";import{u as O}from"./BBKA1yFb.js";import"./C_bDG9El.js";import"./DhGDRvXl.js";import"./CPKfJadx.js";const H={class:"flex flex-row border-b-[1px] text-left gap-4"},U={class:"xl:basis-2/3 sm:basis-2/3 basis-full"},Z={class:"text-primary font-extrabold text-[clamp(20px,2.2vw,22px)]"},G={class:"text-gray-500 text-[13px] mb-1"},J={class:"text-[clamp(15px,1.9vw,16px)] leading-snug"},K={class:"md:text-end"},M=w({__name:"BlogArticleCard",props:{loading:{type:Boolean,default:!1},slug:{type:String,required:!0},title:{type:String,required:!0},date:{type:String,required:!0},text:{type:String},image:{type:Object,required:!0},alt:{type:String,default:""}},setup(e){const{t:_}=S();return(t,o)=>{const u=j,n=D;return s(),i("li",H,[e.loading?(s(),i(m,{key:0},[o[0]||(o[0]=q('<div class="basis-1/3 bg-gray-200 h-48 animate-pulse"></div><div class="xl:basis-2/3 sm:basis-2/3 basis-full"><div class="h-6 bg-gray-200 rounded w-3/4 mb-2 animate-pulse"></div><div class="h-4 bg-gray-200 rounded w-1/4 mb-4 animate-pulse"></div><div class="h-4 bg-gray-200 rounded w-full mb-2 animate-pulse"></div><div class="h-4 bg-gray-200 rounded w-full mb-2 animate-pulse"></div><div class="h-4 bg-gray-200 rounded w-3/4 mb-4 animate-pulse"></div><div class="h-10 bg-gray-200 rounded w-1/4 animate-pulse"></div></div>',2))],64)):(s(),i(m,{key:1},[r(n,{to:`/blog/${e.slug}`,class:"basis-1/3 cursor-pointer max-sm:hidden"},{default:p(()=>[r(u,{src:e.image.big,format:"webp",alt:e.image.alt||e.alt,loading:"lazy",class:"w-full",densities:"x1"},null,8,["src","alt"])]),_:1},8,["to"]),l("div",U,[r(n,{to:`/blog/${e.slug}`},{default:p(()=>
1[l("h2",Z,c(e.title),1)]),_:1},8,["to"]),l("p",G,c(e.date),1),l("p",J,c(e.text),1),l("div",K,[r(n,{to:`/blog/${e.slug}`,class:"inline-block py-1 px-4 text-[16px] bg-primary hover:contrast-150 duration-300 text-white rounded my-2"},{default:p(()=>[T(c(g(_)("READ_FULL_ARTICLE")),1)]),_:1},8,["to"])])])],64))])}}}),Q=Object.assign(M,{__name:"BlogArticleCard"}),W={class:"container max-w-[1500px] xl:flex sm:flex block flex-row text-left py-18 gap-12"},X={class:"basis-3/4 flex flex-col gap-8"},Y={class:"font-bold text-[clamp(24px,_3vw,_34px)] text-primary"},ee={class:"flex flex-col gap-6"},te={key:2},ae={class:"basis-1/4"},de=w({__name:"index",setup(e){const t=z().public.website,o={cz:{pageTitle:`Blog | ${t.productName}`,metaDescription:`Na blogu ${t.productName} si přečtete spoustu zajímavých článků.`,h1:"Blog",noArticles:"Žádné články tu zatím nejsou"},sk:{pageTitle:`Blog | ${t.productName}`,metaDescription:`Na blogu ${t.productName} si prečítate množstvo zaujímavých článkov.`,h1:"Blog",noArticles:"Zatiaľ tu nie sú žiadne články"}};E({title:o[t.lang].pageTitle,meta:[{name:"description",content:o[t.lang].metaDescription}]});const u=R(),n=L(Number(u.query.page)||1),{blogService:$}=O(),{data:x,status:N,error:b}=$.getArticles({page:n,limit:12}),B=k(()=>x.value?.pagesCount??1),d=k(()=>x.value?.items??[]);return V(()=>u.query.page,v=>{n.value=Number(v)||1},{immediate:!0}),b.value&&console.error("Error fetching articles:",b.value),(v,se)=>{const f=Q,C=P,A=I;return s(),i("div",W,[l("div",X,[l("h1",Y,c(o[g(t).lang].h1),1),l("ul",ee,[g(N)==="pending"?(s(),i(m,{key:0},y(12,a=>r(f,{key:`loading-${a}`,alt:"",image:{big:"",small:"",thumbnail:""},loading:!0,date:"",slug:"",text:"",title:""})),64)):d.value.length>0?(s(!0),i(m,{key:1},y(d.value,a=>(s(),h(f,{key:a.slug,alt:a.title,date:a.publishedAt,image:a.image,loading:!1,slug:a.slug,text:a.lead??"",title:a.title},null,8,["alt","date","image","slug","text","title"]))),128)):(s(),i("p",te,c(o[g(t).lang].noArticles),1))]),d.value&&d.value.length>0?(s(),h(C,{key:0,"current-page":n.value,"total-pages":B.value},null,8,["current-page","total-pages"])):F("",!0)]),l("div",ae,[r(A)])])}}});export{de 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.