Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Index-5872eaf8.js

import{r as v,T as k,c as r,a as e,t as s,e as i,f as w,u as o,b as x,F as z,d as q,g as y,n as u,o as n,k as b,l as f,x as G}from"./app-43851608.js";import{_ as h}from"./FormInput-4a309017.js";const J={class:"flex h-screen justify-center"},K={class:"flex justify-center"},O={class:"mt-20"},Q={class:"flex justify-center mb-5"},X=e("h4",{class:"text-2xl mb-2 text-center"},"Swiftchats",-1),ee={class:"text-2xl text-center"},te={key:0,class:"md:max-w-[40em] p-2"},se={class:"text-center text-xl mb-4"},oe={class:"bg-slate-100 rounded-md p-4"},ae={class:"mb-2"},le={class:"list-decimal pl-5 text-sm"},re={class:"bg-slate-100 rounded-md p-4 mt-2"},ne={class:"mt-4 mb-2"},de={class:"list-decimal pl-5 text-sm"},ie={class:"mt-4 p-2 bg-slate-200 border-l-[2px] border-red-500"},me={class:"flex justify-center"},pe={key:1,class:"w-[25em] md:w-[30em] p-2"},ue={class:"text-center text-xl mb-4"},he={class:"bg-slate-100 rounded-md p-4"},ce={class:"mb-2"},we={class:"bg-slate-200 px-2 rounded-md text-sm"},fe={class:"row border-b border-white py-2"},_e={class:"flex items-center w-3/4 gap-x-2"},be={key:0,class:"text-red-700",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 36 36"},xe=e("path",{fill:"currentColor",d:"M18 2a16 16 0 1 0 16 16A16 16 0 0 0 18 2m8 22.1a1.4 1.4 0 0 1-2 2l-6-6l-6 6.02a1.4 1.4 0 1 1-2-2l6-6.04l-6.17-6.22a1.4 1.4 0 1 1 2-2L18 16.1l6.17-6.17a1.4 1.4 0 1 1 2 2L20 18.08Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),ge=e("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1),ve=[xe,ge],ye={key:1,class:"text-green-700",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},$e=e("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[e("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),e("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})],-1),Ve=[$e],ke=e("div",{class:"w-1/4"},null,-1),Ae={class:"flex justify-between gap-x-2"},Ce=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),Be={key:0},Me={key:1},Ne={key:2,class:"md:w-[30em] p-2"},Le={class:"text-center text-xl mb-4"},Se={class:"bg-slate-100 rounded-md p-4"},De={class:"mb-2"},je={class:"bg-slate-200 px-2 rounded-md text-sm"},Ue={class:"row border-b border-white py-2"},Pe={class:"flex items-center w-3/4 gap-x-2"},Ze={key:0,class:"text-red-700",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 36 36"},Fe=e("path",{fill:"currentColor",d:"M18 2a16 16 0 1 0 16 16A16 16 0 0 0 18 2m8 22.1a1.4 1.4 0 0 1-2 2l-6-6l-6 6.02a1.4 1.4 0 1 1-2-2l6-6.04l-6.17-6.22a1.4 1.4 0 1 1 2-2L18 16.1l6.17-6.17a1.4 1.4 0 1 1 2 2L20 18.08Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Te=e("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1),Ee=[Fe,Te],ze={key:1,class:"text-green-700",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},qe=e("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[e("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),e("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})],-1),Ie=[qe],Re=e("div",{class:"w-1/4"},null,-1),We={class:"flex justify-between gap-x-2"},He=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),Ye={key:0},Ge={key:1},Je={key:3,class:"mt-5 px-4"},Ke={class:"text-center text-xl mb-4"},Oe={key:0,class:"mt-4 p-2 bg-slate-200 border-l-[2px] border-red-500 my-4 max-w-[28em] text-sm"},Qe={class:"flex justify-between gap-x-2 mt-2"},Xe=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),et={key:0,href:"/install/database",type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},tt={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},st=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),e("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[e("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})])],-1),ot=[st],at={class:"text-center text-xl mb-4"},lt={key:0,class:"mt-4 p-2 bg-slate-200 border-l-[2px] border-red-500 my-4 max-w-[28em] text-sm"},rt={class:"flex gap-x-4 mb-4"},nt={class:"flex justify-between gap-x-2 mt-6"},dt=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),it={key:0,href:"/install/database",type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},mt={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},pt=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),e("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[e("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})])],-1),ut=[pt],ht={key:4,class:"md:w-[30em] p-2"},ct={class:"text-center text-xl mb-4"},wt=e("hr",{class:"my-4"},null,-1),ft={class:"flex gap-x-4 mb-4"},_t={class:"flex justify-between gap-x-2 mt-6"},bt=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),xt={key:0,type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},gt={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},vt=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),e("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[e("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})])],-1),yt=[vt],$t={key:5,class:"md:w-[30em] p-2"},Vt={class:"text-center text-xl mb-4"},kt={class:"bg-slate-200 p-2 border-l-[3px] border-red-800 text-sm"},At={class:"flex justify-between gap-x-2"},Ct=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"})],-1),Bt={key:0,type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},Mt={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm flex justify-center"},Nt=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),e("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[e("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})])],-1),Lt=[Nt],St={key:6,class:"md:w-[30em] p-2"},Dt={class:"text-center text-xl mb-4"},jt={class:"bg-green-50 p-2 border-l-[3px] border-green-800 mb-2"},Ut={class:"bg-slate-100 rounded p-4"},Pt={class:"bg-slate-200 p-2 rounded-md mt-2"},Zt={class:"mb-2"},Ft={class:"text-sm"},Tt={class:"flex gap-x-1"},Et={class:"bg-slate-200 p-2 rounded-md mt-2"},zt={class:"mb-2"},qt={class:"text-sm"},It={class:"flex gap-x-1"},Rt={class:"mb-2"},Wt={class:"flex justify-between gap-x-2"},Gt={__name:"Index",props:["flash","step","system","folders","database","user","path"],setup(I){var C,B,M,N,L,S,D,j,U,P,Z,F;const d=I,c=v(!1),$=v(!1),_=v(null),p=k({host:(C=d.database)==null?void 0:C.host,port:(B=d.database)==null?void 0:B.port,dbname:(M=d.database)==null?void 0:M.database,dbuser:(N=d.database)==null?void 0:N.username,dbpass:(L=d.database)==null?void 0:L.password,dbprefix:(S=d.database)==null?void 0:S.prefix}),m=k({company_name:(D=d.user)==null?void 0:D.project_name,url:(j=d.user)==null?void 0:j.project_url,first_name:(U=d.user)==null?void 0:U.first_name,last_name:(P=d.user)==null?void 0:P.last_name,email:(Z=d.user)==null?void 0:Z.email,password:(F=d.user)==null?void 0:F.password}),A=k({migrate:!0,purchase_code:null}),g=v({purchase_code:null}),R=async()=>{c.value=!0,p.post("/install/configure-database",{preserveScroll:!0,onFinish:()=>{c.value=!1}})},W=async()=>{c.value=!0;try{(await G.post("https://axis96.xyz/api/install/51790966/item",{purchase_code:g.value.purchase_code})).status===200&&($.value=!0,_.value=null,A.purchase_code=g.value.purchase_code)}catch(t){t.response?t.response.status===404?_.value=t.response.data.message:_.value=t.response.data.message||"An error occurred":t.request?_.value="Error: No response received":_.value=t.message,$.value=!1}finally{c.value=!1}},H=async()=>{c.value=!0,m.post("/install/configure-company",{preserveScroll:!0,onFinish:()=>{c.value=!1}})},Y=async()=>{c.value=!0,A.post("/install/migrate",{preserveScroll:!0,onFinish:()=>{c.value=!1}})};return(t,a)=>{var T,E;return n(),r("div",J,[e("div",K,[e("div",O,[e("div",Q,[e("div",null,[X,e("h1",ee,s(t.$t("Installation Wizard")),1)])]),d.step===null?(n(),r("div",te,[e("p",se,s(t.$t("Welcome to the Swiftchats installation wizard")),1),e("div",oe,[e("p",ae,s(t.$t("Step 1: You will need the following information before proceeding:")),1),e("ol",le,[e("li",null,s(t.$t("Database host")),1),e("li",null,s(t.$t("Database port")),1),e("li",null,s(t.$t("Database name")),1),e("li",null,s(t.$t("Database username")),1),e("li",null,s(t.$t("Database password")),1)])]),e("div",re,[e("p",ne,s(t.$t("Step 2: You will need to provide the following information to setup your admin account:")),1),e("ol",de,[e("li",null,s(t.$t("Admin First Name")),1),e("li",null,s(t.$t("Admin Last Name")),1),e("li",null,s(t.$t("Admin Email")),1)]),e("div",ie,s(t.$t("If you need more help you can consult the installation guide")),1)]),e("div",me,[i(o(f),{href:"/install/server",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:w(()=>[b(s(t.$t("Next Step")),1)]),_:1})])])):x("",!0),d.step==="server"?(n(),r("div",pe,[e("p",ue,s(t.$t("Server Requirements")),1),e("div",he,[e("p",ce,s(t.$t("Checking the server requirements")),1),e("div",we,[(n(!0),r(z,null,q(d.system.requirements,(l,V)=>(n(),r("div",fe,[e("div",_e,[e("span",null,[l?(n(),r("svg",ye,Ve)):(n(),r("svg",be,ve))]),b(" "+s(V),1)]),ke]))),256))])]),e("div",Ae,[i(o(f),{href:"/install",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[Ce,e("span",null,s(t.$t("Back")),1)]),_:1}),i(o(f),{href:"/install/folders",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:w(()=>[d.system.status?(n(),r("span",Be,s(t.$t("Next Step")),1)):(n(),r("span",Me,s(t.$t("Reload")),1))]),_:1})])])):x("",!0),d.step==="folders"?(n(),r("div",Ne,[e("p",Le,s(t.$t("Folder Permissions")),1),e("div",Se,[e("p",De,s(t.$t("Verifying write and read permissions on folders")),1),e("div",je,[(n(!0),r(z,null,q(d.folders.permissions,(l,V)=>(n(),r("div",Ue,[e("div",Pe,[e("span",null,[l?(n(),r("svg",ze,Ie)):(n(),r("svg",Ze,Ee))]),b(" "+s(V),1)]),Re]))),256))])]),e("div",We,[i(o(f),{href:"/install/server",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[He,e("span",null,s(t.$t("Back")),1)]),_:1}),i(o(f),{href:"/install/database",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:w(()=>[d.folders.status?(n(),r("span",Ye,s(t.$t("Next Step")),1)):(n(),r("span",Ge,s(t.$t("Reload")),1))]),_:1})])])):d.step==="database"?(n(),r("div",Je,[$.value?(n(),r("form",{key:1,onSubmit:a[8]||(a[8]=y(l=>R(),["prevent"]))},[e("h4",at,s(t.$t("Setup Database")),1),(E=(T=d.flash)==null?void 0:T.status)!=null&&E.message?(n(),r("div",lt,s(d.flash.status.message),1)):x("",!0),e("div",rt,[i(h,{modelValue:o(p).host,"onUpdate:modelValue":a[2]||(a[2]=l=>o(p).host=l),name:t.$t("Host Name"),error:o(p).errors.host,type:"text",placeholder:"localhost",class:u("w-3/4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(p).port,"onUpdate:modelValue":a[3]||(a[3]=l=>o(p).port=l),name:t.$t("Port"),error:o(p).errors.port,type:"text",placeholder:"3306",class:u("w-1/4")},null,8,["modelValue","name","error"])]),i(h,{modelValue:o(p).dbname,"onUpdate:modelValue":a[4]||(a[4]=l=>o(p).dbname=l),name:t.$t("DB Name"),error:o(p).errors.dbname,type:"text",placeholder:"Database name",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(p).dbprefix,"onUpdate:modelValue":a[5]||(a[5]=l=>o(p).dbprefix=l),name:t.$t("DB Prefix"),error:o(p).errors.dbprefix,type:"text",placeholder:"Database prefix",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(p).dbuser,"onUpdate:modelValue":a[6]||(a[6]=l=>o(p).dbuser=l),name:t.$t("DB Username"),error:o(p).errors.dbuser,type:"text",placeholder:"Database username",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(p).dbpass,"onUpdate:modelValue":a[7]||(a[7]=l=>o(p).dbpass=l),name:t.$t("DB Password"),error:o(p).errors.dbpass,type:"password",placeholder:"Database password",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),e("div",nt,[i(o(f),{href:"/install/folders",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[dt,e("span",null,s(t.$t("Back")),1)]),_:1}),c.value?(n(),r("button",mt,ut)):(n(),r("button",it,s(t.$t("Next Step")),1))])],32)):(n(),r("form",{key:0,class:"w-80",onSubmit:a[1]||(a[1]=y(l=>W(),["prevent"]))},[e("h4",Ke,s(t.$t("Enter Purchase Code")),1),_.value!=null?(n(),r("div",Oe,s(_.value),1)):x("",!0),i(h,{modelValue:g.value.purchase_code,"onUpdate:modelValue":a[0]||(a[0]=l=>g.value.purchase_code=l),name:t.$t("Purchase Code"),type:"text",placeholder:"Purchase code",class:u("sm:col-span-6 mb-2")},null,8,["modelValue","name"]),e("div",Qe,[i(o(f),{href:"/install/folders",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[Xe,e("span",null,s(t.$t("Back")),1)]),_:1}),c.value?(n(),r("button",tt,ot)):(n(),r("button",et,s(t.$t("Next Step")),1))])],32))])):d.step=="app"?(n(),r("div",ht,[e("p",ct,s(t.$t("Project & User Details")),1),e("form",{onSubmit:a[15]||(a[15]=y(l=>H(),["prevent"]))},[i(h,{modelValue:o(m).company_name,"onUpdate:modelValue":a[9]||(a[9]=l=>o(m).company_name=l),name:t.$t("App Name"),type:"text",error:o(m).errors.company_name,placeholder:"App name",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(m).url,"onUpdate:modelValue":a[10]||(a[10]=l=>o(m).url=l),name:t.$t("Project Url"),type:"url",error:o(m).errors.url,placeholder:"https://mytestapp.com",class:u("sm:col-span-6 mb-8")},null,8,["modelValue","name","error","placeholder"]),wt,e("div",ft,[i(h,{modelValue:o(m).first_name,"onUpdate:modelValue":a[11]||(a[11]=l=>o(m).first_name=l),name:t.$t("Admin First Name"),error:o(m).errors.first_name,type:"text",placeholder:"First Name",class:u("w-1/2")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(m).last_name,"onUpdate:modelValue":a[12]||(a[12]=l=>o(m).last_name=l),name:t.$t("Admin Last Name"),error:o(m).errors.last_name,type:"text",placeholder:"Last Name",class:u("w-1/2")},null,8,["modelValue","name","error"])]),i(h,{modelValue:o(m).email,"onUpdate:modelValue":a[13]||(a[13]=l=>o(m).email=l),name:t.$t("Admin Email"),type:"email",error:o(m).errors.email,placeholder:"Email",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:o(m).password,"onUpdate:modelValue":a[14]||(a[14]=l=>o(m).password=l),name:t.$t("Admin Password"),error:o(m).errors.password,type:"password",placeholder:"Password",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),e("div",_t,[i(o(f),{href:"/install/database",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[bt,e("span",null,s(t.$t("Back")),1)]),_:1}),c.value?(n(),r("button",gt,yt)):(n(),r("button",xt,s(t.$t("Next Step")),1))])],32)])):d.step=="migrations"?(n(),r("div",$t,[e("p",Vt,s(t.$t("Run Migrations")),1),e("div",kt,[e("p",null,s(t.$t("When you click proceed, the database installation process will begin. This might take some time, so please hang tight and avoid closing the page"))+".",1)]),e("form",{onSubmit:a[16]||(a[16]=y(l=>Y(),["prevent"]))},[e("div",At,[i(o(f),{href:"/install/app",class:"mt-4 rounded-md bg-slate-400 px-3 py-2 text-sm text-white shadow-sm flex items-center gap-x-1"},{default:w(()=>[Ct,e("span",null,s(t.$t("Back")),1)]),_:1}),c.value?(n(),r("button",Mt,Lt)):(n(),r("button",Bt,s(t.$t("Proceed")),1))])],32)])):d.step=="finish"?(n(),r("div",St,[e("p",Dt,s(t.$t("Installation Successfull!")),1),e("div",jt,[e("p",null,s(t.$t("The application has been installed successfully!")),1)]),e("div",Ut,[e("div",Pt,[e("p",Zt,s(t.$t("Website Url")),1),e("div",Ft,[e("div",Tt,[i(o(f),{href:"/",class:"underline"},{default:w(()=>[b(s(d.path),1)]),_:1})])])]),e("div",Et,[e("p",zt,s(t.$t("Admin Login Details")),1),e("div",qt,[e("div",It,[e("span",null,s(t.$t("Url"))+":",1),i(o(f),{href:"/login",class:"underline"},{default:w(()=>[b(s(d.path)+"/login",1)]),_:1})]),e("p",null,s(t.$t(""))+"Email: "+s(o(m).email),1),e("p",Rt,s(t.$t("Password"))+": "+s(o(m).password),1)])])]),e("div",Wt,[i(o(f),{href:"/",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm w-full text-center"},{default:w(()=>[b(s(t.$t("Proceed To Main Site")),1)]),_:1})])])):x("",!0)])])])}}};export{Gt as default};