PageSourceSearch

https://thepaypers.com/_nuxt/DGqtSR_b.js

js thepaypers.com collected 2026-09-24 08:28:31 UTC 3,295 bytes, 12 lines download raw bytes

1import{_ as F}from"./BRLTZyZl.js";import{_ as N}from"./CntMTLcG.js";import{u as R,_ as T}from"./BtLVrN7B.js";import{z as u,a as j,_ as z}from"./Dpdp0QYK.js";import{_ as E}from"./5TdI7TNq.js";import{e as D,g as G,f as I,r as y,i as $,j as H,k as M,c as b,a as r,m,l as v,n as e,t as f,b as n,w as _,o as d,p as k,F as O}from"./Bcs_NwEm.js";import{u as Q}from"./aG1w7N2f.js";import"./DlAUqK2U.js";import"./Db8xi0CW.js";import"./B9GYCAbm.js";const J={class:"flex flex-col gap-8 py-8"},K={key:0,class:"font-or-lemmen text-2xl sm:text-4xl"},L={class:"md:grid grid-cols-2"},W={class:"flex flex-col gap-4"},X={class:"text-red-500"},ce=D({__name:"reset-password",async setup(Y){let l,w;const V=u.object({password:u.string().min(8,"Password must be at least 8 characters long"),password_confirmation:u.string()}).refine(o=>o.password==o.password_confirmation,{message:"Passwords do not match. Please check and try again.",path:["password_confirmation"]}),{$directus:S}=G(),{sessionId:C}=Q(),g=I(),i=y(null),s=y(!1),a=$({password:void 0,password_confirmation:void 0}),{data:t}=([l,w]=H(async()=>R("reset-password",async()=>await S.query(`
2    query GetResetPageContentQuery {
3      login {
4        reset_title
5        reset_text
6        reset_text_above_column
7        reset_password_placeholder
8        reset_repeat_password_placeholder
9        reset_button
10      }
11    }
12  `))),l=await l,w(),l),q=async()=>{s.value=!0,i.value=null;try{await $fetch("/api/auth/reset-password",{method:"POST",body:{token:g.query.token,password:a.password,cms_session_id:C.value}}),await k({path:"/login"})}catch(o){i.value=o instanceof O?o.data.message:"an unexpected error occurred",console.error(i)}finally{s.value=!1}};return M(()=>g.query.token,async o=>{o?.toString()?.trim()?.length||await k({path:"/"})},{immediate:!0}),(o,c)=>{const B=F,P=N,x=T,h=z,U=E,A=j;return d(),b("div",J,[r("div",null,[e(t)?.login?.reset_title?(d(),b("h1",K,f(e(t)?.login?.reset_title),1)):m("",!0),e(t)?.login?.reset_text?(d(),v(B,{key:1,content:e(t)?.login?.reset_text},null,8,["content"])):m("",!0)]),r("div",L,[r("div",W,[e(t)?.login?.reset_text_above_column?(d(),v(P,{key:0,title:e(t)?.login?.reset_text_above_column},null,8,["title"])):m("",!0),n(A,{schema:e(V),state:e(a),class:"flex flex-col space-y-4 bg-accent rounded p-10",onSubmit:q},{default:_(()=>[r("p",X,f(e(i)),1),n(h,{name:"password"},{default:_(()=>[n(x,{modelValue:e(a).password,"onUpdate:modelValue":c[0]||(c[0]=p=>e(a).password=p),variant:"outline",type:"password",disabled:e(s),placeholder:e(t)?.login?.reset_password_placeholder??"",required:!0,size:"lg",class:"w-full"},null,8,["modelValue","disabled","placeholder"])]),_:1}),n(h,{name:"password_confirmation"},{default:_(()=>[n(x,{modelValue:e(a).password_confirmation,"onUpdate:modelValue":c[1]||(c[1]=p=>e(a).password_confirmation=p),variant:"outline",type:"password",disabled:e(s),placeholder:e(t)?.login?.reset_repeat_password_placeholder??"",required:!0,size:"lg",class:"w-full"},null,8,["modelValue","disabled","placeholder"])]),_:1}),n(U,{class:"inline-flex justify-center bg-main uppercase h-10 w-fit px-6",disabled:e(s),loading:e(s),type:"submit"},{default:_(()=>[r("span",null,f(e(t)?.login?.reset_button),1)]),_:1},8,["disabled","loading"])]),_:1},8,["schema","state"])])])])}}});export{ce 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.