import{j as e,e7 as a,e8 as n,e9 as i}from"./vendor-rThclpOQ.js";import{B as s}from"./button-ZcsoqUQn.js";import{C as o,a as r,b as l,c,d as m}from"./card-HXna_7vU.js";import{W as t}from"./warning-modal-DHvpm9yF.js";import"./index-DquVdLUg.js";import"./utils-8KAaAB9H.js";import"./dialog-CDEDwQhm.js";import"./loading-button-DKhpmf6V.js";function f(){return e.jsxs(o,{className:"border-2",children:[e.jsxs(r,{className:"p-4 sm:p-6",children:[e.jsxs("h2",{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx(a,{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(l,{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(r,{className:"p-4",children:[e.jsx(c,{className:"text-lg text-yellow-900",children:"System Operations"}),e.jsx(m,{className:"text-yellow-700",children:"The following operations will be performed:"})]}),e.jsxs(l,{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:"Create a symlink for storage connection with public directory"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"2."}),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:"3."}),e.jsx("span",{children:"Bring application out of maintenance mode"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(t,{method:"post",routePath:route("system.storage"),title:"Add storage assets symlink for public access",actionComponent:e.jsxs(s,{type:"button",variant:"secondary",children:[e.jsx(n,{className:"h-4 w-4"}),e.jsx("span",{children:"Storage Symlink"})]})}),e.jsx(t,{method:"post",routePath:route("system.reboot"),title:"Are you sure to reboot the system?",actionComponent:e.jsxs(s,{type:"submit",className:"bg-orange-600 text-white hover:bg-orange-700",children:[e.jsx(a,{className:"h-4 w-4"}),e.jsx("span",{children:"Reboot System"})]})}),e.jsx(t,{method:"post",routePath:route("system.clear"),title:"Are you sure to clear the system cache?",actionComponent:e.jsxs(s,{children:[e.jsx(i,{className:"h-4 w-4"}),e.jsx("span",{children:"Clear System Cache"})]})})]})]})]})}export{f as default};
