import{b as m,j as e,d8 as s,e as p}from"./vendor-BKmmeuxg.js";import{B as t}from"./button-BpNwv2aE.js";import{C as o,a as l,b as r,c as d,d as x}from"./card-D9_SJYq6.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";function g(){const{post:n,processing:a}=m(),i=c=>{c.preventDefault(),n(route("system.reboot"))};return e.jsxs(o,{className:"border-2",children:[e.jsxs(l,{className:"p-4 sm:p-6",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx(s,{className:"text-warning h-5 w-5"}),"Application Reboot"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"Reboot your application to apply changes"})]}),e.jsxs(r,{className:"space-y-6 p-4 pt-0 sm:p-6 sm:pt-0",children:[e.jsxs(o,{className:"border-yellow-200 bg-yellow-50",children:[e.jsxs(l,{className:"p-4",children:[e.jsx(d,{className:"text-lg text-yellow-900",children:"System Operations"}),e.jsx(x,{className:"text-yellow-700",children:"The following operations will be performed:"})]}),e.jsxs(r,{className:"space-y-2 p-4 text-sm text-yellow-800",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"1."}),e.jsx("span",{children:"Clear and rebuild application cache, route, view and config"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"5."}),e.jsx("span",{children:"Bring application out of maintenance mode"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("form",{onSubmit:i,className:"space-y-4",children:e.jsxs(t,{type:"submit",className:"bg-orange-600 text-white hover:bg-orange-700",disabled:a,children:[e.jsx(s,{className:"h-4 w-4"}),a?"Rebooting System...":"Reboot System"]})}),e.jsxs(t,{onClick:()=>p.post(route("system.reboot")),children:[e.jsx(s,{className:"h-4 w-4"}),"Clear System Cache"]})]})]})]})}export{g as default};