1import{r as e,o as l,c as a,l as s,g as n,N as o,av as r,w as t,t as i,j as u,ar as d,p as c,i as m,Q as g,s as p,v as f,c6 as v,x}from"./DSVLAynu.js";import{_}from"./BCo6x5W8.js";const w={class:"signin__wrapper d-flex flex-column flex-md-row-reverse py-md-5 overflow-y-auto"},y={class:"d-flex align-end align-md-center justify-center flex-md-grow-1"},b={class:"mx-auto my-md-auto"},h={class:"text-survey-gray"},V=_({__name:"LoginForm",setup(_){const V=p(null),j=p(null),k=p(!1),$=p(null),q=v(),C=f(),K=x(),U=()=>{k.value=!k.value},z=async()=>{await(async()=>{const{valid:e}=await $.value.validate();return e})()&&C.login({username:V.value,password:j.value}).then(()=>{q.replace("/")}).catch(e=>{!e?.success&&e?.error&&K.showGlobalMessage(e.error,"warning")})};return(p,f)=>{const v=e("b-text-edit"),x=e("b-icon"),_=e("b-btn");return l(),a("div",w,[s("div",y,[n(o,{class:"signin__logo flex-grow-0",cover:"",src:"/logo/header_logo.png"})]),n(r,{class:"d-md-none"}),n(g,{class:"signin__auth-card d-flex flex-grow-1 flex-shrink-0 overflow-y-auto pa-6",flat:""},{default:t(()=>[s("div",b,[s("h1",null,i(p.$t("pages.login.title")),1),s("span",h,i(p.$t("pages.login.subtitle")),1),n(u(d),{ref_key:"form",ref:$,class:"d-flex flex-column w-100 g-3 mt-8"},{default:t(()=>[n(v,{modelValue:u(V),"onUpdate:modelValue":f[0]||(f[0]=e=>m(V)?V.value=e:null),label:p.$t("login.login"),name:"username",rules:"required",onKeyup:c(z,["enter"])},null,8,["modelValue","label"]),n(v,{modelValue:u(j),"onUpdate:modelValue":f[1]||(f[1]=e=>m(j)?j.value=e:null),label:p.$t("login.password"),name:"password",rules:"required",type:u(k)?"":"password",onKeyup:c(z,["enter"])},{"append-inner":t(()=>[n(x,{icon:u(k)?"mdi-eye-off-outline":"mdi-eye-outline",class:"icon--btn rounded-lg",color:"primary",size:"24",onClick:U},null,8,["icon"])]),_:1},8,["modelValue","label","type"]),n(_,{class:"signin__submit-btn",disabled:!u(V)||!u(j),text:p.$t("login.enter"),variant:"flat",block:"",onClick:z},null,8,["disabled","text"])]),_:1},512)])]),_:1}),n(r,{class:"d-md-none"})])}}},[["__scopeId","data-v-d381f30c"]]);export{V as default};
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.