PageSourceSearch

https://aiattractivenesstest.ai/_nuxt/BwzofQkF.js

js aiattractivenesstest.ai collected 2026-10-05 11:46:52 UTC 7,036 bytes, 1 lines download raw bytes

1import{i as D,j as I,k as V,u as j,l as A,o as r,c as S,b as E,w as F,m as a,d,a as e,t as n,F as h,p as w,q as _,v as C,n as U,s as H,x as N,g as T,y as G,z as p,A as R,B as O,C as P,D as q,E as J}from"./BbdR-8bw.js";import{g as K}from"./DPL0LKyi.js";import{_ as Q}from"./DlAUqK2U.js";const W={key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[9999] flex justify-center items-center p-2"},X={class:"bg-white rounded-2xl w-full max-w-md p-8 shadow-xl relative"},Y={class:"mt-2 text-center"},Z={class:"text-3xl font-bold text-gray-900 font-sans"},ee={class:"mt-2 text-sm text-gray-500"},te={class:"mt-8"},se=["disabled"],oe={class:"relative mt-8"},ae={class:"relative flex justify-center"},le={class:"bg-white px-4 text-sm text-gray-900 font-medium"},ne={class:"mt-6 space-y-5"},ie={class:"block text-sm font-semibold text-gray-900 mb-1.5"},re={class:"block text-sm font-semibold text-gray-900 mb-1.5"},de={class:"flex gap-2"},pe=["disabled"],ce={class:"mt-2 text-xs text-gray-500"},ue={class:"pt-2"},ge=["disabled"],me={key:0},fe={key:1,class:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ve={__name:"LoginModal",setup(be){const{t:c}=D(),k=I(),{isOpen:$,close:y}=V(),{fail:u,success:M}=j(),b=A(),l=p({email:"",code:""}),i=p(0),g=p(null),m=p(!1),f=p(!1),z=()=>{G("login","close"),y(!1)},x=async s=>{if(g.value)return;if(!l.value.email){u(c("popups.login.fillEmail"));return}const{sendEmailCode:t}=P();i.value=60,g.value=q(()=>{i.value--,i.value<=0&&(clearInterval(g.value),g.value=null)},1e3);const o=new FormData;o.append("app","aiattractivenesstest.ai"),o.append("did_type","uuid"),o.append("os","web"),o.append("pvc","2"),o.append("email",l.value.email);try{await t(o)}catch(v){u(v?.m||v?.message||c("popups.login.failedSendCode"))}},B=()=>{if(!l.value.code||!l.value.email){u(c("popups.login.fillCode"));return}m.value=!0;const s=Date.now(),t=new FormData;t.append("app","aiattractivenesstest.ai"),t.append("did_type","uuid"),t.append("os","web"),t.append("pvc","2"),t.append("email",l.value.email),t.append("rid",K()),t.append("ts",s),t.append("code",l.value.code),b.loginCode(l.value.email,t).then(async o=>{M(c("popups.login.loginSuccess")),J({method:"email"}),y(!0)}).catch(o=>{u(o?.data?.message||o?.message||o?.toString())}).finally(()=>{m.value=!1})},L=async()=>{const{$utils:s}=R();if(O("nav_bar","google_login"),f.value)return;f.value=!0,b.userInfo=null,b.isGoogleLogin=!0;const{uid:t}=await s.user.get(),o=await s.getDeviceId(),v=k.fullPath;window.location.href=`https://aiattractivenesstest.ai/api/v1/oauth/google?redirect_to=${encodeURIComponent(v)}&app=aiattractivenesstest.ai&did=${o}&os=web&uid=${t}`};return(s,t)=>(r(),S(T,{to:"body"},[E(N,{name:"overlay"},{default:F(()=>[a($)?(r(),d("div",W,[e("div",X,[e("button",{onClick:z,class:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors focus:outline-none"},[...t[4]||(t[4]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])]),e("div",Y,[e("h3",Z,n(s.$t("popups.login.welcome")),1),e("p",ee,n(s.$t("popups.login.subtitle")),1)]),e("div",te,[e("button",{onClick:L,class:"flex w-full items-center justify-center gap-3 rounded-full border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all shadow-sm",disabled:a(f)},[a(f)?(r(),d(h,{key:1},[t[6]||(t[6]=e("svg",{class:"animate-spin h-5 w-5 text-gray-700",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),w(" "+n(s.$t("popups.login.loading")),1)],64)):(r(),d(h,{key:0},[t[5]||(t[5]=e("svg",{class:"h-5 w-5",viewBox:"0 0 24 24"},[e("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),e("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),e("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),e("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})],-1)),w(" "+n(s.$t("popups.login.continueGoogle")),1)],64))],8,se)]),e("div",oe,[t[7]||(t[7]=e("div",{class:"absolute inset-0 flex items-center","aria-hidden":"true"},[e("div",{class:"w-full border-t border-gray-200"})],-1)),e("div",ae,[e("span",le,n(s.$t("popups.login.login")),1)])]),e("div",ne,[e("div",null,[e("label",ie,n(s.$t("popups.login.email")),1),_(e("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=o=>a(l).email=o),class:"block w-full rounded-full border-0 py-2.5 px-3 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-600 sm:text-sm sm:leading-6",autocomplete:"email"},null,512),[[C,a(l).email]])]),e("div",null,[e("label",re,n(s.$t("popups.login.verificationCode")),1),e("div",de,[_(e("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=o=>
1a(l).code=o),class:"block w-full rounded-full border-0 py-2.5 px-3 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-600 sm:text-sm sm:leading-6"},null,512),[[C,a(l).code]]),e("button",{type:"button",onClick:t[2]||(t[2]=()=>x("send")),class:U(["rounded-full px-4 py-2 text-sm font-semibold text-white shadow-sm whitespace-nowrap min-w-[100px]",a(i)>0?"bg-gray-400 cursor-not-allowed":"bg-brand-600 hover:bg-brand-700"]),disabled:a(i)>0},n(a(i)>0?`${a(i)}s`:s.$t("popups.login.sendCode")),11,pe)]),e("p",ce,[w(n(s.$t("popups.login.didntReceive"))+" ",1),e("button",{onClick:t[3]||(t[3]=()=>x("resend")),class:"text-blue-500 hover:text-blue-600 font-medium"},n(s.$t("popups.login.resend")),1)])]),e("div",ue,[e("button",{type:"button",onClick:B,class:"flex w-full justify-center items-center rounded-full bg-brand-600 px-3 py-3 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-brand-700 transition-colors",disabled:a(m)},[a(m)?(r(),d("svg",fe,[...t[8]||(t[8]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):(r(),d("span",me,n(s.$t("popups.login.signIn")),1))],8,ge)])])])])):H("",!0)]),_:1})]))}},he=Object.assign(Q(ve,[["__scopeId","data-v-ab2ee61c"]]),{__name:"LoginModal"});export{he 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.