PageSourceSearch

https://app.whatspot.app/build/assets/ResetPassword-BJCTX4h0.js

js whatspot.app collected 2026-10-07 00:50:44 UTC 4,469 bytes, 1 lines download raw bytes

1import{d as A,b as I,c as q,e as s,k as t,g as a,C as u,G as m,L as p,m as w,F as C}from"./intro-DjPrs9KJ.js";import{s as N,_ as R}from"./AuthLayout.vue_vue_type_script_setup_true_lang-D7nUxoSb.js";import{q as S,a as V}from"./index-7gbIIa0F.js";import{_ as x}from"./PasswordInput.vue_vue_type_script_setup_true_lang-CoHl3xLn.js";import{_ as B}from"./index-BoxFZ1L-.js";import{o as P,u as Q,F as h,_ as g,a as b,b as L,c as y,t as j}from"./vee-validate-zod-C3W3VJj0.js";import{_ as k}from"./FormLabel.vue_vue_type_script_setup_true_lang-BMffIPf9.js";import{b as z,c as G,p as H,e as M}from"./validation-BBp3Xa-Q.js";import{u as U,a as W,h as Y,l as J}from"./app-inertia-CPAPriuX.js";import"./translations-DORBGo7q.js";import"./CardContent.vue_vue_type_script_setup_true_lang-C2aCKh2q.js";import"./eye-off-Bcpzz5Pc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"pribook@073ab8fe4"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d7f172ee-4bfc-43ac-aa12-375dc0209e5c",e._sentryDebugIdIdentifier="sentry-dbid-d7f172ee-4bfc-43ac-aa12-375dc0209e5c")}catch{}})();const r=(e,o)=>({url:r.url(e,o),method:"get"});r.definition={methods:["get","head"],url:"/reset-password/{token}"};r.url=(e,o)=>{(typeof e=="string"||typeof e=="number")&&(e={token:e}),Array.isArray(e)&&(e={token:e[0]}),e=V(e);const i={token:e.token};return r.definition.url.replace("{token}",i.token.toString()).replace(/\/+$/,"")+S(o)};r.get=(e,o)=>({url:r.url(e,o),method:"get"});r.head=(e,o)=>({url:r.url(e,o),method:"head"});const $=(e,o)=>({action:r.url(e,o),method:"get"});$.get=(e,o)=>({action:r.url(e,o),method:"get"});$.head=(e,o)=>({action:r.url(e,{[o?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...o?.query??o?.mergeQuery??{}}}),method:"get"});r.form=$;const n=e=>({url:n.url(e),method:"post"});n.definition={methods:["post"],url:"/reset-password"};n.url=e=>n.definition.url+S(e);n.post=e=>({url:n.url(e),method:"post"});const E=e=>({action:n.url(e),method:"post"});E.post=e=>({action:n.url(e),method:"post"});n.form=E;const K={class:"tw:flex tw:flex-col tw:gap-6"},O={class:"tw:text-center"},X={class:"tw:text-xl tw:font-semibold tw:tracking-tight"},Z={class:"tw:mt-1 tw:text-sm tw:text-muted-foreground"},ee={class:"tw:text-center tw:text-sm tw:text-muted-foreground"},pe=A({__name:"ResetPassword",props:{token:{},email:{}},setup(e){const o=e,{t:i}=U(),_=z(i.value),v=P({email:M(i.value),password:H(i.value),password_confirmation:G(i.value)}).refine(_.check,{message:_.message,path:_.path}),{handleSubmit:D,setErrors:T}=Q({initialValues:{email:o.email,password:"",password_confirmation:""},validationSchema:j(v)}),f=W({token:o.token,email:o.email,password:"",password_confirmation:""}),F=D(l=>{f.email=l.email,f.password=l.password,f.password_confirmation=l.password_confirmation,f.post(n.url(),{onError:c=>{T(c)}})});return(l,c)=>(I(),q(C,null,[s(t(Y),{title:"Whatspot"}),s(R,null,{default:a(()=>[u("div",K,[u("div",O,[u("h1",X,m(l.$t("reset_password_title")),1),u("p",Z,m(l.$t("auth_forgot_password_subtitle")),1)]),u("form",{class:"tw:flex tw:flex-col tw:gap-y-4",onSubmit:c[0]||(c[0]=(...d)=>t(F)&&t(F)(...d))},[s(t(h),{name:"email"},{default:a(({componentField:d})=>[s(t(g),null,{default:a(()=>[s(t(k),null,{default:a(()=>[p(m(l.$t("email_address")),1)]),_:1}),s(t(b),null,{default:a(()=>[s(t(L),w({type:"email",autocomplete:"email"},d),null,16)]),_:2},1024),s(t(y))]),_:2},1024)]),_:1}),s(t(h),{name:"password"},{default:a(({componentField:d})=>[s(t(g),null,{default:a(()=>[s(t(k),null,{default:a(()=>[p(m(l.$t("new_password_title")),1)]),_:1}),s(t(b),null,{default:a(()=>[s(x,w(d,{autocomplete:"new-password"}),null,16)]),_:2},1024),s(t(y))]),_:2},1024)]),_:1}),s(t(h),{name:"password_confirmation"},{default:a(({componentField:d})=>[s(t(g),null,{default:a(()=>[s(t(k),null,{default:a(()=>[p(m(l.$t("confirm_password")),1)]),_:1}),s(t(b),null,{default:a(()=>[s(x,w(d,{autocomplete:"new-password"}),null,16)]),_:2},1024),s(t(y))]),_:2},1024)]),_:1}),s(t(B),{type:"submit",size:"lg",class:"tw:w-full",disabled:t(f).processing},{default:a(()=>[p(m(l.$t("btn_password_reset")),1)]),_:1},8,["disabled"])],32),u("p",ee,[s(t(J),{href:t(N).url(),class:"tw:font-medium tw:text-primary tw:underline-offset-4 tw:hover:underline"},{default:a(()=>[p(m(l.$t("auth_back_to_login")),1)]),_:1},8,["href"])])])]),_:1})],64))}});
1export{pe 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.