PageSourceSearch

https://eloquent-kitsune-91223c.netlify.app/_nuxt/DDffqspg.js

js eloquent-kitsune-91223c.netlify.app collected 2026-10-03 10:42:50 UTC 4,370 bytes, 1 lines download raw bytes

1import{_ as G}from"./Buk9hf-4.js";import{d as H,q as J,D as K,r as D,l as C,K as M,J as Y,p as N,c as d,e as p,b as s,w as f,s as v,u as e,B as b,t as _,G as q,F as U,z as A,m as j,x as O,o as n,g as w}from"./BxdW20Ub.js";import{_ as Q}from"./C-z3kiwg.js";import{_ as W}from"./BHVEpx2M.js";import{_ as X}from"./BN3Pp6T6.js";import{_ as Z}from"./BY4k-5cQ.js";import{t as ee}from"./BTjMOjAX.js";import{u as te}from"./DITm4lyW.js";import{u as ae}from"./DZzL8uY2.js";import{u as oe}from"./CQ2nXzyS.js";import"./DP_pMERM.js";import"./Dwcg0_5Q.js";import"./51z2yfQf.js";const se={class:"container container-lg"},le={key:0,class:"article-featured clickable mb-5"},ne={class:"row align-items-center"},re={class:"col-lg-7"},ie={class:"article-figure"},ce=["src","alt"],ue={class:"col-lg-5 article-featured-description pb-5"},me={class:"article-h1"},de={key:0,class:"article-intro"},_e={class:"container"},ge={class:"blog-wrapper row"},pe={class:"col-lg-3"},fe={class:"blog-sticky-filters"},ve={class:"blog-categories"},he={class:"col-lg-9"},ye={key:0,class:"text-muted"},be={key:1,class:"row"},Fe={__name:"index",async setup($e){let i,h;const{locale:x,t:V,localeProperties:F}=H(),y=J(),B=K(),I=j();te({localeHead:!0,lang:x.value,metas:{title:V("metas_blog_index_title"),description:V("metas_blog_index_description")}});const r=D(B.query.page?parseInt(B.query.page):1),$=D(12),c=D(""),{categories:S}=([i,h]=C(()=>ae(I.public.catidBlog)),i=await i,h(),i),{data:u}=([i,h]=C(()=>oe("blog_articles",()=>$fetch("/api/content",{query:{lang:x.value,categoryId:I.public.catidBlog,size:$.value,page:r.value,q:c.value}}),{watch:[r,c]})),i=await i,h(),i);if(u.value.items.length===0&&r.value>1)throw M({meta:[{name:"robots",hid:"robots",content:"noindex, nofollow"}]}),Y({statusCode:404,statusMessage:"No blog article found"});const L=a=>{const o=new Date(a),g=o.getDate(),m=new Intl.DateTimeFormat(F.value.code,{month:"long"}).format(o),k=o.getFullYear();return`${g} ${m} ${k}`},t=N(()=>{if(r.value===1&&!c.value){const a=u.value.items.find(o=>o.featured);if(a)return a.formatDate=L(a.datePublication),a}return null}),R=N(()=>{if(!u.value||!u.value.items)return[];const a=[...u.value.items],o=a.findIndex(m=>m.featured===!0);if(o===-1||c.value||r.value!==1)return a;const[g]=a.splice(o,1);return a.push(g),a});return(a,o)=>{var P;const g=G,m=O,k=Q,T=W,z=X,E=Z;return n(),d("main",null,[p(g,{centered:""},{default:f(()=>[s("h1",null,_(a.$t("blogTitle")),1),s("p",null,_(a.$t("blogDesc")),1)]),_:1}),s("section",se,[e(r)===1&&((P=e(c))==null?void 0:P.length)===0&&e(t)?(n(),d("article",le,[s("div",ne,[s("div",re,[e(t).imageUrl?(n(),b(m,{key:0,to:e(y)(`/article/${e(t).url}/${e(t).id}`)},{default:f(()=>[s("figure",ie,[s("img",{class:"img-fluid",src:e(t).imageUrl,alt:e(t).title},null,8,ce)])]),_:1},8,["to"])):v("",!0)]),s("div",ue,[o[3]||(o[3]=s("span",{class:"article-featured-badge"},"Featured",-1)),s("h2",me,[p(m,{to:e(y)(`/${e(t).mainCategory.url}/${e(t).url}/${e(t).id}`)},{default:f(()=>[w(_(e(t).title),1)]),_:1},8,["to"])]),e(t).intro?(n(),d("p",de,_(("truncateString"in a?a.truncateString:e(ee))(e(t).intro,300)),1)):v("",!0),e(t).author?(n(),b(k,{key:1,id:e(t).author.id,"given-name":e(t).author.givenName,"family-name":e(t).author.familyName,"image-url":e(t).author.avatarUrl!==""?e(t).author.avatarUrl:"",meta:e(t).formatDate},null,8,["id","given-name","family-name","image-url","meta"])):v("",!0)])])])):v("",!0)]),s("section",_e,[s("div",ge,[s("div",pe,[s("div",fe,[p(T,{modelValue:e(c),"onUpdate:modelValue":[o[0]||(o[0]=l=>q(c)?c.value=l:null),o[1]||(o[1]=l=>r.value=1)]},null,8,["modelValue"]),s("div",ve,[p(m,{to:e(y)("/articles"),class:"blog-category active"},{default:f(()=>[w(_(a.$t("All")),1)]),_:1},8,["to"]),(n(!0),d(U,null,A(e(S),l=>(n(),b(m,{key:l.id,to:e(y)(`/articles/category/${l.url}/${l.id}`),class:"blog-category"},{default:f(()=>[w(_(l.name),1)]),_:2},1032,["to"]))),128))])])]),s("div",he,[e(u).items.length==0?(n(),d("p",ye,_(a.$t("blog_noarticle")),1)):(n(),d("div",be,[(n(!0),d(U,null,A(e(R),l=>(n(),d("div",{key:l.id,class:"col-lg-6 col-xl-4 pb-5"},[p(z,{article:l},null,8,["article"])]))),128))])),e(u).total>e($)?(n(),b(E,{key:2,modelValue:e(r),"onUpdate:modelValue":o[2]||(o[2]=l=>q(r)?r.value=l:null),"items-per-page":e($),"total-items":e(u).total},null,8,["modelValue","items-per-page","total-items"])):v("",!0)])])])])}}};export{Fe 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.