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{q as i,Y as n,r as c,c as u,D as p,E as f,G as d,I as v,bB as g,v as b,t as m,H as C,A as w,u as y,K as j}from"./vendor-core-Di0OO4oJ.js";import{u as k}from"./index-CY1ySRal.js";import{d as O}from"./logo-FOw116fm.js";const h=["src","alt"],x=i((_=((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}),B={__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=g(),o=k(),s=c(!1),r=u(()=>Boolean(a.clickable&&a.to)),i=u(()=>r.value?"RouterLink":"div"),x=u(()=>!s.value&&o.siteLogo?o.siteLogo:O),_=u(()=>x.value===O),B=u(()=>_.value?a.fallbackLogoClass:a.logoClass),L=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)=>(b(),p(v(i.value),{to:r.value?e.to:void 0,class:d(S.value),onClick:P},{default:f(()=>[e.glowClass?(b(),m("div",{key:0,class:d(e.glowClass)},null,2)):C("",!0),w("img",{src:x.value,alt:y(o).siteName||"Logo",class:d(B.value),onError:E},null,42,h),L.value?(b(),m("span",{key:1,class:d(e.titleClass)},j(y(o).siteName),3)):C("",!0)]),_:1},8,["to","class"]))}},a(_,l(B))));var _,B;export{x as _};
