import o from"./TopBar.8157552e.js";import e from"./Container.f87d9f62.js";import i from"./Content.e22a1fd6.js";import s from"./Page.3927bdbf.js";import n from"./PageHeader.a5f457a5.js";import a from"./PageHeaderTitle.3ed783af.js";import p from"./PageBody.dec1fae1.js";import m from"./Button.f17dffc9.js";import l from"./List.d5d221b1.js";import u from"./ListItem.ee1e88fb.js";import f from"./StatusBubble.4f1d8322.js";import _ from"./NotificationBadge.b6fae3d5.js";import c from"./MainLayout.17290af6.js";import d from"./SettingsLayout.3305573b.js";import y from"./SettingsSegment.e8fdfb41.js";import v from"./FormInput.7debc7c5.js";import g from"./Form.2cdcadd9.js";import h from"./FormActions.83ccca91.js";import{u as b}from"./notification.db2f2ae7.js";import C from"./Tabs.88273262.js";import{n as x}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";import"./FormGroup.efd02a6a.js";import"./Label.9d0d3ee0.js";import"./ErrorText.b141a597.js";import"./HelperText.14a7ed0b.js";import"./IconClipboard.8551be1b.js";import"./IconKey.455a255f.js";const k={metaInfo(){return{title:`${this.__("System")}`}},layout:c,components:{TopBar:o,Container:e,Content:i,Page:s,PageHeader:n,PageHeaderTitle:a,PageBody:p,Button:m,List:l,ListItem:u,StatusBubble:f,NotificationBadge:_,FormInput:v,SettingsLayout:d,SettingsSegment:y,Form:g,FormActions:h,Tabs:C},props:{version:Object,horizonRunning:Boolean},data(){return{sending:!1,updating:!1}},methods:{useNotification:b,refreshVersions(){this.$inertia.get(this.route("admin.system")+"?flush=true")}}};var S=function(){var t=this,r=t._self._c;return r("Page",[r("TopBar"),r("Content",[r("Container",[r("PageHeader",{scopedSlots:t._u([{key:"start",fn:function(){return[r("PageHeaderTitle",[t._v(t._s(t.__("System")))])]},proxy:!0}])}),r("PageBody",[r("SettingsLayout",{scopedSlots:t._u([{key:"nav",fn:function(){return[r("Tabs")]},proxy:!0},{key:"segments",fn:function(){return[r("SettingsSegment",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t.__("Overview")))]},proxy:!0},{key:"subtitle",fn:function(){return[t._v(" Check your system's version here. If there's an update available you'll be able to press the update button to update your system. ")]},proxy:!0},{key:"content",fn:function(){return[r("p",[t._v(t._s(t.__("Current version"))+": "+t._s(t.version.current))]),r("p",[t._v(" "+t._s(t.__("Remote version"))+": "+t._s(t.version.remote)+" "),r("button",{staticClass:"text-primary",attrs:{type:"button"},on:{click:t.refreshVersions}},[t._v(t._s("Refresh"))])]),r("p",[t._v("Horizon worker status: "),t.horizonRunning?r("span",{staticClass:"text-success"},[t._v("Active")]):r("span",{staticClass:"text-danger"},[t._v("Inactive")])]),t.version.out_of_date&&!t.updating?r("div",{staticClass:"bg-primary text-on-primary px-4 py-3 rounded relative space-y-2",attrs:{role:"alert"}},[r("strong",{staticClass:"font-bold"},[t._v("Update available")]),r("p",{staticClass:"block"},[t._v(" An update is available for your system, please upgrade. ")]),r("a",{staticClass:"block font-bold underline",attrs:{href:"https://docs.ploi-core.io/digging-deeper/manual-update",target:"_blank"}},[t._v("Find out how to upgrade here")])]):t._e()]},proxy:!0}])}),r("SettingsSegment",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t.__("Information")))]},proxy:!0},{key:"content",fn:function(){return[r("ul",{staticClass:"list-disc list-inside"},[r("li",[r("a",{staticClass:"text-primary",attrs:{target:"_blank",href:"https://docs.ploi-core.io"}},[t._v("Ploi Core Docs")])]),r("li",[r("a",{staticClass:"text-primary",attrs:{target:"_blank",href:"https://ploi.io"}},[t._v("Ploi Website")])]),r("li",[r("a",{staticClass:"text-primary",attrs:{target:"_blank",href:"https://ploi.io/panel"}},[t._v("Ploi Panel")])]),r("li",[r("a",{staticClass:"text-primary",attrs:{target:"_blank",href:"https://github.com/ploi-deploy/ploi-core"}},[t._v("Ploi Core Github Repository")])])])]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1)],1)},P=[],B=x(k,S,P,!1,null,null,null,null);const xt=B.exports;export{xt as default};
