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 v,J as d,bz as g,x as b,v as m,I as C,B as w,u as y,L as j}from"./vendor-core-k7kcNcJz.js";import{u as k}from"./index-BLric5IS.js";import{_ as O}from"./logo-aA1Jln-Z.js";const x=["src","alt"],_=i((h=((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}),L={__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"),_=u(()=>!s.value&&o.siteLogo?o.siteLogo:O),h=u(()=>_.value===O),L=u(()=>h.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)=>(b(),p(d(i.value),{to:r.value?e.to:void 0,class:v(S.value),onClick:P},{default:f(()=>[e.glowClass?(b(),m("div",{key:0,class:v(e.glowClass)},null,2)):C("",!0),w("img",{src:_.value,alt:y(o).siteName||"Logo",class:v(L.value),onError:E},null,42,x),B.value?(b(),m("span",{key:1,class:v(e.titleClass)},j(y(o).siteName),3)):C("",!0)]),_:1},8,["to","class"]))}},a(h,l(L))));var h,L;export{_};
