import{jsx as e,Fragment as p,jsxs as r}from"react/jsx-runtime";import{I as c}from"./input-error-BbsDx4-P.js";import{a as n,B as o}from"./ui-components-B24mpb8o.js";import{W as s}from"./warning-modal-ClF-KoyX.js";import{useForm as a}from"@inertiajs/react";import{Download as i,RefreshCw as d}from"lucide-react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./loading-button-B_LaGOAp.js";const Y=()=>{const{post:h,errors:t,processing:u}=a({});return a({}),e(p,{children:r(n,{className:"p-4 sm:p-6",children:[r("div",{className:"mb-4",children:[r("h2",{className:"flex items-center gap-2 text-xl font-semibold",children:[e(i,{className:"h-5 w-5"}),"Application Backup"]}),e("p",{className:"text-muted-foreground mt-1 text-sm",children:"Create a complete backup of your application including files and database"})]}),r("div",{className:"space-y-6",children:[e("div",{className:"dark:bg-secondary dark:border-border rounded-lg border border-blue-200 bg-blue-50 p-4",children:r("div",{className:"flex items-start",children:[e("div",{className:"flex-shrink-0",children:e(i,{className:"h-5 w-5 text-blue-600"})}),r("div",{className:"ml-3",children:[e("h3",{className:"text-sm font-medium text-blue-800",children:"What will be backed up?"}),e("div",{className:"mt-2 text-sm text-blue-700",children:r("ul",{className:"list-inside list-disc space-y-1",children:[r("li",{children:[e("strong",{children:"Source Code:"})," All application files and code"]}),r("li",{children:[e("strong",{children:"Database:"})," Complete MySQL database dump"]}),r("li",{children:[e("strong",{children:"Configuration:"})," Environment and config files"]}),r("li",{children:[e("strong",{children:"Assets:"})," Uploaded media and public files"]})]})}),e("div",{className:"mt-3 text-xs text-blue-600",children:r("p",{children:[e("strong",{children:"Note:"})," Every time refresh server before backup."]})})]})]})}),t&&Object.keys(t).length>0&&e("div",{className:"space-y-1",children:Object.entries(t).map(([l,m])=>e(c,{message:String(m)},l))}),r("div",{className:"flex flex-col gap-3 sm:flex-row",children:[e(s,{method:"post",routePath:route("system.refresh"),title:"Are you sure to refresh your app?",actionComponent:r(o,{type:"button",variant:"secondary",children:[e(d,{className:"h-4 w-4"}),e("span",{children:"Refresh App"})]})}),e(s,{method:"post",routePath:route("system.backup"),title:"Are you sure to create app backup?",actionComponent:r(o,{children:[e(i,{className:"h-4 w-4"}),e("span",{children:"Create Backup"})]})})]})]})]})})};export{Y as default};
