1import{d as k,O as N,ap as R,r as S,e as s,k as a,n as p,M as o,c as g,N as l,F as x,a4 as f,m as h,y as I,l as t,q as B,z as E,_ as V}from"#entry";import{u as C}from"./D3msEpcE.js";const F={class:"reviews lg:ps-5"},L={key:0,class:"text-28 mb-5 text-grey-700 font-extrabold uppercase lg:-mt-2"},$={key:1},z={class:"w-full"},O={class:"w-full text-grey-700 mt-4"},T={class:"lg:text-[15px] md:text-[14px] text-[15px] leading-snug font-semibold"},W={class:"text-right text-12 italic mt-2"},j={key:2,class:"animate-pulse"},q=k({__name:"BlogReviewSidebar",async setup(A){let n,r;const{reviewService:v}=C(),{t:c}=N(),{data:b,status:i,error:_}=([n,r]=R(()=>v.getReviews({page:S(1),limit:3})),n=await n,r(),n);_.value&&console.error("Failed to fetch reviews:",_.value);const d=g(()=>b.value?.items??[]),u=g(()=>i.value!=="pending"&&d.value.length>0);return(D,m)=>{const y=B,w=E;return a(),s("div",F,[o(u)?(a(),s("h2",L,l(o(c)("REVIEWS")),1)):p("",!0),o(u)?(a(),s("ul",$,[(a(!0),s(x,null,f(o(d),e=>(a(),s("li",{key:e.slug,class:"mb-6 bg-white p-5 rounded-xl"},[h(w,{to:`${o(c)("REVIEWS_URL")}/${e.slug}`,class:"block w-full"},{default:I(()=>[t("div",z,[h(y,{src:e.image?.small,format:"webp",alt:e.image?.alt||e.title,loading:"lazy",class:"w-full h-auto rounded-xl",densities:"x1"},null,8,["src","alt"]),t("div",O,[t("h3",T,' "'+l(e.bigTitle)+'" ',1),t("p",W,l(e.personName)+", "+l(e.personInfo),1)])])]),_:2},1032,["to"])]))),128))])):o(i)==="pending"?(a(),s("div",j,[(a(),s(x,null,f(3,e=>t("div",{key:e,class:"mb-4"},[...m[0]||(m[0]=[t("div",{class:"bg-gray-300 h-32 w-full"},null,-1),t("div",{class:"bg-red-dark h-16 w-full px-3 py-2"},[t("div",{class:"h-4 bg-gray-300 rounded w-3/4 mb-2"}),t("div",{class:"h-3 bg-gray-300 rounded w-1/2 ml-auto"})],-1)])])),64))])):p("",!0)])}}}),G=Object.assign(V(q,[["__scopeId","data-v-edb17f57"]]),{__name:"BlogReviewSidebar"});export{G as _};
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.