FitTrackee/fittrackee/dist/static/js/reset.98679f6c.js

2 lines
25 KiB
JavaScript
Raw Normal View History

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["reset"],{"0395":function(t,e,r){"use strict";r("caad");var n=r("7a23"),c={id:"user-auth-form"},o={id:"user-form"},a={class:"form-items"},i=["disabled","placeholder"],s=["disabled","placeholder"],l=["disabled","placeholder"],u=["disabled","placeholder"],d=["disabled"],p={key:1},f=Object(n["createTextVNode"])(" - "),h={key:2},b={class:"account"};function m(t,e,r,m,v,O){var g=Object(n["resolveComponent"])("AlertMessage"),j=Object(n["resolveComponent"])("router-link"),w=Object(n["resolveComponent"])("ErrorMessage");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["form-box",{disabled:t.registration_disabled}])},[t.registration_disabled?(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:0,message:"user.REGISTER_DISABLED"})):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("form",{onSubmit:e[4]||(e[4]=Object(n["withModifiers"])((function(e){return t.onSubmit(t.action)}),["prevent"]))},[Object(n["createElementVNode"])("div",a,["register"===t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("input",{key:0,id:"username",disabled:t.registration_disabled,required:"","onUpdate:modelValue":e[0]||(e[0]=function(e){return t.formData.username=e}),placeholder:t.$t("user.USERNAME")},null,8,i)),[[n["vModelText"],t.formData.username]]):Object(n["createCommentVNode"])("",!0),"reset"!==t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("input",{key:1,id:"email",disabled:t.registration_disabled,required:"",type:"email","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.formData.email=e}),placeholder:"reset-request"===t.action?t.$t("user.ENTER_EMAIL"):t.$t("user.EMAIL")},null,8,s)),[[n["vModelText"],t.formData.email]]):Object(n["createCommentVNode"])("",!0),"reset-request"!==t.action?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("input",{key:2,id:"password",disabled:t.registration_disabled,required:"",type:"password","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.formData.password=e}),placeholder:"reset"===t.action?t.$t("user.ENTER_PASSWORD"):t.$t("user.PASSWORD")},null,8,l)),[[n["vModelText"],t.formData.password]]):Object(n["createCommentVNode"])("",!0),["register","reset"].includes(t.action)?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("input",{key:3,id:"confirm-password",disabled:t.registration_disabled,type:"password",required:"","onUpdate:modelValue":e[3]||(e[3]=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,u)),[[n["vModelText"],t.formData.password_conf]]):Object(n["createCommentVNode"])("",!0)]),Object(n["createElementVNode"])("button",{type:"submit",disabled:t.registration_disabled},Object(n["toDisplayString"])(t.$t(t.buttonText)),9,d)],32),"login"===t.action?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",p,[Object(n["createVNode"])(j,{class:"links",to:"/register"},{default:Object(n["withCtx"])((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t.$t("user.REGISTER")),1)]})),_:1}),f,Object(n["createVNode"])(j,{class:"links",to:"/password-reset/request"},{default:Object(n["withCtx"])((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t.$t("user.PASSWORD_FORGOTTEN")),1)]})),_:1})])):Object(n["createCommentVNode"])("",!0),"register"===t.action?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",h,[Object(n["createElementVNode"])("span",b,Object(n["toDisplayString"])(t.$t("user.ALREADY_HAVE_ACCOUNT")),1),Object(n["createVNode"])(j,{class:"links",to:"/login"},{default:Object(n["withCtx"])((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t.$t("user.LOGIN")),1)]})),_:1})])):Object(n["createCommentVNode"])("",!0),t.errorMessage
//# sourceMappingURL=reset.98679f6c.js.map