import{j as e,H as a,d4 as i,L as d,ca as m,cZ as c}from"./vendor-BKmmeuxg.js";import{B as l}from"./button-BpNwv2aE.js";import{C as n,a as o,c as x}from"./card-D9_SJYq6.js";import p from"./application-backup-CrqrNIJV.js";import j from"./application-backup-list-Bw6wo1xZ.js";import b from"./application-reboot-B59sv8A9.js";import u from"./application-update-CJkViDLi.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./dialog-B2gN9MvT.js";import"./backgup-downloader-Dcd8Ehi_.js";import"./chunked-uploader-input-D0XPVOTS.js";import"./input-DM0goJrn.js";import"./index-D9-QKOod.js";import"./label-HmIcv5Yx.js";import"./scroll-area-C8HGru-R.js";const U=({version:r,flash:s,recentBackups:t})=>e.jsxs("div",{className:"px-3 py-6 sm:p-6 md:p-10",children:[e.jsx(a,{title:"App Maintenance"}),e.jsx(n,{className:"mb-7 border-blue-200 bg-blue-50",children:e.jsxs(o,{className:"flex-row items-center justify-between p-3 sm:p-4",children:[e.jsxs("div",{className:"m-0 flex items-center gap-2",children:[e.jsx(i,{className:"h-5 w-5 text-blue-600"}),e.jsx(x,{className:"text-lg text-blue-900",children:"Admin Verified"})]}),e.jsx(d,{href:route("dashboard"),children:e.jsx(l,{children:"Back To Dashboard"})})]})}),e.jsxs("div",{className:"md:px-3",children:[e.jsxs("div",{className:"mb-6 flex flex-col justify-between gap-7 sm:flex-row sm:items-center",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-nowrap",children:"App Maintenance"}),e.jsx("p",{className:"text-muted-foreground text-sm md:text-base",children:"Update, backup and restore your application safely and automatically."})]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-nowrap",children:"App Version"}),e.jsxs("p",{className:"text-muted-foreground text-sm text-nowrap md:text-base",children:["Current Version: ",e.jsx("span",{className:"text-primary font-bold",children:r})]})]})]}),(s==null?void 0:s.success)&&e.jsx("div",{className:"mb-6 rounded-lg border border-green-200 bg-green-50 p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(m,{className:"mt-0.5 h-5 w-5 text-green-600"}),e.jsx("div",{className:"ml-3",children:e.jsx("p",{className:"text-sm text-green-800",children:String(s.success)})})]})}),(s==null?void 0:s.error)&&e.jsx("div",{className:"mb-6 rounded-lg border border-red-200 bg-red-50 p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(c,{className:"mt-0.5 h-5 w-5 text-red-600"}),e.jsx("div",{className:"ml-3",children:e.jsx("p",{className:"text-sm text-red-800",children:String(s.error)})})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(u,{version:r}),e.jsx(b,{}),e.jsx(p,{}),e.jsx(j,{recentBackups:t})]})]})]});export{U as default};
