const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D8Gh0OA3.js","./BHEH7-GF.js","./Cpj98o6Y.js","./BU5priqq.js","./entry.DsW2VUyq.css","./DlybGOWB.js","./DSnRMG2T.js","./BML-0xFj.js","./CIr4U5gS.js","./VAvatar.Dtzk7EwQ.css","./DArAxlee.js","./VCard.BA_BFQVC.css","./C63UuyGC.js","./VAlert.Be7H7OQR.css","./tRJ_cXK7.js","./C1aoz2cp.js","./LWaCnj-p.js","./xGkJbl6f.js","./0VvUL2KS.js","./autofocus.C1B8M5Gk.css","./D_qxKlPu.js","./D1vV9CHW.js","./VSpacer.izdAGX-2.css","./FollowMe.B3owixX1.css"])))=>i.map(i=>d[i]);
import{g as L,b4 as z,aP as E,a as k,c as y,ah as P,n as F,p as B,av as A,o as H,az as R,ao as $,ba as U,ap as W,aD as O,b9 as G,b as n,aF as K,aC as j,a4 as N,aW as J,aw as D,ax as Q,aT as X,bf as q,aH as S,i as C,b6 as Y,aA as Z,au as ee,J as ae,K as te,X as se,M as oe,N as le,E as f,A as v,B as o,a8 as re,S as c,T as x,W as I,V,G as g,Q as h,F as T,l as ne,U as M,a6 as ue,cf as ie,a0 as me,a9 as ce}from"#entry";import{c as de,a as fe,m as _e,u as pe,b as ve}from"./5PSLohek.js";import{u as ge,V as he,c as ye,b as be,a as Ve}from"./DCT0cttX.js";import{V as Ce}from"./DCaOoMt3.js";import{V as we}from"./Cp3W8Jzz.js";import{V as Se}from"./D1vV9CHW.js";const Le=B({...R(),...H(fe(),["fullHeight"]),...A()},"VApp"),De=L()({name:"VApp",props:Le(),setup(e,r){let{slots:u}=r;const s=z(e),{layoutClasses:d,getLayoutItem:m,items:i,layoutRef:_}=de({...e,fullHeight:!0}),{rtlClasses:p}=E();return k(()=>y("div",{ref:_,class:F(["v-application",s.themeClasses.value,d.value,p.value,e.class]),style:P([e.style])},[y("div",{class:"v-application__wrap"},[u.default?.()])])),{getLayoutItem:m,items:i,theme:s}}}),ke=B({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...q(),...R(),...X(),..._e(),...Q(),...D({tag:"footer"}),...A()},"VFooter"),Pe=L()({name:"VFooter",props:ke(),setup(e,r){let{slots:u}=r;const s=N(),{themeClasses:d}=z(e),{backgroundColorClasses:m,backgroundColorStyles:i}=$(()=>e.color),{borderClasses:_}=U(e),{elevationClasses:p}=J(e),{roundedClasses:t}=W(e),l=j(32),{resizeRef:w}=O(b=>{b.length&&(l.value=b[0].target.clientHeight)}),a=C(()=>e.height==="auto"?l.value:parseInt(e.height,10));return G(()=>e.app,()=>{const b=pe({id:e.name,order:C(()=>parseInt(e.order,10)),position:S(()=>"bottom"),layoutSize:a,elementSize:C(()=>e.height==="auto"?void 0:a.value),active:S(()=>e.app),absolute:S(()=>e.absolute)});Y(()=>{s.value=b.layoutItemStyles.value})}),k(()=>n(e.tag,{ref:w,class:F(["v-footer",d.value,m.value,_.value,p.value,t.value,e.class]),style:P([i.value,e.app?s.value:{height:K(e.height)},e.style])},u)),{}}}),Fe=B({scrollable:Boolean,...R(),...ee(),...D({tag:"main"})},"VMain"),Ee=L()({name:"VMain",props:Fe(),setup(e,r){let{slots:u}=r;const{dimensionStyles:s}=Z(e),{mainStyles:d}=ve(),{ssrBootStyles:m}=ge();return k(()=>n(e.tag,{class:F(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:P([d.value,m.value,s.value,e.style])},{default:()=>[e.scrollable?y("div",{class:"v-main__scroller"},[u.default?.()]):u.default?.()]})),{}}}),Be=me(()=>ce(()=>import("./D8Gh0OA3.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)),Re=["innerHTML"],xe=ae({__name:"Footer",async setup(e){let r,u;const s=te("settings"),d=ie(),{t:m}=se(),i=N(!1),{data:_}=([r,u]=oe(()=>le("/api/ap_actors/trusted",{lazy:!0},"$N2KraaNDgR")),r=await r,u(),r),p=C(()=>s.value.footerLinks?.map(t=>/^https?:\/\//.test(t.href)?{href:t.href,label:t.label.startsWith("common.")?m(t.label):t.label}:{to:t.href,label:t.label.startsWith("common.")?m(t.label):t.label}));return(t,l)=>{const w=Be;return f(),v(Pe,{id:"footer",color:"surface",border:"","aria-label":"Footer",class:"flex-grow-0 py-3 flex-wrap flex-column flex-sm-row"},{default:o(()=>[n(Ce,{modelValue:c(i),"onUpdate:modelValue":l[1]||(l[1]=a=>re(i)?i.value=a:null),"destroy-on-close":"","max-width":"700px",fullscreen:t.$vuetify.display?.mobile},{default:o(()=>[n(w,{"is-dialog":"",onClose:l[0]||(l[0]=a=>i.value=!1)})]),_:1},8,["modelValue","fullscreen"]),(f(!0),x(T,null,I(c(p),a=>(f(),v(V,{key:a?.label,color:"primary",class:"ml-1",href:a?.href,to:a?.to,target:a?.href&&"_blank"},{default:o(()=>[g(h(t.$t(a?.label)),1)]),_:2},1032,["href","to","target"]))),128)),c(s).enable_federation&&c(_)?.length?(f(),v(we,{key:0,transition:"slide-y-transition"},{activator:o(({props:a})=>[n(V,ne({class:"ml-1"},a,{color:"primary"}),{default:o(()=>[g(h(c(s).trusted_sources_label||t.$t("admin.trusted_sources_label_default")),1)]),_:1},16)]),default:o(()=>[n(Ve,{lines:"two","max-height":"300","max-width":"550"},{default:o(()=>[(f(!0),x(T,null,I(c(_),a=>(f(),v(he,{key:a.ap_id,lines:"two",target:"_blank",href:a.url??a.ap_id,"prepend-avatar":a.icon},{default:o(()=>[n(ye,null,{default:o(()=>[g(h(a.name??a.preferredUsername),1)]),_:2},1024),n(be,null,{default:o(()=>[y("span",{innerHTML:a?.summary},null,8,Re)]),_:2},1024)]),_:2},1032,["href","prepend-avatar"]))),128))]),_:1})]),_:1})):M("",!0),c(s).enable_federation?(f(),v(V,{key:1,class:"ml-1",color:"primary",rel:"me",onClick:l[2]||(l[2]=ue(a=>i.value=!0,["prevent"]))},{default:o(()=>[g(h(t.$t("event.interact_with_me")),1)]),_:1})):M("",!0),n(Se),n(V,{color:"primary",href:"https://gancio.org",target:"_blank",rel:"noopener"},{default:o(()=>[l[3]||(l[3]=g(" Gancio ",-1)),y("small",null,h(c(d).public.version),1)]),_:1})]),_:1})}}}),He=Object.assign(xe,{__name:"CoreFooter"});export{Ee as V,He as _,De as a};
