PageSourceSearch

https://www.phyto.com/_nuxt/Cw3u2J1F.js

js phyto.com collected 2026-09-26 03:37:38 UTC 3,259 bytes, 1 lines download raw bytes

1import{_ as T}from"./CKebB0_N.js";import{_ as E}from"./C-znHVCM.js";import{y as k,X as v,F as h,a3 as g,R as l,A as o,b as f,ag as D,f as U,a8 as b}from"./Bk15PzoC.js";import{t as F,o as I,s as w,u as q,a as _}from"./IN-hiBdO.js";import{aF as x,aD as C,aU as N,aE as B}from"./CqJabS_z.js";import{u as A}from"./AsKz9QgJ.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10e2e4c1-c9ef-47f7-8dd5-6ba79ef280c6",e._sentryDebugIdIdentifier="sentry-dbid-10e2e4c1-c9ef-47f7-8dd5-6ba79ef280c6")}catch{}const j=k({__name:"FormResetPassword",setup(e){const{$repositories:n,$toast:d,$i18n:H}=x(),{execute:V}=A("password_reset_action");C();const S=N(),i=U({isLoading:!1,loadingText:"Sauvegarde en cours..."}),P=F(I({email:w().min(1,"Le champ email est obligatoire").email({message:"Le champ email doit être une adresse e-mail valide"}),password:w().min(6,{message:"Le mot de passe doit être constitué d'au moins 6 caractères."}),cpassword:w().min(6,{message:"Le mot de passe doit être constitué d'au moins 6 caractères."})}).refine(a=>a.password===a.cpassword,{message:"Les mots de passe ne correspondent pas.",path:["cpassword"]})),{handleSubmit:R,errors:c,handleReset:J}=q({validationSchema:P}),y=R(()=>{$()}),{value:m}=_("email"),{value:u}=_("password"),{value:p}=_("cpassword");async function $(){const a="/profile/account";i.value.isLoading=!0;const s={params:{email:m.value,newPassword:u.value,cNewPassword:p.value,token:S.query.token}};try{const r=await V();await n.customer.resetPassword(s,a,r),i.value.isLoading=!1,d.show("SUCCESS","Password Updated")}catch{i.value.isLoading=!1,d.show("ERROR","Erreur de réinitialisation du mot de passe!")}}return(a,s)=>{const r=T,L=E;return v(),h("div",null,[g("form",{class:"space-y-5",onSubmit:s[3]||(s[3]=D((...t)=>o(y)&&o(y)(...t),["prevent"]))},[l(r,{modelValue:o(m),"onUpdate:modelValue":s[0]||(s[0]=t=>f(m)?m.value=t:null),name:"email",type:"email",label:a.$t("vee.fields.customer_email"),class:"mt-5",placeholder:"Enter your email",identifier:"customerEmail",error:o(c).email,required:"",mandatory:""},null,8,["modelValue","label","error"]),l(r,{modelValue:o(u),"onUpdate:modelValue":s[1]||(s[1]=t=>f(u)?u.value=t:null),name:"password",type:"password",label:a.$t("vee.fields.customer_password"),class:"mt-5",identifier:"customer-password",error:o(c).password,required:"",mandatory:""},null,8,["modelValue","label","error"]),l(r,{modelValue:o(p),"onUpdate:modelValue":s[2]||(s[2]=t=>f(p)?p.value=t:null),name:"cpassword",type:"password",label:a.$t("vee.fields.customer_cpassword"),identifier:"customer-cpassword",error:o(c).cpassword,required:"",mandatory:""},null,8,["modelValue","label","error"]),l(L,{class:"w-full h-12",title:a.$t("pages.reset_password.set"),type:"submit","loading-state":o(i)},null,8,["title","loading-state"])],32)])}}}),M={},O={class:"px-4 py-5 lg:w-1/2"},X={class:"rg-title"},z={class:"mt-6 rg-text"};function G(e,n){const d=j;return v(),h("div",O,[g("h1",X,b(e.$t("pages.reset_password.title")),1),g("p",z,b(e.$t("pages.reset_password.description")),1),l(d,{class:"mt-5"})])}const se=B(M,[["render",G]]);export{se 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.