PageSourceSearch

https://meplus.ai/_nuxt/JZvnEAid.js

js meplus.ai collected 2026-10-05 13:32:09 UTC 3,995 bytes, 1 lines download raw bytes

1import C from"./DjVMMfsH.js";import{_ as h,u as x,i as u,b as m,o as n,w as y,e as o,f as e,z as M,a as p,d as c,A as g,B as L,C as k,v as S}from"./Do1nZpFk.js";import{r as V,a as B}from"./7jrdziBy.js";import"./BM5aYONo.js";const I={class:"signin-modal position-relative d-flex flex-column align-items-center justify-center bg-white"},P={class:"signin-modal__content w-100 bg-white font-[Inter]"},E={class:"signin-modal__field form-group"},U=["disabled"],D={class:"signin-modal__field form-group"},j={class:"relative h-fit w-full"},q=["disabled","type"],N=["textContent"],$=["disabled"],z={key:0},A={key:1},F={__name:"SignInModal",setup(H){const{authStore:s,project:_}=x(),a=u(!1),d=u(""),i=u(!1),r=u({email:"",password:""}),w=()=>{d.value="",a.value=!0,s.signIn(r.value).then(()=>{_.lastModal&&localStorage.setItem("lastModal",_.lastModal),s.authModal=!1,location.reload()}).catch(f=>{d.value="Email or password is incorrect.",a.value=!1}).finally(f=>{a.value=!1})},b=()=>{s.forgotPasswordModal=!0,s.authModal=!1};return(f,t)=>{const v=C;return n(),m(v,{modelValue:e(s).authModal,"onUpdate:modelValue":t[4]||(t[4]=l=>e(s).authModal=l)},{default:y(()=>[o("div",I,[o("button",{type:"button",class:"signin-modal__close",onClick:t[0]||(t[0]=l=>e(s).authModal=!1),"aria-label":"Close login modal"},t[5]||(t[5]=[o("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M6.71152 5.5L10.8243 1.38681C10.9374 1.27358 10.9998 1.12252 11 0.961445C11 0.80028 10.9376 0.649042 10.8243 0.535994L10.4639 0.175654C10.3506 0.0621585 10.1995 0 10.0383 0C9.87729 0 9.72624 0.0621585 9.61293 0.175654L5.50018 4.28858L1.38725 0.175654C1.27412 0.0621585 1.12298 0 0.961829 0C0.800854 0 0.649715 0.0621585 0.536585 0.175654L0.176 0.535994C-0.0586667 0.770676 -0.0586667 1.15239 0.176 1.38681L4.28884 5.5L0.176 9.61302C0.0627805 9.72642 0.000447154 9.87748 0.000447154 10.0386C0.000447154 10.1996 0.0627805 10.3507 0.176 10.464L0.536496 10.8243C0.649626 10.9378 0.800854 11 0.96174 11C1.12289 11 1.27403 10.9378 1.38716 10.8243L5.50009 6.71133L9.61284 10.8243C9.72615 10.9378 9.8772 11 10.0382 11H10.0383C10.1994 11 10.3505 10.9378 10.4638 10.8243L10.8242 10.464C10.9373 10.3508 10.9997 10.1996 10.9997 10.0386C10.9997 9.87748 10.9373 9.72642 10.8242 9.6131L6.71152 5.5Z"})],-1)])),o("div",P,[t[8]||(t[8]=o("h3",{class:"signin-modal__title text-center"},"Login",-1)),o("form",{class:"signin-modal__form",onSubmit:M(w,["prevent"])},[o("div",E,[t[6]||(t[6]=o("label",{class:"mb-2"},"Email",-1)),g(o("input",{class:"signin-modal__input rounded border",disabled:e(a),placeholder:"Email","onUpdate:modelValue":t[1]||(t[1]=l=>e(r).email=l),id:"email",name:"email",type:"email",autocomplete:"email",required:""},null,8,U),[[L,e(r).email]])]),o("div",D,[t[7]||(t[7]=o("label",{class:"mb-2"},"Password",-1)),o("div",j,[g(o("input",{class:"signin-modal__input signin-modal__input--password rounded border",disabled:e(a),placeholder:"Password","onUpdate:modelValue":t[2]||(t[2]=l=>e(r).password=l),id:"password",name:"password",type:e(i)?"text":"password",autocomplete:"password",required:""},null,8,q),[[k,e(r).password]]),o("span",{class:"absolute right-4 top-1/2 -translate-y-1/2",onClick:t[3]||(t[3]=()=>i.value=!e(i))},[e(i)===!1?(n(),m(e(V),{key:0,class:"h-5 w-5 cursor-pointer text-gray-400 hover:text-black"})):c("",!0),e(i)===!0?(n(),m(e(B),{key:1,class:"h-5 w-5 cursor-pointer text-gray-400 hover:text-black"})):c("",!0)])]),o("div",{class:"my-2"},[o("button",{type:"button",class:"text-primary select-none text-[13px] font-[500] hover:text-blue-400",onClick:b}," Forgot Password? ")])]),e(d).length?(n(),p("div",{key:0,class:"signin-modal__error text-center",textContent:S(e(d))},null,8,N)):c("",!0),o("button",{class:"signin-modal__submit select-none",disabled:e(a),type:"submit"},[e(a)?(n(),p("span",z," Loading... ")):(n(),p("span",A,"Login"))],8,$)],32)])])]),_:1},8,["modelValue"])}}},K=h(F,[["__scopeId","data-v-13abd04f"]]);export{K 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.