const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CzNZtZgx.js","./BHEH7-GF.js","./Cpj98o6Y.js","./BB85OXyg.js","./entry.CfOSwN-U.css","./RTCSF0Ks.js","./BgQ5eU58.js","./BKDgfSxC.js","./Cp3UUybv.js","./VAvatar.DHLh8HRY.css","./R1_j74h_.js","./VCard.D1bvc1mZ.css","./C8MHOe0D.js","./VAlert.B4odjCGM.css","./C2L9cD_h.js","./DmHQoNBb.js","./CEoxYnb5.js","./BbcaTmac.js","./BPHK4Dzs.js","./autofocus.aiCfQF2L.css","./D_qxKlPu.js","./VoZA954X.js","./VSpacer.izdAGX-2.css","./FollowMe.B3owixX1.css"])))=>i.map(i=>d[i]);
import{au as P,bL as N,c9 as $,ca as D,cz as O,cy as H,cK as U,cw as R,a3 as l,bo as I,U as A,bm as x,bZ as W,bO as z,cg as Z,bI as M,bc as G,bb as T,b8 as K,b2 as j,a_ as E,aZ as Q,c3 as w,O as p,cQ as X,W as S,ce as Y,b0 as q,aa as J,cG as ee,cm as ae,cR as te,ch as se,bB as c,X as _,cS as s,aV as oe,c7 as u,Z as L,bR as k,V as y,a2 as b,c0 as g,F as B,bi as le,Y as F,cV as re,cE as ne,a9 as ue,v as ie}from"#entry";import{m as me,b as ce,u as de}from"./DdzWzrAH.js";import{r as fe,b as _e,d as be,c as ge,a as he}from"./7nzMR1a0.js";import{V as ve}from"./B22rgjjN.js";import{V as ye}from"./CFrOycco.js";import{V as pe}from"./VoZA954X.js";const Ve=M({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Q(),...E(),...j(),...me(),...K(),...T({tag:"footer"}),...G()},"VFooter"),Ce=P()({name:"VFooter",props:Ve(),setup(e,n){let{slots:i}=n;const r=z(),{themeClasses:f}=N(e),{backgroundColorClasses:d,backgroundColorStyles:m}=$(()=>e.color),{borderClasses:h}=D(e),{elevationClasses:V}=Z(e),{roundedClasses:t}=O(e),o=W(32),{resizeRef:C}=H(v=>{v.length&&(o.value=v[0].target.clientHeight)}),a=p(()=>e.height==="auto"?o.value:parseInt(e.height,10));return U(()=>e.app,()=>{const v=ce({id:e.name,order:p(()=>parseInt(e.order,10)),position:w(()=>"bottom"),layoutSize:a,elementSize:p(()=>e.height==="auto"?void 0:a.value),active:w(()=>e.app),absolute:w(()=>e.absolute)});X(()=>{r.value=v.layoutItemStyles.value})}),R(()=>l(e.tag,{ref:C,class:x(["v-footer",f.value,d.value,h.value,V.value,t.value,e.class]),style:I([m.value,e.app?r.value:{height:A(e.height)},e.style])},i)),{}}}),we=M({scrollable:Boolean,...E(),...q(),...T({tag:"main"})},"VMain"),ze=P()({name:"VMain",props:we(),setup(e,n){let{slots:i}=n;const{dimensionStyles:r}=Y(e),{mainStyles:f}=de(),{ssrBootStyles:d}=fe();return R(()=>l(e.tag,{class:x(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:I([f.value,d.value,r.value,e.style])},{default:()=>[e.scrollable?S("div",{class:"v-main__scroller"},[i.default?.()]):i.default?.()]})),{}}}),Se=ue(()=>ie(()=>import("./CzNZtZgx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url).then(e=>e.default||e)),Le=["innerHTML"],ke=J({__name:"Footer",async setup(e){let n,i;const r=ee("settings"),f=ne(),{t:d}=ae(),m=z(!1),{data:h}=([n,i]=te(()=>se("/api/ap_actors/trusted",{lazy:!0},"$N2KraaNDgR")),n=await n,i(),n),V=p(()=>r.value.footerLinks?.map(t=>/^https?:\/\//.test(t.href)?{href:t.href,label:t.label.startsWith("common.")?d(t.label):t.label}:{to:t.href,label:t.label.startsWith("common.")?d(t.label):t.label}));return(t,o)=>{const C=Se;return c(),_(Ce,{id:"footer",color:"surface",border:"","aria-label":"Footer",class:"flex-grow-0 py-3 flex-wrap flex-column flex-sm-row"},{default:s(()=>[l(ve,{modelValue:u(m),"onUpdate:modelValue":o[1]||(o[1]=a=>oe(m)?m.value=a:null),"destroy-on-close":"","max-width":"700px",fullscreen:t.$vuetify.display?.mobile},{default:s(()=>[l(C,{"is-dialog":"",onClose:o[0]||(o[0]=a=>m.value=!1)})]),_:1},8,["modelValue","fullscreen"]),(c(!0),L(B,null,k(u(V),a=>(c(),_(y,{key:a?.label,color:"primary",class:"ml-1",href:a?.href,to:a?.to,target:a?.href&&"_blank"},{default:s(()=>[b(g(t.$t(a?.label)),1)]),_:2},1032,["href","to","target"]))),128)),u(r).enable_federation&&u(h)?.length?(c(),_(ye,{key:0,transition:"slide-y-transition"},{activator:s(({props:a})=>[l(y,le({class:"ml-1"},a,{color:"primary"}),{default:s(()=>[b(g(u(r).trusted_sources_label||t.$t("admin.trusted_sources_label_default")),1)]),_:1},16)]),default:s(()=>[l(he,{lines:"two","max-height":"300","max-width":"550"},{default:s(()=>[(c(!0),L(B,null,k(u(h),a=>(c(),_(_e,{key:a.ap_id,lines:"two",target:"_blank",href:a.url??a.ap_id,"prepend-avatar":a.icon},{default:s(()=>[l(be,null,{default:s(()=>[b(g(a.name??a.preferredUsername),1)]),_:2},1024),l(ge,null,{default:s(()=>[S("span",{innerHTML:a?.summary},null,8,Le)]),_:2},1024)]),_:2},1032,["href","prepend-avatar"]))),128))]),_:1})]),_:1})):F("",!0),u(r).enable_federation?(c(),_(y,{key:1,class:"ml-1",color:"primary",rel:"me",onClick:o[2]||(o[2]=re(a=>m.value=!0,["prevent"]))},{default:s(()=>[b(g(t.$t("event.interact_with_me")),1)]),_:1})):F("",!0),l(pe),l(y,{color:"primary",href:"https://gancio.org",target:"_blank",rel:"noopener"},{default:s(()=>[o[3]||(o[3]=b(" Gancio ",-1)),S("small",null,g(u(f).public.version),1)]),_:1})]),_:1})}}}),Me=Object.assign(ke,{__name:"CoreFooter"});export{ze as V,Me as _};
