FitTrackee/fittrackee/dist/static/js/main.597d0b47.js
2021-11-03 18:28:29 +01:00

2 lines
58 KiB
JavaScript

(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=Object(a["computed"])((function(){return"register"===e.action&&!s.value.is_registration_enabled}));function i(t){switch(t){case"reset-request":case"reset":return"buttons.SUBMIT";default:return"buttons.".concat(e.action.toUpperCase())}}function O(r){switch(r){case"reset":return e.token?o.dispatch(b["e"].ACTIONS.RESET_USER_PASSWORD,{password:t.password,password_conf:t.password_conf,token:e.token}):o.commit(b["a"].MUTATIONS.SET_ERROR_MESSAGES,"user.INVALID_TOKEN");case"reset-request":return o.dispatch(b["e"].ACTIONS.SEND_PASSWORD_RESET_REQUEST,{email:t.email});default:o.dispatch(b["e"].ACTIONS.LOGIN_OR_REGISTER,{actionType:r,formData:t})}}function j(){t.username="",t.email="",t.password="",t.password_conf=""}return Object(a["watch"])((function(){return r.path}),Object(d["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o.commit(b["a"].MUTATIONS.EMPTY_ERROR_MESSAGES),j();case 2:case"end":return e.stop()}}),e)})))),{appConfig:s,buttonText:c,errorMessages:n,formData:t,registration_disabled:u,onSubmit:O}}});r("c3f6");O.render=i,O.__scopeId="data-v-7717f19a";t["a"]=O},"0b29":function(e,t,r){},"0ccb":function(e,t,r){var a=r("50c4"),o=r("1148"),c=r("1d80"),n=Math.ceil,s=function(e){return function(t,r,s){var u,i,d=String(c(t)),l=d.length,b=void 0===s?" ":String(s),p=a(r);return p<=l||""==b?d:(u=p-l,i=o.call(b,n(u/b.length)),i.length>u&&(i=i.slice(0,u)),e?d+i:i+d)}};e.exports={start:s(!1),end:s(!0)}},"0fe0":function(e,t,r){"use strict";r("8338")},"21d8":function(e,t,r){"use strict";r("647c")},"224d":function(e,t,r){"use strict";r("8d2d")},"288e":function(e,t,r){"use strict";r("bbd4")},"2b62":function(e,t,r){"use strict";r("fd0a")},"38f1":function(e,t,r){"use strict";r("92c3")},"3d39":function(e,t,r){},"3d74":function(e,t,r){},"3dde":function(e,t,r){},"4b23":function(e,t,r){"use strict";r("dc75")},"4d90":function(e,t,r){"use strict";var a=r("23e7"),o=r("0ccb").start,c=r("9a0c");a({target:"String",proto:!0,forced:c},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4fad":function(e,t,r){var a=r("23e7"),o=r("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return o(e)}})},5782:function(e,t,r){},"5cd3":function(e,t,r){"use strict";r("990c")},"5fcb":function(e,t,r){"use strict";r("f153")},"647c":function(e,t,r){},"64fe":function(e,t,r){},"6ca7":function(e,t,r){"use strict";r("3dde")},"6f53":function(e,t,r){var a=r("83ab"),o=r("df75"),c=r("fc6a"),n=r("d1e7").f,s=function(e){return function(t){var r,s=c(t),u=o(s),i=u.length,d=0,l=[];while(i>d)r=u[d++],a&&!n.call(s,r)||l.push(e?[r,s[r]]:s[r]);return l}};e.exports={entries:s(!0),values:s(!1)}},7416:function(e,t,r){"use strict";r.d(t,"a",(function(){return B})),r.d(t,"b",(function(){return D})),r.d(t,"c",(function(){return V}));r("d81d"),r("4de4"),r("caad"),r("2532");var a=r("b166"),o=r("d6e9"),c=r("fe1f"),n=r("cdb6"),s=r("8c86");function u(e,t){Object(s["a"])(2,arguments);var r=Object(c["a"])(t);return Object(n["a"])(e,-r)}var i=r("69eb"),d=r("a618"),l=r("f628"),b=r("fd3a");function p(e){Object(s["a"])(1,arguments);var t=Object(b["a"])(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}var O=r("2fc8"),j=r("8cac"),f=r("f7f1");function m(e,t){Object(s["a"])(2,arguments);var r=Object(c["a"])(t),a=7*r;return Object(f["a"])(e,a)}function v(e,t){Object(s["a"])(2,arguments);var r=Object(c["a"])(t);return m(e,-r)}var k=r("74b5"),y=r("5e65"),h=r("1119"),S={week:{api:"yyyy-MM-dd",chart:"dd/MM/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},w=["nb_workouts","total_duration","total_distance"],g=function(e,t){for(var r=[],a=Object(y["d"])(e.duration,e.start,t);a<=e.end;a=Object(y["e"])(e.duration,a))r.push(a);return r},C=function(e,t){return{label:e,backgroundColor:[t],data:[]}},N=function(e){var t={nb_workouts:[],total_distance:[],total_duration:[]};return e.map((function(e){var r=h["b"][e.label];t.nb_workouts.push(C(e.label,r)),t.total_distance.push(C(e.label,r)),t.total_duration.push(C(e.label,r))})),t},B=function(e,t,r,o,c){var n=g(e,t),s=S[e.duration],u=r.filter((function(e){return o.includes(e.id)})),i=[],d=N(u),l={};return u.map((function(e){return l[e.label]=e.id})),n.map((function(e){var t=Object(a["a"])(e,s.api),r=Object(a["a"])(e,s.chart);i.push(r),w.map((function(e){d[e].map((function(r){r.data.push(c!=={}&&t in c&&l[r.label]in c[t]?c[t][l[r.label]][e]:0)}))}))})),{labels:i,datasets:d}},D=function(e,t,r){var a=r?1:0,c="year"===t?Object(o["a"])(u(e,9)):"week"===t?Object(i["a"])(Object(d["a"])(e,2),{weekStartsOn:a}):Object(l["a"])(Object(d["a"])(e,11)),n="year"===t?p(e):"week"===t?Object(O["a"])(e,{weekStartsOn:a}):Object(j["a"])(e);return{duration:t,end:n,start:c}},V=function(e,t,r){var a=e.duration,c=e.start,s=e.end,b=r?1:0;return{duration:a,end:"year"===a?p(t?u(s,1):Object(n["a"])(s,1)):"week"===a?Object(O["a"])(t?v(s,1):m(s,1),{weekStartsOn:b}):Object(j["a"])(t?Object(d["a"])(s,1):Object(k["a"])(s,1)),start:"year"===a?Object(o["a"])(t?u(c,1):Object(n["a"])(c,1)):"week"===a?Object(i["a"])(t?v(c,1):m(c,1),{weekStartsOn:b}):Object(l["a"])(t?Object(d["a"])(c,1):Object(k["a"])(c,1))}}},"778a":function(e,t,r){"use strict";r("c1a9")},"7e48":function(e,t,r){"use strict";r.r(t);var a=r("7a23"),o=Object(a["withScopeId"])("data-v-cc9648aa");Object(a["pushScopeId"])("data-v-cc9648aa");var c={key:0,id:"dashboard"},n={class:"container mobile-menu"},s={class:"box"},u=Object(a["createVNode"])("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1),i=Object(a["createVNode"])("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1),d=Object(a["createVNode"])("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1),l=Object(a["createVNode"])("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1),b={class:"container"},p={class:"container dashboard-container"},O={class:"left-container dashboard-sub-container"},j={class:"right-container dashboard-sub-container"},f=Object(a["createVNode"])("div",{id:"bottom"},null,-1),m={key:1,class:"app-loading"};Object(a["popScopeId"])();var v=o((function(e,t,r,o,v,k){var y=Object(a["resolveComponent"])("UserStatsCards"),h=Object(a["resolveComponent"])("UserMonthStats"),S=Object(a["resolveComponent"])("UserRecords"),w=Object(a["resolveComponent"])("UserCalendar"),g=Object(a["resolveComponent"])("Timeline"),C=Object(a["resolveComponent"])("Loader");return e.authUser.username&&e.sports.length>0?(Object(a["openBlock"])(),Object(a["createBlock"])("div",c,[Object(a["createVNode"])("div",n,[Object(a["createVNode"])("div",s,[Object(a["createVNode"])("div",{class:["mobile-menu-item",{"is-selected":"chart"===e.isSelected}],onClick:t[1]||(t[1]=function(t){return e.updateDisplayColumn("chart")})},[u],2),Object(a["createVNode"])("div",{class:["mobile-menu-item",{"is-selected":"calendar"===e.isSelected}],onClick:t[2]||(t[2]=function(t){return e.updateDisplayColumn("calendar")})},[i],2),Object(a["createVNode"])("div",{class:["mobile-menu-item",{"is-selected":"timeline"===e.isSelected}],onClick:t[3]||(t[3]=function(t){return e.updateDisplayColumn("timeline")})},[d],2),Object(a["createVNode"])("div",{class:["mobile-menu-item",{"is-selected":"records"===e.isSelected}],onClick:t[4]||(t[4]=function(t){return e.updateDisplayColumn("records")})},[l],2)])]),Object(a["createVNode"])("div",b,[Object(a["createVNode"])(y,{user:e.authUser},null,8,["user"])]),Object(a["createVNode"])("div",p,[Object(a["createVNode"])("div",O,[Object(a["createVNode"])(h,{sports:e.sports,user:e.authUser,class:{"is-hidden":!("chart"===e.isSelected)}},null,8,["sports","user","class"]),Object(a["createVNode"])(S,{sports:e.sports,user:e.authUser,class:{"is-hidden":!("records"===e.isSelected)}},null,8,["sports","user","class"])]),Object(a["createVNode"])("div",j,[Object(a["createVNode"])(w,{sports:e.sports,user:e.authUser,class:{"is-hidden":!("calendar"===e.isSelected)}},null,8,["sports","user","class"]),Object(a["createVNode"])(g,{sports:e.sports,user:e.authUser,class:{"is-hidden":!("timeline"===e.isSelected)}},null,8,["sports","user","class"])])]),f])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",m,[Object(a["createVNode"])(C)]))}));function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function y(e){if(Array.isArray(e))return k(e)}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("a630");function h(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r("fb6a"),r("b0c0");function S(e,t){if(e){if("string"===typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){return y(e)||h(e)||S(e)||w()}r("4de4");var C=Object(a["withScopeId"])("data-v-9b1e052a");Object(a["pushScopeId"])("data-v-9b1e052a");var N={id:"timeline"},B={class:"section-title"},D={key:0},V={key:1},_={key:1,class:"more-workouts"};Object(a["popScopeId"])();var T=C((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("WorkoutCard"),u=Object(a["resolveComponent"])("NoWorkouts");return Object(a["openBlock"])(),Object(a["createBlock"])("div",N,[Object(a["createVNode"])("div",B,Object(a["toDisplayString"])(e.$t("workouts.LATEST_WORKOUTS")),1),e.user.nb_workouts>0&&0===e.workouts.length?(Object(a["openBlock"])(),Object(a["createBlock"])("div",D,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(g(Array(e.initWorkoutsCount).keys()),(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])(s,{user:e.user,key:t},null,8,["user"])})),128))])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",V,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.workouts,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])(s,{workout:t,sport:e.workouts.length>0?e.sports.filter((function(e){return e.id===t.sport_id}))[0]:null,user:e.user,key:t.id},null,8,["workout","sport","user"])})),128)),0===e.workouts.length?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0})):Object(a["createCommentVNode"])("",!0),e.moreWorkoutsExist?(Object(a["openBlock"])(),Object(a["createBlock"])("div",_,[Object(a["createVNode"])("button",{onClick:t[1]||(t[1]=function(){return e.loadMoreWorkouts&&e.loadMoreWorkouts.apply(e,arguments)})},Object(a["toDisplayString"])(e.$t("workouts.LOAD_MORE_WORKOUT")),1)])):Object(a["createCommentVNode"])("",!0)]))])})),I=Object(a["withScopeId"])("data-v-7846af32");Object(a["pushScopeId"])("data-v-7846af32");var M={class:"timeline-workout"},E={class:"box"},R={class:"workout-user-date"},A={class:"workout-user"},U={key:1,class:"no-picture"},x=Object(a["createVNode"])("i",{class:"fa fa-user-circle-o","aria-hidden":"true"},null,-1),q={key:2,class:"workout-user-name"},W={key:0},L={key:1,class:"no-map"},P=Object(a["createVNode"])("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1),F={key:0},$=Object(a["createVNode"])("i",{class:"fa fa-road","aria-hidden":"true"},null,-1),G={key:0};Object(a["popScopeId"])();var H=I((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("StaticMap"),u=Object(a["resolveComponent"])("SportImage");return Object(a["openBlock"])(),Object(a["createBlock"])("div",M,[Object(a["createVNode"])("div",E,[Object(a["createVNode"])("div",R,[Object(a["createVNode"])("div",A,[""!==e.userPictureUrl?(Object(a["openBlock"])(),Object(a["createBlock"])("img",{key:0,class:"profile-img",alt:e.$t("user.USER_PICTURE"),src:e.userPictureUrl},null,8,["alt","src"])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",U,[x])),e.user.username?(Object(a["openBlock"])(),Object(a["createBlock"])("span",q,Object(a["toDisplayString"])(e.user.username),1)):Object(a["createCommentVNode"])("",!0)]),e.workout&&e.user?(Object(a["openBlock"])(),Object(a["createBlock"])("div",{key:0,class:"workout-date",title:e.format(e.getDateWithTZ(e.workout.workout_date,e.user.timezone),"dd/MM/yyyy HH:mm")},Object(a["toDisplayString"])(e.formatDistance(new Date(e.workout.workout_date),new Date,{addSuffix:!0,locale:e.locale})),9,["title"])):Object(a["createCommentVNode"])("",!0)]),Object(a["createVNode"])("div",{class:["workout-map",{"no-cursor":!e.workout}],onClick:t[1]||(t[1]=function(t){return e.workout?e.$router.push({name:"Workout",params:{workoutId:e.workout.id}}):null})},[e.workout?(Object(a["openBlock"])(),Object(a["createBlock"])("div",W,[e.workout.with_gpx?(Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:0,workout:e.workout},null,8,["workout"])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",L,Object(a["toDisplayString"])(e.$t("workouts.NO_MAP")),1))])):Object(a["createCommentVNode"])("",!0)],2),Object(a["createVNode"])("div",{class:"workout-data",onClick:t[2]||(t[2]=function(t){return e.$router.push({name:"Workout",params:{workoutId:e.workout.id}})})},[Object(a["createVNode"])("div",null,[e.sport?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0,"sport-label":e.sport.label},null,8,["sport-label"])):Object(a["createCommentVNode"])("",!0)]),Object(a["createVNode"])("div",null,[P,e.workout?(Object(a["openBlock"])(),Object(a["createBlock"])("span",F,Object(a["toDisplayString"])(e.workout.moving),1)):Object(a["createCommentVNode"])("",!0)]),Object(a["createVNode"])("div",null,[$,e.workout?(Object(a["openBlock"])(),Object(a["createBlock"])("span",G,Object(a["toDisplayString"])(e.workout.distance)+" km",1)):Object(a["createCommentVNode"])("",!0)])])])])})),Y=(r("99af"),r("b166")),K=r("fd3a"),X=r("8c86");function z(e,t){Object(X["a"])(2,arguments);var r=Object(K["a"])(e),a=Object(K["a"])(t),o=r.getTime()-a.getTime();return o<0?-1:o>0?1:o}function J(e,t){Object(X["a"])(2,arguments);var r=Object(K["a"])(e),a=Object(K["a"])(t),o=r.getFullYear()-a.getFullYear(),c=r.getMonth()-a.getMonth();return 12*o+c}function Z(e){Object(X["a"])(1,arguments);var t=Object(K["a"])(e);return t.setHours(23,59,59,999),t}var Q=r("8cac");function ee(e){Object(X["a"])(1,arguments);var t=Object(K["a"])(e);return Z(t).getTime()===Object(Q["a"])(t).getTime()}function te(e,t){Object(X["a"])(2,arguments);var r,a=Object(K["a"])(e),o=Object(K["a"])(t),c=z(a,o),n=Math.abs(J(a,o));if(n<1)r=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-c*n);var s=z(a,o)===-c;ee(Object(K["a"])(e))&&1===n&&1===z(e,o)&&(s=!1),r=c*(n-Number(s))}return 0===r?0:r}function re(e,t){Object(X["a"])(2,arguments);var r=Object(K["a"])(e),a=Object(K["a"])(t);return r.getTime()-a.getTime()}function ae(e,t){Object(X["a"])(2,arguments);var r=re(e,t)/1e3;return r>0?Math.floor(r):Math.ceil(r)}var oe=r("8923");function ce(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{},t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ne(e){return ce({},e)}var se=r("2420"),ue=1440,ie=2520,de=43200,le=86400;function be(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(X["a"])(2,arguments);var a=r.locale||oe["a"];if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var o=z(e,t);if(isNaN(o))throw new RangeError("Invalid time value");var c,n,s=ne(r);s.addSuffix=Boolean(r.addSuffix),s.comparison=o,o>0?(c=Object(K["a"])(t),n=Object(K["a"])(e)):(c=Object(K["a"])(e),n=Object(K["a"])(t));var u,i=ae(n,c),d=(Object(se["a"])(n)-Object(se["a"])(c))/1e3,l=Math.round((i-d)/60);if(l<2)return r.includeSeconds?i<5?a.formatDistance("lessThanXSeconds",5,s):i<10?a.formatDistance("lessThanXSeconds",10,s):i<20?a.formatDistance("lessThanXSeconds",20,s):i<40?a.formatDistance("halfAMinute",null,s):i<60?a.formatDistance("lessThanXMinutes",1,s):a.formatDistance("xMinutes",1,s):0===l?a.formatDistance("lessThanXMinutes",1,s):a.formatDistance("xMinutes",l,s);if(l<45)return a.formatDistance("xMinutes",l,s);if(l<90)return a.formatDistance("aboutXHours",1,s);if(l<ue){var b=Math.round(l/60);return a.formatDistance("aboutXHours",b,s)}if(l<ie)return a.formatDistance("xDays",1,s);if(l<de){var p=Math.round(l/ue);return a.formatDistance("xDays",p,s)}if(l<le)return u=Math.round(l/de),a.formatDistance("aboutXMonths",u,s);if(u=te(n,c),u<12){var O=Math.round(l/de);return a.formatDistance("xMonths",O,s)}var j=u%12,f=Math.floor(u/12);return j<3?a.formatDistance("aboutXYears",f,s):j<9?a.formatDistance("overXYears",f,s):a.formatDistance("almostXYears",f+1,s)}var pe=r("68c6"),Oe=r("dad5"),je=r("2906"),fe=r("d257"),me=r("5e65"),ve=Object(a["defineComponent"])({name:"WorkoutCard",components:{StaticMap:pe["a"]},props:{workout:{type:Object,required:!1},user:{type:Object,required:!0},sport:{type:Object,required:!1}},setup:function(e){var t=Object(je["a"])(),r=Object(a["computed"])((function(){return e.user.picture?"".concat(Object(fe["a"])(),"/users/").concat(e.user.username,"/picture?").concat(Date.now()):""})),o=Object(a["computed"])((function(){return t.getters[Oe["a"].GETTERS.LOCALE]}));return{format:Y["a"],formatDistance:be,getDateWithTZ:me["c"],locale:o,userPictureUrl:r}}});r("4b23");ve.render=H,ve.__scopeId="data-v-7846af32";var ke=ve,ye=r("1724"),he=Object(a["defineComponent"])({name:"Timeline",components:{NoWorkouts:ye["a"],WorkoutCard:ke},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object(je["a"])(),r=Object(a["ref"])(1),o=5,c=e.user.nb_workouts>=o?o:e.user.nb_workouts;Object(a["onBeforeMount"])((function(){return u()}));var n=Object(a["computed"])((function(){return t.getters[Oe["f"].GETTERS.USER_WORKOUTS]})),s=Object(a["computed"])((function(){return n.value.length>0&&null!==n.value[n.value.length-1].previous_workout}));function u(){t.dispatch(Oe["f"].ACTIONS.GET_USER_WORKOUTS,{page:r.value,per_page:o})}function i(){r.value+=1,t.dispatch(Oe["f"].ACTIONS.GET_MORE_USER_WORKOUTS,{page:r.value,per_page:o})}return{initWorkoutsCount:c,moreWorkoutsExist:s,per_page:o,workouts:n,loadMoreWorkouts:i}}});r("83de");he.render=T,he.__scopeId="data-v-9b1e052a";var Se=he,we={id:"user-calendar"},ge={class:"calendar-card box"};function Ce(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("CalendarHeader"),u=Object(a["resolveComponent"])("CalendarDays"),i=Object(a["resolveComponent"])("CalendarCells");return Object(a["openBlock"])(),Object(a["createBlock"])("div",we,[Object(a["createVNode"])("div",ge,[Object(a["createVNode"])(s,{day:e.day,"locale-options":"enGB",onDisplayNextMonth:e.displayNextMonth,onDisplayPreviousMonth:e.displayPreviousMonth},null,8,["day","onDisplayNextMonth","onDisplayPreviousMonth"]),Object(a["createVNode"])(u,{"start-date":e.calendarDates.start,"locale-options":"enGB"},null,8,["start-date"]),Object(a["createVNode"])(i,{currentDay:e.day,"end-date":e.calendarDates.end,sports:e.sports,"start-date":e.calendarDates.start,timezone:e.user.timezone,workouts:e.calendarWorkouts,weekStartingMonday:e.user.weekm},null,8,["currentDay","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])])}var Ne=r("74b5"),Be=r("a618"),De={class:"calendar-cells"},Ve={class:"calendar-cell-day"};function _e(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("CalendarWorkouts");return Object(a["openBlock"])(),Object(a["createBlock"])("div",De,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.rows,(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:"calendar-row",key:r},[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(t,(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:["calendar-cell",{"disabled-cell":!e.isSameMonth(t,e.currentDay),"week-end":e.isWeekEnd(r),today:e.isToday(t)}],key:r},[Object(a["createVNode"])(s,{workouts:e.filterWorkouts(t,e.workouts),sports:e.sports},null,8,["workouts","sports"]),Object(a["createVNode"])("div",Ve,Object(a["toDisplayString"])(e.format(t,"d")),1)],2)})),128))])})),128))])}r("caad");var Te=r("f7f1");function Ie(e){Object(X["a"])(1,arguments);var t=Object(K["a"])(e);return t.setHours(0,0,0,0),t}function Me(e,t){Object(X["a"])(2,arguments);var r=Ie(e),a=Ie(t);return r.getTime()===a.getTime()}function Ee(e,t){Object(X["a"])(2,arguments);var r=Object(K["a"])(e),a=Object(K["a"])(t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Re(e){return Object(X["a"])(1,arguments),Me(e,Date.now())}var Ae={class:"calendar-workouts"},Ue={class:"desktop-display"},xe={key:0,class:"workouts-display"},qe={key:1,class:"donut-display"},We={class:"mobile-display"},Le={key:0,class:"donut-display"};function Pe(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("CalendarWorkout"),u=Object(a["resolveComponent"])("CalendarWorkoutsChart");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Ae,[Object(a["createVNode"])("div",Ue,[e.workouts.length<=e.displayedWorkoutCount?(Object(a["openBlock"])(),Object(a["createBlock"])("div",xe,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.workouts.slice(0,e.displayedWorkoutCount),(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:r,workout:t,sportLabel:e.getSportLabel(t,e.sports)},null,8,["workout","sportLabel"])})),128))])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",qe,[Object(a["createVNode"])(u,{workouts:e.workouts,sports:e.sports,datasets:e.chartDatasets,colors:e.colors},null,8,["workouts","sports","datasets","colors"])]))]),Object(a["createVNode"])("div",We,[e.workouts.length>0?(Object(a["openBlock"])(),Object(a["createBlock"])("div",Le,[Object(a["createVNode"])(u,{workouts:e.workouts,sports:e.sports,datasets:e.chartDatasets,colors:e.colors},null,8,["workouts","sports","datasets","colors"])])):Object(a["createCommentVNode"])("",!0)])])}r("d81d");function Fe(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("SportImage");return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:"calendar-workout",onClick:t[1]||(t[1]=function(t){return e.$router.push({name:"Workout",params:{workoutId:e.workout.id}})})},[Object(a["createVNode"])(s,{"sport-label":e.sportLabel,title:e.workout.title},null,8,["sport-label","title"]),Object(a["createVNode"])("sup",null,[e.workout.records.length>0?(Object(a["openBlock"])(),Object(a["createBlock"])("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:e.workout.records.map((function(t){return" ".concat(e.t("workouts.RECORD_".concat(t.record_type)))}))},null,8,["title"])):Object(a["createCommentVNode"])("",!0)])])}var $e=r("47e2"),Ge=Object(a["defineComponent"])({name:"CalendarWorkout",props:{workout:{type:Object,required:!0},sportLabel:{type:String,required:!0}},setup:function(){var e=Object($e["b"])(),t=e.t;return{t:t}}});r("38f1");Ge.render=Fe;var He=Ge,Ye=Object(a["withScopeId"])("data-v-b30dea28");Object(a["pushScopeId"])("data-v-b30dea28");var Ke={class:"calendar-workouts-chart"},Xe={class:"workouts-count"},ze={key:0,class:"workouts-pane"},Je={class:"more-workouts"};Object(a["popScopeId"])();var Ze=Ye((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("DonutChart"),u=Object(a["resolveComponent"])("CalendarWorkout"),i=Object(a["resolveDirective"])("click-outside");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Ke,[Object(a["createVNode"])("div",{class:"workouts-chart",onClick:t[1]||(t[1]=function(){return e.togglePane&&e.togglePane.apply(e,arguments)})},[Object(a["createVNode"])("div",Xe,Object(a["toDisplayString"])(e.workouts.length),1),Object(a["createVNode"])(s,{datasets:e.datasets,colors:e.colors},null,8,["datasets","colors"])]),e.isHidden?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createBlock"])("div",ze,[Object(a["withDirectives"])(Object(a["createVNode"])("div",Je,[Object(a["createVNode"])("i",{class:"fa fa-times calendar-more","aria-hidden":"true",onClick:t[2]||(t[2]=function(){return e.togglePane&&e.togglePane.apply(e,arguments)})}),(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.workouts,(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:r,workout:t,sportLabel:e.getSportLabel(t,e.sports)},null,8,["workout","sportLabel"])})),128))],512),[[i,e.togglePane]])]))])})),Qe=(r("4fad"),{class:"donut-chart"}),et={height:"34",width:"34",viewBox:"0 0 34 34"};function tt(e,t,r,o,c,n){return Object(a["openBlock"])(),Object(a["createBlock"])("div",Qe,[(Object(a["openBlock"])(),Object(a["createBlock"])("svg",et,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(Object.entries(e.datasets),(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])("g",{key:r},[Object(a["createVNode"])("circle",{cx:e.cx,cy:e.cy,r:e.radius,fill:"transparent",stroke:e.colors[+t[0]],"stroke-dashoffset":e.calculateStrokeDashOffset(t[1].percentage,e.circumference),"stroke-dasharray":e.circumference,"stroke-width":"3","stroke-opacity":"0.8",transform:e.returnCircleTransformValue(r,t[1].percentage)},null,8,["cx","cy","r","stroke","stroke-dashoffset","stroke-dasharray","transform"])])})),128))]))])}var rt=Object(a["defineComponent"])({name:"DonutChart",props:{colors:{type:Object,required:!0},datasets:{type:Object,required:!0}},setup:function(){var e=-90,t=16,r=16,a=14,o=2*Math.PI*a;function c(e,t){return t-e*t}function n(a,o){var c="rotate(".concat(e,", ").concat(t,", ").concat(r,")");return e=360*o+e,c}return{angleOffset:e,circumference:o,cx:t,cy:r,radius:a,calculateStrokeDashOffset:c,returnCircleTransformValue:n}}});rt.render=tt;var at=rt,ot=r("1119"),ct=Object(a["defineComponent"])({name:"CalendarWorkoutsChart",components:{CalendarWorkout:He,DonutChart:at},props:{colors:{type:Object,required:!0},datasets:{type:Object,required:!0},sports:{type:Object,required:!0},workouts:{type:Object,required:!0}},setup:function(){var e=Object(a["ref"])(!0);function t(t){t.stopPropagation(),e.value=!e.value}return{isHidden:e,getSportLabel:ot["a"],togglePane:t}}});r("0fe0");ct.render=Ze,ct.__scopeId="data-v-b30dea28";var nt=ct,st=r("9230"),ut=Object(a["defineComponent"])({name:"CalendarWorkouts",components:{CalendarWorkout:He,CalendarWorkoutsChart:nt},props:{workouts:{type:Object,required:!0},sports:{type:Object,required:!0}},setup:function(e){return{chartDatasets:Object(a["computed"])((function(){return Object(st["b"])(e.workouts)})),colors:Object(a["computed"])((function(){return Object(ot["c"])(e.sports)})),displayedWorkoutCount:6,getSportLabel:ot["a"]}}});r("21d8");ut.render=Pe;var it=ut,dt=Object(a["defineComponent"])({name:"CalendarCells",components:{CalendarWorkouts:it},props:{currentDay:{type:Date,required:!0},endDate:{type:Date,required:!0},sports:{type:Object,required:!0},startDate:{type:Date,required:!0},timezone:{type:String,required:!0},weekStartingMonday:{type:Boolean,required:!0},workouts:{type:Object,required:!0}},setup:function(e){var t=Object(a["ref"])([]),r=Object(a["toRefs"])(e),o=r.startDate,c=r.endDate,n=r.weekStartingMonday;function s(){t.value=[];var e=o.value;while(e<=c.value){for(var r=[],a=0;a<7;a++)r.push(e),e=Object(Te["a"])(e,1);t.value.push(r)}}function u(e){return n.value?[5,6].includes(e):[0,6].includes(e)}function i(t,r){return r?r.filter((function(r){return Me(Object(me["c"])(r.workout_date,e.timezone),t)})).reverse():[]}return Object(a["onMounted"])((function(){return s()})),Object(a["watch"])((function(){return e.currentDay}),(function(){return s()})),{rows:t,format:Y["a"],isSameMonth:Ee,isToday:Re,isWeekEnd:u,filterWorkouts:i}}});r("288e");dt.render=_e;var lt=dt,bt={class:"calendar-days"};function pt(e,t,r,o,c,n){return Object(a["openBlock"])(),Object(a["createBlock"])("div",bt,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.days,(function(t,r){return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:"calendar-day",key:r},Object(a["toDisplayString"])(e.format(t,"EEE",e.localeOptions)),1)})),128))])}var Ot=Object(a["defineComponent"])({name:"CalendarDays",props:{startDate:{type:Date,required:!0},localeOptions:{type:String,required:!0}},setup:function(e){for(var t=[],r=0;r<7;r++)t.push(Object(Te["a"])(e.startDate,r));return{days:t,addDays:Te["a"],format:Y["a"]}}});r("5fcb");Ot.render=pt;var jt=Ot,ft={class:"calendar-header"},mt=Object(a["createVNode"])("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1),vt={class:"calendar-month"},kt=Object(a["createVNode"])("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1);function yt(e,t,r,o,c,n){return Object(a["openBlock"])(),Object(a["createBlock"])("div",ft,[Object(a["createVNode"])("div",{class:"calendar-arrow calendar-arrow-left",onClick:t[1]||(t[1]=function(t){return e.emit("displayPreviousMonth")})},[mt]),Object(a["createVNode"])("div",vt,[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(e.format(e.day,"MMM yyyy",e.localeOptions)),1)]),Object(a["createVNode"])("div",{class:"calendar-arrow calendar-arrow-right",onClick:t[2]||(t[2]=function(t){return e.emit("displayNextMonth")})},[kt])])}var ht=Object(a["defineComponent"])({name:"CalendarHeader",props:{day:{type:Date,required:!0},localeOptions:{type:String,required:!0}},emits:["displayNextMonth","displayPreviousMonth"],setup:function(e,t){var r=t.emit;return{emit:r,format:Y["a"]}}});r("e4ea");ht.render=yt;var St=ht,wt=Object(a["defineComponent"])({name:"UserCalendar",components:{CalendarCells:lt,CalendarDays:jt,CalendarHeader:St},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object(je["a"])();Object(a["onBeforeMount"])((function(){return s()}));var r="yyyy-MM-dd",o=Object(a["ref"])(new Date),c=Object(a["ref"])(Object(me["b"])(o.value,e.user.weekm)),n=Object(a["computed"])((function(){return t.getters[Oe["f"].GETTERS.CALENDAR_WORKOUTS]}));function s(){c.value=Object(me["b"])(o.value,e.user.weekm);var a={from:Object(Y["a"])(c.value.start,r),to:Object(Y["a"])(c.value.end,r),order:"desc",per_page:100};t.dispatch(Oe["f"].ACTIONS.GET_CALENDAR_WORKOUTS,a)}function u(){o.value=Object(Ne["a"])(o.value,1),s()}function i(){o.value=Object(Be["a"])(o.value,1),s()}return{day:o,calendarDates:c,calendarWorkouts:n,displayNextMonth:u,displayPreviousMonth:i}}});r("5cd3");wt.render=Ce;var gt=wt,Ct=Object(a["withScopeId"])("data-v-7958b39f");Object(a["pushScopeId"])("data-v-7958b39f");var Nt={class:"user-month-stats"};Object(a["popScopeId"])();var Bt=Ct((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("StatChart"),u=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Nt,[Object(a["createVNode"])(u,null,{title:Ct((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("dashboard.THIS_MONTH")),1)]})),content:Ct((function(){return[Object(a["createVNode"])(s,{sports:e.sports,user:e.user,"chart-params":e.chartParams,"displayed-sport-ids":e.selectedSportIds,"hide-chart-if-no-data":!0},null,8,["sports","user","chart-params","displayed-sport-ids"])]})),_:1})])})),Dt=r("f628"),Vt=r("ec59"),_t=Object(a["defineComponent"])({name:"UserMonthStats",components:{StatChart:Vt["a"]},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=new Date;return{chartParams:{duration:"week",start:Object(Dt["a"])(t),end:Object(Q["a"])(t)},selectedSportIds:e.sports.map((function(e){return e.id}))}}});r("224d");_t.render=Bt,_t.__scopeId="data-v-7958b39f";var Tt=_t,It=(r("b64b"),r("4e82"),Object(a["withScopeId"])("data-v-080b37ac"));Object(a["pushScopeId"])("data-v-080b37ac");var Mt={class:"user-records-section"},Et={class:"section-title"},Rt=Object(a["createVNode"])("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1),At={class:"user-records"},Ut={key:0,class:"no-records"};Object(a["popScopeId"])();var xt=It((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("RecordsCard");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Mt,[Object(a["createVNode"])("div",Et,[Rt,Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("workouts.RECORD",2)),1)]),Object(a["createVNode"])("div",At,[0===Object.keys(e.recordsBySport).length?(Object(a["openBlock"])(),Object(a["createBlock"])("div",Ut,Object(a["toDisplayString"])(e.$t("workouts.NO_RECORDS")),1)):Object(a["createCommentVNode"])("",!0),(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(Object.keys(e.recordsBySport).sort(),(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])(s,{sportTranslatedLabel:t,records:e.recordsBySport[t],key:t},null,8,["sportTranslatedLabel","records"])})),128))])])})),qt=Object(a["withScopeId"])("data-v-db29ce96");Object(a["pushScopeId"])("data-v-db29ce96");var Wt={class:"records-card"},Lt={class:"record-type"},Pt={class:"record-value"},Ft={class:"record-date"};Object(a["popScopeId"])();var $t=qt((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("SportImage"),u=Object(a["resolveComponent"])("router-link"),i=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Wt,[Object(a["createVNode"])(i,null,{title:qt((function(){return[Object(a["createVNode"])(s,{"sport-label":e.records.label},null,8,["sport-label"]),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.sportTranslatedLabel),1)]})),content:qt((function(){return[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.records.records,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:"record",key:t.id},[Object(a["createVNode"])("span",Lt,Object(a["toDisplayString"])(e.t("workouts.RECORD_".concat(t.record_type))),1),Object(a["createVNode"])("span",Pt,Object(a["toDisplayString"])(t.value),1),Object(a["createVNode"])("span",Ft,[Object(a["createVNode"])(u,{to:{name:"Workout",params:{workoutId:t.workout_id}}},{default:qt((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(t.workout_date),1)]})),_:2},1032,["to"])])])})),128))]})),_:1})])})),Gt=Object(a["defineComponent"])({name:"RecordsCard",props:{records:{type:Object,required:!0},sportTranslatedLabel:{type:String,required:!0}},setup:function(){var e=Object($e["b"])(),t=e.t;return{t:t}}});r("2b62");Gt.render=$t,Gt.__scopeId="data-v-db29ce96";var Ht=Gt,Yt=(r("7db0"),function(e,t){var r;switch(e.record_type){case"AS":case"MS":r="".concat(e.value," km/h");break;case"FD":r="".concat(e.value," km");break;case"LD":r=e.value;break;default:throw new Error('Invalid record type, expected: "AS", "FD", "LD", "MD", got: "'.concat(e.record_type,'"'))}return{workout_date:Object(me["a"])(Object(me["c"])(e.workout_date,t)).workout_date,workout_id:e.workout_id,id:e.id,record_type:e.record_type,value:r}}),Kt=function(e,t,r){return e.reduce((function(e,a){var o=t.find((function(e){return e.id===a.sport_id}));return o&&o.label&&(void 0===e[o.translatedLabel]&&(e[o.translatedLabel]={label:o.label,records:[]}),e[o.translatedLabel].records.push(Yt(a,r))),e}),{})},Xt=Object(a["defineComponent"])({name:"UserRecords",components:{RecordsCard:Ht},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object($e["b"])(),r=t.t,o=Object(a["computed"])((function(){return Kt(e.user.records,Object(ot["d"])(e.sports,r),e.user.timezone)}));return{recordsBySport:o}}});r("c11a");Xt.render=xt,Xt.__scopeId="data-v-080b37ac";var zt=Xt,Jt=(r("b680"),r("a9e3"),{id:"user-stats"});function Zt(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("StatCard");return Object(a["openBlock"])(),Object(a["createBlock"])("div",Jt,[Object(a["createVNode"])(s,{icon:"calendar",value:e.user.nb_workouts,text:e.$t("workouts.WORKOUT",e.user.nb_workouts)},null,8,["value","text"]),Object(a["createVNode"])(s,{icon:"road",value:Number(e.user.total_distance).toFixed(2),text:e.$t("workouts.KM")},null,8,["value","text"]),Object(a["createVNode"])(s,{icon:"clock-o",value:e.total_duration.days,text:e.total_duration.duration},null,8,["value","text"]),Object(a["createVNode"])(s,{icon:"tags",value:e.user.nb_sports,text:e.$t("workouts.SPORT",e.user.nb_sports)},null,8,["value","text"])])}r("ac1f"),r("466d"),r("1276");var Qt=r("05d9"),er=Object(a["defineComponent"])({name:"UserStatsCards",components:{StatCard:Qt["a"]},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object($e["b"])(),r=t.t,o=Object(a["computed"])((function(){return e.user.total_duration}));function c(e){var t=e.value.match(/day/g)?e.value.split(", ")[1]:e.value;return{days:e.value.match(/day/g)?"".concat(e.value.split(" ")[0]," ").concat(e.value.match(/days/g)?r("common.DAY",2):r("common.DAY",1)):"0 ".concat(r("common.DAY",2),","),duration:"".concat(t.split(":")[0],"h ").concat(t.split(":")[1],"min")}}return{total_duration:Object(a["computed"])((function(){return c(o)}))}}});r("d224");er.render=Zt;var tr=er,rr=Object(a["defineComponent"])({name:"Dashboard",components:{Timeline:Se,UserCalendar:gt,UserMonthStats:Tt,UserRecords:zt,UserStatsCards:tr},setup:function(){var e=Object(je["a"])(),t=Object(a["computed"])((function(){return e.getters[Oe["e"].GETTERS.AUTH_USER_PROFILE]})),r=Object(a["computed"])((function(){return e.getters[Oe["b"].GETTERS.SPORTS]})),o=Object(a["ref"])("chart");function c(e){o.value=e}return Object(a["onUnmounted"])((function(){e.commit(Oe["f"].MUTATIONS.EMPTY_WORKOUTS)})),{authUser:t,sports:r,isSelected:o,updateDisplayColumn:c}}});r("804c");rr.render=v,rr.__scopeId="data-v-cc9648aa";t["default"]=rr},"804c":function(e,t,r){"use strict";r("3d39")},"80e9":function(e,t,r){},8338:function(e,t,r){},"83de":function(e,t,r){"use strict";r("0b29")},"8d2d":function(e,t,r){},"90d2":function(e,t,r){"use strict";r("f2a6")},"92c3":function(e,t,r){},9433:function(e,t,r){"use strict";r("80e9")},"990c":function(e,t,r){},"9a0c":function(e,t,r){var a=r("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(a)},a0b1:function(e,t,r){},a618:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r("fe1f"),o=r("74b5"),c=r("8c86");function n(e,t){Object(c["a"])(2,arguments);var r=Object(a["a"])(t);return Object(o["a"])(e,-r)}},a881:function(e,t,r){},ad56:function(e,t,r){"use strict";r("64fe")},b3b8:function(e,t,r){},b499:function(e,t,r){"use strict";r("a881")},bbd4:function(e,t,r){},c11a:function(e,t,r){"use strict";r("b3b8")},c1a9:function(e,t,r){},c3f6:function(e,t,r){"use strict";r("df24")},c9e2:function(e,t,r){"use strict";r.r(t);var a=r("7a23"),o={id:"loginOrRegister"},c={class:"container"},n={class:"container-sub"},s={class:"container-sub"};function u(e,t,r,u,i,d){var l=Object(a["resolveComponent"])("BikePic"),b=Object(a["resolveComponent"])("LoginOrRegisterForm");return Object(a["openBlock"])(),Object(a["createBlock"])("div",o,[Object(a["createVNode"])("div",c,[Object(a["createVNode"])("div",n,[Object(a["createVNode"])(l)]),Object(a["createVNode"])("div",s,[Object(a["createVNode"])(b,{action:e.action},null,8,["action"])])])])}var i=Object(a["withScopeId"])("data-v-645e8c6f");Object(a["pushScopeId"])("data-v-645e8c6f");var d={id:"about"};Object(a["popScopeId"])();var l=i((function(e,t,r,o,c,n){return Object(a["openBlock"])(),Object(a["createBlock"])("div",d,[Object(a["createVNode"])("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,8,["src"])])})),b={name:"About"};r("6ca7");b.render=l,b.__scopeId="data-v-645e8c6f";var p=b,O=r("0395"),j=Object(a["defineComponent"])({name:"NavBar",components:{BikePic:p,LoginOrRegisterForm:O["a"]},props:{action:{type:String,required:!0}}});r("ad56");j.render=u;t["default"]=j},ccb2:function(e,t,r){"use strict";r.r(t);var a=r("7a23"),o=Object(a["withScopeId"])("data-v-8e65b6c0");Object(a["pushScopeId"])("data-v-8e65b6c0");var c={id:"statistics"},n={key:0,class:"container"};Object(a["popScopeId"])();var s=o((function(e,t,r,s,u,i){var d=Object(a["resolveComponent"])("Statistics"),l=Object(a["resolveComponent"])("Card"),b=Object(a["resolveComponent"])("NoWorkouts");return Object(a["openBlock"])(),Object(a["createBlock"])("div",c,[e.authUser.username?(Object(a["openBlock"])(),Object(a["createBlock"])("div",n,[Object(a["createVNode"])(l,null,{title:o((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("statistics.STATISTICS")),1)]})),content:o((function(){return[Object(a["createVNode"])(d,{class:{"stats-disabled":0===e.authUser.nb_workouts},user:e.authUser,sports:e.sports},null,8,["class","user","sports"])]})),_:1}),0===e.authUser.nb_workouts?(Object(a["openBlock"])(),Object(a["createBlock"])(b,{key:0})):Object(a["createCommentVNode"])("",!0)])):Object(a["createCommentVNode"])("",!0)])})),u=(r("4de4"),r("caad"),r("2532"),Object(a["withScopeId"])("data-v-dad311d4"));Object(a["pushScopeId"])("data-v-dad311d4");var i={key:0,id:"user-statistics"};Object(a["popScopeId"])();var d=u((function(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("StatsMenu"),u=Object(a["resolveComponent"])("StatChart"),d=Object(a["resolveComponent"])("SportsMenu");return e.translatedSports?(Object(a["openBlock"])(),Object(a["createBlock"])("div",i,[Object(a["createVNode"])(s,{onTimeFrameUpdate:e.updateTimeFrame,onArrowClick:e.handleOnClickArrows},null,8,["onTimeFrameUpdate","onArrowClick"]),Object(a["createVNode"])(u,{sports:e.sports,user:e.user,chartParams:e.chartParams,"displayed-sport-ids":e.selectedSportIds,fullStats:!0},null,8,["sports","user","chartParams","displayed-sport-ids"]),Object(a["createVNode"])(d,{"selected-sport-ids":e.selectedSportIds,"user-sports":e.sports,onSelectedSportIdsUpdate:e.updateSelectedSportIds},null,8,["selected-sport-ids","user-sports","onSelectedSportIdsUpdate"])])):Object(a["createCommentVNode"])("",!0)})),l=(r("d81d"),r("47e2")),b=r("ec59"),p=Object(a["withScopeId"])("data-v-56f0f302");Object(a["pushScopeId"])("data-v-56f0f302");var O={class:"chart-menu"},j={class:"chart-arrow"},f={class:"time-frames custom-checkboxes-group"},m={class:"time-frames-checkboxes custom-checkboxes"},v={class:"chart-arrow"};Object(a["popScopeId"])();var k=p((function(e,t,r,o,c,n){return Object(a["openBlock"])(),Object(a["createBlock"])("div",O,[Object(a["createVNode"])("div",j,[Object(a["createVNode"])("i",{class:"fa fa-chevron-left","aria-hidden":"true",onClick:t[1]||(t[1]=function(t){return e.emit("arrowClick",!0)})})]),Object(a["createVNode"])("div",f,[Object(a["createVNode"])("div",m,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.timeFrames,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:"time-frame custom-checkbox",key:t},[Object(a["createVNode"])("label",null,[Object(a["createVNode"])("input",{type:"radio",id:t,name:t,checked:e.selectedTimeFrame===t,onInput:function(r){return e.onUpdateTimeFrame(t)}},null,40,["id","name","checked","onInput"]),Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(e.$t("statistics.TIME_FRAMES.".concat(t))),1)])])})),128))])]),Object(a["createVNode"])("div",v,[Object(a["createVNode"])("i",{class:"fa fa-chevron-right","aria-hidden":"true",onClick:t[2]||(t[2]=function(t){return e.emit("arrowClick",!1)})})])])})),y=Object(a["defineComponent"])({name:"StatsMenu",emits:["arrowClick","timeFrameUpdate"],setup:function(e,t){var r=t.emit,o=Object(a["ref"])("month"),c=["week","month","year"];function n(e){o.value=e,r("timeFrameUpdate",e)}return{selectedTimeFrame:o,timeFrames:c,onUpdateTimeFrame:n,emit:r}}});r("b499");y.render=k,y.__scopeId="data-v-56f0f302";var h=y,S={class:"sports-menu"},w={class:"sport-label"};function g(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("SportImage");return Object(a["openBlock"])(),Object(a["createBlock"])("div",S,[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(e.translatedSports,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])("label",{type:"checkbox",key:t.id,style:{color:e.sportColors[t.label]}},[Object(a["createVNode"])("input",{type:"checkbox",id:t.id,name:t.label,checked:e.selectedSportIds.includes(t.id),onInput:function(r){return e.updateSelectedSportIds(t.id)}},null,40,["id","name","checked","onInput"]),Object(a["createVNode"])(s,{"sport-label":t.label},null,8,["sport-label"]),Object(a["createVNode"])("span",w,Object(a["toDisplayString"])(t.translatedLabel),1)],4)})),128))])}var C=r("1119"),N=Object(a["defineComponent"])({name:"SportsMenu",props:{selectedSportIds:{type:Array,default:function(){return[]}},userSports:{type:Object,required:!0}},emits:["selectedSportIdsUpdate"],setup:function(e,t){var r=t.emit,o=Object(l["b"])(),c=o.t,n=Object(a["computed"])((function(){return Object(C["d"])(e.userSports,c)}));function s(e){r("selectedSportIdsUpdate",e)}return{sportColors:Object(a["inject"])("sportColors"),translatedSports:n,updateSelectedSportIds:s}}});r("9433");N.render=g;var B=N,D=r("7416"),V=Object(a["defineComponent"])({name:"Statistics",components:{SportsMenu:B,StatChart:b["a"],StatsMenu:h},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0}},setup:function(e){var t=Object(l["b"])(),r=t.t,o=Object(a["ref"])("month"),c=["week","month","year"],n=Object(a["ref"])(d(o.value)),s=Object(a["computed"])((function(){return Object(C["d"])(e.sports,r)})),u=Object(a["ref"])(p(e.sports));function i(e){o.value=e,n.value=d(o.value)}function d(t){return Object(D["b"])(new Date,t,e.user.weekm)}function b(t){n.value=Object(D["c"])(n.value,t,e.user.weekm)}function p(e){return e.map((function(e){return e.id}))}function O(e){u.value.includes(e)?u.value=u.value.filter((function(t){return t!==e})):u.value.push(e)}return Object(a["watch"])((function(){return e.sports}),(function(e){u.value=p(e)})),{chartParams:n,selectedTimeFrame:o,timeFrames:c,translatedSports:s,selectedSportIds:u,handleOnClickArrows:b,updateSelectedSportIds:O,updateTimeFrame:i}}});r("778a");V.render=d,V.__scopeId="data-v-dad311d4";var _=V,T=r("1724"),I=r("dad5"),M=r("2906"),E=Object(a["defineComponent"])({name:"StatisticsView",components:{NoWorkouts:T["a"],Statistics:_},setup:function(){var e=Object(M["a"])(),t=Object(a["computed"])((function(){return e.getters[I["e"].GETTERS.AUTH_USER_PROFILE]})),r=Object(a["computed"])((function(){return e.getters[I["b"].GETTERS.SPORTS].filter((function(e){return t.value.sports_list.includes(e.id)}))}));return{authUser:t,sports:r}}});r("d704");E.render=s,E.__scopeId="data-v-8e65b6c0";t["default"]=E},d224:function(e,t,r){"use strict";r("a0b1")},d28b:function(e,t,r){var a=r("746f");a("iterator")},d704:function(e,t,r){"use strict";r("3d74")},dc75:function(e,t,r){},df24:function(e,t,r){},e01a:function(e,t,r){"use strict";var a=r("23e7"),o=r("83ab"),c=r("da84"),n=r("5135"),s=r("861d"),u=r("9bf2").f,i=r("e893"),d=c.Symbol;if(o&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var l={},b=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof b?new d(e):void 0===e?d():d(e);return""===e&&(l[t]=!0),t};i(b,d);var p=b.prototype=d.prototype;p.constructor=b;var O=p.toString,j="Symbol(test)"==String(d("test")),f=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=O.call(e);if(n(l,e))return"";var r=j?t.slice(7,-1):t.replace(f,"$1");return""===r?void 0:r}}),a({global:!0,forced:!0},{Symbol:b})}},e19f:function(e,t,r){"use strict";r.r(t);var a=r("7a23"),o={class:"not-found"};function c(e,t,r,c,n,s){var u=Object(a["resolveComponent"])("NotFound");return Object(a["openBlock"])(),Object(a["createBlock"])("div",o,[Object(a["createVNode"])(u)])}var n=r("f7f9"),s=Object(a["defineComponent"])({name:"NotFoundView",components:{NotFound:n["a"]}});s.render=c;t["default"]=s},e4ea:function(e,t,r){"use strict";r("5782")},ec59:function(e,t,r){"use strict";var a=r("7a23"),o=Object(a["withScopeId"])("data-v-6eb9bb83");Object(a["pushScopeId"])("data-v-6eb9bb83");var c={class:"start-chart"},n={key:0},s={key:1},u={class:"chart-radio"};Object(a["popScopeId"])();var i=o((function(e,t,r,o,i,d){var l=Object(a["resolveComponent"])("Chart");return Object(a["openBlock"])(),Object(a["createBlock"])("div",c,[e.hideChartIfNoData&&e.emptyStats?(Object(a["openBlock"])(),Object(a["createBlock"])("div",n,Object(a["toDisplayString"])(e.$t("workouts.NO_WORKOUTS")),1)):(Object(a["openBlock"])(),Object(a["createBlock"])("div",s,[Object(a["createVNode"])("div",u,[Object(a["createVNode"])("label",null,[Object(a["createVNode"])("input",{type:"radio",name:"total_distance",checked:"total_distance"===e.displayedData,onClick:t[1]||(t[1]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,["checked"]),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("workouts.DISTANCE")),1)]),Object(a["createVNode"])("label",null,[Object(a["createVNode"])("input",{type:"radio",name:"total_duration",checked:"total_duration"===e.displayedData,onClick:t[2]||(t[2]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,["checked"]),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("workouts.DURATION")),1)]),Object(a["createVNode"])("label",null,[Object(a["createVNode"])("input",{type:"radio",name:"nb_workouts",checked:"nb_workouts"===e.displayedData,onClick:t[3]||(t[3]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,["checked"]),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("workouts.WORKOUT",2)),1)])]),e.labels.length>0?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:0,datasets:e.datasets,labels:e.labels,displayedData:e.displayedData,displayedSportIds:e.displayedSportIds,fullStats:e.fullStats},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats"])):Object(a["createCommentVNode"])("",!0)]))])})),d=r("1da1"),l=(r("96cf"),r("b0c0"),r("b64b"),r("b166")),b={class:"chart"};function p(e,t,r,o,c,n){var s=Object(a["resolveComponent"])("BarChart");return Object(a["openBlock"])(),Object(a["createBlock"])("div",b,[Object(a["createVNode"])(s,Object(a["mergeProps"])(e.barChartProps,{class:"bar-chart"}),null,16)])}r("d81d");var O=r("b48c"),j=r("47e2"),f=(r("b680"),r("d3b7"),r("25f0"),r("4d90"),r("99af"),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="0";t&&(r=String(Math.floor(e/86400)),e%=86400);var a=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;var o=String(Math.floor(e/60)).padStart(2,"0"),c=String(e%60).padStart(2,"0");return t?"".concat("0"===r?"":"".concat(r,"d ")).concat("00"===a?"":"".concat(a,"h ")).concat(o,"m ").concat(c,"s"):"".concat("00"===a?"":"".concat(a,":")).concat(o,":").concat(c)}),m=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"total_duration"===e?f(t,r):"total_distance"===e?t.toFixed(2)+" km":t.toString()},v=Object(a["defineComponent"])({name:"Chart",components:{BarChart:O["BarChart"]},props:{datasets:{type:Object,required:!0},labels:{type:Object,required:!0},displayedData:{type:String,required:!0},displayedSportIds:{type:Array,required:!0},fullStats:{type:Boolean,required:!0}},setup:function(e){var t=Object(j["b"])(),r=t.t;function o(e){return isNaN(e)?0:+e}function c(e,t){return o(e)+o(t)}var n=Object(a["computed"])((function(){return{labels:e.labels,datasets:JSON.parse(JSON.stringify(e.datasets))}})),s=Object(a["computed"])((function(){return{responsive:!0,maintainAspectRatio:!0,animation:!1,layout:{padding:{top:e.fullStats?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1}},y:{stacked:!0,grid:{drawOnChartArea:!1},ticks:{maxTicksLimit:6,callback:function(t){return m(e.displayedData,+t,!1)}},afterFit:function(t){t.width=e.fullStats?75:60}}},plugins:{datalabels:{anchor:"end",align:"end",rotation:function(t){return e.fullStats&&t.chart.chartArea.width<580?310:0},display:function(t){return!(e.fullStats&&t.chart.chartArea.width<300)},formatter:function(t,r){var a=r.chart.data.datasets.map((function(e){return e.data[r.dataIndex]})).reduce((function(e,t){return c(e,t)}),0);return r.datasetIndex===e.displayedSportIds.length-1&&a>0?m(e.displayedData,a,!1):null}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index"},filter:function(e){return"0"!==e.formattedValue},callbacks:{label:function(t){var a=r("sports.".concat(t.dataset.label,".LABEL"))||"";return a&&(a+=": "),null!==t.parsed.y&&(a+=m(e.displayedData,t.parsed.y)),a},footer:function(t){var a=0;return t.map((function(e){a+=e.parsed.y})),"".concat(r("statistics.TOTAL"),": ")+m(e.displayedData,a)}}}}}})),u=Object(O["useBarChart"])({chartData:n,options:s}),i=u.barChartProps;return{barChartProps:i}}});v.render=p;var k=v,y=r("dad5"),h=r("2906"),S=r("7416"),w=Object(a["defineComponent"])({name:"UserMonthStats",components:{Chart:k},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0},chartParams:{type:Object,required:!0},displayedSportIds:{type:Array,default:function(){return[]}},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1}},setup:function(e){var t=Object(h["a"])(),r=Object(a["ref"])("total_distance"),o=Object(a["computed"])((function(){return t.getters[y["c"].GETTERS.USER_STATS]})),c=Object(a["computed"])((function(){return Object(S["a"])(e.chartParams,e.user.weekm,e.sports,e.displayedSportIds,o.value)}));function n(r){t.dispatch(y["c"].ACTIONS.GET_USER_STATS,{username:e.user.username,filterType:"by_time",params:r})}function s(e){r.value=e.target.name}function u(e,t){return{from:Object(l["a"])(e.start,"yyyy-MM-dd"),to:Object(l["a"])(e.end,"yyyy-MM-dd"),time:"week"===e.duration?"week".concat(t.weekm?"m":""):e.duration}}return Object(a["onBeforeMount"])((function(){return n(u(e.chartParams,e.user))})),Object(a["watch"])((function(){return e.chartParams}),function(){var t=Object(d["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n(u(r,e.user));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),{datasets:Object(a["computed"])((function(){return c.value.datasets[r.value]})),labels:Object(a["computed"])((function(){return c.value.labels})),emptyStats:Object(a["computed"])((function(){return 0===Object.keys(o.value).length})),displayedData:r,updateDisplayData:s}}});r("90d2");w.render=i,w.__scopeId="data-v-6eb9bb83";t["a"]=w},f153:function(e,t,r){},f2a6:function(e,t,r){},fb6a:function(e,t,r){"use strict";var a=r("23e7"),o=r("861d"),c=r("e8b5"),n=r("23cb"),s=r("50c4"),u=r("fc6a"),i=r("8418"),d=r("b622"),l=r("1dde"),b=l("slice"),p=d("species"),O=[].slice,j=Math.max;a({target:"Array",proto:!0,forced:!b},{slice:function(e,t){var r,a,d,l=u(this),b=s(l.length),f=n(e,b),m=n(void 0===t?b:t,b);if(c(l)&&(r=l.constructor,"function"!=typeof r||r!==Array&&!c(r.prototype)?o(r)&&(r=r[p],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return O.call(l,f,m);for(a=new(void 0===r?Array:r)(j(m-f,0)),d=0;f<m;f++,d++)f in l&&i(a,d,l[f]);return a.length=d,a}})},fd0a:function(e,t,r){}}]);
//# sourceMappingURL=main.597d0b47.js.map