PageSourceSearch

https://indexjump.com/_nuxt/BOgvRvT_.js

js indexjump.com collected 2026-09-24 09:06:39 UTC 7,152 bytes, 1 lines download raw bytes

1import{W as ce,d as de,i as ue,k as pe,z as ve,B as _e,u as he,a as me,c as d,b as s,t as r,q as f,g as n,x as k,I as U,S as O,A as E,F as W,X as we,f as ge,s as w,V as fe,o as u,h as Ee}from"./oDDDfqFT.js";import{u as Ae}from"./BnnBulD2.js";const ye=ce("/images/google-logo.svg"),ke={class:"authorize-page"},Ie={class:"container"},Ce={class:"login-container"},xe={class:"title text-center"},Re={class:"auth-content"},Ue={class:"text-center"},Oe={class:"divider-wrapper"},Ne={class:"divider"},Te={class:"email"},$e=["readonly"],Se={key:0,class:"error red"},be={key:0,class:"text-center"},Le={class:"relative"},Pe=["type"],De={key:0,class:"error red"},ze={key:0},Me={class:"relative"},Ge={key:0,class:"error red"},Fe={class:"captcha-wrapper"},We={class:"captcha-question"},He={class:"relative"},Ve={key:0,class:"error red"},qe={class:"text-center"},Ze={key:0,class:"text-center"},Be={key:1,class:"text-center"},Je={key:2,class:"text-center"},Ye={key:3,class:"error red"},je=de({__name:"authorize",setup(Xe){const N=ue(),g=pe(),{user:T,loadUser:H,isUserAuthenticated:$}=ve(),{referer:V}=_e(),{lang:q,getMessage:Z}=he(),{getLangRoute:B,getLangFullUrl:J,getDomainFromUrl:Y}=Ae(),o=(t,e)=>Z(t,e),_=w(null),c=w(""),h=w(""),v=w(""),y=w(!1),I=w(!1),l=w({}),i=fe({question:"",token:"",answer:""}),j=t=>Array.isArray(t)?t[0]||"":t||"",p=(t,e)=>{l.value[t]=e},S=()=>{i.question="",i.token="",i.answer=""},b=t=>t instanceof Error?t.message:typeof t=="string"?t:"";me(()=>({title:o("IJ_PAGE_TITLE_AUTHORIZE","IndexJump"),meta:[{key:"description",name:"description",content:o("IJ_PAGE_DESC_AUTHORIZE","")},{key:"og:title",name:"og:title",property:"og:title",content:o("IJ_PAGE_TITLE_AUTHORIZE","IndexJump")},{key:"og:description",name:"og:description",property:"og:description",content:o("IJ_PAGE_DESC_AUTHORIZE","")}]}));const X=async t=>{const e=`/api/auth/${t}`,a=600,m=700,D=window.screenX+(window.outerWidth-a)/2,le=window.screenY+(window.outerHeight-m)/2,z={width:a,height:m,left:D,top:le,status:"no",resizable:"yes",toolbar:"no",menubar:"no",scrollbars:"yes"},ie=Object.keys(z).map(F=>`${F}=${z[F]}`).join(","),M=window.open(e,`oauth_${t}`,ie);if(!M)return;const G=()=>{if(!M.closed){setTimeout(G,100);return}x(`oauth_${t}_btn`)};G()},Q=async()=>{A(c.value)&&(_.value=await g.$post("Auth.checkEmailExist",c.value),I.value=!1,await R())},K=async()=>{if(!A(c.value)||!C(v.value)||!P())return;const t={email:c.value,password:v.value,captchaToken:i.token,captchaAnswer:i.answer};try{await g.$post("Auth.login",t),await x("native")}catch(e){await R(),p("auth",b(e)||o("YOUR_ACCOUNT_INFO_WAS_ENTERED_INCORRECTLY"))}},ee=async()=>{if(!A(c.value)||!C(v.value)||!L(h.value)||!P())return;const t={email:c.value,username:h.value,password:v.value,captchaToken:i.token,captchaAnswer:i.answer};try{await g.$post("Auth.register",t),await x("native")}catch(e){await R(),p("auth",b(e)||o("YOUR_ACCOUNT_INFO_WAS_ENTERED_INCORRECTLY"))}},te=async()=>{A(c.value)&&(I.value=!0,await g.$post("User.forgotPassword",c.value))},se=()=>{A(c.value),h.value="",p("username",""),v.value="",p("password",""),S(),p("captcha","")},A=t=>{const a=/^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,})$/.test(t),m=a?"":o("PLEASE_ENTER_A_VALID_EMAIL");return p("email",m),a},C=t=>{const a=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/.test(t),m=a?"":o("MUST_CONTAIN_AT_LEAST_PASSWORD");return p("password",m),a},L=t=>{const e=!!(t&&t.trim()),a=e?"":o("USERNAME_IS_REQUIRED");return p("username",a),e},ae=()=>{_.value=null,c.value="",h.value="",v.value="",l.value={},S()},ne=()=>{y.value=!y.value},x=async t=>{if(await H(),!$.value){ae();return}oe({clickInfo:t});const e=j(N.query.redirectUrl);if(e){let a=e;/(^indexjump\.com$)|(.+\.indexjump\.com$)/.test(Y(a))||(a=`https://indexjump.com${B("/panel/indexing")}`),window.location.href=a;return}
1window.location.href=J("/panel/indexing")},oe=(t={})=>{$.value&&(g.$post("Auth.setRegInfo",{page:N.path||"",lang:q.value||"",referer:V.value||"",clickInfo:t.clickInfo||""}).catch(()=>{}),re())},re=()=>{const t=window;typeof t.statInside=="function"&&T.value?.id&&t.statInside("userId",T.value.id)},R=async()=>{try{const t=await g.$post("Captcha.generate");t&&(i.question=t.question||"",i.token=t.token||"",i.answer="",p("captcha",""))}catch(t){console.error("Captcha load error:",t)}},P=()=>!i.answer||!i.answer.trim()?(p("captcha","Please answer the captcha"),!1):(p("captcha",""),!0);return(t,e)=>(u(),d("div",ke,[s("div",Ie,[s("div",Ce,[s("h1",xe,r(o("LOGIN_OR_SIGN_UP")),1),s("div",Re,[s("div",Ue,[s("span",{class:"btn btn-google btn-xlarge",onClick:e[0]||(e[0]=a=>X("google"))},[e[14]||(e[14]=s("img",{src:ye,width:"20",height:"20",alt:"Google"},null,-1)),s("span",null,r(o("CONTINUE_WITH_GOOGLE")),1)])]),s("div",Oe,[s("span",Ne,r(o("OR")),1)]),s("div",Te,[s("div",{class:f(["relative",[{"email-clean":n(_)!==null}]]),onClick:e[3]||(e[3]=a=>_.value=null)},[k(s("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>O(c)?c.value=a:null),type:"text",id:"email",onChange:e[2]||(e[2]=a=>se()),readonly:n(_)!==null,placeholder:" "},null,40,$e),[[U,n(c),void 0,{lazy:!0}]]),s("label",{class:f(["placeholder",[{red:n(l).email}]])},r(o("EMAIL")),3),n(l).email?(u(),d("div",Se,r(n(l).email),1)):E("",!0)],2)]),n(_)===null?(u(),d("div",be,[s("span",{class:"btn btn-xlarge",onClick:e[4]||(e[4]=a=>Q())}
1,r(o("CONTINUE_WITH_EMAIL")),1)])):(u(),d(W,{key:1},[s("div",null,[s("div",Le,[k(s("input",{"onUpdate:modelValue":e[5]||(e[5]=a=>O(v)?v.value=a:null),type:n(y)?"text":"password",id:"password",onChange:e[6]||(e[6]=a=>C(n(v))),placeholder:" "},null,40,Pe),[[we,n(v),void 0,{lazy:!0}]]),s("label",{class:f(["placeholder",[{red:n(l).password}]])},[ge(r(o("PASSWORD"))+" ",1),s("span",{onClick:e[7]||(e[7]=a=>ne()),class:"link password-eye"},[s("i",{class:f("fa-solid fa-fw fa-"+(n(y)?"eye":"eye-slash"))},null,2)])],2),n(l).password?(u(),d("div",De,r(n(l).password),1)):E("",!0)])]),n(_)?E("",!0):(u(),d("div",ze,[s("div",Me,[k(s("input",{"onUpdate:modelValue":e[8]||(e[8]=a=>O(h)?h.value=a:null),type:"text",id:"username",onChange:e[9]||(e[9]=a=>L(n(h))),placeholder:" "},null,544),[[U,n(h),void 0,{lazy:!0}]]),s("label",{class:f(["placeholder",[{red:n(l).username}]])},r(o("USERNAME")),3),n(l).username?(u(),d("div",Ge,r(n(l).username),1)):E("",!0)])])),s("div",Fe,[s("div",We,[s("span",null,r(n(i).question)+" = ?",1)]),s("div",He,[k(s("input",{"onUpdate:modelValue":e[10]||(e[10]=a=>n(i).answer=a),type:"text",id:"captcha",placeholder:" "},null,512),[[U,n(i).answer]]),s("label",{class:f(["placeholder",[{red:n(l).captcha}]])},"Answer",2),n(l).captcha?(u(),d("div",Ve,r(n(l).captcha),1)):E("",!0)])]),n(_)?(u(),d(W,{key:1},[s("div",qe,[s("span",{class:"btn btn-xlarge",onClick:e[11]||(e[11]=a=>K())},r(o("LOGIN_IN")),1)]),n(I)?(u(),d("div",Ze,[s("span",null,r(o("CHECK_YOUR_INBOX_AND_SPAM_FOLDER_FOR_NEW_MAIL")),1)])):(u(),d("div",Be,[s("span",{class:"link",onClick:e[12]||(e[12]=a=>te())},r(o("FORGOT_PASSWORD")),1)]))],64)):(u(),d("div",Je,[s("span",{class:"btn btn-xlarge",onClick:e[13]||(e[13]=a=>ee())},r(o("SIGN_UP")),1)])),n(l).auth?(u(),d("div",Ye,r(n(l).auth),1)):E("",!0)],64))])])])]))}}),et=Ee(je,[["__scopeId","data-v-848705cd"]]);export{et 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.