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,v as g,t as b,H as m,A as C,u as w,K as y,by as j}from"./vendor-core-DQkwEQyE.js";import{u as k}from"./index-DOwSoTEN.js";import{d as O}from"./logo-5brww2_a.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}),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=j(),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),L=u(()=>_.value?a.fallbackLogoClass:a.logoClass),S=u(()=>{var e,l;return a.forceShowTitle||"1"===String(null!=(l=null==(e=o.siteConfig)?void 0:e.site_logo_title_enabled)?l:"1")}),B=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)=>(g(),p(v(i.value),{to:r.value?e.to:void 0,class:d(B.value),onClick:P},{default:f(()=>[e.glowClass?(g(),b("div",{key:0,class:d(e.glowClass)},null,2)):m("",!0),C("img",{src:x.value,alt:w(o).siteName||"Logo",class:d(L.value),onError:E},null,42,h),S.value?(g(),b("span",{key:1,class:d(e.titleClass)},y(w(o).siteName),3)):m("",!0)]),_:1},8,["to","class"]))}},a(_,l(L))));var _,L;export{x as _};
