import{O as i,L as s,J as a,G as t,P as f,N as d,F as k,R as w,S as h,T as S,I as n,U as Q,V as x,W as y,Q as u,K as r,M as v}from"./index-iCRehgtD.js";import{Q as B,a as C,b as c}from"./QList-rYekqV6v.js";import{u as _,Q as q}from"./useSetupWs-P74ozpSr.js";import{u as I}from"./setup-B2WhYkmc.js";const N={class:"row justify-end"},z={__name:"WelcomePage",setup(V){const m=S(),p=I(),{connected:l}=_(),b=[{icon:"search",label:"Detect your operating system"},{icon:"source",label:"Configure the package repository"},{icon:"download",label:"Install the fixed Bareos package set"},{icon:"tune",label:"Choose disk and tape storage targets"},{icon:"save",label:"Scan and assign tape changers and drives"},{icon:"storage",label:"Set up the catalog database (PostgreSQL)"},{icon:"lock",label:"Create the administrative user"},{icon:"check_circle",label:"Review and finish"}];function g(){p.nextStep(),m.push("/os")}return(W,e)=>(n(),i("div",null,[e[4]||(e[4]=s("div",{class:"step-header q-mb-md"},"Welcome to Bareos Setup",-1)),e[5]||(e[5]=s("p",{class:"text-body1 q-mb-lg"}," This wizard will guide you through the installation and initial configuration of Bareos — an open-source network backup solution. ",-1)),a(f,{flat:"",bordered:"",class:"q-mb-lg"},{default:t(()=>[a(Q,null,{default:t(()=>[e[0]||(e[0]=s("div",{class:"text-subtitle1 text-weight-medium q-mb-sm"},"What this wizard will do:",-1)),a(B,{dense:""},{default:t(()=>[(n(),i(x,null,y(b,o=>a(C,{key:o.label},{default:t(()=>[a(c,{avatar:""},{default:t(()=>[a(u,{name:o.icon,color:"primary"},null,8,["name"])]),_:2},1024),a(c,null,{default:t(()=>[r(v(o.label),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1}),d(l)?w("",!0):(n(),k(q,{key:0,class:"bg-warning text-white q-mb-md",rounded:""},{avatar:t(()=>[a(u,{name:"warning"})]),default:t(()=>[e[1]||(e[1]=r(" Cannot reach the setup backend. Make sure ",-1)),e[2]||(e[2]=s("code",null,"bareos-setup",-1)),e[3]||(e[3]=r(" is running. ",-1))]),_:1})),s("div",N,[a(h,{label:"Get Started",color:"primary","icon-right":"arrow_forward",disable:!d(l),onClick:g},null,8,["disable"])])]))}};export{z as default};
