PageSourceSearch

https://www.itweb.co.za/_nuxt/CO8lJVV3.js

js itweb.co.za collected 2026-09-24 08:25:28 UTC 2,277 bytes, 1 lines download raw bytes

1import{H as B,I as S,aj as D,r as a,ak as K,d as u,c as L,w as g,a8 as N,e as d,k as s,K as v,al as c,i as R,Y as U,h as k,m as f,n as V,E as q,f as E,V as F}from"./DHGTtAq-.js";import{h as I}from"./RUhIM_6A.js";import{V as T}from"./0KdUN-xV.js";import{V as w}from"./SmBE1qh4.js";const j={key:1,class:"text-error text-center mb-3"},z={key:2,class:"text-center mb-0 text-subtitle-1"},A={mixins:[I]},Y=Object.assign(A,{__name:"login",props:{onlyLogin:{type:Boolean,required:!1,default:!1}},emits:["loginStart","loggedIn"],setup(y,{emit:$}){const{device:x}=B(S()),{userActions:C}=D(),o=a(""),n=a(""),i=a(""),m=a(!1),r=a(!1),b=$;K();const p=()=>{m.value=!0,i.value="",b("loginStart"),C.login(o.value,n.value).then(()=>b("loggedIn")).catch(t=>{var e;i.value=(e=t==null?void 0:t._data)==null?void 0:e.message}).finally(()=>m.value=!1)};return(t,e)=>(u(),L(F,{cols:"12"},{default:g(()=>[N(t.$slots,"default"),d(T,{modelValue:s(r),"onUpdate:modelValue":e[4]||(e[4]=l=>v(r)?r.value=l:null)},{default:g(()=>[d(w,{label:"E-Mail",rounded:"lg",type:"email",density:"compact",variant:"outlined",modelValue:s(o),"onUpdate:modelValue":e[0]||(e[0]=l=>v(o)?o.value=l:null),rules:[t.rules.required,t.rules.email],onKeyup:e[1]||(e[1]=c(l=>p(),["native","enter"]))},null,8,["modelValue","rules"]),d(w,{label:"Password",type:"password",rounded:"lg",density:"compact",variant:"outlined",modelValue:s(n),"onUpdate:modelValue":e[2]||(e[2]=l=>v(n)?n.value=l:null),rules:[t.rules.required,t.rules.password],onKeyup:e[3]||(e[3]=c(l=>p(),["native","enter"]))},null,8,["modelValue","rules"])]),_:1},8,["modelValue"]),d(R,{block:"",color:"accent",flat:"",rounded:"lg",loading:s(m),class:U(["login-button custom-shadow",{"mb-1":s(x).isDesktop}]),disabled:!s(r),onClick:e[5]||(e[5]=l=>p())},{default:g(()=>e[8]||(e[8]=[k(" Login ")])),_:1},8,["loading","class","disabled"]),y.onlyLogin?V("",!0):(u(),f("p",{key:0,class:"text-center pointer text-body-1 text-caption mb-0",onClick:e[6]||(e[6]=l=>t.$emit("active","reset"))}," Forgot your password? ")),s(i)?(u(),f("p",j,q(s(i)),1)):V("",!0),y.onlyLogin?V("",!0):(u(),f("p",z,[e[9]||(e[9]=k(" Don't have an account? ")),E("span",{class:"text-primary pointer",onClick:e[7]||(e[7]=l=>t.$emit("active","register"))}," Register now. ")]))]),_:3}))}});export{Y as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.