import V from"./Icon.1464d3c9.js";import{_ as k}from"./Input.7105798b.js";import{_ as S}from"./nuxt-link.0e2876ca.js";import{_ as C}from"./Button.c35f3c05.js";import{N,u as z,bK as u,bL as I,aL as L,o as c,c as _,a as o,bz as f,ba as e,b as s,d as a,t as B,z as b,w as g,p as U,e as A,_ as E}from"./entry.816e6e91.js";import{_ as P}from"./small.04dfda7e.js";const T=n=>(U("data-v-3f381e06"),n=n(),A(),n),W={class:"col-xl-4 col-lg-5 col-md-8 m-auto"},$={class:"content-container position-relative"},D=["onSubmit"],F=T(()=>o("h5",{class:"mb-4 fw-bold d-flex align-items-center"},[a("Welcome to "),o("img",{src:P,alt:"Logo"}),a(" dashboard")],-1)),H={key:0,class:"errors__container text-danger text-capitalize mb-2 fw-medium d-flex align-items-center"},K={class:"mb-4"},M={class:"mb-4"},R={class:"mb-3"},j={key:0},q=N({__name:"login",setup(n){z({title:"Login"});const{authenticateUser:h}=u(),{authenticated:x,pending:d,msg:r}=I(u()),t=L({email:"",password:""}),m=async()=>{await h(t.value),x.value&&window.location.reload()};return(G,i)=>{const w=V,p=k,v=S,y=C;return c(),_("div",W,[o("div",$,[o("form",{class:"form-container bg-white pt-5 pb-3 px-5 my-4",onSubmit:f(m,["prevent"])},[F,e(r)?(c(),_("div",H,[s(w,{name:"material-symbols:info-outline",class:"me-1"}),a(" "+B(e(r)),1)])):b("",!0),o("div",K,[s(p,{label:"Email Address",type:"text",placeholder:"admin@socialmart.com",modelValue:e(t).email,"onUpdate:modelValue":i[0]||(i[0]=l=>e(t).email=l)},null,8,["modelValue"])]),o("div",M,[s(p,{label:"Password",type:"password",placeholder:"***********",modelValue:e(t).password,"onUpdate:modelValue":i[1]||(i[1]=l=>e(t).password=l)},null,8,["modelValue"])]),s(v,{to:"/admin/forgot-password",class:"d-block mb-4"},{default:g(()=>[a("Forgot Password?")]),_:1}),o("div",R,[s(y,{type:"submit",color:"main",class:"text-uppercase",fullWidth:"",size:"lg",disabled:e(d),onClick:f(m,["prevent"])},{default:g(()=>[a("Sign in "),e(d)?(c(),_("span",j,"...")):b("",!0)]),_:1},8,["disabled","onClick"])])],40,D)])])}}});const ee=E(q,[["__scopeId","data-v-3f381e06"]]);export{ee as default};
