import a from"./TopBar.6470099f.js";import i from"./Container.f87d9f62.js";import o from"./Content.e22a1fd6.js";import n from"./Page.3927bdbf.js";import p from"./PageHeader.a5f457a5.js";import m from"./PageHeaderTitle.3ed783af.js";import l from"./PageBody.dec1fae1.js";import c from"./Button.f17dffc9.js";import u from"./List.d5d221b1.js";import f from"./ListItem.ee1e88fb.js";import d from"./StatusBubble.4f1d8322.js";import _ from"./NotificationBadge.b6fae3d5.js";import h from"./MainLayout.17290af6.js";import g from"./IconBox.e6c961ac.js";import v from"./IconGlobe.07030b80.js";import x from"./IconStorage.ef2b2e41.js";import{u as r}from"./notification.db2f2ae7.js";import{n as b}from"./plugin-vue2_normalizer.000ba15c.js";import"./TopBar.27b84f08.js";import"./Dropdown.d1060583.js";import"./DropdownList.02c48c2f.js";import"./DropdownListItem.ac31464c.js";import"./IconMoon.ade3e41b.js";import"./IconSun.8809e5d7.js";import"./IconSearch.27dac870.js";import"./IconButton.eadc8d3d.js";import"./Breadcrumbs.d39e2491.js";import"./BreadcrumbsItem.da3f8155.js";import"./TopBarTabBarContainer.3bdb2bb3.js";import"./TabBar.c1d45ed5.js";import"./TabBarItem.e9886f0a.js";import"./Confirm.888708f1.js";import"./Notification.d432029f.js";import"./IconDanger.2f6e115d.js";import"./IconWarning.ca92fb65.js";import"./IconSuccess.09b85716.js";import"./IconInfo.ad7662f9.js";import"./SearchPalette.282fdde5.js";import"./app.79e1f42d.js";const C={metaInfo(){return{title:`${this.__("Dashboard")}`}},layout:h,components:{TopBar:a,Container:i,Content:o,Page:n,PageHeader:p,PageHeaderTitle:m,PageBody:l,Button:c,List:u,ListItem:f,StatusBubble:d,NotificationBadge:_,IconBox:g,IconGlobe:v,IconStorage:x},props:{sites:Number,servers:Number,package:Object,logs:Array},methods:{useNotification:r},data(){return{breadcrumbs:[{title:this.$page.props.settings.name,to:"/"},{title:"Dashboard",to:"/"}]}},computed:{hasAccessToServers(){return Object.keys(this.$page.props.auth.can).length&&(this.$page.props.auth.can.servers.create||this.$page.props.auth.can.servers.update||this.$page.props.auth.can.servers.delete)}},mounted(){this.$page.props.flash.info&&r({variant:"info",title:"Information",message:this.$page.props.flash.info})}};var y=function(){var t=this,e=t._self._c;return e("Page",[e("TopBar",{attrs:{breadcrumbs:t.breadcrumbs}}),e("Content",[e("Container",[e("PageHeader",{scopedSlots:t._u([{key:"start",fn:function(){return[e("PageHeaderTitle",[t._v(t._s(t.__("Dashboard")))])]},proxy:!0}])}),e("PageBody",[e("div",[e("ul",{staticClass:"grid grid-cols-1 gap-4",class:{"md:grid-cols-3":t.hasAccessToServers,"md:grid-cols-2":!t.hasAccessToServers}},[e("li",{staticClass:"p-6 rounded shadow bg-surface-3 transform transition duration-fast ease-in-out hover:scale-95"},[e("inertia-link",{staticClass:"flex space-x-4",attrs:{href:t.route("sites.index")}},[e("div",[e("IconGlobe",{staticClass:"w-6 h-6"})],1),e("div",[e("h3",{staticClass:"font-semibold text-body"},[t._v(t._s(t.sites))]),e("p",{staticClass:"text-medium-emphasis text-small"},[t._v(t._s(t.__("Sites")))])])])],1),t.hasAccessToServers?e("li",{staticClass:"p-6 rounded shadow bg-surface-3 transform transition duration-fast ease-in-out hover:scale-95"},[e("inertia-link",{staticClass:"flex space-x-4",attrs:{href:t.route("servers.index")}},[e("div",[e("IconStorage",{staticClass:"w-6 h-6"})],1),e("div",[e("h3",{staticClass:"font-semibold text-body"},[t._v(t._s(t.servers))]),e("p",{staticClass:"text-medium-emphasis text-small"},[t._v(t._s(t.__("Servers")))])])])],1):t._e(),e("li",{staticClass:"p-6 rounded shadow bg-surface-3 transform transition duration-fast ease-in-out hover:scale-95"},[e("inertia-link",{staticClass:"flex space-x-4",attrs:{href:t.$page.props.settings.billing?t.route("profile.billing.index"):t.route("profile.index")}},[e("div",[e("IconBox",{staticClass:"w-6 h-6"})],1),e("div",{staticClass:"w-full"},[e("div",{staticClass:"flex justify-between"},[e("h3",{staticClass:"font-semibold text-body"},[t._v(t._s(t.$page.props.auth.package.name))]),t.$page.props.auth.package.trial?e("span",{staticClass:"inline-flex items-center justify-center h-6 px-2 text-xs font-semibold tracking-tight text-blue-700 rounded-full bg-blue-500/10"},[t._v(" Trial ")]):t._e()]),e("p",{staticClass:"text-medium-emphasis text-small"},[t._v(t._s(t.__("Package")))])])])],1)])]),e("List",t._l(t.logs,function(s){return e("ListItem",{key:s.id,scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(s.title)+" ")]},proxy:!0},{key:"subtitle",fn:function(){return[t._v(t._s(s.description))]},proxy:!0},{key:"suffix",fn:function(){return[e("span",{staticClass:"text-medium-emphasis"},[t._v(t._s(s.created_at_human))])]},proxy:!0}],null,!0)})}),1)],1)],1)],1)],1)},k=[],I=b(C,y,k,!1,null,null,null,null);const ct=I.exports;export{ct as default};
