1import{_ as e}from"./Logo-CFJYuhCn.js";import{d as a,l as t,A as s,ai as l,ab as o,a4 as i,a7 as r,c as n,a6 as u,a2 as d,a5 as c,a as m,V as p,Y as f,u as g,W as x,a3 as v,a8 as y,a9 as h}from"./vue-vendor-CbMzfmEd.js";import{u as b,a0 as _,y as w,_ as k}from"./index-BeSYre2h.js";import{F as j}from"./vee-validate.esm-K3-eYOt_.js";import{aa as V,L as I,V as L,f as S,b as q,y as N,x as U}from"./vuetify-CRRSJ5Gm.js";import"./crypto-9_-7wEo5.js";import"./icons-C7mfdJ0s.js";import"./ag-grid-BEkLTNLs.js";const z={class:"d-flex flex-wrap align-center my-3 ml-n2"},A={class:"ml-sm-auto"},E=(e=>(y("data-v-6b3491c1"),e=e(),h(),e))(()=>u("span",{class:"yandex-id-badge"},"Я",-1)),K={key:0,class:"mt-2"},T=k(a({__name:"LoginForm",setup(e){const a=l(),y=o(),h=t(""),k=t(""),N=t([e=>!!e||"ÐÑо обÑзаÑелÑное поле"]),U=t([e=>!!e||"ÐÑо обÑзаÑелÑное поле"]),T=b();async function C(){await T.login(k.value,h.value)}T.returnUrl="/nc";const D=t(!1);return s(()=>{const e=a.query.yandexToken;if("string"==typeof e&&e)return localStorage.removeItem("user"),localStorage.setItem("token",e),T.token=e,document.cookie=`token=${e}; path=/; secure; samesite=strict`,_(e),"1"===a.query.yandexNew&&w("LK_SIGNUP_DONE"),void y.push("/nc");const t=a.query.yandexError;"string"==typeof t&&t&&(T.error=t)}),(e,a)=>{const t=f("RouterLink");return v(),i(g(j),{onSubmit:C,class:"mt-5",style:{"min-width":"380px"}},{default:r(({errors:e,isSubmitting:s})=>[n(V,{class:"text-subtitle-1 font-weight-semibold pb-2 text-lightText"},{default:r(()=>[m("Email")]),_:1}),n(I,{modelValue:k.value,"onUpdate:modelValue":a[0]||(a[0]=e=>k.value=e),rules:U.value,class:"mb-8",required:"","hide-details":"auto"},null,8,["modelValue","rules"]),n(V,{class:"text-subtitle-1 font-weight-semibold pb-2 text-lightText"},{default:r(()=>[m("ÐаÑолÑ")]),_:1}),n(I,{modelValue:h.value,"onUpdate:modelValue":a[3]||(a[3]=e=>h.value=e),rules:N.value,required:"","hide-details":"auto",type:D.value?"text":"password",class:"pwdInput"},{"append-inner":r(()=>[n(L,{onClick:a[1]||(a[1]=e=>D.value=!D.value),icon:D.value?"mdi-eye-off":"mdi-eye",size:"small",class:"cursor-pointer",style:{opacity:"0.7"},onMousedown:a[2]||(a[2]=p(()=>{},["prevent"]))},null,8,["icon"])]),_:1},8,["modelValue","rules","type"]),u("div",z,[u("div",A,[n(t,{to:"/auth/password-reset",class:"text-primary text-decoration-none text-body-1 opacity-1 font-weight-medium"},{default:r(()=>[m("ÐабÑли паÑолÑ? ")]),_:1})])]),n(S,{size:"large",loading:s,color:"primary",block:"",type:"submit",flat:""},{default:r(()=>[m("ÐойÑи")]),_:2},1032,["loading"]),n(S,{size:"large",block:"",flat:"",class:"mt-3 yandex-id-btn",onClick:a[4]||(a[4]=e=>g(T).loginYandex())},{default:r(()=>[E,m("ÐойÑи Ñ Ð¯Ð½Ð´ÐµÐºÑ ID ")]),_:1}),g(T).error?(v(),d("div",K,[n(q,{color:"error"},{default:r(()=>[m(x(g(T).error),1)]),_:1})])):c("",!0)]),_:1})}}}),[["__scopeId","data-v-6b3491c1"]]),C={class:"pa-3"},D={class:"auth-header pt-lg-6 pt-2 px-sm-6 px-3 pb-lg-6 pb-0"},F={class:"position-relative"},M={class:"mt-xl-0 mt-5 mw-100"},R=u("h2",{class:"text-h3 font-weight-bold mb-2"},"ÐобÑо пожаловаÑÑ Ð² MARKZNAK",-1),Y=u("div",{class:"text-subtitle-1 mb-6"},"ÐÐ°Ñ Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½Ñ Ð´Ð»Ñ ÑабоÑÑ Ñ Ð§ÐµÑÑнÑм знаком",-1),G={class:"text-h6 d-flex align-center mt-6 font-weight-medium"},O=a({__name:"SideLogin",setup:a=>(a,t)=>(v(),d("div",C,[n(U,{class:"h-100vh mh-100 auth"},{default:r(()=>[n(N,{cols:"12",lg:"7",xl:"8",class:"d-lg-flex align-center justify-center authentication position-relative"},{default:r(()=>[u("div",D,[u("div",F,[n(e)])])]),_:1}),n(N,{cols:"12",lg:"5",xl:"4",class:"d-flex align-center justify-center"},{default:r(()=>[u("div",M,[R,Y,n(T),u("h6",G,[m(" ÐÑе Ð½ÐµÑ Ð°ÐºÐºÐ°ÑнÑа? "),n(S,{class:"pl-0 text-primary text-body-1 opacity-1 pl-2 font-weight-medium",height:"auto",to:"/auth/register",variant:"plain"},{default:r(()=>[m("РегиÑÑÑаÑиÑ")]),_:1})])])]),_:1})]),_:1})]))});export{O 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.