PageSourceSearch

https://app.invoicing.plus/build/assets/ForgotPassword-585fca12.js

js invoicing.plus collected 2026-09-24 20:06:04 UTC 2,006 bytes, 1 lines download raw bytes

1import{w as S}from"./runtime-dom.esm-bundler-c8a4e9fd.js";import{c as f,r as V,e as I}from"./index.esm-fdb3bbc0.js";import{u as q}from"./index.esm-e8e553d0.js";import{u as x}from"./vue-i18n-2b0851fa.js";import{u as M}from"./error-handling-fe4443cd.js";import{u as N}from"./vue-router-2645b885.js";import{E as C,v as g,h as D,r as s,o as m,c as u,a as i,e as d,u as n,t as p,d as E,f as F}from"./runtime-core.esm-bundler-933f4ca9.js";import"./axios-67252f11.js";import"./notification-bf8208d4.js";import"./customer-router-33df74f8.js";import"./preload-helper-6f27e6cf.js";const G=["onSubmit"],P={key:0},A={key:1},L={class:"mt-4 mb-4 text-sm"},Y={__name:"ForgotPassword",setup(R){const h=M(),{t:c}=x(),$=N(),r=C({email:"",company:""}),v=g(!1),o=g(!1),y=D(()=>({email:{required:f.withMessage(c("validation.required"),V),email:f.withMessage(c("validation.email_incorrect"),I)}})),e=q(y,r);function B(a){if(e.value.$touch(),e.value.$invalid)return!0;o.value=!0;let t={...r,company:$.params.company};h.forgotPassword(t).then(l=>{o.value=!1}).catch(l=>{o.value=!1}),v.value=!0}return(a,t)=>{const l=s("BaseInput"),b=s("BaseInputGroup"),k=s("BaseButton"),w=s("router-link");return m(),u("form",{id:"loginForm",onSubmit:S(B,["prevent"])},[i(b,{error:n(e).email.$error&&n(e).email.$errors[0].$message,label:a.$t("login.enter_email"),class:"mb-4",required:""},{default:d(()=>[i(l,{modelValue:r.email,"onUpdate:modelValue":t[0]||(t[0]=_=>r.email=_),type:"email",name:"email",invalid:n(e).email.$error,onInput:t[1]||(t[1]=_=>n(e).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),i(k,{loading:o.value,disabled:o.value,type:"submit",variant:"primary"},{default:d(()=>[v.value?(m(),u("div",A,p(a.$t("validation.not_yet")),1)):(m(),u("div",P,p(a.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),E("div",L,[i(w,{to:"login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:d(()=>[F(p(a.$t("general.back_to_login")),1)]),_:1})])],40,G)}}};export{Y 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.