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{t as i,Z as n,r as c,c as u,E as p,F as f,H as d,J as v,v as g,I as b,B as m,u as C,L as w,bA as y,x as j}from"./vendor-core-B-NFAs71.js";import{u as k}from"./index-BhVZTysP.js";import{d as O}from"./logo--FEzwJyf.js";const x=["src","alt"],h=i((L=((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=n(),t=y(),o=k(),s=c(!1),r=u(()=>Boolean(a.clickable&&a.to)),i=u(()=>r.value?"RouterLink":"div"),h=u(()=>!s.value&&o.siteLogo?o.siteLogo:O),L=u(()=>h.value===O),_=u(()=>L.value?a.fallbackLogoClass:a.logoClass),B=u(()=>{var e,l;return a.forceShowTitle||"1"===String(null!=(l=null==(e=o.siteConfig)?void 0:e.site_logo_title_enabled)?l:"1")}),S=u(()=>["relative inline-flex items-center",a.gapClass,a.clickable?"cursor-pointer select-none":"",a.wrapperClass,l.class]),P=()=>{a.clickable&&a.to&&!r.value&&t.push(a.to)},E=()=>{s.value=!0};return(a,l)=>(j(),p(v(i.value),{to:r.value?e.to:void 0,class:d(S.value),onClick:P},{default:f(()=>[e.glowClass?(j(),g("div",{key:0,class:d(e.glowClass)},null,2)):b("",!0),m("img",{src:h.value,alt:C(o).siteName||"Logo",class:d(_.value),onError:E},null,42,x),B.value?(j(),g("span",{key:1,class:d(e.titleClass)},w(C(o).siteName),3)):b("",!0)]),_:1},8,["to","class"]))}},a(L,l(_))));var L,_;export{h as _};
