PageSourceSearch

https://www.theperfectwedding.nl/build/assets/ForgotPasswordModalComponent-Drb2pA8V.js

js theperfectwedding.nl collected 2026-09-24 15:25:13 UTC 4,778 bytes, 1 lines download raw bytes

1import{t as $,j as D,b as s,e as a,u as e,F as w,q as r,s as P,g as t,i as B,y as F,f as T,M as L,n as N,x as z,z as A,v as G,r as E,a as M,P as R,h as j,G as q,B as S,E as I}from"./vue.esm-bundler-rO0Eg7xt.js";import O from"./ModalComponent-BZudPGKW.js";import{u as U}from"./vuex.esm-bundler-BFVjGE_p.js";import{u as H}from"./vue-i18n-DBcXvsKT.js";import{E as J}from"./event-bus-ChBl_s_K.js";import"./index-BDoVg8u3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vue-router-C16n2Qv7.js";import"./_commonjsHelpers-CE1G-McA.js";const K={key:0},Q={class:"text--left",style:{"max-width":"20rem",margin:"0px auto"}},W={class:"text--center text--m mbxxl"},X={class:"form-label"},Y={class:"button--positive expand mtxl"},Z={key:0},tt={class:"text--center mbxxl",style:{"max-width":"20rem",margin:"0px auto"}},et=["innerHTML"],st={href:"/",class:"link-out mtxxl"},at={class:"icon icon--link chevron"},ot=["xlink:href"],nt={__name:"ForgotPasswordFormComponent",props:{backToHomepage:{type:Boolean,default:!1},title:{type:Boolean,default:!0},dummyEmail:{type:String,default:""}},emits:["formSuccessfullySubmitted"],setup(f,{emit:_}){const{t:n}=H(),c=f,k=_,d=U(),p=M(()=>d.getters["authentication/forgotPassword"]);function x(){return{email:[]}}function l(){c.dummyEmail!==""&&(o.formData.email=c.dummyEmail,m())}async function m(){const h={email:o.formData.email},i=await d.dispatch("authentication/forgotPassword",h);i.status!==200?o.errors=Object.assign(x(),p.value.errors):i.status===200&&(o.success=!0,v(i))}function v(h){k("formSuccessfullySubmitted",h)}const o=E({});o.formData={email:""},o.success=!1,o.errors=x();const{formData:u,success:g,errors:y}=$(o),V=M(function(){return window.SVG_PATH});return D(function(){l()}),(h,i)=>(s(),a("div",null,[e(g)?(s(),a(w,{key:1},[f.title?(s(),a("h1",Z,r(e(n)("partials.forgotPasswordForm.frontend.form.titleRequested")),1)):P("",!0),t("div",tt,[i[1]||(i[1]=A('<span class="fa-stack fa-5x"><i class="fas fa-circle fa-stack-2x text--calm"></i><span class="fa-stack-1x fa-stack"><i class="fas fa-paper-plane fa-stack-1x text--stable-light"></i><i class="fal fa-paper-plane fa-stack-1x text--stable"></i></span></span>',1)),t("div",{class:"text--center text--m mtxxl",innerHTML:p.value.message},null,8,et),T(t("a",st,[F(r(e(n)("partials.forgotPasswordForm.frontend.form.backToHomepage"))+" ",1),(s(),a("svg",at,[t("use",{"xlink:href":V.value+"#action-chevron-right"},null,8,ot)]))],512),[[G,f.backToHomepage]])])],64)):(s(),a(w,{key:0},[f.title?(s(),a("h1",K,r(e(n)("partials.forgotPasswordForm.frontend.form.title")),1)):P("",!0),t("div",Q,[t("div",W,r(e(n)("partials.forgotPasswordForm.frontend.form.body")),1),t("form",{name:"login",autocomplete:"on",onSubmit:B(m,["prevent"])},[t("label",X,[F(r(e(n)("partials.forgotPasswordForm.frontend.form.email"))+" ",1),T(t("input",{"onUpdate:modelValue":i[0]||(i[0]=b=>e(u).email=b),type:"email",class:N(["field-medium",[e(y).email.length>0||e(y).form?"has-error":""]])},null,2),[[L,e(u).email]]),(s(!0),a(w,null,z(e(y).email,(b,C)=>(s(),a("p",{key:C,class:"input__error-message"},r(b),1))),128))]),t("button",Y,r(e(n)("partials.forgotPasswordForm.frontend.form.button")),1)],32)])],64))]))}},rt={key:0},it={class:"modal-title text--center"},lt={key:1},ct=["innerHTML"],mt={class:"bt text--center text-lh-s"},ft={class:"icon icon--link chevron rotate-180"},ut=["xlink:href"],bt={__name:"ForgotPasswordModalComponent",setup(f,{expose:_}){const{t:n}=H(),c=R("modal");function k(u){l.successMessage=u.data.message,l.success=!0}function d(){J.$emit("openLoginModal")}function p(){c.value.close()}function x(){c.value.toggle()}const l=E({});l.success=!1,l.successMessage="";const{success:m,successMessage:v}=$(l),o=M(function(){return window.SVG_PATH});return _({toggle:x,close:p}),(u,g)=>(s(),a("div",null,[j(O,{ref_key:"modal",ref:c,"size-class":"modal-s"},q({header:S(()=>[e(m)?P("",!0):(s(),a("div",rt,[t("div",it,r(e(n)("partials.forgotPasswordForm.frontend.form.title")),1)]))]),body:S(()=>[e(m)?(s(),a("div",lt,[g[0]||(g[0]=t("div",{class:"text--center mbxxl"},[t("span",{class:"fa-stack fa-5x"},[t("i",{class:"fas fa-circle fa-stack-2x text--calm"}),t("span",{class:"fa-stack-1x fa-stack"},[t("i",{class:"fas fa-paper-plane fa-stack-1x text--stable-light"}),t("i",{class:"fal fa-paper-plane fa-stack-1x text--stable"})])])],-1)),t("div",{class:"text--center text--m",innerHTML:e(v)},null,8,ct)])):(s(),I(nt,{key:0,title:!1,onFormSuccessfullySubmitted:k}))]),_:2},[e(m)?void 0:{name:"footer",fn:S(()=>[t("div",mt,[t("a",{class:"link-out no-pa",href:"",onClick:B(d,["prevent"])},[(s(),a("svg",ft,[t("use",{"xlink:href":o.value+"#action-chevron-right"},null,8,ut)])),F(" "+r(e(n)("partials.forgotPasswordForm.frontend.form.back")),1)])])]),key:"0"}]),1536)]))}};export{bt 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.