PageSourceSearch

https://statics.piclumen.com/app-1790217403140/_nuxt/A2e4UEud.js

js piclumen.com collected 2026-09-24 09:46:20 UTC 15,647 bytes, 1 lines download raw bytes

1import{c6 as e,aZ as t,N as a,ar as l,bX as s,ap as r,aq as n,T as o,_ as i,f3 as u}from"./Bx1xfRBz.js";import{x as c,_ as d,gx as v,o as p,et as m,y as x,gy as f,G as g,c as _,fD as h,gz as b,gA as y,bv as w,f as I,H as E}from"./DCCPWw9Y.js";import{c as L,o as V,e as O,P as N,an as R,ao as k,g as G,y as A,f as C,r as P,a as T,aP as $,d as S,V as j,bb as D,aT as M,E as F,J as z,Y as U,l as q,N as B,L as W,w as H,j as K,S as X,aN as J,$ as Q,a7 as Y,X as Z}from"./CmUz1GCm.js";import{V as ee,i as te,b as ae}from"./DscB4zjJ.js";import{s as le}from"./YMolbn0J.js";import{u as se,a as re}from"./CnCLToJu.js";import{e as ne,f as oe}from"./typec3uv.js";import{u as ie}from"./Dt5DPnqm.js";import"./pyVxiBLO.js";import"./DTLJGphe.js";const ue={class:"flex items-center justify-center"},ce={__name:"ShowPassEye",props:{modelValue:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(a,{emit:l}){const s=a,r=l,n=()=>{r("update:modelValue",!s.modelValue)};return(l,s)=>{const r=e,o=t;return V(),L("div",ue,[a.showIcon?(V(),L(N,{key:0},[R(G(r,{class:"text-2xl cursor-pointer select-none",onClick:n},null,512),[[k,a.modelValue]]),R(G(o,{class:"text-2xl cursor-pointer select-none",onClick:n},null,512),[[k,!a.modelValue]])],64)):O("",!0)])}}},de="signin",ve=A({type:"signin",email:{value:"",valid:function(){return""!==this.value.trim()&&ee.validate("email",this.value)?(this.error="",!0):(this.error="LOGIN_V2.EMAIL_ERR",!1)},validRegister:function(){return!!this.valid()&&(!te(this.value)||(this.error="LOGIN_V2.EMAIL_BLOCKED",!1))},error:""},forgotEmail:{value:"",valid:function(){return""!==this.value.trim()&&ee.validate("email",this.value)?(this.error="",!0):(this.error="LOGIN_V2.EMAIL_ERR",!1)},error:""},password:{value:"",valid:function(){return""!==this.value&&ee.validate("password2",this.value)?(this.error="",!0):(this.error="LOGIN_V2.PASSWORD_ERR",!1)},error:""},code:{value:"",valid:function(){return!0},error:""},newPassword:{value:"",valid:function(){return""!==this.value&&ee.validate("password2",this.value)?(this.error="",!0):(this.error="LOGIN_V2.PASSWORD_ERR",!1)},error:""},confirmPassword:{value:"",valid:function(){return""!==this.value&&ee.validate("password2",this.value)?this.value!==ve.newPassword.value?(this.error="LOGIN_V2.PASSWORD_MATCH_ERR",!1):(this.error="",!0):(this.error="LOGIN_V2.PASSWORD_ERR",!1)},error:""}}),pe={class:"space-y-4 text-text-1 w-full max-w-[360px] mx-auto xl:mx-0 xl:w-[360px]"},me={class:"mt-6 space-y-4"},xe={class:"flex gap-2 items-center px-4 py-0.5 mt-2 rounded-full border border-solid border-black/5 focus-within:border-z-accent bg-fill-ipt-1 transition-all duration-300"},fe=["placeholder","disabled"],ge={class:"flex items-center gap-3 px-4 py-0.5 mt-2 rounded-full border border-solid border-black/5 focus-within:border-z-accent bg-fill-ipt-1 transition-all duration-300"},_e=["type","placeholder","disabled"],he={__name:"EmailForm",emits:["change"],setup(e,{emit:t}){const r=c(),n=t,o=(e,t)=>{n("change",{type:e,value:t})},i=()=>{o("comp","MainPanel"),ve.email.value="",ve.email.error="",ve.password.value="",ve.password.error=""},u=P(),g=()=>{ve.email.valid()},_=()=>{ve.email.error=""},h=()=>{ve.password.valid()},b=()=>{ve.password.error=""},y=P(!1),w=P(!1),I=q((()=>!ve.email.value||!ve.password.value)),E=async()=>{try{const e=ve.email.valid(),t=ve.password.valid();if(!e||!t)return;w.value=!0;const{email:a,password:l}=ve,s={account:a.value,password:le(l.value)},{status:n,data:i,message:u}=await v(s);if(ae(n,ve.email))return;if(0!==n&&4082!==n)return void p.error(u);if(i)return await m(i),void x(r("/"));if(!ve.email.validRegister())return;const c=await f({account:a.value}).catch((e=>e));if(ae(c?.status,ve.email))return;if(0!==c?.status)return void p.warning(c?.message);o("comp","VerCode")}catch(e){p.error(e.message)}finally{w.value=!1}},O=()=>{I.value||w.value||E()};return C((()=>{ve.email.value||u.value?.focus()})),(e,t)=>{const r=a,n=l,o=s,c=d;return V(),L("div",pe,[T("div",{onClick:i,class:"size-8 rounded-full flex justify-center items-center cursor-pointer bg-fill-wd-1 backdrop-blur-lg absolute top-0 left-0"},[G(r,{class:"size-4 text-text-t-2 hover:text-text-1"})]),T("div",me,[T("div",null,[T("div",xe,[G(n,{class:"size-5 text-text-4"}),R(T("input",{ref_key:"emailInputRef",ref:u,"onUpdate:modelValue":t[0]||(t[0]=e=>S(ve).email.value=e),class:"w-full h-11 bg-transparent border-none outline-none text-[13px] text-text-1 placeholder:text-text-4 focus:text-text-1 focus:caret-z-accent",type:"text",placeholder:e.$t("LOGIN_V2.EMAIL_PLC"),onBlur:g,onInput:_,disabled:S(w),maxlength:"80"},null,40,fe),[[$,S(ve).email.value]])]),R(T("div",{class:"mt-1 text-xs text-error"},j(S(ve).email.error&&e.$t(S(ve).email.error)),513),[[k,S(ve).email.error]])]),T("div",null,[T("div",ge,[G(o,{class:"size-5 text-text-4"}),R(T("input",{"onUpdate:modelValue":t[1]||(t[1]=e=>S(ve).password.value=e),class:"w-full h-11 bg-transparent border-none outline-none text-[13px] text-text-1 placeholder:text-text-4 focus:text-text-1 focus:caret-z-accent",type:S(y)?"text":"password",placeholder:e.$t("LOGIN_V2.PASSWORD_PLC"),onBlur:h,onInput:b,disabled:S(w),onKeydown:M(O,["enter"]),maxlength:"32"},null,40,_e),[[D,S(ve).password.value]]),G(ce,{class:"w-6 h-6","show-icon":!!S(ve).password.value,modelValue:S(y),"onUpdate:modelValue":t[2]||(t[2]=e=>F(y)?y.value=e:null)},null,8,["show-icon","modelValue"])]),R(T("div",{class:"mt-1 text-xs text-error"},j(S(ve).password.error&&e.$t(S(ve).password.error)),513),[[k,S(ve).password.error]])])]),G(c,{class:"w-full mt-8",type:"primary",size:"large",round:"",disabled:S(I),loading:S(w),onClick:E},{default:z((()=>
1[U(j(e.$t("LOGIN_V2.CONTINUE")),1)])),_:1},8,["disabled","loading"])])}}},be={class:"space-y-4 text-text-1 w-full max-w-[360px] mx-auto xl:mx-0 xl:w-[360px]"},ye={class:"text-xs pointer-events-none"},we={class:"text-xs"},Ie={class:"flex items-center justify-center gap-6"},Ee={class:"text-[13px] shrink-0 text-text-t-1"},Le={class:"text-xs"},Ve={__name:"MainPanel",emits:["change"],setup(e,{emit:t}){const a=P(!1),s=P(null);se(s);const{signInWithApple:i}=re(),{t:u}=g(),d=_(),v=c(),m=t,f=()=>{m("change",{type:"comp",value:"EmailForm"})},h=async()=>{if(!a.value){a.value=!0;try{const{ok:e,reason:t}=await i({inviteCode:d.query.referral_code||""});if(e)return void x(v("/"));"loading"===t?p.warning(u("LOGIN_V2.APPLE_SDK_LOADING")):"failed"===t&&p.error(u("LOGIN_V2.APPLE_SIGN_IN_FAILED"))}finally{a.value=!1}}};return(e,t)=>{const i=r,u=n,c=o,d=l;return V(),L("div",be,[T("div",{ref_key:"googleBtnAnchor",ref:s,class:"h-12 px-3 bg-fill-btn-1 hover:bg-fill-btn-3 rounded-full flex items-center justify-center gap-3 cursor-pointer select-none relative transition-all"},[G(i,{class:"text-2xl pointer-events-none"}),T("span",ye,j(e.$t("LOGIN_V2.WITH_GOOGLE")),1)],512),T("div",{class:W(["h-12 px-3 bg-fill-btn-1 hover:bg-fill-btn-3 rounded-full flex items-center justify-center gap-3 cursor-pointer select-none transition-all",{"!cursor-not-allowed !bg-a-normal-hover-1":S(a)}]),onClick:h},[S(a)?(V(),B(c,{key:1,class:"size-6 mx-auto"})):(V(),L(N,{key:0},[G(u,{class:"text-3xl"}),T("span",we,j(e.$t("LOGIN_V2.WITH_APPLE")),1)],64))],2),T("div",Ie,[t[0]||(t[0]=T("div",{class:"flex-1 h-0.5 bg-border-t-2"},null,-1)),T("div",Ee,j(e.$t("LOGIN_V2.OR")),1),t[1]||(t[1]=T("div",{class:"flex-1 h-0.5 bg-border-t-2"},null,-1))]),T("div",{class:"h-12 px-3 bg-fill-btn-1 hover:bg-fill-btn-3 rounded-full flex items-center justify-center gap-3 cursor-pointer select-none transition-all",onClick:f},[G(d,{class:"text-2xl"}
1),T("span",Le,j(e.$t("LOGIN_V2.WITH_EMAIL")),1)])])}}},Oe={class:"space-y-4 text-text-1w-full max-w-[360px] mx-auto xl:mx-0 xl:w-[360px]"},Ne={class:"mt-6 flex justify-center gap-3"},Re=["onUpdate:modelValue","disabled","onKeydown","onInput","onPaste"],ke={class:"text-sm leading-[22px] text-text-2 text-center"},Ge={class:"ml-1"},Ae={__name:"VerCode",emits:["change"],setup(e,{emit:t}){const l=c(),s=_(),r=t,n=(e,t)=>{r("change",{type:e,value:t})},o=()=>{ve.type===de?n("comp","EmailForm"):n("comp","MainPanel")},i=P(!1),u=P(!0),v=P(60);let g=null;const w=()=>{u.value=!0,v.value=60,g=h((()=>{v.value>0?v.value--:(clearInterval(g),I())}),1e3)},I=()=>{v.value=60,u.value=!1,i.value=!1},E=q((()=>String(v.value).padStart(2,"0"))),O=()=>{(async(e=!0)=>{if(e&&!ve.email.validRegister())return void n("comp","EmailForm");i.value=!0;const t=e?f:b;let a={account:e?ve.email.value:ve.forgotEmail.value};const l=await t(a).catch((e=>e));i.value=!1,ae(l.status,ve.email)?(I(),n("comp","EmailForm")):0!=l.status?(p.warning(l.message),I()):w()})(ve.type===de)},A=P([{val:""},{val:""},{val:""},{val:""}]),D=P([]),F=P(!1),B=q((()=>A.value.some((e=>{return t=e.val,!(!isNaN(parseFloat(t))&&isFinite(t));var t}))));let W=!1;H(B,(e=>{W||e||(J(),W=!0)}));const J=async()=>{const e=ve.type===de;try{if(B.value||F.value)return;F.value=!0;const t=A.value.map((e=>e.val)).join("");if(ve.code.value=t,e){if(!ve.email.validRegister())return F.value=!1,void n("comp","EmailForm");const e=await y({account:ve.email.value,password:le(ve.password.value),validateCode:ve.code.value,inviteCode:s.query.referral_code});if(ae(e.status,ve.email))return F.value=!1,void n("comp","EmailForm");if(0!==e.status)return p.error(e.message),void(F.value=!1);m(e.data),x(l("/"))}0===res.status?n("comp","GuidePanel"):p.error(res.message),F.value=!1}catch(t){F.value=!1}};return C((()=>{ve.type!==de?O():w()})),K((()=>{clearInterval(g)})),(e,t)=>{const l=a,s=d;return V(),L("div",Oe,[T("div",{onClick:o,class:"size-8 rounded-full flex justify-center items-center cursor-pointer bg-fill-wd-1 backdrop-blur-lg absolute top-0 left-0"},[G(l,{class:"size-4 text-text-t-2 hover:text-text-1"})]),T("div",Ne,[(V(!0),L(N,null,X(S(A),((e,t)=>(V(),L("div",{key:t,class:"w-12 h-12 bg-fill-ipt-1 rounded-lg"},[R(T("input",{ref_for:!0,ref_key:"inputRefs",ref:D,"onUpdate:modelValue":t=>e.val=t,class:"w-full h-full bg-transparent border-none outline-none text-base text-text-2 text-center focus:caret-blue-510",type:"text",maxlength:"2",disabled:S(F),onKeydown:M((e=>((e,t)=>{A.value[e].val||e>0&&(t.preventDefault(),A.value[e].val="",D.value[e-1].focus())})(t,e)),["delete"]),onInput:e=>(async(e,t)=>{const a=t.target.value.replace(/\D/g,"");A.value[e].val=a.slice(0,1),a&&e<A.value.length-1&&(D.value[e+1].focus(),a&&!A.value[e+1].val&&(A.value[e+1].val=a.slice(1,2),D.value[e+1]?.setSelectionRange(1,1)))})(t,e),onPaste:e=>(async(e,t)=>{const a=(t.clipboardData||window.clipboardData).getData("text"),l=String(a).trim();return!!/^\d{4}$/.test(l)&&4==l.length&&void A.value.forEach(((e,t)=>{e.val=l[t],D.value[t]?.focus()}))})(0,e)},null,40,Re),[[$,e.val]])])))),128))]),G(s,{class:"w-full mt-8 mb-4 h-12",type:"primary",size:"large",round:"",disabled:S(B),loading:S(F),onClick:J},{default:z((()=>
1[U(j(e.$t("LOGIN_V2.CONTINUE")),1)])),_:1},8,["disabled","loading"]),T("div",ke,[R(T("div",null,[T("span",null,j(e.$t("LOGIN_V2.NOT_GET_CODE")),1),T("span",{class:"text-primary cursor-pointer hover:text-primary-6 select-none ml-1",onClick:O},j(e.$t("LOGIN_V2.RESEND_CODE")),1)],512),[[k,!S(u)]]),R(T("div",null,[T("span",null,j(e.$t("LOGIN_V2.CODE_TIME")),1),T("span",Ge,j(e.$t("LOGIN_V2.TIME_NUM",{time:S(E)})),1)],512),[[k,S(u)]])])])}}},Ce={class:"h-[100vh] flex bg-bg-2"},Pe={class:"hidden xl:block xl:w-1/2 w-full h-full overflow-hidden relative"},Te=["src"],$e={class:"xl:w-1/2 w-full h-full p-4 md:p-8 mx-auto relative"},Se={class:"w-full h-full overflow-hidden flex flex-col items-center justify-center p-6 gap-10 relative"},je={class:"flex flex-col items-center justify-center gap-2 text-center"},De={class:"text-text-1 text-2xl font-semibold"},Me={class:"text-text-t-1 text-base"},Fe={class:"text-text-t-1 text-base"},ze={class:"text-text-1 text-2xl font-semibold"},Ue={class:"text-text-1 font-semibold"},qe={class:"text-xs text-text-3 text-center"},Be={class:"mx-1"},We=i({__name:"index",async setup(e){let t,a;const l=c(),s=_(),{initGoogleSdk:r,promptOneTap:n}=E(),{initAppleSdk:o}=re(),i=["https://images.piclumen.com/referral-landing/registe-1.webp","https://images.piclumen.com/referral-landing/registe-2.webp","https://images.piclumen.com/referral-landing/registe-3.webp"],d=P(0),v=q((()=>i[d.value])),{data:p}=([t,a]=J((async()=>ie((()=>`referralData-${s.query.referral_code}`),(async()=>{const e=s.query.referral_code;if(!e)return{state:0,nickname:""};try{const[t,a]=await Promise.all([ne({inviteCode:e}),oe({code:e})]),l=t?.data||{},s=a?.status,r=a?.data;if(0!==s||!r)return{state:2,nickname:""};let n=2;return 0===t?.status&&l.canUse?n=1:l.inviteLimitReached&&(n=3),{state:n,nickname:r}}catch(t){return{state:2,nickname:""}}}),"$aTQlxOkxbP"))),t=await t,a(),t),m=q((()=>p.value?.nickname||"")),f=q((()=>p.value?.state||2)),g=P("MainPanel"),b={MainPanel:Ve,EmailForm:he,VerCode:Ae},y=q((()=>ve.type===de?ve.email.value:ve.forgotEmail.value)),R=({type:e,value:t})=>{if("comp"===e)g.value=t},k=w("authToken",{maxAge:31536e3});let A=null;const $=(e,t)=>{try{window.trackEvent(e,{el:t})}catch(a){}};return C((()=>{const e=k.value;e&&"null"!==e&&"undefined"!==e?($("referral_register_view",`share_method=${s.query.shareMethod}&referral_code=${s.query.referralCode}&is_registered=true`),x(l("/"))):(r({inviteCode:s.query.referral_code||"",onSignInSuccess:()=>{x(l("/"))}}).then((()=>n())),o(),$("referral_register_view",`share_method=${s.query.shareMethod}&referral_code=${s.query.referralCode}&is_registered=false`)),A=h((()=>{d.value=(d.value+1)%i.length}),5e3)})),K((()=>{A&&(clearInterval(A),A=null)})),(e,t)=>{const a=u,l=Q("i18n-t"),s=I;return V(),L("div",Ce,[T("div",Pe,[G(Y,{name:"image-fade"},{default:z((()=>[(V(),L("img",{key:S(v),src:S(v),alt:"",class:"absolute inset-0 w-full h-full object-cover"},null,8,Te))])),_:1})]),T("div",$e,[T("div",Se,[G(a,{class:"text-text-nav-3 w-[125px] h-[104px]"}),T("div",je,["VerCode"!==S(g)?(V(),L(N,{key:0},[1===S(f)?(V(),L(N,{key:0},[G(l,{scope:"global",keypath:"LOGIN_V2.REFERRAL_TITLE",tag:"div",class:"text-text-1 text-2xl font-semibold"},{username:z((()=>[U(j(S(m)),1)])),_:1}),G(l,{scope:"global",keypath:"LOGIN_V2.REFERRAL_SUBTITLE",tag:"div",class:"text-text-t-1 text-base"},{lumen:z((()=>[...t[0]||(t[0]=[T("span",{class:"text-text-1 font-semibold"},"30",-1)])])),_:1})],64)):2===S(f)?(V(),L(N,{key:1},[T("div",De,j(e.$t("LOGIN_V2.REFERRAL_INVALID_TITLE")),1),T("div",Me,j(e.$t("LOGIN_V2.REFERRAL_INVALID_SUBTITLE")),1)],64)):3===S(f)?(V(),L(N,{key:2},[G(l,{scope:"global",keypath:"LOGIN_V2.REFERRAL_TITLE",tag:"div",class:"text-text-1 text-2xl font-semibold"},{username:z((()=>[U(j(S(m)),1)])),_:1}),T("div",Fe,j(e.$t("LOGIN_V2.REFERRAL_LIMIT_SUBTITLE")),1)],64)):O("",!0)],64)):(V(),L(N,{key:1},[T("div",ze,j(e.$t("LOGIN_V2.CHECK_INBOX")),1),G(l,{scope:"global",keypath:"LOGIN_V2.CODE_TIP",tag:"span",class:"text-text-t-1 text-base"},{emailText:z((()=>[T("span",Ue,j(S(y)),1)])),_:1})],64))]),G(Y,{name:"fade",mode:"out-in"},{default:z((()=>[(V(),B(Z(b[S(g)]),{onChange:R},null,32))])),_:1}),T("div",qe,[T("div",null,[U(j(e.$t("LOGIN_V2.AGREE1")),1),G(s,{to:"/terms-of-service/",target:"_blank",trailingSlash:"append",class:"text-text-1 hover:text-primary underline hover:text-z-purple transition-all outline-none"},{default:z((()=>[U(j(e.$t("LOGIN_V2.AGREE2")),1)])),_:1}),T("span",Be,j(e.$t("LOGIN_V2.AGREE3")),1),G(s,{to:"/privacy-policy/",target:"_blank",trailingSlash:"append",class:"text-text-1 hover:text-primary underline hover:text-z-purple transition-all outline-none"},{default:z((()=>[U(j(e.$t("LOGIN_V2.AGREE4")),1)])),_:1})])])])])])}}},[["__scopeId","data-v-6b643cb0"]]),He={__name:"referral-landing",setup:e=>(e,t)=>
1(V(),B(We))};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.