FitTrackee/fittrackee/dist/static/js/reset.00470419.js

2 lines
25 KiB
JavaScript
Raw Normal View History

2021-11-03 09:10:23 +01:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["reset"],{"0395":function(t,e,r){"use strict";r("caad");var n=r("7a23"),c=Object(n["withScopeId"])("data-v-7717f19a");Object(n["pushScopeId"])("data-v-7717f19a");var o={id:"user-auth-form"},a={id:"user-form"},i={class:"form-items"},s={key:1};Object(n["popScopeId"])();var l=c((function(t,e,r,l,u,d){var p=Object(n["resolveComponent"])("AlertMessage"),f=Object(n["resolveComponent"])("router-link"),h=Object(n["resolveComponent"])("ErrorMessage");return Object(n["openBlock"])(),Object(n["createBlock"])("div",o,[Object(n["createVNode"])("div",a,[Object(n["createVNode"])("div",{class:["form-box",{disabled:t.registration_disabled}]},[t.registration_disabled?(Object(n["openBlock"])(),Object(n["createBlock"])(p,{key:0,message:"user.REGISTER_DISABLED"})):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])("form",{onSubmit:e[5]||(e[5]=Object(n["withModifiers"])((function(e){return t.onSubmit(t.action)}),["prevent"]))},[Object(n["createVNode"])("div",i,["register"===t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])("input",{key:0,id:"username",disabled:t.registration_disabled,required:"","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.formData.username=e}),placeholder:t.$t("user.USERNAME")},null,8,["disabled","placeholder"])),[[n["vModelText"],t.formData.username]]):Object(n["createCommentVNode"])("",!0),"reset"!==t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])("input",{key:1,id:"email",disabled:t.registration_disabled,required:"",type:"email","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.formData.email=e}),placeholder:"reset-request"===t.action?t.$t("user.ENTER_EMAIL"):t.$t("user.EMAIL")},null,8,["disabled","placeholder"])),[[n["vModelText"],t.formData.email]]):Object(n["createCommentVNode"])("",!0),"reset-request"!==t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])("input",{key:2,id:"password",disabled:t.registration_disabled,required:"",type:"password","onUpdate:modelValue":e[3]||(e[3]=function(e){return t.formData.password=e}),placeholder:"reset"===t.action?t.$t("user.ENTER_PASSWORD"):t.$t("user.PASSWORD")},null,8,["disabled","placeholder"])),[[n["vModelText"],t.formData.password]]):Object(n["createCommentVNode"])("",!0),["register","reset"].includes(t.action)?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])("input",{key:3,id:"confirm-password",disabled:t.registration_disabled,type:"password",required:"","onUpdate:modelValue":e[4]||(e[4]=function(e){return t.formData.password_conf=e}),placeholder:"reset"===t.action?t.$t("user.ENTER_PASSWORD_CONFIRMATION"):t.$t("user.PASSWORD_CONFIRM")},null,8,["disabled","placeholder"])),[[n["vModelText"],t.formData.password_conf]]):Object(n["createCommentVNode"])("",!0)]),Object(n["createVNode"])("button",{type:"submit",disabled:t.registration_disabled},Object(n["toDisplayString"])(t.$t(t.buttonText)),9,["disabled"])],32),"login"===t.action?(Object(n["openBlock"])(),Object(n["createBlock"])("div",s,[Object(n["createVNode"])(f,{class:"password-forgotten",to:"/password-reset/request"},{default:c((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t.$t("user.PASSWORD_FORGOTTEN")),1)]})),_:1})])):Object(n["createCommentVNode"])("",!0),t.errorMessages?(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:2,message:t.errorMessages},null,8,["message"])):Object(n["createCommentVNode"])("",!0)],2)])])})),u=r("1da1"),d=(r("96cf"),r("6c02")),p=r("dad5"),f=r("2906"),h=Object(n["defineComponent"])({name:"UserAuthForm",props:{action:{type:String,required:!0},token:{type:String,default:""}},setup:function(t){var e=Object(n["reactive"])({username:"",email:"",password:"",password_conf:""}),r=Object(d["c"])(),c=Object(f["a"])(),o=Object(n["computed"])((function(){return l(t.action)})),a=Object(n["computed"])((function(){return c.getters[p["a"].GETTERS.ERROR_MESSAGES]})),i=Object(n["computed"])((function(){return c.getters[p["a"].GETTERS.APP_CONFIG]})),s=O
//# sourceMappingURL=reset.00470419.js.map