PageSourceSearch

https://www.buddy.art/_nuxt/lFsox9yS.js

js buddy.art collected 2026-10-08 10:35:52 UTC 3,849 bytes, 1 lines download raw bytes

1import{b as K,a as G,k as H,c as Q}from"./80wMNZgP.js";import{u as W}from"./CXyBWXEb.js";import{av as Z,r as i,v as s,e as ee,C as k,U as v,L as r,D as n,u as e,K as T,y as N,J as O,M as P,N as w,E as te}from"./DKdrIvRS.js";const ae={class:"relative flex items-center justify-center"},oe=["src","width","height","alt"],se={class:"w-full flex flex-col flex-grow"},le={key:0,class:"mt-auto flex flex-col sm:flex-row justify-between items-center text-xl"},ie={__name:"ContentListItem",props:{base:{type:String,default:"/"},mode:{type:String,default:"fancy",validator:g=>["plain","fancy"].includes(g)},post:{type:Object,default:()=>({})},onlyTitle:{type:Boolean,default:!1},fullBackground:{type:Boolean,default:!1}},setup(g,{expose:$}){const _=K(),{t:j}=G({useScope:"global"}),{$DOMPurify:D}=H(),t=g,{onlyTitle:y,fullBackground:u}=Z(t),E=["left","right"],L=["circle","triangle","square"],m=i("left"),d=i("circle"),C=a=>a[Math.floor(Math.random()*a.length)],o=i(""),f=i(""),p=i(""),R=["bg-pink","bg-orange","bg-green","bg-blue","bg-dark-black","bg-white"],M=["text-pink","text-orange","text-green","text-blue","text-dark-black"],h=a=>a[Math.floor(Math.random()*a.length)],I=s(()=>t.mode==="plain"?"bg-white dark:bg-dark-black text-black dark:text-dark-white":o.value==="bg-dark-black"?"bg-white":"bg-dark-black"),V=s(()=>t.mode==="plain"?"":o.value==="bg-dark-black"?"text-dark-black":"text-white"),x=s(()=>t.mode==="plain"?"bg-dark-black dark:bg-white text-dark-white dark:text-black":o.value),S=s(()=>t.mode==="plain"?"":o.value==="bg-white"?"text-dark-black":"text-white"),q=s(()=>t.post?.title||"Default Title"),z=s(()=>t.post?.description?D.sanitize(t.post.description,{USE_PROFILES:{html:!1}}):""),B=s(()=>{const{formatSlug:a}=W(),b=a(t.post.title,t.post.id);return`/${t.base}/${b}`}),c=s(()=>t.post.images&&t.post.images.large?{src:t.post.images.large,caption:t.post.imagecaption,alt:j("common.imageAlt")+" "+t.post.title,width:"",height:""}:!1);$({cardBackgroundClass:x,subtitleColor:S});const X=a=>{const l=a.currentTarget.querySelector(".hover-effect").getBoundingClientRect(),A=a.clientX-(l.left+l.width/2),U=a.clientY-(l.top+l.height/2),F=Math.min(Math.max(A/10,-15),15),J=Math.min(Math.max(U/10,-15),15);p.value=`transform: translate(${F}px, ${J}px) scale(1.05);`},Y=()=>{p.value="transform: translate(0px, 0px) scale(1);"};return ee(()=>{if(t.mode==="plain")o.value="",f.value="";else if(o.value||(o.value=h(R)),!f.value){let a=h(M);for(;a===o.value.replace("bg-","text-");)a=h(M);f.value=a}m.value=C(E),d.value=C(L)}),(a,b)=>{const l=Q;return v(),k("div",{class:n(["min-h-screen sm:min-h-96 h-auto flex flex-col md:flex-row mb-10",e(u)?e(x):""]),onMousemove:X,onMouseleave:Y},[r("div",{class:n(["flex items-center justify-center mb-4 sm:mb-0 sm:mr-4 sm:order-0 order-0",[e(m)==="right"?"sm:order-1 sm:ml-4":"sm:order-0 sm:mr-4",e(u)&&e(m)==="right"?"pb-10":"",e(u)&&e(m)==="left"?"pt-10 pb-6":""]])},[r("div",ae,[r("div",{class:n(["w-72 sm:w-96 h-72 sm:h-96 overflow-hidden",{"rounded-full":e(d)==="circle","rounded-none":e(d)==="square","clip-triangle":e(d)==="triangle"}])},[e(c).src?(v(),k("img",{key:0,src:e(c).src,width:e(c).width,height:e(c).height,alt:e(c).alt,class:"w-full h-full object-cover"},null,8,oe)):T("",!0)],2)])],2),r("div",{class:n(["flex flex-col grow p-5 hover-effect",e(u)?"":e(x)]),style:te(e(p))},[r("div",se,[r("h3",{class:n(["text-4xl balanced-text mb-4",[e(f),e(y)?"text-center":""]])},[N(l,{to:e(_)(e(B))},{default:O(()=>[P(w(e(q)),1)]),_:1},8,["to"])],2),e(y)?T("",!0):(v(),k("div",le,[r("div",{class:n([e(S),"mb-4 sm:mb-0 sm:mr-4 truncate overflow-hidden whitespace-nowrap w-full sm:max-w-xs"])},w(e(z)),3),N(l,{class:n(["px-6 py-2 w-full sm:w-auto text-center sm:text-right",[e(I),e(V)]]),to:e(_)(e(B))},{default:O(()=>[P(w(a.$t("common.view")),1)]),_:1},8,["class","to"])]))])],6)],34)}}};export{ie 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.