FitTrackee/fittrackee/dist/static/js/main.265d6693.js

2 lines
63 KiB
JavaScript
Raw Normal View History

2021-11-07 10:20:15 +01:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["main"],{"00b4":function(e,t,r){"use strict";r("ac1f");var o=r("23e7"),a=r("da84"),n=r("c65b"),c=r("e330"),s=r("1626"),l=r("861d"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),i=a.Error,d=c(/./.test);o({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=this.exec;if(!s(t))return d(this,e);var r=n(t,this,e);if(null!==r&&!l(r))throw new i("RegExp exec method returned something other than an Object or null");return!!r}})},"0395":function(e,t,r){"use strict";r("caad");var o=r("7a23"),a={id:"user-auth-form"},n={id:"user-form"},c={class:"form-items"},s=["disabled","placeholder"],l=["disabled","placeholder"],u=["disabled","placeholder"],i=["disabled","placeholder"],d=["disabled"],b={key:1},p=Object(o["createTextVNode"])(" - "),O={key:2},m={class:"account"};function j(e,t,r,j,f,k){var v=Object(o["resolveComponent"])("AlertMessage"),y=Object(o["resolveComponent"])("router-link"),h=Object(o["resolveComponent"])("ErrorMessage");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",a,[Object(o["createElementVNode"])("div",n,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["form-box",{disabled:e.registration_disabled}])},[e.registration_disabled?(Object(o["openBlock"])(),Object(o["createBlock"])(v,{key:0,message:"user.REGISTER_DISABLED"})):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("form",{onSubmit:t[4]||(t[4]=Object(o["withModifiers"])((function(t){return e.onSubmit(e.action)}),["prevent"]))},[Object(o["createElementVNode"])("div",c,["register"===e.action?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:0,id:"username",disabled:e.registration_disabled,required:"","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.formData.username=t}),placeholder:e.$t("user.USERNAME")},null,8,s)),[[o["vModelText"],e.formData.username]]):Object(o["createCommentVNode"])("",!0),"reset"!==e.action?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:1,id:"email",disabled:e.registration_disabled,required:"",type:"email","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.formData.email=t}),placeholder:"reset-request"===e.action?e.$t("user.ENTER_EMAIL"):e.$t("user.EMAIL")},null,8,l)),[[o["vModelText"],e.formData.email]]):Object(o["createCommentVNode"])("",!0),"reset-request"!==e.action?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:2,id:"password",disabled:e.registration_disabled,required:"",type:"password","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.formData.password=t}),placeholder:"reset"===e.action?e.$t("user.ENTER_PASSWORD"):e.$t("user.PASSWORD")},null,8,u)),[[o["vModelText"],e.formData.password]]):Object(o["createCommentVNode"])("",!0),["register","reset"].includes(e.action)?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:3,id:"confirm-password",disabled:e.registration_disabled,type:"password",required:"","onUpdate:modelValue":t[3]||(t[3]=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,i)),[[o["vModelText"],e.formData.password_conf]]):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("button",{type:"submit",disabled:e.registration_disabled},Object(o["toDisplayString"])(e.$t(e.buttonText)),9,d)],32),"login"===e.action?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",b,[Object(o["createVNode"])(y,{class:"links",to:"/register"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.REGISTER")),1)]})),_:1}),p,Object(o["createVNode"])(y,{class:"links",to:"/password-reset/request"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PASSWORD_FORGOTTEN")),1
//# sourceMappingURL=main.265d6693.js.map