import{_ as d}from"./x56Fih9j.js";import{q as i,L as p,f,c as o,B as u,x as _,h as l,t as r,o as s}from"#entry";const w={key:1,class:"overflow-word line-clamp-3 text-[#7c7c7c]"},k=i({__name:"PostContent",props:{data:{},raw:{type:Boolean,default:!1},maxLength:{default:1/0}},setup(t){const{locale:c}=p(),e=t,a=f(()=>e.data.translations.find(n=>n.language===c.value));return(n,m)=>(s(),o("div",{class:u(["w-full",[t.raw?"":"px-1/7"]])},[t.raw?(s(),o("p",w,r(l(a)?.content?.replace(/!\[[^\]]*\]\([^)]+\)/g,"【图片】").replace(/&(nbsp|ensp|emsp|thinsp|zwnj|zwj|lrm|rlm);/g,"").replace(/<[^>]*>/g,"").slice(0,e.maxLength)),1)):(s(),_(d,{key:0,text:l(a)?.content?.slice(0,e.maxLength)??"",class:"w-full"},null,8,["text"]))],2))}}),x={key:0,class:"overflow-word text-8 text-center leading-10 font-bold px-1/7"},g={key:1,class:"overflow-word text-lg font-bold line-clamp-2"},v=i({__name:"PostTitle",props:{data:{},raw:{type:Boolean}},setup(t){const c=t,{locale:e}=p(),a=f(()=>c.data.translations.find(n=>n.language===e.value));return(n,m)=>t.raw?(s(),o("p",g,r(l(a)?.title),1)):(s(),o("p",x,r(l(a)?.title),1))}});export{v as _,k as a};
