import{j as d,g as _,k as c,c as b,o as f,w as t,a,l as u,t as p,e as n,b as w,m as V,F as k,f as x}from"./index-CTxlYqj4.js";import{a as v}from"./admin-CjK02gmr.js";import{V as y,a as C,b as N}from"./VCard-DRptUN8Y.js";import{V as T}from"./VDataTable-CYPG0MtF.js";import{p as A}from"./parameters-1TAbI5b7.js";import{V as F,a as $}from"./VToolbar-Cd2iSn8H.js";import{V as B,a as D}from"./VRow-B-csPNw7.js";import"./tag-Dx3OexMp.js";import"./VAvatar-x_79C0tA.js";import"./VProgressCircular-ubzZW5PC.js";import"./VSelect-tV4GZAtn.js";import"./VTextField-CWm47OUI.js";import"./forwardRefs-BSESyuUp.js";import"./ssrBoot-DGgZQEVC.js";import"./VMenu-DTm7W1Hp.js";import"./VCheckboxBtn-xrhfoOlo.js";import"./VSelectionControl-Bdgm37Tl.js";import"./VChip-Def9BYoN.js";import"./VTable-B-HE2nmK.js";import"./filter-DaBUD6Rp.js";/* empty css              */const W=["href"],j={href:"https://modoboa.org/weblog/",target:"_blank"},G={__name:"NewsFeedWidget",async setup(h){let e,o;const r=_([]),s=[{title:"",key:"title"},{title:"",key:"published",align:"end"}],i=([e,o]=c(()=>v.getNewsFeed()),e=await e,o(),e);return r.value=i.data,(l,g)=>(f(),b(N,{title:l.$gettext("Latest news")},{default:t(()=>[a(y,null,{default:t(()=>[a(T,{headers:s,items:r.value,"hide-default-header":"","hide-default-footer":""},{"item.title":t(({item:m})=>[n("a",{href:m.link,target:"_blank"},p(m.title),9,W)]),"item.published":t(({item:m})=>[u(p(l.$date(m.published)),1)]),_:2},1032,["items"])]),_:1}),a(C,{class:"justify-center"},{default:t(()=>[n("div",null,[n("a",j,p(l.$gettext("Visit the official weblog for more information")),1)])]),_:1})]),_:1},8,["title"]))}},I=d(G,[["__scopeId","data-v-e0975b37"]]),M={__name:"DashboardView",async setup(h){let e,o;const{$gettext:r}=w(),s=_(""),i=([e,o]=c(()=>A.getGlobalApplication("core")),e=await e,o(),e);return i.data.params.custom_welcome_message?s.value=i.data.params.custom_welcome_message:s.value=r("Welcome to Modoboa"),(l,g)=>(f(),V(k,null,[a(F,{flat:""},{default:t(()=>[a($,null,{default:t(()=>[u(p(s.value),1)]),_:1})]),_:1}),a(B,null,{default:t(()=>[a(D,{sm:"12",md:"6"},{default:t(()=>[a(x(I))]),_:1})]),_:1})],64))}},re=d(M,[["__scopeId","data-v-9687559e"]]);export{re as default};
