| Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/ |
| Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Index-3191988c.js |
import{r as y,T as k,c as r,a as e,t as l,f as i,g as c,u as a,b as g,F as z,e as q,h as _,n as u,o as n,k as x,l as f,x as G}from"./app-f1493ab2.js";import{_ as h}from"./FormInput-b3450213.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={class:"text-2xl text-center"},ee={key:0,class:"md:max-w-[40em] p-2"},te={class:"text-center text-xl mb-4"},se={class:"bg-slate-100 rounded-md p-4"},le={class:"mb-2"},ae={class:"list-decimal pl-5 text-sm"},oe={class:"bg-slate-100 rounded-md p-4 mt-2"},re={class:"mt-4 mb-2"},ne={class:"list-decimal pl-5 text-sm"},de={class:"mt-4 p-2 bg-slate-200 border-l-[2px] border-red-500"},ie={class:"flex justify-center"},me={key:1,class:"w-[25em] md:w-[30em] p-2"},pe={class:"text-center text-xl mb-4"},ue={class:"bg-slate-100 rounded-md p-4"},he={class:"mb-2"},we={class:"bg-slate-200 px-2 rounded-md text-sm"},ce={class:"row border-b border-white py-2"},fe={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={key:1,class:"text-green-700",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},ge={class:"flex justify-between gap-x-2"},ve={key:0},ye={key:1},_e={key:2,class:"md:w-[30em] p-2"},$e={class:"text-center text-xl mb-4"},Ve={class:"bg-slate-100 rounded-md p-4"},ke={class:"mb-2"},Ae={class:"bg-slate-200 px-2 rounded-md text-sm"},Ce={class:"row border-b border-white py-2"},Be={class:"flex items-center w-3/4 gap-x-2"},Me={key:0,class:"text-red-700",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 36 36"},Ne={key:1,class:"text-green-700",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},Le={class:"flex justify-between gap-x-2"},Se={key:0},De={key:1},je={key:3,class:"mt-5 px-4"},Ue={class:"text-center text-xl mb-4"},Pe={key:0,class:"mt-4 p-2 bg-slate-200 border-l-[2px] border-red-500 my-4 max-w-[28em] text-sm"},Ze={class:"flex justify-between gap-x-2 mt-2"},Fe={key:0,href:"/install/database",type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},Te={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},Ee={class:"text-center text-xl mb-4"},ze={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 gap-x-4 mb-4"},Ie={class:"flex justify-between gap-x-2 mt-6"},Re={key:0,href:"/install/database",type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},We={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},He={key:4,class:"md:w-[30em] p-2"},Ye={class:"text-center text-xl mb-4"},Ge={class:"flex gap-x-4 mb-4"},Je={class:"flex justify-between gap-x-2 mt-6"},Ke={key:0,type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},Oe={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},Qe={key:5,class:"md:w-[30em] p-2"},Xe={class:"text-center text-xl mb-4"},et={class:"bg-slate-200 p-2 border-l-[3px] border-red-800 text-sm"},tt={class:"flex justify-between gap-x-2"},st={key:0,type:"submit",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},lt={key:1,type:"button",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm flex justify-center"},at={key:6,class:"md:w-[30em] p-2"},ot={class:"text-center text-xl mb-4"},rt={class:"bg-green-50 p-2 border-l-[3px] border-green-800 mb-2"},nt={class:"bg-slate-100 rounded p-4"},dt={class:"bg-slate-200 p-2 rounded-md mt-2"},it={class:"mb-2"},mt={class:"text-sm"},pt={class:"flex gap-x-1"},ut={class:"bg-slate-200 p-2 rounded-md mt-2"},ht={class:"mb-2"},wt={class:"text-sm"},ct={class:"flex gap-x-1"},ft={class:"mb-2"},bt={class:"flex justify-between gap-x-2"},vt={__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,w=y(!1),$=y(!1),b=y(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}),v=y({purchase_code:null}),R=async()=>{w.value=!0,p.post("/install/configure-database",{preserveScroll:!0,onFinish:()=>{w.value=!1}})},W=async()=>{w.value=!0;try{(await G.post("https://axis96.xyz/api/install/51790966/item",{purchase_code:v.value.purchase_code})).status===200&&($.value=!0,b.value=null,A.purchase_code=v.value.purchase_code)}catch(s){s.response?s.response.status===404?b.value=s.response.data.message:b.value=s.response.data.message||"An error occurred":s.request?b.value="Error: No response received":b.value=s.message,$.value=!1}finally{w.value=!1}},H=async()=>{w.value=!0,m.post("/install/configure-company",{preserveScroll:!0,onFinish:()=>{w.value=!1}})},Y=async()=>{w.value=!0,A.post("/install/migrate",{preserveScroll:!0,onFinish:()=>{w.value=!1}})};return(s,t)=>{var T,E;return n(),r("div",J,[e("div",K,[e("div",O,[e("div",Q,[e("div",null,[t[17]||(t[17]=e("h4",{class:"text-2xl mb-2 text-center"},"Swiftchats",-1)),e("h1",X,l(s.$t("Installation Wizard")),1)])]),d.step===null?(n(),r("div",ee,[e("p",te,l(s.$t("Welcome to the Swiftchats installation wizard")),1),e("div",se,[e("p",le,l(s.$t("Step 1: You will need the following information before proceeding:")),1),e("ol",ae,[e("li",null,l(s.$t("Database host")),1),e("li",null,l(s.$t("Database port")),1),e("li",null,l(s.$t("Database name")),1),e("li",null,l(s.$t("Database username")),1),e("li",null,l(s.$t("Database password")),1)])]),e("div",oe,[e("p",re,l(s.$t("Step 2: You will need to provide the following information to setup your admin account:")),1),e("ol",ne,[e("li",null,l(s.$t("Admin First Name")),1),e("li",null,l(s.$t("Admin Last Name")),1),e("li",null,l(s.$t("Admin Email")),1)]),e("div",de,l(s.$t("If you need more help you can consult the installation guide")),1)]),e("div",ie,[i(a(f),{href:"/install/server",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:c(()=>[x(l(s.$t("Next Step")),1)]),_:1})])])):g("",!0),d.step==="server"?(n(),r("div",me,[e("p",pe,l(s.$t("Server Requirements")),1),e("div",ue,[e("p",he,l(s.$t("Checking the server requirements")),1),e("div",we,[(n(!0),r(z,null,q(d.system.requirements,(o,V)=>(n(),r("div",ce,[e("div",fe,[e("span",null,[o?(n(),r("svg",xe,t[19]||(t[19]=[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)]))):(n(),r("svg",be,t[18]||(t[18]=[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),e("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)])))]),x(" "+l(V),1)]),t[20]||(t[20]=e("div",{class:"w-1/4"},null,-1))]))),256))])]),e("div",ge,[i(a(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:c(()=>[t[21]||(t[21]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),i(a(f),{href:"/install/folders",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:c(()=>[d.system.status?(n(),r("span",ve,l(s.$t("Next Step")),1)):(n(),r("span",ye,l(s.$t("Reload")),1))]),_:1})])])):g("",!0),d.step==="folders"?(n(),r("div",_e,[e("p",$e,l(s.$t("Folder Permissions")),1),e("div",Ve,[e("p",ke,l(s.$t("Verifying write and read permissions on folders")),1),e("div",Ae,[(n(!0),r(z,null,q(d.folders.permissions,(o,V)=>(n(),r("div",Ce,[e("div",Be,[e("span",null,[o?(n(),r("svg",Ne,t[23]||(t[23]=[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)]))):(n(),r("svg",Me,t[22]||(t[22]=[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),e("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)])))]),x(" "+l(V),1)]),t[24]||(t[24]=e("div",{class:"w-1/4"},null,-1))]))),256))])]),e("div",Le,[i(a(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:c(()=>[t[25]||(t[25]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),i(a(f),{href:"/install/database",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm"},{default:c(()=>[d.folders.status?(n(),r("span",Se,l(s.$t("Next Step")),1)):(n(),r("span",De,l(s.$t("Reload")),1))]),_:1})])])):d.step==="database"?(n(),r("div",je,[$.value?(n(),r("form",{key:1,onSubmit:t[8]||(t[8]=_(o=>R(),["prevent"]))},[e("h4",Ee,l(s.$t("Setup Database")),1),(E=(T=d.flash)==null?void 0:T.status)!=null&&E.message?(n(),r("div",ze,l(d.flash.status.message),1)):g("",!0),e("div",qe,[i(h,{modelValue:a(p).host,"onUpdate:modelValue":t[2]||(t[2]=o=>a(p).host=o),name:s.$t("Host Name"),error:a(p).errors.host,type:"text",placeholder:"localhost",class:u("w-3/4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(p).port,"onUpdate:modelValue":t[3]||(t[3]=o=>a(p).port=o),name:s.$t("Port"),error:a(p).errors.port,type:"text",placeholder:"3306",class:u("w-1/4")},null,8,["modelValue","name","error"])]),i(h,{modelValue:a(p).dbname,"onUpdate:modelValue":t[4]||(t[4]=o=>a(p).dbname=o),name:s.$t("DB Name"),error:a(p).errors.dbname,type:"text",placeholder:"Database name",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(p).dbprefix,"onUpdate:modelValue":t[5]||(t[5]=o=>a(p).dbprefix=o),name:s.$t("DB Prefix"),error:a(p).errors.dbprefix,type:"text",placeholder:"Database prefix",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(p).dbuser,"onUpdate:modelValue":t[6]||(t[6]=o=>a(p).dbuser=o),name:s.$t("DB Username"),error:a(p).errors.dbuser,type:"text",placeholder:"Database username",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(p).dbpass,"onUpdate:modelValue":t[7]||(t[7]=o=>a(p).dbpass=o),name:s.$t("DB Password"),error:a(p).errors.dbpass,type:"password",placeholder:"Database password",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),e("div",Ie,[i(a(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:c(()=>[t[28]||(t[28]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),w.value?(n(),r("button",We,t[29]||(t[29]=[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)]))):(n(),r("button",Re,l(s.$t("Next Step")),1))])],32)):(n(),r("form",{key:0,class:"w-80",onSubmit:t[1]||(t[1]=_(o=>W(),["prevent"]))},[e("h4",Ue,l(s.$t("Enter Purchase Code")),1),b.value!=null?(n(),r("div",Pe,l(b.value),1)):g("",!0),i(h,{modelValue:v.value.purchase_code,"onUpdate:modelValue":t[0]||(t[0]=o=>v.value.purchase_code=o),name:s.$t("Purchase Code"),type:"text",placeholder:"Purchase code",class:u("sm:col-span-6 mb-2")},null,8,["modelValue","name"]),e("div",Ze,[i(a(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:c(()=>[t[26]||(t[26]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),w.value?(n(),r("button",Te,t[27]||(t[27]=[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)]))):(n(),r("button",Fe,l(s.$t("Next Step")),1))])],32))])):d.step=="app"?(n(),r("div",He,[e("p",Ye,l(s.$t("Project & User Details")),1),e("form",{onSubmit:t[15]||(t[15]=_(o=>H(),["prevent"]))},[i(h,{modelValue:a(m).company_name,"onUpdate:modelValue":t[9]||(t[9]=o=>a(m).company_name=o),name:s.$t("App Name"),type:"text",error:a(m).errors.company_name,placeholder:"App name",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(m).url,"onUpdate:modelValue":t[10]||(t[10]=o=>a(m).url=o),name:s.$t("Project Url"),type:"url",error:a(m).errors.url,placeholder:"https://mytestapp.com",class:u("sm:col-span-6 mb-8")},null,8,["modelValue","name","error"]),t[32]||(t[32]=e("hr",{class:"my-4"},null,-1)),e("div",Ge,[i(h,{modelValue:a(m).first_name,"onUpdate:modelValue":t[11]||(t[11]=o=>a(m).first_name=o),name:s.$t("Admin First Name"),error:a(m).errors.first_name,type:"text",placeholder:"First Name",class:u("w-1/2")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(m).last_name,"onUpdate:modelValue":t[12]||(t[12]=o=>a(m).last_name=o),name:s.$t("Admin Last Name"),error:a(m).errors.last_name,type:"text",placeholder:"Last Name",class:u("w-1/2")},null,8,["modelValue","name","error"])]),i(h,{modelValue:a(m).email,"onUpdate:modelValue":t[13]||(t[13]=o=>a(m).email=o),name:s.$t("Admin Email"),type:"email",error:a(m).errors.email,placeholder:"Email",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),i(h,{modelValue:a(m).password,"onUpdate:modelValue":t[14]||(t[14]=o=>a(m).password=o),name:s.$t("Admin Password"),error:a(m).errors.password,type:"password",placeholder:"Password",class:u("sm:col-span-6 mb-4")},null,8,["modelValue","name","error"]),e("div",Je,[i(a(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:c(()=>[t[30]||(t[30]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),w.value?(n(),r("button",Oe,t[31]||(t[31]=[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)]))):(n(),r("button",Ke,l(s.$t("Next Step")),1))])],32)])):d.step=="migrations"?(n(),r("div",Qe,[e("p",Xe,l(s.$t("Run Migrations")),1),e("div",et,[e("p",null,l(s.$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:t[16]||(t[16]=_(o=>Y(),["prevent"]))},[e("div",tt,[i(a(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:c(()=>[t[33]||(t[33]=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)),e("span",null,l(s.$t("Back")),1)]),_:1}),w.value?(n(),r("button",lt,t[34]||(t[34]=[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)]))):(n(),r("button",st,l(s.$t("Proceed")),1))])],32)])):d.step=="finish"?(n(),r("div",at,[e("p",ot,l(s.$t("Installation Successfull!")),1),e("div",rt,[e("p",null,l(s.$t("The application has been installed successfully!")),1)]),e("div",nt,[e("div",dt,[e("p",it,l(s.$t("Website Url")),1),e("div",mt,[e("div",pt,[i(a(f),{href:"/",class:"underline"},{default:c(()=>[x(l(d.path),1)]),_:1})])])]),e("div",ut,[e("p",ht,l(s.$t("Admin Login Details")),1),e("div",wt,[e("div",ct,[e("span",null,l(s.$t("Url"))+":",1),i(a(f),{href:"/login",class:"underline"},{default:c(()=>[x(l(d.path)+"/login",1)]),_:1})]),e("p",null,l(s.$t(""))+"Email: "+l(a(m).email),1),e("p",ft,l(s.$t("Password"))+": "+l(a(m).password),1)])])]),e("div",bt,[i(a(f),{href:"/",class:"mt-4 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm w-full text-center"},{default:c(()=>[x(l(s.$t("Proceed To Main Site")),1)]),_:1})])])):g("",!0)])])])}}};export{vt as default};