/*! * xivado-web * Version: master-0e1b7c58 * Author: Anna Hiden * License: proprietary */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Terms"],{"0813":function(s,e,t){"use strict";t.r(e);var r=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticStyle:{"z-index":"2000"}},[t("Toast",{attrs:{"auto-hide-delay":3e3,visible:s.showSuccess,message:s.$t("resetPassword.successMessage"),"toast-class":"success"},on:{hide:s.hideSuccessAlert}}),t("Toast",{attrs:{"auto-hide-delay":3e3,visible:s.showError,message:s.$t("resetPassword.errorMessage"),"toast-class":"failed"},on:{hide:s.hideErrorAlert}}),t("Modal",{attrs:{value:!0,"title-cls":"text-center w-100"},on:{input:function(e){return s.$router.push(Object.assign({},s.$route,{hash:"",query:Object.assign({},s.$route.query,{redirect:void 0})}))}}},[t("h2",[s._v(s._s(s.title))]),[t("form-component",{attrs:{name:"resetPassword",submit:s.submit}},[t("text-input",{attrs:{label:s.$t("fields.signup.email"),placeholder:s.$t("placeholder.signup.email"),name:"email",type:"email",autofocus:""},model:{value:s.email,callback:function(e){s.email=e},expression:"email"}}),t("password-input",{attrs:{label:s.$t("fields.resetPassword.password"),placeholder:s.$t("placeholder.resetPassword.password"),name:"password",autocomplete:"new-password"},model:{value:s.password,callback:function(e){s.password=e},expression:"password"}}),t("password-input",{attrs:{label:s.$t("fields.resetPassword.passwordConfirmation"),placeholder:s.$t("placeholder.resetPassword.passwordConfirmation"),name:"passwordConfirmation"},model:{value:s.passwordConfirmation,callback:function(e){s.passwordConfirmation=e},expression:"passwordConfirmation"}}),t("div",{staticClass:"mt-5"},[t("submit-button",{staticClass:"btn btn-primary btn-block"},[s._v(" "+s._s(s.$t("resetPassword.submit"))+" ")])],1)],1)]],2)],1)},a=[],o=t("1f54"),i=t("3786"),n={name:"ResetPassword",components:{Modal:o["a"]},data(){return{email:"",password:"",passwordConfirmation:"",title:this.$t("page.resetPassword"),error:"",success:"",showSuccess:!1,showError:!1}},mounted(){Object(i["a"])()},methods:{async submit(){try{const s=await Object(i["g"])({email:this.email,password:this.password,password_confirmation:this.passwordConfirmation,token:this.$route.query.token});204===s.status?this.showSuccess=!0:this.showError=!0}catch(s){console.log(s),this.showError=!0}},hideSuccessAlert(){this.showSuccess=!1,this.$router.push({name:"login"})},hideErrorAlert(){this.showError=!1}}},l=n,d=t("2877"),c=Object(d["a"])(l,r,a,!1,null,"6d2152e0",null);e["default"]=c.exports},d49b:function(s,e,t){"use strict";t.r(e);var r=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"container my-8"},[t("h2",[t("MarkdownToHtmlVue",{attrs:{markdown:s.$t("terms.header.text")}})],1),t("p",[t("MarkdownToHtmlVue",{attrs:{markdown:s.$t("terms.body.text")}})],1)])},a=[],o=t("929e"),i={name:"Terms",components:{MarkdownToHtmlVue:o["a"]}},n=i,l=t("2877"),d=Object(l["a"])(n,r,a,!1,null,null,null);e["default"]=d.exports}}]);