PageSourceSearch

http://aquagroup.ru/admin/assets/LoginView-CsiE90RH.js

js aquagroup.ru collected 2026-10-04 13:27:44 UTC 3,710 bytes, 1 lines download raw bytes

1import{d as S,u as D,c as v,a,b as o,w as F,e as K,f as d,F as R,r as p,g as U,h as L,i as j,o as m,j as l,T as z,k as q,l as A,t as C,m as M,n as i,p as Q,q as h,_ as H}from"./index-DBAIXX39.js";import{_ as J}from"./logo-icon-DG8XHP4c.js";import{V as x}from"./VTextField-DZnb8Qtf.js";import"./index-Daolnky5.js";import"./index-CvneU2GP.js";const P={class:"login"},W={class:"login__inner"},X={class:"login__lead"},Y={key:0,class:"login__dev"},Z={class:"aq-mono"},$={class:"login__actions"},ee=S({__name:"LoginView",setup(oe){const y=D(),r=h(),B=U(),b=L(),f=i("email"),n=i(""),u=i(""),c=i(""),t=i(!1),k=i(null),E=()=>/.+@.+\..+/.test(n.value.trim());async function V(){var s;if(!E()){r.error("Введите корректный email");return}t.value=!0;try{const e=await y.requestOtp(n.value.trim());c.value=e.devCode??"",f.value="code",r.success("Код отправлен"),await Q(),(s=k.value)==null||s.focus()}catch(e){r.fromError(e)}finally{t.value=!1}}async function w(){if(u.value.trim().length<4){r.error("Введите код из письма");return}t.value=!0;try{await y.verify(n.value.trim(),u.value.trim());const s=typeof b.query.redirect=="string"?b.query.redirect:"/";B.replace(s)}catch(s){r.fromError(s)}finally{t.value=!1}}function N(){f.value="email",u.value="",c.value=""}return(s,e)=>{const I=p("AmbientBackground"),_=p("GlassButton"),T=p("AqIcon"),O=p("GlassCard"),G=j("reveal");return m(),v(R,null,[a(I,{word:"AQUARIO|ONE"}),o("div",P,[F((m(),K(O,{class:"login__card",pad:!1},{default:d(()=>[o("div",W,[e[9]||(e[9]=o("div",{class:"login__brand"},[o("div",{class:"mark"},[o("img",{src:J,alt:"Aquario"})]),o("div",null,[o("div",{class:"title"},[l("Aquario"),o("span",null," ONE")]),o("div",{class:"sub"},"Админка каталога")])],-1)),a(z,{name:"swap",mode:"out-in"},{default:d(()=>[f.value==="email"?(m(),v("form",{key:"email",class:"login__form",onSubmit:q(V,["prevent"])},[e[3]||(e[3]=o("p",{class:"login__lead"},"Вход по одноразовому коду. Введите рабочий email — пришлём код.",-1)),a(x,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=g=>n.value=g),label:"Email",type:"email",autocomplete:"email",autofocus:"","prepend-inner-icon":"mdi-email-outline",disabled:t.value,onKeyup:A(V,["enter"])},null,8,["modelValue","disabled"]),a(_,{variant:"primary",type:"submit",loading:t.value,"icon-name":"check"},{default:d(()=>[...e[2]||(e[2]=[l(" Получить код ",-1)])]),_:1},8,["loading"])],32)):(m(),v("form",{key:"code",class:"login__form",onSubmit:q(w,["prevent"])},[o("p",X,[e[4]||(e[4]=l(" Код отправлен на ",-1)),o("b",null,C(n.value),1),e[5]||(e[5]=l(". Введите шесть цифр. ",-1))]),a(x,{ref_key:"codeInput",ref:k,modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=g=>u.value=g),label:"Код из письма",inputmode:"numeric",autocomplete:"one-time-code",maxlength:"6","prepe
1nd-inner-icon":"mdi-shield-key-outline",disabled:t.value,onKeyup:A(w,["enter"])},null,8,["modelValue","disabled"]),c.value?(m(),v("div",Y,[a(T,{name:"info",size:15}),e[6]||(e[6]=l(" dev-код: ",-1)),o("b",Z,C(c.value),1)])):M("",!0),o("div",$,[a(_,{variant:"ghost",type:"button",disabled:t.value,onClick:N},{default:d(()=>[...e[7]||(e[7]=[l("Назад",-1)])]),_:1},8,["disabled"]),a(_,{variant:"primary",type:"submit",loading:t.value,"icon-name":"check"},{default:d(()=>[...e[8]||(e[8]=[l("Войти",-1)])]),_:1},8,["loading"])])],32))]),_:1})])]),_:1})),[[G]]),e[10]||(e[10]=o("p",{class:"login__foot aq-muted"},"Aquario ONE - внутренний контур. Доступ по приглашению.",-1))])],64)}}}),ie=H(ee,[["__scopeId","data-v-f5d85e19"]]);export{ie 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.