PageSourceSearch

https://cdn.ugcmaker.io/ugcmaker/pages/public/_nuxt/CXD6MNWD.js

js ugcmaker.io collected 2026-10-02 15:05:31 UTC 4,604 bytes, 1 lines download raw bytes

1import{bJ as U,fz as I,fZ as B,gq as D,gu as O,gd as R,fL as A,fx as G,go as C,dM as j,bw as F,br as s,ey as r,eN as e,bD as l,gv as c,d9 as L,ax as q,dx as M,bC as J,aJ as Y,z as N,e7 as d,en as H,dY as W,dj as Z}from"#entry";import{_ as K}from"./_IQqcnWy.js";import{_ as Q}from"./D0yzHD_Z.js";import{E as X}from"./C_ZN_3fY.js";import"./CWoktVvr.js";const ee={class:"min-h-[calc(100dvh-48px-var(--sale-banner-h))] md:min-h-screen flex items-start md:items-center justify-center px-4 py-8"},se={class:"w-full max-w-md"},te={class:"text-center mb-8"},oe={class:"text-3xl font-bold text-heading mb-2"},ae={class:"text-muted text-sm"},ne={class:"space-y-3"},le={class:"text-right mt-4"},re={class:"mt-8 p-4 rounded-lg border border-primary/60 bg-primary/5"},ie={class:"flex items-center gap-2 mb-5 text-primary"},ce={class:"font-semibold text-xs"},de={class:"space-y-2 text-xs text-primary"},ue={class:"flex items-start gap-2"},me={class:"flex items-start gap-2"},pe={class:"flex items-start gap-2"},_="reset-password",ve=U({__name:"index",async setup(_e){let w,v;const{locale:y,t,mergeLocaleMessage:b}=I(),S=B().query.token;D(y,_,b),[w,v]=O(()=>Z(y.value,_,b)),await w,v();const{add:k}=R(),P=A(),i=d(""),p=d(""),g=d(!1),f=d(!1),x=d(!1),h=d(""),u=d("");G({title:t(`${_}.seo.title`),meta:[{name:"description",content:t(`${_}.seo.description`)}],link:[{rel:"canonical",href:t(`${_}.seo.canonicalPath`)}]});function z(o){return o?o.length<8||o.length>16?t("login.passwordLength"):/^(?=.*[a-z])(?=.*\d)(?=.*[^\da-z]).+$/i.test(o)?"":t("login.passwordComplexity"):""}async function V(){if(h.value=z(i.value),i.value!==p.value?u.value=t("login.passwordMismatch"):u.value="",!(h.value||u.value)){x.value=!0;try{H({action_id:X.UG_LOGIN_RESET_PASSWORD_SUBMIT,custom:{page:location.pathname,detail:"reset"}}),await W({token:S||"",password:i.value}),k({title:t("login.resetPasswordSuccess"),color:"success"}),P.openModal(N.LOGIN,{from:location.pathname,action:"reset_password_success"})}catch(o){k({title:o.message||t("login.resetPasswordFailed"),color:"error"})}finally{x.value=!1}}}return C(i,o=>{h.value=o?z(o):""}),C(p,o=>{o&&o!==i.value?u.value=t("login.passwordMismatch"):u.value=""}),(o,n)=>{const m=q,T=K,$=Q,E=Y;return j(),F("div",ee,[s("div",se,[s("div",te,[s("h1",oe,r(e(t)("login.resetPasswordTitle")),1),s("p",ae,r(e(t)("login.enterNewPassword")),1)]),s("div",ne,[l($,{error:e(h)||void 0},{error:c(a=>[s("div",{class:M(["text-red-500 text-xs -mt-1",`${a.error?"":"opacity-0"}`])},r(a.error)+"  ",3)]),default:c(()=>[l(T,{modelValue:e(i),"onUpdate:modelValue":n[1]||(n[1]=a=>L(i)?i.value=a:null),type:e(g)?"text":"password",placeholder:e(t)("login.newPasswordPlaceholder"),size:"xl",class:"w-full rounded-lg"},{trailing:c(()=>[s("button",{type:"button",class:"text-muted hover:text-body transition-colors",onClick:n[0]||(n[0]=a=>g.value=!e(g))},[l(m,{name:e(g)?"hugeicons:view":"hugeicons:view-off-slash",class:"size-5"},null,8,["name"])])]),_:1},8,["modelValue","type","placeholder"])]),_:1},8,["error"]),l($,{error:e(u)||void 0},{error:c(a=>[s("div",{class:M(["text-red-500 text-xs -mt-1",`${a.error?"":"opacity-0"}`])},r(a.error)+"  ",3)]),default:c(()=>[l(T,{modelValue:e(p),"onUpdate:modelValue":n[3]||(n[3]=a=>L(p)?p.value=a:null),type:e(f)?"text":"password",placeholder:e(t)("login.confirmPasswordPlaceholder"),size:"xl",class:"w-full rounded-lg"},{trailing:c(()=>[s("button",{type:"button",class:"text-muted hover:text-body transition-colors",onClick:n[2]||(n[2]=a=>f.value=!e(f))},[l(m,{name:e(f)?"hugeicons:view":"hugeicons:view-off-slash",class:"size-5"},null,8,["name"])])]),_:1},8,["modelValue","type","placeholder"])]),_:1},8,["error"]),l(E,{color:"primary",size:"xl",class:"w-full justify-center rounded-lg",loading:e(x),onClick:V},{default:c(()=>[J(r(e(t)("login.resetPasswordBtn")),1)]),_:1},8,["loading"])]),s("div",le,[s("button",{type:"button",class:"text-primary underline text-sm cursor-pointer",onClick:n[4]||(n[4]=a=>e(P).openModal(e(N).LOGIN,{from:"/reset-password",action:"reset_password_back_to_login"}))},r(e(t)("login.backToLogin")),1)]),s("div",re,[s("div",ie,[l(m,{name:"hugeicons:shield-user",class:"size-5"}),s("span",ce,r(e(t)("login.securityTips")),1)]),s("ul",de,[s("li",ue,[l(m,{name:"hugeicons:tick-02",class:"size-4 shrink-0 mt-0.5"}),s("span",null,r(e(t)("login.securityTip1")),1)]),s("li",me,[l(m,{name:"hugeicons:tick-02",class:"size-4 shrink-0 mt-0.5"}),s("span",null,r(e(t)("login.securityTip2")),1)]),s("li",pe,[l(m,{name:"hugeicons:tick-02",class:"size-4 shrink-0 mt-0.5"}),s("span",null,r(e(t)("login.securityTip3")),1)])])])])])}}});
1export{ve 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.