import{a as r,o,n as i,u as s,g as n,q as l,A as d,f as m,x as c}from"./vendor-DdcFYYLh.js";const a=r.create({baseURL:"/install",withCredentials:!0,headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});a.interceptors.request.use(e=>{const t=document.querySelector('meta[name="csrf-token"]');return t?.content&&e.headers.set("X-CSRF-TOKEN",t.content),e});const h={stage1Check:()=>a.post("/stage1/check").then(e=>e.data),stage2Db:e=>a.post("/stage2/db",e).then(t=>t.data),stage3Admin:e=>a.post("/stage3/admin",e).then(t=>t.data),stage4Migrate:e=>a.post("/stage4/migrate",e??{}).then(t=>t.data),stage5Finish:()=>a.post("/stage5/finish").then(e=>e.data),reportUrl:e=>`/install/report/${e}`},f=o("installer",{state:()=>({stage1Passed:!1,db:{host:"127.0.0.1",port:3306,database:"wdot_v1",username:"wdot",password:""},admin:{email:"",name:"",password:"",password_confirmation:"",app_name:"W·Dot",app_url:typeof window<"u"?window.location.origin:"https://wdot.com"},migrateToken:"",finalResult:null})}),g={key:0,class:"font-semibold mb-1"},b=i({__name:"Alert",props:{variant:{},title:{}},setup(e){return(t,u)=>(s(),n("div",{class:l(["rounded-lg p-4 text-sm",{"bg-aqua-50 text-aqua-900 ring-1 ring-aqua-200":e.variant==="info"||!e.variant,"bg-emerald-50 text-emerald-900 ring-1 ring-emerald-200":e.variant==="success","bg-amber-50 text-amber-900 ring-1 ring-amber-200":e.variant==="warn","bg-rose-50 text-rose-900 ring-1 ring-rose-200":e.variant==="error"}]),role:"alert"},[e.title?(s(),n("p",g,d(e.title),1)):m("",!0),c(t.$slots,"default")],2))}});export{b as _,h as i,f as u};
