FitTrackee/fittrackee/dist/static/js/main.96af01eb.js

2 lines
58 KiB
JavaScript
Raw Normal View History

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