1import{d as $,i as N,k as z,z as D,u as J,a as Y,m as B,n as G,c as d,b as s,t as c,x as P,I as j,g as n,S as O,q as C,A as p,F as V,f as R,s as f,v as H,p as Z,o as _,h as q}from"./oDDDfqFT.js";import{u as K}from"./BnnBulD2.js";const Q={class:"user-verify-page"},X={class:"container"},W={class:"login-container"},ee={class:"title text-center"},te={class:"auth-content"},se={class:"email"},ae={class:"relative"},ne=["readonly"],ie={key:0,class:"error red"},oe={class:"text-center"},le=["disabled"],re={key:0,class:"fa-solid fa-fw fa-spinner fa-spin-pulse"},ce={key:0},ue={class:"strong text-center"},de=$({__name:"verify",async setup(_e){let v,E;const T=N(),y=z(),{user:u}=D(),{getMessage:w}=J(),{getLangRoute:g,getLangFullUrl:b,getDomainFromUrl:L,sleep:M}=K(),a=(t,e)=>w(t,e),i=f(""),m=f({}),o=f(!1),l=f(!1),I=H(()=>!!(u.value?.verify&&u.value?.email)),F=t=>Array.isArray(t)?t[0]||"":t||"",A=(t,e)=>{m.value[t]=e};Y(()=>({title:a("IJ_PAGE_TITLE_VERIFY","IndexJump"),meta:[{key:"description",name:"description",content:a("IJ_PAGE_DESC_VERIFY","")},{key:"og:title",name:"og:title",property:"og:title",content:a("IJ_PAGE_TITLE_VERIFY","IndexJump")},{key:"og:description",name:"og:description",property:"og:description",content:a("IJ_PAGE_DESC_VERIFY","")}]}));const h=t=>{const r=/^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,5})$/.test(t),k=r?"":a("PLEASE_ENTER_A_VALID_EMAIL");return A("email",k),r},S=()=>{h(i.value)},U=async()=>{const t=F(T.query.redirectUrl);if(t){let e=t;/(^indexjump\.com$)|(.+\.indexjump\.com$)/.test(L(e))||(e=`https://indexjump.com${g("/panel/indexing")}`),window.location.href=e;return}window.location.href=b("/panel/indexing")},x=async()=>{if(h(i.value)&&!(l.value||o.value)){if(!u.value?.email){o.value=!0;try{if(await y.$post("Auth.checkEmailExist",i.value)){A("email",a("EMAIL_EXIST"));return}}finally{o.value=!1}}o.value=!0;try{const t=await y.$post("User.verifyEmail",i.value);if(t&&typeof t=="object"&&t.success){await U();return}l.value=!0,await M(1e4),l.value=!1}finally{o.value=!1}}};return I.value?([v,E]=B(()=>Z(g("/"),{replace:!0})),await v,E()):i.value=u.value?.email||"",G(()=>{!u.value?.email||I.value||x()}),(t,e)=>(_(),d("div",Q,[s("div",X,[s("div",W,[s("div",ee,c(a("EMAIL_VERIFICATION")),1),s("h4",null,c(a("TO_GET_VERIFICATION_MAIL_MAKE_SURE")),1),s("div",te,[s("div",se,[s("div",ae,[P(s("input",{"onUpdate:modelValue":e[0]||(e[0]=r=>O(i)?i.value=r:null),type:"text",id:"email",onChange:e[1]||(e[1]=r=>S()),placeholder:" ",readonly:!!n(u).email},null,40,ne),[[j,n(i),void 0,{lazy:!0}]]),s("label",{class:C(["placeholder",[{red:n(m).email}]])},c(a("EMAIL")),3),n(m).email?(_(),d("div",ie,c(n(m).email),1)):p("",!0)])]),s("div",oe,[s("span",{class:C(["btn btn-xlarge",{"btn-disabled":n(l)||n(o)}]),onClick:e[2]||(e[2]=r=>x()),disabled:n(l)||n(o)},[n(l)?(_(),d(V,{key:0},[R(c(a("SENT"))+" ",1),e[3]||(e[3]=s("i",{class:"fa-solid fa-fw fa-check"},null,-1))],64)):(_(),d(V,{key:1},[n(o)?(_(),d("i",re)):p("",!0),R(" "+c(a("VERIFY")),1)],64))],10,le)]),n(l)?(_(),d("div",ce,[e[4]||(e[4]=s("br",null,null,-1)),s("p",ue,c(a("CHECK_YOUR_EMAIL")),1)])):p("",!0)])])])]))}}),pe=q(de,[["__scopeId","data-v-155b81b3"]]);export{pe 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.