var e=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,r=(a,l,t)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[l]=t;import{u as i}from"./index-WIJVsNja.js";import{d as n}from"./logo-BYTYlt9V.js";import{q as c,Y as u,r as p,c as f,D as v,E as d,G as g,I as b,v as m,t as C,H as w,A as y,u as j,K as k}from"./vendor-core-Nc7YMZCV.js";const O=["src","alt"],h=c((x=((e,a)=>{for(var l in a||(a={}))o.call(a,l)&&r(e,l,a[l]);if(t)for(var l of t(a))s.call(a,l)&&r(e,l,a[l]);return e})({},{name:"SiteBrand",inheritAttrs:!1}),_={__name:"SiteBrand",props:{to:{default:"/"},clickable:{type:Boolean,default:!1},wrapperClass:{default:""},gapClass:{default:"gap-3"},logoClass:{default:"h-9 w-auto max-w-[160px] object-contain"},fallbackLogoClass:{default:"h-9 w-9 rounded object-contain"},titleClass:{default:"font-bold text-lg text-gray-900"},glowClass:{default:""},forceShowTitle:{type:Boolean,default:!1}},setup(e){const a=e,l=u(),t=i(),o=p(!1),s=f(()=>Boolean(a.clickable&&"/"===a.to)),r=f(()=>Boolean(a.clickable&&a.to&&!s.value)),c=f(()=>s.value?"a":r.value?"RouterLink":"div"),h=f(()=>!o.value&&t.siteLogo?t.siteLogo:n),x=f(()=>h.value===n),_=f(()=>x.value?a.fallbackLogoClass:a.logoClass),B=f(()=>{var e,l;return a.forceShowTitle||"1"===String(null!=(l=null==(e=t.siteConfig)?void 0:e.site_logo_title_enabled)?l:"1")}),L=f(()=>["relative inline-flex items-center",a.gapClass,a.clickable?"cursor-pointer select-none":"",a.wrapperClass,l.class]),S=()=>{},P=()=>{o.value=!0};return(a,l)=>(m(),v(b(c.value),{href:s.value?e.to:void 0,to:r.value?e.to:void 0,class:g(L.value),onClick:S},{default:d(()=>[e.glowClass?(m(),C("div",{key:0,class:g(e.glowClass)},null,2)):w("",!0),y("img",{src:h.value,alt:j(t).siteName||"Logo",class:g(_.value),onError:P},null,42,O),B.value?(m(),C("span",{key:1,class:g(e.titleClass)},k(j(t).siteName),3)):w("",!0)]),_:1},8,["href","to","class"]))}},a(x,l(_))));var x,_;export{h as _};
