1import{_ as N}from"./E6UmVeRS.js";import{_ as S}from"./BBsDtKHy.js";import{p as B,U as C,Q as L,s as U,o as P,y as z,h as _,i as s,k as a,af as y,a3 as g,V as d,as as H,at as W,W as w,X as Y,r as c,b as $,e as q,g as r,am as F,au as j,Y as K,aa as Q}from"./0XwV3hpy.js";import{R as E}from"./U8iUAKnw.js";import{g as X}from"./CrPenk7s.js";import{_ as Z}from"./DH33LfDt.js";import"./DMBXOVku.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"ecos-frontend-cp@32b46d188678f896e839c69d78ed855453967266"};var n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="18e009cf-e00f-4c67-acf7-1f8f7ad88be3",o._sentryDebugIdIdentifier="sentry-dbid-18e009cf-e00f-4c67-acf7-1f8f7ad88be3")}catch{}})();const G={class:"reset-email-check-block"},J={class:"reset-email-check"},O={class:"reset-email-check__steps"},ee={class:"reset-email-check__body"},te={class:"reset-email-check__block"},se={class:"reset-email-check__verify"},ae={class:"reset-email-check__title_check"},oe={class:"reset-email-check__title_block"},ie={class:"reset-email-check__title"},ce={class:"reset-email-check__subtitle"},ne={id:"emailNumberApp"},le={class:"reset-email-check__code",for:"emailNumber"},re=["onUpdate:modelValue"],de={key:0,class:"reset-email-check__warning"},_e=B({__name:"check-email",setup(o){C({title:"Check Email",meta:[{name:"description",content:"check email page"}]});const{t:n}=L(),v=U(),k=c(""),i=c(["","","","","",""]),I=c(!1),b=c(null),m=c(""),u=c(!1),f=c(!1),x=$().public.API_V2_URL,D=q(()=>i.value.every(t=>t.trim()!=="")),p=()=>{u.value=window.innerWidth<768};P(()=>{k.value=X();const t=localStorage.getItem("tempAuthToken");t&&(b.value=t),p(),window.addEventListener("resize",p)}),z(()=>{window.removeEventListener("resize",p)});const T=()=>{f.value=!0;const t={code:i.value.join("")};Q(`${x}/auth/password/email/check`,t,{authorization:`Bearer ${b.value}`}).then(e=>{e&&typeof e!="string"?v.push({name:"reset-password"}):m.value="Invalid verification code"}).catch(()=>{m.value="Invalid verification code"}).finally(()=>{f.value=!1})},M=t=>{const e=t.target;e&&(e.value===""&&e.previousElementSibling instanceof HTMLInputElement&&e.previousElementSibling.focus(),e.value!==""&&e.nextElementSibling instanceof HTMLInputElement&&e.nextElementSibling.focus())},R=t=>{if(t.preventDefault(),t.clipboardData){const e=t.clipboardData.getData("text");if(/^\d+$/.test(e))for(let l=0;l<Math.min(e.length,i.value.length);l++)i.value[l]=e.charAt(l)}};return(t,e)=>{const l=N,V=S;return r(),_("div",G,[s("div",J,[s("div",O,[s("div",ee,[e[1]||(e[1]=s("img",{class:"reset-email-check__logo",src:"https://s3.ecos.am/files/eic6RcU4USfmc3ZTpuwcH9df1nfk1Y5BDr02gITn.svg",alt:"logo"},null,-1)),a(u)?(r(),y(E,{key:0,"current-step":1})):g("",!0),s("div",te,[e[0]||(e[0]=s("img",{class:"reset-email-check__image",src:"https://s3.ecos.am/files/MlqBlI3Apd18M1Kg74ueavrbcmMnAEbRyNqdeyzV.svg",alt:"logo"},null,-1)),s("div",se,[s("div",ae,[s("div",oe,[s("h2",ie,d(a(n)("pages.check.title")),1),s("p",ce,d(a(n)("pages.check.verification"))+" "+d(a(k)),1)]),s("div",ne,[s("label",le,[(r(!0),_(H,null,W(a(i),(ue,h)=>F((r(),_("input",{key:h,"onUpdate:modelValue":A=>a(i)[h]=A,maxlength:"1",type:"text",inputmode:"numeric",class:"reset-email__valid",onPaste:R,onInput:M},null,40,re)),[[j,a(i)[h]]])),128))]),a(I)?g("",!0):(r(),_("div",de,d(a(m)),1))])]),w(l,{"disable-after-click":!0,"is-load":a(f),variant:"orange",disabled:!a(D),onClick:T},{default:Y(()=>[K(d(a(n)("pages.check.verify_emai")),1)]),_:1},8,["is-load","disabled"])])])]),a(u)?g("",!0):(r(),y(E,{key:0,"current-step":1}))])]),w(V)])}}}),ye=Z(_e,[["__scopeId","data-v-0113aec1"]]);export{ye 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.