(function(e){function t(t){for(var r,c,i=t[0],s=t[1],l=t[2],u=0,d=[];ur?1:n2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e.filter((function(e){return!n||(null===c?e.is_active_for_user:c.includes(e.id)||e.is_active)})).map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{translatedLabel:t("sports.".concat(e.label,".LABEL"))})})).sort(a)},s=function(e,t){return t.filter((function(t){return t.id===e.sport_id})).map((function(e){return e.label}))[0]},l=function(e,t){return t.filter((function(t){return t.id===e.sport_id})).map((function(e){return e.color}))[0]}},"11f9":function(e,t,n){"use strict";n("83d9")},"15bf":function(e,t,n){},1724:function(e,t,n){"use strict";var r=n("7a23"),c={class:"no-workouts box"};function o(e,t){var n=Object(r["resolveComponent"])("router-link");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("workouts.NO_WORKOUTS"))+" ",1),Object(r["createVNode"])(n,{to:"/workouts/add"},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)]})),_:1})])])}n("b3f6");var a=n("6b0d"),i=n.n(a);const s={},l=i()(s,[["render",o],["__scopeId","data-v-4b4d15fb"]]);t["a"]=l},"1a78":function(e,t,n){},"1ace":function(e,t,n){},2386:function(e,t,n){},2449:function(e,t,n){},"268c":function(e,t,n){"use strict";n("0c22")},2906:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("5502");function c(){return Object(r["b"])()}},"2edc":function(e,t,n){},"304f":function(e,t,n){},3306:function(e,t,n){"use strict";n("1ace")},3522:function(e,t,n){},"35e3":function(e,t,n){"use strict";n("0ad9")},"374b":function(e,t,n){"use strict";n("5911")},"3a2a":function(e,t,n){"use strict";n("76bb")},"3c44":function(e,t,n){"use strict";var r=n("7a23"),c=n("c46a"),o={class:"box user-header"},a={class:"user-details"},i={class:"user-name"},s={class:"user-stats"},l={class:"user-stat"},u={class:"stat-number"},d={class:"stat-label"},O={class:"user-stat"},b={class:"stat-label"},m={class:"user-stat hide-small"},p={class:"stat-number"},E={class:"stat-label"},f=Object(r["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(r["toRefs"])(t),f=n.user;return function(e,t){var n=Object(r["resolveComponent"])("Distance");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[Object(r["createVNode"])(c["a"],{user:Object(r["unref"])(f)},null,8,["user"]),Object(r["createElementVNode"])("div",a,[Object(r["createElementVNode"])("div",i,Object(r["toDisplayString"])(Object(r["unref"])(f).username),1),Object(r["createElementVNode"])("div",s,[Object(r["createElementVNode"])("div",l,[Object(r["createElementVNode"])("span",u,Object(r["toDisplayString"])(Object(r["unref"])(f).nb_workouts),1),Object(r["createElementVNode"])("span",d,Object(r["toDisplayString"])(e.$t("workouts.WORKOUT",Object(r["unref"])(f).nb_workouts)),1)]),Object(r["createElementVNode"])("div",O,[Object(r["createVNode"])(n,{distance:Object(r["unref"])(f).total_distance,unitFrom:"km",digits:0,displayUnit:!1,useImperialUnits:Object(r["unref"])(f).imperial_units},null,8,["distance","useImperialUnits"]),Object(r["createElementVNode"])("span",b,Object(r["toDisplayString"])(Object(r["unref"])(f).imperial_units?"miles":"km"),1)]),Object(r["createElementVNode"])("div",m,[Object(r["createElementVNode"])("span",p,Object(r["toDisplayString"])(Object(r["unref"])(f).nb_sports),1),Object(r["createElementVNode"])("span",E,Object(r["toDisplayString"])(e.$t("workouts.SPORT",Object(r["unref"])(f).nb_sports)),1)])])])])}}}),j=(n("e806"),n("6b0d")),T=n.n(j);const S=T()(f,[["__scopeId","data-v-312cd857"]]);t["a"]=S},"3c78":function(e,t,n){"use strict";n("c6db")},"3d56":function(e,t,n){"use strict";n("3522")},"423b":function(e,t,n){"use strict";n("8907")},4870:function(e,t,n){"use strict";var r,c,o;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),function(e){e["ADD_WORKOUT"]="ADD_WORKOUT",e["ADD_WORKOUT_WITHOUT_GPX"]="ADD_WORKOUT_WITHOUT_GPX",e["DELETE_WORKOUT"]="DELETE_WORKOUT",e["EDIT_WORKOUT"]="EDIT_WORKOUT",e["GET_CALENDAR_WORKOUTS"]="GET_CALENDAR_WORKOUTS",e["GET_USER_WORKOUTS"]="GET_USER_WORKOUTS",e["GET_TIMELINE_WORKOUTS"]="GET_TIMELINE_WORKOUTS",e["GET_MORE_TIMELINE_WORKOUTS"]="GET_MORE_TIMELINE_WORKOUTS",e["GET_WORKOUT_DATA"]="GET_WORKOUT_DATA"}(r||(r={})),function(e){e["CALENDAR_WORKOUTS"]="CALENDAR_WORKOUTS",e["TIMELINE_WORKOUTS"]="TIMELINE_WORKOUTS",e["USER_WORKOUTS"]="USER_WORKOUTS",e["WORKOUT_DATA"]="WORKOUT_DATA",e["WORKOUTS_PAGINATION"]="WORKOUTS_PAGINATION"}(c||(c={})),function(e){e["ADD_TIMELINE_WORKOUTS"]="ADD_TIMELINE_WORKOUTS",e["EMPTY_WORKOUTS"]="EMPTY_WORKOUTS",e["EMPTY_CALENDAR_WORKOUTS"]="EMPTY_CALENDAR_WORKOUTS",e["EMPTY_WORKOUT"]="EMPTY_WORKOUT",e["SET_CALENDAR_WORKOUTS"]="SET_CALENDAR_WORKOUTS",e["SET_TIMELINE_WORKOUTS"]="SET_TIMELINE_WORKOUTS",e["SET_USER_WORKOUTS"]="SET_USER_WORKOUTS",e["SET_WORKOUT"]="SET_WORKOUT",e["SET_WORKOUT_GPX"]="SET_WORKOUT_GPX",e["SET_WORKOUT_CHART_DATA"]="SET_WORKOUT_CHART_DATA",e["SET_WORKOUT_LOADING"]="SET_WORKOUT_LOADING",e["SET_WORKOUTS_PAGINATION"]="SET_WORKOUTS_PAGINATION"}(o||(o={}))},"49a7":function(e,t,n){},"4c29":function(e,t,n){"use strict";n("ff29")},"4e58":function(e,t,n){},"4f8e":function(e,t,n){"use strict";n("4e58")},5140:function(e,t,n){},5172:function(e,t,n){},"538d":function(e,t,n){},"55a6":function(e,t,n){"use strict";n("dbf1")},5643:function(e,t,n){},5911:function(e,t,n){},"5b6e":function(e,t,n){"use strict";n("5643")},"5e65":function(e,t,n){"use strict";n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return f}));var r=n("69eb"),c=n("d6e9"),o=n("f628"),a=n("f7f1"),i=n("cdb6"),s=n("74b5"),l=n("8cac"),u=n("2fc8"),d=n("b166"),O=n("78b2"),b=function(e,t,n){switch(e){case"week":return Object(r["a"])(t,{weekStartsOn:n?1:0});case"year":return Object(c["a"])(t);case"month":return Object(o["a"])(t);default:throw new Error('Invalid duration, expected: "week", "month", "year", got: "'.concat(e,'"'))}},m=function(e,t){switch(e){case"week":return Object(a["a"])(t,7);case"year":return Object(i["a"])(t,1);case"month":return Object(s["a"])(t,1);default:throw new Error('Invalid duration, expected: "week", "month", "year", got: "'.concat(e,'"'))}},p=function(e,t){return Object(O["a"])(new Date(e),t)},E=function(e,t){var n=Object(o["a"])(e),c=Object(l["a"])(e),a=t?1:0;return{start:Object(r["a"])(n,{weekStartsOn:a}),end:Object(u["a"])(c,{weekStartsOn:a})}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t||(t="yyyy/MM/dd"),n||(n="HH:mm"),{workout_date:Object(d["a"])(e,t),workout_time:Object(d["a"])(e,n)}}},6112:function(e,t,n){"use strict";n("0180")},6284:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("b680");var r={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},c={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},o=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,a=r[t],i=r[n],s=e*a.multiplier*c[a.system][i.system]/i.multiplier;return null!==o?parseFloat(s.toFixed(o)):s},a=function(e,t,n){var c=n?r[e].defaultTarget:e;return n?o(t,e,c,2):t}},"633e":function(e,t,n){},"64bb":function(e,t,n){},"663e":function(e,t,n){"use strict";n.r(t);var r={ACTION:e=>{const{normalize:t}=e;return t(["Action"])},ADMIN_RIGHTS_DELETE_USER_ACCOUNT:e=>{const{normalize:t}=e;return t(["Ajouter/retirer des droits d'administration, supprimer des comptes utilisateurs."])},ADMIN:e=>{const{normalize:t}=e;return t(["Admin"])},ADMINISTRATION:e=>{const{normalize:t}=e;return t(["Administration"])},APPLICATION:e=>{const{normalize:t}=e;return t(["Application"])},APP_CONFIG:{MAX_USERS_LABEL:e=>{const{normalize:t}=e;return t(["Nombre maximum d'utilisateurs actifs "])},MAX_USERS_HELP:e=>{const{normalize:t}=e;return t(["Si égal à 0, pas limite d'inscription"])},MAX_FILES_IN_ZIP_LABEL:e=>{const{normalize:t}=e;return t(["Taille max. des archives zip (en Mo) "])},SINGLE_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:t}=e;return t(["Taille max. des fichiers (en Mo) "])},TITLE:e=>{const{normalize:t}=e;return t(["Configuration de l'application"])},ZIP_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:t}=e;return t(["Nombre max. de fichiers dans une archive zip "])}},BACK_TO_ADMIN:e=>{const{normalize:t}=e;return t(["Revenir à l'admin"])},CONFIRM_USER_ACCOUNT_DELETION:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Etes-vous sûr de vouloir supprimer le compte de ",n(r(0))," ? Toutes les données seront définitivement."])},DELETE_USER:e=>{const{normalize:t}=e;return t(["Supprimer l'utilisateur"])},ENABLE_DISABLE_SPORTS:e=>{const{normalize:t}=e;return t(["Activer/désactiver des sports."])},REGISTRATION_DISABLED:e=>{const{normalize:t}=e;return t(["Les inscriptions sont actuellement désactivées."])},REGISTRATION_ENABLED:e=>{const{normalize:t}=e;return t(["Les inscriptions sont actuellement activées."])},SPORTS:{TABLE:{ACTIVE:e=>{const{normalize:t}=e;return t(["Actif"])},HAS_WORKOUTS:e=>{const{normalize:t}=e;return t(["des séances existent"])},IMAGE:e=>{const{normalize:t}=e;return t(["Image"])},LABEL:e=>{const{normalize:t}=e;return t(["Label"])}},TITLE:e=>{const{normalize:t}=e;return t(["Administration - Sports"])}},UPDATE_APPLICATION_DESCRIPTION:e=>{const{normalize:t}=e;return t(["Configurer l'application (nombre maximum d'utilisateurs inscrits, taille maximale des fichers)."])},USER:e=>{const{normalize:t,plural:n}=e;return n([t(["utilisateur"]),t(["utilisateurs"])])},USERS:{TABLE:{ADD_ADMIN_RIGHTS:e=>{const{normalize:t}=e;return t(["Ajouter les drois d'admin"])},REMOVE_ADMIN_RIGHTS:e=>{const{normalize:t}=e;return t(["Retirer les drois d'admin"])}},SELECTS:{ORDER_BY:{ADMIN:e=>{const{normalize:t}=e;return t(["status administrateur"])},CREATED_AT:e=>{const{normalize:t}=e;return t(["date d'inscription"])},USERNAME:e=>{const{normalize:t}=e;return t(["nom d'utilisateur"])},WORKOUTS_COUNT:e=>{const{normalize:t}=e;return t(["nombre de séances"])}}}}},c={ERROR:{UNKNOWN:e=>{const{normalize:t}=e;return t(["Erreur. Veuillez réessayer ou contacter l'administrateur."])},"email: valid email must be provided":e=>{const{normalize:t}=e;return t(["Email : une adresse email valide doit être fournie."])},"error on getting configuration":e=>{const{normalize:t}=e;return t(["Erreur lors de la récupération de la configuration."])},"error when updating configuration":e=>{const{normalize:t}=e;return t(["Erreur lors de la mise à jour de la configuration"])},"error, please try again or contact the administrator":e=>{const{normalize:t}=e;return t(["Erreur, veuillez réessayer ou contacter l'administrateur."])},"error, registration is disabled":e=>{const{normalize:t}=e;return t(["Erreur, les inscriptions sont désactivées."])},"file extension not allowed":e=>{const{normalize:t}=e;return t(["Extension de fichier non autorisée."])},"file size is greater than the allowed size":e=>{const{normalize:t}=e;return t(["La taille du fichier est supérieure à la limite autorisée."])},"invalid credentials":e=>{const{normalize:t}=e;return t(["Identifiants invalides."])},"invalid payload":e=>{const{normalize:t}=e;return t(["Données fournies incorrectes."])},"invalid token, please log in again":e=>{const{normalize:t}=e;return t(["Jeton de connexion invalide, merci de vous reconnecter."])},"invalid token, please request a new token":e=>{const{normalize:t}=e;return t(["Jeton de connexion, merci de vous reconnecter."])},"no file part":e=>{const{normalize:t}=e;return t(["Pas de fichier fourni."])},"no selected file":e=>{const{normalize:t}=e;return t(["Pas de fichier sélectionné."])},"Network Error":e=>{const{normalize:t}=e;return t(["Erreur Réseau."])},"password: password and password confirmation do not match":e=>{const{normalize:t}=e;return t(["Mot de passe : les mots de passe saisis sont différents."])},"provide a valid auth token":e=>{const{normalize:t}=e;return t(["Merci de fournir un jeton de connexion valide."])},"password: 8 characters required":e=>{const{normalize:t}=e;return t(["Mot de passe : 8 caractères minimum."])},"sport does not exist":e=>{const{normalize:t}=e;return t(["Ce sport n'existe pas."])},"signature expired, please log in again":e=>{const{normalize:t}=e;return t(["Signature expirée. Merci de vous reconnecter."])},"sorry, that user already exists":e=>{const{normalize:t}=e;return t(["Désolé, cet utilisateur existe déjà."])},"successfully registered":e=>{const{normalize:t}=e;return t(["Inscription validée."])},"user does not exist":e=>{const{normalize:t}=e;return t(["L'utilisateur n'existe pas"])},"username: 3 to 12 characters required":e=>{const{normalize:t}=e;return t(["Nom d'utilisateur : 3 à 12 caractères requis."])},"you can not delete your account, no other user has admin rights":e=>{const{normalize:t}=e;return t(["Vous ne pouvez pas supprimer votre compte, aucun autre utilisateur n'a des droits d'administration."])},"you do not have permissions":e=>{const{normalize:t}=e;return t(["Vous n'avez pas les permissions nécessaires."])}},PAGINATION:{PREVIOUS:e=>{const{normalize:t}=e;return t(["précédent"])},NEXT:e=>{const{normalize:t}=e;return t(["suivant"])}}},o={BACK:e=>{const{normalize:t}=e;return t(["Précédent"])},CANCEL:e=>{const{normalize:t}=e;return t(["Annuler"])},CLEAR_FILTER:e=>{const{normalize:t}=e;return t(["Réinitialiser"])},DELETE_MY_ACCOUNT:e=>{const{normalize:t}=e;return t(["Supprimer mon compte"])},DISABLE:e=>{const{normalize:t}=e;return t(["Désactiver"])},EDIT:e=>{const{normalize:t}=e;return t(["Modifier"])},ENABLE:e=>{const{normalize:t}=e;return t(["Activer"])},FILTER:e=>{const{normalize:t}=e;return t(["Filtrer"])},LOGIN:e=>{const{normalize:t}=e;return t(["Se connecter"])},NO:e=>{const{normalize:t}=e;return t(["Non"])},REGISTER:e=>{const{normalize:t}=e;return t(["S'inscrire"])},SUBMIT:e=>{const{normalize:t}=e;return t(["Valider"])},YES:e=>{const{normalize:t}=e;return t(["Oui"])}},a={CONFIRMATION:e=>{const{normalize:t}=e;return t(["Confirmation"])},DAY:e=>{const{normalize:t,plural:n}=e;return n([t(["jour"]),t(["jours"])])},HOME:e=>{const{normalize:t}=e;return t(["Accueil"])},HERE:e=>{const{normalize:t}=e;return t(["ici"])},SELECTS:{ORDER_BY:{LABEL:e=>{const{normalize:t}=e;return t(["trier par "])}},ORDER:{LABEL:e=>{const{normalize:t}=e;return t(["tri"])},ASC:e=>{const{normalize:t}=e;return t(["ascendant"])},DESC:e=>{const{normalize:t}=e;return t(["descendant"])}},PER_PAGE:{LABEL:e=>{const{normalize:t}=e;return t(["par page"])}}},TOTAL:e=>{const{normalize:t}=e;return t(["Total"])}},i={DASHBOARD:e=>{const{normalize:t}=e;return t(["Tableau de Bord"])},THIS_MONTH:e=>{const{normalize:t}=e;return t(["Ce mois"])}},s={UNKNOWN:e=>{const{normalize:t}=e;return t(["Erreur. Veuillez réessayer ou contacter l'administrateur."])},APP_ERROR:e=>{const{normalize:t}=e;return t(["L'application semble rencontrer quelques problèmes.
Veuillez réessayer plus tard ou contacter l'administrateur."])},NOT_FOUND:{PAGE:e=>{const{normalize:t}=e;return t(["Page introuvable"])},WORKOUT:e=>{const{normalize:t}=e;return t(["Séance introuvable"])}}},l={"Cycling (Sport)":{LABEL:e=>{const{normalize:t}=e;return t(["Vélo (Sport)"])}},"Cycling (Transport)":{LABEL:e=>{const{normalize:t}=e;return t(["Vélo (Transport)"])}},Hiking:{LABEL:e=>{const{normalize:t}=e;return t(["Randonnée"])}},"Mountain Biking":{LABEL:e=>{const{normalize:t}=e;return t(["VTT"])}},"Mountain Biking (Electric)":{LABEL:e=>{const{normalize:t}=e;return t(["VTT (Electrique)"])}},Rowing:{LABEL:e=>{const{normalize:t}=e;return t(["Aviron"])}},Running:{LABEL:e=>{const{normalize:t}=e;return t(["Course"])}},"Skiing (Alpine)":{LABEL:e=>{const{normalize:t}=e;return t(["Ski (Alpin)"])}},"Skiing (Cross Country)":{LABEL:e=>{const{normalize:t}=e;return t(["Ski (Randonnée)"])}},Trail:{LABEL:e=>{const{normalize:t}=e;return t(["Trail"])}},Walking:{LABEL:e=>{const{normalize:t}=e;return t(["Marche"])}}},u={STATISTICS:e=>{const{normalize:t}=e;return t(["Statistiques"])},TIME_FRAMES:{week:e=>{const{normalize:t}=e;return t(["semaine"])},month:e=>{const{normalize:t}=e;return t(["mois"])},year:e=>{const{normalize:t}=e;return t(["année"])}}},d={ADMIN:e=>{const{normalize:t}=e;return t(["Admin"])},ALREADY_HAVE_ACCOUNT:e=>{const{normalize:t}=e;return t(["Vous avez déjà un compte ?"])},CONFIRM_ACCOUNT_DELETION:e=>{const{normalize:t}=e;return t(["Etes-vous sûr de vouloir supprimer votre compte ? Toutes les données seront définitivement effacés."])},EMAIL:e=>{const{normalize:t}=e;return t(["Email"])},ENTER_EMAIL:e=>{const{normalize:t}=e;return t(["Saisir une adresse email"])},ENTER_PASSWORD:e=>{const{normalize:t}=e;return t(["Saisir un mot de passe"])},ENTER_PASSWORD_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Confirmer le mot de passe"])},INVALID_TOKEN:e=>{const{normalize:t}=e;return t(["Jeton invalide, veullez demander une nouvelle réinitialisation de mot de passe."])},LANGUAGE:e=>{const{normalize:t}=e;return t(["Langue"])},LOGIN:e=>{const{normalize:t}=e;return t(["Se connecter"])},LOGOUT:e=>{const{normalize:t}=e;return t(["Se déconnecter"])},PASSWORD:e=>{const{normalize:t}=e;return t(["Mot de passe"])},PASSWORD_CONFIRM:e=>{const{normalize:t}=e;return t(["Confirmation du mot de passe"])},PASSWORD_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Confirmation du mot de passe"])},PASSWORD_FORGOTTEN:e=>{const{normalize:t}=e;return t(["Mot de passe oublié ?"])},PASSWORD_RESET:e=>{const{normalize:t}=e;return t(["Réinitialisation du mot de passe"])},PASSWORD_SENT_EMAIL_TEXT:e=>{const{normalize:t}=e;return t(["Vérifiez votre boite mail. Si vote adresse est dans notre base de données, vous recevrez un email avec un lien pour réinitialiser votre mot de passe."])},PASSWORD_UPDATED:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Votre mot de passe a été mis à jour. Cliquez ",n(r(0))," pour vous connecter."])},PROFILE:{BACK_TO_PROFILE:e=>{const{normalize:t}=e;return t(["Revenir au profil"])},BIO:e=>{const{normalize:t}=e;return t(["Bio"])},BIRTH_DATE:e=>{const{normalize:t}=e;return t(["Date de naissance"])},EDIT:e=>{const{normalize:t}=e;return t(["Modifier le profil"])},EDIT_PREFERENCES:e=>{const{normalize:t}=e;return t(["Modifier les préférences"])},EDIT_SPORTS_PREFERENCES:e=>{const{normalize:t}=e;return t(["Modifier les préférences des sports"])},FIRST_DAY_OF_WEEK:e=>{const{normalize:t}=e;return t(["Premier jour de la semaine"])},FIRST_NAME:e=>{const{normalize:t}=e;return t(["Prénom"])},LANGUAGE:e=>{const{normalize:t}=e;return t(["Langue"])},LAST_NAME:e=>{const{normalize:t}=e;return t(["Nom"])},LOCATION:e=>{const{normalize:t}=e;return t(["Lieu"])},MONDAY:e=>{const{normalize:t}=e;return t(["Lundi"])},PICTURE:e=>{const{normalize:t}=e;return t(["Image de profil"])},PICTURE_EDITION:e=>{const{normalize:t}=e;return t(["Mise à jour de l'image de profil"])},PICTURE_UPDATE:e=>{const{normalize:t}=e;return t(["Mettre à jour l'image"])},PICTURE_REMOVE:e=>{const{normalize:t}=e;return t(["Supprimer"])},PREFERENCES_EDITION:e=>{const{normalize:t}=e;return t(["Mise à jour des préférences"])},PROFILE_EDITION:e=>{const{normalize:t}=e;return t(["Mise à jour du profil"])},REGISTRATION_DATE:e=>{const{normalize:t}=e;return t(["Date d'inscription"])},SPORTS_EDITION:e=>{const{normalize:t}=e;return t(["Mise à jour des préférences des sports"])},SUNDAY:e=>{const{normalize:t}=e;return t(["Dimanche"])},TABS:{PICTURE:e=>{const{normalize:t}=e;return t(["image"])},PREFERENCES:e=>{const{normalize:t}=e;return t(["préférences"])},PROFILE:e=>{const{normalize:t}=e;return t(["profil"])},SPORTS:e=>{const{normalize:t}=e;return t(["sports"])}},UNITS:{LABEL:e=>{const{normalize:t}=e;return t(["Unités pour les distances "])},IMPERIAL:e=>{const{normalize:t}=e;return t(["Système impérial (ft, mi)"])},METRIC:e=>{const{normalize:t}=e;return t(["Système métrique (m, km)"])}},SPORT:{ACTION:e=>{const{normalize:t}=e;return t(["action"])},COLOR:e=>{const{normalize:t}=e;return t(["couleur"])},DISABLED_BY_ADMIN:e=>{const{normalize:t}=e;return t(["désactivé par l'administrateur"])},IS_ACTIVE:e=>{const{normalize:t}=e;return t(["actif"])},LABEL:e=>{const{normalize:t}=e;return t(["label"])},STOPPED_SPEED_THRESHOLD:e=>{const{normalize:t}=e;return t(["seuil de vitesse arrêtée"])}},TIMEZONE:e=>{const{normalize:t}=e;return t(["Fuseau horaire"])}},REGISTER:e=>{const{normalize:t}=e;return t(["S'inscrire"])},REGISTER_DISABLED:e=>{const{normalize:t}=e;return t(["Désolé, les inscriptions sont désactivées."])},RESET_PASSWORD:e=>{const{normalize:t}=e;return t(["Réinitialiser votre mot de passe"])},USER_PICTURE:e=>{const{normalize:t}=e;return t(["photo de l'utilisateur"])},USERNAME:e=>{const{normalize:t}=e;return t(["Nom d'utilisateur"])}},O={ADD_WORKOUT:e=>{const{normalize:t}=e;return t(["Ajouter une séance"])},ANALYSIS:e=>{const{normalize:t}=e;return t(["analyse"])},ASCENT:e=>{const{normalize:t}=e;return t(["dénivelé positif"])},AVERAGE_SPEED:e=>{const{normalize:t}=e;return t(["vitesse moyenne"])},AVE_SPEED:e=>{const{normalize:t}=e;return t(["vitesse moy."])},BACK_TO_WORKOUT:e=>{const{normalize:t}=e;return t(["revenir à la séance"])},DATE:e=>{const{normalize:t}=e;return t(["date"])},DESCENT:e=>{const{normalize:t}=e;return t(["dénivelé négatif"])},DISPLAY_FILTERS:e=>{const{normalize:t}=e;return t(["afficher les filtres"])},DISTANCE:e=>{const{normalize:t}=e;return t(["distance"])},DURATION:e=>{const{normalize:t}=e;return t(["durée"])},EDIT_WORKOUT:e=>{const{normalize:t}=e;return t(["Modifier la séance"])},ELEVATION:e=>{const{normalize:t}=e;return t(["altitude"])},END:e=>{const{normalize:t}=e;return t(["fin"])},FROM:e=>{const{normalize:t}=e;return t(["à partir de"])},GPX_FILE:e=>{const{normalize:t}=e;return t(["fichier .gpx"])},HIDE_FILTERS:e=>{const{normalize:t}=e;return t(["masquer les filtres"])},LATEST_WORKOUTS:e=>{const{normalize:t}=e;return t(["Séances récentes"])},LOAD_MORE_WORKOUT:e=>{const{normalize:t}=e;return t(["Charger les séances suivantes"])},MAX_ALTITUDE:e=>{const{normalize:t}=e;return t(["altitude max"])},MAX_FILES:e=>{const{normalize:t}=e;return t(["fichiers max. "])},MAX_SIZE:e=>{const{normalize:t}=e;return t(["taille max. "])},MAX_SPEED:e=>{const{normalize:t}=e;return t(["vitesse max"])},MIN_ALTITUDE:e=>{const{normalize:t}=e;return t(["altitude min"])},NEXT_SEGMENT:e=>{const{normalize:t}=e;return t(["Segment suivant"])},NEXT_WORKOUT:e=>{const{normalize:t}=e;return t(["Séance suivante"])},NO_DATA_CLEANING:e=>{const{normalize:t}=e;return t(["données issues du fichier gpx, sans correction"])},NO_FILE_PROVIDED:e=>{const{normalize:t}=e;return t(["Pas de fichier fourni"])},NO_FOLDER:e=>{const{normalize:t}=e;return t(["pas de répertoire"])},NO_MAP:e=>{const{normalize:t}=e;return t(["Pas de carte"])},NO_NEXT_SEGMENT:e=>{const{normalize:t}=e;return t(["Pas de segment suivant"])},NO_NEXT_WORKOUT:e=>{const{normalize:t}=e;return t(["Pas de séance suivante"])},NO_NOTES:e=>{const{normalize:t}=e;return t(["Pas de notes"])},NO_PREVIOUS_SEGMENT:e=>{const{normalize:t}=e;return t(["Pas de segment précédent"])},NO_PREVIOUS_WORKOUT:e=>{const{normalize:t}=e;return t(["Pas de séance précédente"])},NO_RECORDS:e=>{const{normalize:t}=e;return t(["Pas de records."])},NO_WORKOUTS:e=>{const{normalize:t}=e;return t(["Pas de séances."])},NOTES:e=>{const{normalize:t}=e;return t(["notes"])},PAUSES:e=>{const{normalize:t}=e;return t(["pauses"])},PREVIOUS_SEGMENT:e=>{const{normalize:t}=e;return t(["Segment précédent"])},PREVIOUS_WORKOUT:e=>{const{normalize:t}=e;return t(["Séance précédente"])},RECORD:e=>{const{normalize:t,plural:n}=e;return n([t(["record"]),t(["records"])])},RECORD_AS:e=>{const{normalize:t}=e;return t(["Vitesse moy."])},RECORD_FD:e=>{const{normalize:t}=e;return t(["Distance la + longue"])},RECORD_LD:e=>{const{normalize:t}=e;return t(["Durée la + longue"])},RECORD_MS:e=>{const{normalize:t}=e;return t(["Vitesse max."])},REMAINING_CHARS:e=>{const{normalize:t}=e;return t(["nombre de caractères restants "])},SEGMENT:e=>{const{normalize:t,plural:n}=e;return n([t(["segment"]),t(["segments"])])},SPEED:e=>{const{normalize:t}=e;return t(["vitesse"])},SPORT:e=>{const{normalize:t,plural:n}=e;return n([t(["sport"]),t(["sports"])])},START:e=>{const{normalize:t}=e;return t(["début"])},START_ELEVATION_AT_ZERO:e=>{const{normalize:t}=e;return t(["démarrer l'axe de l'altitude à 0"])},TITLE:e=>{const{normalize:t}=e;return t(["titre"])},TO:e=>{const{normalize:t}=e;return t(["jusqu'au"])},TOTAL_DURATION:e=>{const{normalize:t}=e;return t(["durée totale"])},UPLOAD_FIRST_WORKOUT:e=>{const{normalize:t}=e;return t(["Ajoutez votre première séance !"])},WEATHER:{HUMIDITY:e=>{const{normalize:t}=e;return t(["humidité"])},TEMPERATURE:e=>{const{normalize:t}=e;return t(["température"])},WIND:e=>{const{normalize:t}=e;return t(["vent"])},DARK_SKY:{"clear-day":e=>{const{normalize:t}=e;return t(["ensoleillé"])},"clear-night":e=>{const{normalize:t}=e;return t(["nuit claire"])},cloudy:e=>{const{normalize:t}=e;return t(["nuageux"])},fog:e=>{const{normalize:t}=e;return t(["brouillard"])},"partly-cloudy-day":e=>{const{normalize:t}=e;return t(["partiellement nuageux"])},"partly-cloudy-night":e=>{const{normalize:t}=e;return t(["nuit partiellement nuageuse"])},rain:e=>{const{normalize:t}=e;return t(["pluie"])},sleet:e=>{const{normalize:t}=e;return t(["neige fondue"])},snow:e=>{const{normalize:t}=e;return t(["neige"])},wind:e=>{const{normalize:t}=e;return t(["venteux"])}}},WITH_GPX:e=>{const{normalize:t}=e;return t(["avec un fichier .gpx"])},WITHOUT_GPX:e=>{const{normalize:t}=e;return t(["sans fichier .gpx"])},WORKOUT:e=>{const{normalize:t,plural:n}=e;return n([t(["séance"]),t(["séances"])])},WORKOUT_DATE:e=>{const{normalize:t}=e;return t(["date de la séance"])},WORKOUT_DELETION_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Etes-vous sûr de vouloir supprimer cette séance ?"])},ZIP_ARCHIVE:e=>{const{normalize:t}=e;return t(["archive .zip"])},ZIP_ARCHIVE_DESCRIPTION:e=>{const{normalize:t}=e;return t(["ou une archive .zip contenant des fichiers .gpx"])}};t["default"]={admin:r,api:c,buttons:o,common:a,dashboard:i,error:s,sports:l,statistics:u,user:d,workouts:O}},"68c6":function(e,t,n){"use strict";n("99af"),n("d81d");var r=n("7a23"),c=n("d257"),o=Object(r["createElementVNode"])("div",{class:"map-attribution"},[Object(r["createElementVNode"])("span",{class:"map-attribution-text"},"©"),Object(r["createElementVNode"])("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," OpenStreetMap ")],-1),a=Object(r["defineComponent"])({props:{workout:null,displayHover:{type:Boolean,default:!1}},setup:function(e){var t=e,n=Object(r["toRefs"])(t),a=n.displayHover,i="".concat(Object(c["a"])(),"workouts/map/").concat(t.workout.map);return function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["static-map",{"display-hover":Object(r["unref"])(a)}])},[Object(r["unref"])(a)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:0,src:i,alt:""})):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:"bg-map-image",style:Object(r["normalizeStyle"])({backgroundImage:"url(".concat(i,")")})},null,4)),o],2)}}});n("96a3");const i=a;t["a"]=i},"68cf":function(e,t,n){"use strict";n("9f7c")},"6ac7":function(e,t,n){},"6d7d":function(e,t,n){"use strict";var r=n("7a23"),c=n("97e5"),o=function(e){return Object(r["pushScopeId"])("data-v-462fd850"),e=e(),Object(r["popScopeId"])(),e},a={class:"pagination-center","aria-label":"navigation"},i={class:"pagination"},s=o((function(){return Object(r["createElementVNode"])("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)})),l={key:0},u=o((function(){return Object(r["createElementVNode"])("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)})),d=Object(r["defineComponent"])({props:{pagination:null,path:null,query:null},setup:function(e){var t=e,n=Object(r["toRefs"])(t),o=n.pagination,d=n.path,O=n.query;function b(e,t){var n=Object.assign({},O.value);return n.page=t?e+t:e,n}return function(e,t){var n=Object(r["resolveComponent"])("router-link");return Object(r["openBlock"])(),Object(r["createElementBlock"])("nav",a,[Object(r["createElementVNode"])("ul",i,[Object(r["createElementVNode"])("li",{class:Object(r["normalizeClass"])(["page-prev",{disabled:!Object(r["unref"])(o).has_prev}])},[Object(r["createVNode"])(n,{class:"page-link",to:{path:Object(r["unref"])(d),query:b(Object(r["unref"])(o).page,-1)},event:Object(r["unref"])(o).has_prev?"click":"",disabled:!Object(r["unref"])(o).has_prev},{default:Object(r["withCtx"])((function(){return[s,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("api.PAGINATION.PREVIOUS")),1)]})),_:1},8,["to","event","disabled"])],2),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(c["b"])(Object(r["unref"])(o).pages,Object(r["unref"])(o).page),(function(e){return Object(r["openBlock"])(),Object(r["createElementBlock"])("li",{key:e,class:Object(r["normalizeClass"])(["page",{active:e===Object(r["unref"])(o).page}])},["..."===e?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",l," ... ")):(Object(r["openBlock"])(),Object(r["createBlock"])(n,{key:1,class:"page-link",to:{path:Object(r["unref"])(d),query:b(+e)}},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e),1)]})),_:2},1032,["to"]))],2)})),128)),Object(r["createElementVNode"])("li",{class:Object(r["normalizeClass"])(["page-next",{disabled:!Object(r["unref"])(o).has_next}])},[Object(r["createVNode"])(n,{class:"page-link",to:{path:Object(r["unref"])(d),query:b(Object(r["unref"])(o).page,1)},event:Object(r["unref"])(o).has_next?"click":"",disabled:!Object(r["unref"])(o).has_next},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("api.PAGINATION.NEXT"))+" ",1),u]})),_:1},8,["to","event","disabled"])],2)])])}}}),O=(n("aacd"),n("6b0d")),b=n.n(O);const m=b()(d,[["__scopeId","data-v-462fd850"]]);t["a"]=m},"6d8e":function(e,t,n){"use strict";n("a620")},"6e30":function(e,t,n){},"6f5e":function(e,t,n){},"6fd8":function(e,t,n){},"71a7":function(e,t,n){"use strict";var r=n("7a23"),c=n("b166"),o=n("dad5"),a=n("2906"),i={id:"user-infos",class:"description-list"},s={class:"user-bio"},l={key:1,class:"profile-buttons"},u={key:2,class:"profile-buttons"},d=Object(r["defineComponent"])({props:{user:null,fromAdmin:{type:Boolean,default:!1}},setup:function(e){var t=e,n=Object(a["a"])(),d=Object(r["toRefs"])(t),O=d.user,b=d.fromAdmin,m=Object(r["computed"])((function(){return n.getters[o["a"].GETTERS.AUTH_USER_PROFILE]})),p=Object(r["computed"])((function(){return t.user.created_at?Object(c["a"])(new Date(t.user.created_at),"dd/MM/yyyy HH:mm"):""})),E=Object(r["computed"])((function(){return t.user.birth_date?Object(c["a"])(new Date(t.user.birth_date),"dd/MM/yyyy"):""})),f=Object(r["ref"])(!1);function j(e){f.value=e}function T(e){n.dispatch(o["e"].ACTIONS.DELETE_USER_ACCOUNT,{username:e})}return function(e,t){var n=Object(r["resolveComponent"])("Modal");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",i,[Object(r["unref"])(f)?(Object(r["openBlock"])(),Object(r["createBlock"])(n,{key:0,title:e.$t("common.CONFIRMATION"),message:"admin.CONFIRM_USER_ACCOUNT_DELETION",strongMessage:Object(r["unref"])(O).username,onConfirmAction:t[0]||(t[0]=function(e){return T(Object(r["unref"])(O).username)}),onCancelAction:t[1]||(t[1]=function(e){return j(!1)})},null,8,["title","strongMessage"])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("dl",null,[Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(Object(r["unref"])(p)),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.FIRST_NAME"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(Object(r["unref"])(O).first_name),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.LAST_NAME"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(Object(r["unref"])(O).last_name),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.BIRTH_DATE"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(Object(r["unref"])(E)),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.LOCATION"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(Object(r["unref"])(O).location),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.BIO"))+":",1),Object(r["createElementVNode"])("dd",s,Object(r["toDisplayString"])(Object(r["unref"])(O).bio),1)]),Object(r["unref"])(b)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",l,[Object(r["unref"])(m).username!==Object(r["unref"])(O).username?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,class:"danger",onClick:t[2]||(t[2]=Object(r["withModifiers"])((function(e){return j(!0)}),["prevent"]))},Object(r["toDisplayString"])(e.$t("admin.DELETE_USER")),1)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("button",{onClick:t[3]||(t[3]=function(t){return e.$router.go(-1)})},Object(r["toDisplayString"])(e.$t("buttons.BACK")),1)])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",u,[Object(r["createElementVNode"])("button",{onClick:t[4]||(t[4]=function(t){return e.$router.push("/profile/edit")})},Object(r["toDisplayString"])(e.$t("user.PROFILE.EDIT")),1),Object(r["createElementVNode"])("button",{onClick:t[5]||(t[5]=function(t){return e.$router.push("/")})},Object(r["toDisplayString"])(e.$t("common.HOME")),1)]))])}}}),O=(n("423b"),n("6b0d")),b=n.n(O);const m=b()(d,[["__scopeId","data-v-7da6fc6b"]]);t["a"]=m},7390:function(e,t,n){"use strict";n("7415")},7415:function(e,t,n){},7416:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return v}));n("d81d"),n("caad"),n("4de4"),n("d3b7"),n("2532");var r=n("b166"),c=n("d6e9"),o=n("b1d0"),a=n("69eb"),i=n("a618"),s=n("f628"),l=n("1aab"),u=n("2fc8"),d=n("8cac"),O=n("cdb6"),b=n("fc4c"),m=n("af8b"),p=n("74b5"),E=n("5e65"),f=n("1119"),j=n("6284"),T={week:{api:"yyyy-MM-dd",chart:"dd/MM/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},S=["average_speed","nb_workouts","total_duration","total_distance","total_ascent","total_descent"],_=function(e,t){for(var n=[],r=Object(E["d"])(e.duration,e.start,t);r<=e.end;r=Object(E["e"])(e.duration,r))n.push(r);return n},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={label:e,backgroundColor:[t],data:[]};return n&&(r.type="line",r.borderColor=[t],r.spanGaps=!0),r},N=function(e){var t={average_speed:[],nb_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map((function(e){var n=e.color?e.color:f["c"][e.label];t.average_speed.push(A(e.label,n,!0)),t.nb_workouts.push(A(e.label,n)),t.total_distance.push(A(e.label,n)),t.total_duration.push(A(e.label,n)),t.total_ascent.push(A(e.label,n)),t.total_descent.push(A(e.label,n))})),t},R=function(e,t,n){switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":return Object(j["b"])(["average_speed","total_distance"].includes(e)?"km":"m",t,n);default:case"nb_workouts":case"total_duration":return t}},g=function(e,t,n,c,o,a){var i=_(e,t),s=T[e.duration],l=n.filter((function(e){return c.includes(e.id)})),u=[],d=N(l),O={};return l.map((function(e){return O[e.label]=e.id})),i.map((function(e){var t=Object(r["a"])(e,s.api),n=Object(r["a"])(e,s.chart);u.push(n),S.map((function(e){d[e].map((function(n){n.data.push(o!=={}&&t in o&&O[n.label]in o[t]?R(e,o[t][O[n.label]][e],a):"average_speed"===e?null:0)}))}))})),{labels:u,datasets:d}},k=function(e,t,n){var r=n?1:0,O="year"===t?Object(c["a"])(Object(o["a"])(e,9)):"week"===t?Object(a["a"])(Object(i["a"])(e,2),{weekStartsOn:r}):Object(s["a"])(Object(i["a"])(e,11)),b="year"===t?Object(l["a"])(e):"week"===t?Object(u["a"])(e,{weekStartsOn:r}):Object(d["a"])(e);return{duration:t,end:b,start:O}},v=function(e,t,n){var r=e.duration,E=e.start,f=e.end,j=n?1:0;return{duration:r,end:"year"===r?Object(l["a"])(t?Object(o["a"])(f,1):Object(O["a"])(f,1)):"week"===r?Object(u["a"])(t?Object(b["a"])(f,1):Object(m["a"])(f,1),{weekStartsOn:j}):Object(d["a"])(t?Object(i["a"])(f,1):Object(p["a"])(f,1)),start:"year"===r?Object(c["a"])(t?Object(o["a"])(E,1):Object(O["a"])(E,1)):"week"===r?Object(a["a"])(t?Object(b["a"])(E,1):Object(m["a"])(E,1),{weekStartsOn:j}):Object(s["a"])(t?Object(i["a"])(E,1):Object(p["a"])(E,1))}}},"76bb":function(e,t,n){},7826:function(e,t,n){},7875:function(e,t,n){},"7a25":function(e,t,n){"use strict";n("d08c")},"7a774":function(e,t,n){},"7cc4":function(e,t,n){"use strict";n("64bb")},"7d95":function(e,t,n){"use strict";n("7a774")},"83d9":function(e,t,n){},8907:function(e,t,n){},9176:function(e,t,n){"use strict";n("4e82"),n("99af");var r=n("7a23"),c={class:"table-selects"},o=["value"],a=["value"],i=["value"],s=["value"],l=["value"],u=["value"],d=Object(r["defineComponent"])({props:{order_by:null,query:null,sort:null,message:null},emits:["updateSelect"],setup:function(e,t){var n=t.emit,d=e,O=Object(r["toRefs"])(d),b=O.order_by,m=O.query,p=O.sort,E=O.message,f=[10,25,50,100];function j(e){n("updateSelect",e.target.id,e.target.value)}return function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[Object(r["createElementVNode"])("label",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),Object(r["createElementVNode"])("select",{name:"order_by",id:"order_by",value:Object(r["unref"])(m).order_by,onChange:j},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(b),(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("option",{value:t,key:t},Object(r["toDisplayString"])(e.$t("".concat(Object(r["unref"])(E),".").concat(t.toUpperCase()))),9,a)})),128))],40,o)]),Object(r["createElementVNode"])("label",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("common.SELECTS.ORDER.LABEL"))+": ",1),Object(r["createElementVNode"])("select",{name:"order",id:"order",value:Object(r["unref"])(m).order,onChange:j},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(p),(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("option",{value:t,key:t},Object(r["toDisplayString"])(e.$t("common.SELECTS.ORDER.".concat(t.toUpperCase()))),9,s)})),128))],40,i)]),Object(r["createElementVNode"])("label",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),Object(r["createElementVNode"])("select",{name:"per_page",id:"per_page",value:Object(r["unref"])(m).per_page,onChange:j},[(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(f,(function(e){return Object(r["createElementVNode"])("option",{value:e,key:e},Object(r["toDisplayString"])(e),9,u)})),64))],40,l)])])}}}),O=(n("a7aa"),n("6b0d")),b=n.n(O);const m=b()(d,[["__scopeId","data-v-72463173"]]);t["a"]=m},9230:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));n("d81d");var r=n("6284"),c=function(e,t,n){var c={speed:{label:t("workouts.SPEED"),backgroundColor:["#FFFFFF"],borderColor:["#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:t("workouts.ELEVATION"),backgroundColor:["#e5e5e5"],borderColor:["#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},o=[],a=[],i=[];return e.map((function(e){o.push(e.distance),a.push(e.duration),c.speed.data.push(Object(r["b"])("km",e.speed,n)),c.elevation.data.push(Object(r["b"])("m",e.elevation,n)),i.push({latitude:e.latitude,longitude:e.longitude})})),{distance_labels:o,duration_labels:a,datasets:c,coordinates:i}},o=function(e){var t=e.length;if(0===t)return{};var n={};return e.map((function(e){n[e.sport_id]||(n[e.sport_id]={count:0,percentage:0}),n[e.sport_id].count+=1,n[e.sport_id].percentage=n[e.sport_id].count/t})),n},a={order:"desc",order_by:"workout_date"}},9303:function(e,t,n){"use strict";n("2386")},"96a3":function(e,t,n){"use strict";n("ef3f")},"97e5":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return d}));n("caad"),n("2532"),n("a630"),n("3ca3"),n("99af");var r=["asc","desc"],c=1,o=10,a=function(e,t){return e&&"string"===typeof e&&+e>0?+e:t},i=function(e,t,n){return e&&"string"===typeof e&&t.includes(e)?e:n},s=function(e,t,n,s){var l=s||{},u=l.defaultSort||"asc",d={};return d.page=a(e.page,c),d.per_page=a(e.per_page,o),d.order=i(e.order,r,u),d.order_by=i(e.order_by,t,n),d},l=["from","to","ave_speed_from","ave_speed_to","max_speed_from","max_speed_to","distance_from","distance_to","duration_from","duration_to","sport_id"],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.from({length:e-t+1},(function(e,n){return t+n}))},d=function(e,t){if(e<0)return[];if(e<9)return u(e);var n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(u(t+2,3)):(n=n.concat(["..."]),t=e-2&&n[n.length-1]{const{normalize:t}=e;return t(["Action"])},ADMIN_RIGHTS_DELETE_USER_ACCOUNT:e=>{const{normalize:t}=e;return t(["Add/remove admin rights, delete user account."])},ADMIN:e=>{const{normalize:t}=e;return t(["Admin"])},ADMINISTRATION:e=>{const{normalize:t}=e;return t(["Administration"])},APPLICATION:e=>{const{normalize:t}=e;return t(["Application"])},APP_CONFIG:{MAX_USERS_LABEL:e=>{const{normalize:t}=e;return t(["Max. number of active users"])},MAX_USERS_HELP:e=>{const{normalize:t}=e;return t(["If 0, no limitation on registration."])},MAX_FILES_IN_ZIP_LABEL:e=>{const{normalize:t}=e;return t(["Max. files of zip archive"])},SINGLE_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:t}=e;return t(["Max. size of uploaded files (in Mb)"])},TITLE:e=>{const{normalize:t}=e;return t(["Application configuration"])},ZIP_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:t}=e;return t(["Max. size of zip archive (in Mb)"])}},BACK_TO_ADMIN:e=>{const{normalize:t}=e;return t(["Back to admin"])},CONFIRM_USER_ACCOUNT_DELETION:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Are you sure you want to delete ",n(r(0))," account? All data will be deleted, this cannot be undone."])},DELETE_USER:e=>{const{normalize:t}=e;return t(["Delete user"])},ENABLE_DISABLE_SPORTS:e=>{const{normalize:t}=e;return t(["Enable/disable sports."])},REGISTRATION_DISABLED:e=>{const{normalize:t}=e;return t(["Registration is currently disabled."])},REGISTRATION_ENABLED:e=>{const{normalize:t}=e;return t(["Registration is currently enabled."])},SPORTS:{TABLE:{ACTIVE:e=>{const{normalize:t}=e;return t(["Active"])},HAS_WORKOUTS:e=>{const{normalize:t}=e;return t(["workouts exist"])},IMAGE:e=>{const{normalize:t}=e;return t(["Image"])},LABEL:e=>{const{normalize:t}=e;return t(["Label"])}},TITLE:e=>{const{normalize:t}=e;return t(["Sports administration"])}},UPDATE_APPLICATION_DESCRIPTION:e=>{const{normalize:t}=e;return t(["Update application configuration (maximum number of registered users, maximum files size)."])},USER:e=>{const{normalize:t,plural:n}=e;return n([t(["user"]),t(["users"])])},USERS:{TABLE:{ADD_ADMIN_RIGHTS:e=>{const{normalize:t}=e;return t(["Add admin rights"])},REMOVE_ADMIN_RIGHTS:e=>{const{normalize:t}=e;return t(["Remove admin rights"])}},SELECTS:{ORDER_BY:{ADMIN:e=>{const{normalize:t}=e;return t(["admin status"])},CREATED_AT:e=>{const{normalize:t}=e;return t(["registration date"])},USERNAME:e=>{const{normalize:t}=e;return t(["username"])},WORKOUTS_COUNT:e=>{const{normalize:t}=e;return t(["workout count"])}}}}},c={ERROR:{UNKNOWN:e=>{const{normalize:t}=e;return t(["Error. Please try again or contact the administrator."])},"email: valid email must be provided":e=>{const{normalize:t}=e;return t(["Email: valid email must be provided."])},"error on getting configuration":e=>{const{normalize:t}=e;return t(["Error on getting configuration."])},"error when updating configuration":e=>{const{normalize:t}=e;return t(["Error when updating configuration"])},"error, please try again or contact the administrator":e=>{const{normalize:t}=e;return t(["Error, please try again or contact the administrator."])},"error, registration is disabled":e=>{const{normalize:t}=e;return t(["Error, registration is disabled."])},"file extension not allowed":e=>{const{normalize:t}=e;return t(["File extension not allowed."])},"file size is greater than the allowed size":e=>{const{normalize:t}=e;return t(["File size is greater than the allowed size."])},"invalid credentials":e=>{const{normalize:t}=e;return t(["Invalid credentials."])},"invalid payload":e=>{const{normalize:t}=e;return t(["Provided data are invalid."])},"invalid token, please log in again":e=>{const{normalize:t}=e;return t(["Invalid token, please log in again."])},"invalid token, please request a new token":e=>{const{normalize:t}=e;return t(["Invalid token, please log in again."])},"Network Error":e=>{const{normalize:t}=e;return t(["Network Error."])},"no file part":e=>{const{normalize:t}=e;return t(["No file provided."])},"no selected file":e=>{const{normalize:t}=e;return t(["No selected file."])},"password: password and password confirmation do not match":e=>{const{normalize:t}=e;return t(["Password: password and password confirmation don't match."])},"provide a valid auth token":e=>{const{normalize:t}=e;return t(["Provide a valid auth token."])},"password: 8 characters required":e=>{const{normalize:t}=e;return t(["Password: 8 characters required."])},"sorry, that user already exists":e=>{const{normalize:t}=e;return t(["Sorry, that user already exists."])},"sport does not exist":e=>{const{normalize:t}=e;return t(["Sport does not exist."])},"signature expired, please log in again":e=>{const{normalize:t}=e;return t(["Signature expired. Please log in again."])},"successfully registered":e=>{const{normalize:t}=e;return t(["Successfully registered."])},"user does not exist":e=>{const{normalize:t}=e;return t(["User does not exist."])},"username: 3 to 12 characters required":e=>{const{normalize:t}=e;return t(["Username: 3 to 12 characters required."])},"you can not delete your account, no other user has admin rights":e=>{const{normalize:t}=e;return t(["You can not delete your account, no other user has admin rights."])},"you do not have permissions":e=>{const{normalize:t}=e;return t(["You do not have permissions."])}},PAGINATION:{PREVIOUS:e=>{const{normalize:t}=e;return t(["previous"])},NEXT:e=>{const{normalize:t}=e;return t(["next"])}}},o={BACK:e=>{const{normalize:t}=e;return t(["Back"])},CANCEL:e=>{const{normalize:t}=e;return t(["Cancel"])},CLEAR_FILTER:e=>{const{normalize:t}=e;return t(["Clear filters"])},DELETE_MY_ACCOUNT:e=>{const{normalize:t}=e;return t(["Delete my account"])},DISABLE:e=>{const{normalize:t}=e;return t(["Disable"])},EDIT:e=>{const{normalize:t}=e;return t(["Edit"])},ENABLE:e=>{const{normalize:t}=e;return t(["Enable"])},FILTER:e=>{const{normalize:t}=e;return t(["Filter"])},LOGIN:e=>{const{normalize:t}=e;return t(["Log in"])},NO:e=>{const{normalize:t}=e;return t(["No"])},REGISTER:e=>{const{normalize:t}=e;return t(["Register"])},SUBMIT:e=>{const{normalize:t}=e;return t(["Submit"])},YES:e=>{const{normalize:t}=e;return t(["Yes"])}},a={CONFIRMATION:e=>{const{normalize:t}=e;return t(["Confirmation"])},DAY:e=>{const{normalize:t,plural:n}=e;return n([t(["day"]),t(["days"])])},HOME:e=>{const{normalize:t}=e;return t(["Home"])},HERE:e=>{const{normalize:t}=e;return t(["here"])},SELECTS:{ORDER_BY:{LABEL:e=>{const{normalize:t}=e;return t(["order by"])}},ORDER:{LABEL:e=>{const{normalize:t}=e;return t(["sort"])},ASC:e=>{const{normalize:t}=e;return t(["ascending"])},DESC:e=>{const{normalize:t}=e;return t(["descending"])}},PER_PAGE:{LABEL:e=>{const{normalize:t}=e;return t(["par page"])}}},TOTAL:e=>{const{normalize:t}=e;return t(["Total"])}},i={DASHBOARD:e=>{const{normalize:t}=e;return t(["Dashboard"])},THIS_MONTH:e=>{const{normalize:t}=e;return t(["This month"])}},s={UNKNOWN:e=>{const{normalize:t}=e;return t(["Error. Please try again or contact the administrator."])},APP_ERROR:e=>{const{normalize:t}=e;return t(["The application seems encounter some issues.
Please try later or contact the administrator."])},NOT_FOUND:{PAGE:e=>{const{normalize:t}=e;return t(["Page not found"])},WORKOUT:e=>{const{normalize:t}=e;return t(["Workout not found"])}}},l={"Cycling (Sport)":{LABEL:e=>{const{normalize:t}=e;return t(["Cycling (Sport)"])}},"Cycling (Transport)":{LABEL:e=>{const{normalize:t}=e;return t(["Cycling (Transport)"])}},Hiking:{LABEL:e=>{const{normalize:t}=e;return t(["Hiking"])}},"Mountain Biking":{LABEL:e=>{const{normalize:t}=e;return t(["Mountain Biking"])}},"Mountain Biking (Electric)":{LABEL:e=>{const{normalize:t}=e;return t(["Mountain Biking (Electric)"])}},Rowing:{LABEL:e=>{const{normalize:t}=e;return t(["Rowing"])}},Running:{LABEL:e=>{const{normalize:t}=e;return t(["Running"])}},"Skiing (Alpine)":{LABEL:e=>{const{normalize:t}=e;return t(["Skiing (Alpine)"])}},"Skiing (Cross Country)":{LABEL:e=>{const{normalize:t}=e;return t(["Skiing (Cross Country)"])}},Trail:{LABEL:e=>{const{normalize:t}=e;return t(["Trail"])}},Walking:{LABEL:e=>{const{normalize:t}=e;return t(["Walking"])}}},u={STATISTICS:e=>{const{normalize:t}=e;return t(["Statistics"])},TIME_FRAMES:{week:e=>{const{normalize:t}=e;return t(["week"])},month:e=>{const{normalize:t}=e;return t(["month"])},year:e=>{const{normalize:t}=e;return t(["year"])}}},d={ADMIN:e=>{const{normalize:t}=e;return t(["Admin"])},ALREADY_HAVE_ACCOUNT:e=>{const{normalize:t}=e;return t(["Already have an account?"])},CONFIRM_ACCOUNT_DELETION:e=>{const{normalize:t}=e;return t(["Are you sure you want to delete your account? All data will be deleted, this cannot be undone"])},EMAIL:e=>{const{normalize:t}=e;return t(["Email"])},ENTER_EMAIL:e=>{const{normalize:t}=e;return t(["Enter an email address"])},ENTER_PASSWORD:e=>{const{normalize:t}=e;return t(["Enter a password"])},ENTER_PASSWORD_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Confirm the password"])},INVALID_TOKEN:e=>{const{normalize:t}=e;return t(["Invalid token, please request a new password reset."])},LANGUAGE:e=>{const{normalize:t}=e;return t(["Language"])},LOGIN:e=>{const{normalize:t}=e;return t(["Login"])},LOGOUT:e=>{const{normalize:t}=e;return t(["Logout"])},PASSWORD:e=>{const{normalize:t}=e;return t(["Password"])},PASSWORD_CONFIRM:e=>{const{normalize:t}=e;return t(["Confirm Password"])},PASSWORD_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Password confirmation"])},PASSWORD_FORGOTTEN:e=>{const{normalize:t}=e;return t(["Forgot password?"])},PASSWORD_RESET:e=>{const{normalize:t}=e;return t(["Password reset"])},PASSWORD_SENT_EMAIL_TEXT:e=>{const{normalize:t}=e;return t(["Check your email. If your address is in our database, you'll received an email with a link to reset your password."])},PASSWORD_UPDATED:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Your password have been updated. Click ",n(r(0))," to log in."])},PROFILE:{BACK_TO_PROFILE:e=>{const{normalize:t}=e;return t(["Back to profile"])},BIO:e=>{const{normalize:t}=e;return t(["Bio"])},BIRTH_DATE:e=>{const{normalize:t}=e;return t(["Birth date"])},EDIT:e=>{const{normalize:t}=e;return t(["Edit profile"])},EDIT_PREFERENCES:e=>{const{normalize:t}=e;return t(["Edit preferences"])},EDIT_SPORTS_PREFERENCES:e=>{const{normalize:t}=e;return t(["Edit sports preferences"])},FIRST_NAME:e=>{const{normalize:t}=e;return t(["First name"])},FIRST_DAY_OF_WEEK:e=>{const{normalize:t}=e;return t(["First day of week"])},LANGUAGE:e=>{const{normalize:t}=e;return t(["Language"])},LAST_NAME:e=>{const{normalize:t}=e;return t(["Last name"])},LOCATION:e=>{const{normalize:t}=e;return t(["Location"])},MONDAY:e=>{const{normalize:t}=e;return t(["Monday"])},PICTURE:e=>{const{normalize:t}=e;return t(["Picture"])},PICTURE_EDITION:e=>{const{normalize:t}=e;return t(["Picture edition"])},PICTURE_UPDATE:e=>{const{normalize:t}=e;return t(["Update picture"])},PICTURE_REMOVE:e=>{const{normalize:t}=e;return t(["Remove picture"])},PREFERENCES_EDITION:e=>{const{normalize:t}=e;return t(["Preferences edition"])},PROFILE_EDITION:e=>{const{normalize:t}=e;return t(["Profile edition"])},REGISTRATION_DATE:e=>{const{normalize:t}=e;return t(["Registration date"])},SPORTS_EDITION:e=>{const{normalize:t}=e;return t(["Sports preferences edition"])},SUNDAY:e=>{const{normalize:t}=e;return t(["Sunday"])},TABS:{PICTURE:e=>{const{normalize:t}=e;return t(["picture"])},PREFERENCES:e=>{const{normalize:t}=e;return t(["preferences"])},PROFILE:e=>{const{normalize:t}=e;return t(["profile"])},SPORTS:e=>{const{normalize:t}=e;return t(["sports"])}},SPORT:{ACTION:e=>{const{normalize:t}=e;return t(["action"])},COLOR:e=>{const{normalize:t}=e;return t(["color"])},DISABLED_BY_ADMIN:e=>{const{normalize:t}=e;return t(["disabled by admin"])},IS_ACTIVE:e=>{const{normalize:t}=e;return t(["active"])},LABEL:e=>{const{normalize:t}=e;return t(["label"])},STOPPED_SPEED_THRESHOLD:e=>{const{normalize:t}=e;return t(["stopped speed threshold"])}},UNITS:{LABEL:e=>{const{normalize:t}=e;return t(["Units for distance"])},IMPERIAL:e=>{const{normalize:t}=e;return t(["Imperial system (ft, mi)"])},METRIC:e=>{const{normalize:t}=e;return t(["Metric system (m, km)"])}},TIMEZONE:e=>{const{normalize:t}=e;return t(["Timezone"])}},REGISTER:e=>{const{normalize:t}=e;return t(["Register"])},REGISTER_DISABLED:e=>{const{normalize:t}=e;return t(["Sorry, registration is disabled."])},RESET_PASSWORD:e=>{const{normalize:t}=e;return t(["Reset your password"])},USER_PICTURE:e=>{const{normalize:t}=e;return t(["user picture"])},USERNAME:e=>{const{normalize:t}=e;return t(["Username"])}},O={ADD_WORKOUT:e=>{const{normalize:t}=e;return t(["Add a workout"])},ANALYSIS:e=>{const{normalize:t}=e;return t(["analysis"])},ASCENT:e=>{const{normalize:t}=e;return t(["ascent"])},AVE_SPEED:e=>{const{normalize:t}=e;return t(["ave. speed"])},AVERAGE_SPEED:e=>{const{normalize:t}=e;return t(["average speed"])},BACK_TO_WORKOUT:e=>{const{normalize:t}=e;return t(["back to workout"])},DATE:e=>{const{normalize:t}=e;return t(["date"])},DESCENT:e=>{const{normalize:t}=e;return t(["descent"])},DISPLAY_FILTERS:e=>{const{normalize:t}=e;return t(["display filters"])},DISTANCE:e=>{const{normalize:t}=e;return t(["distance"])},DURATION:e=>{const{normalize:t}=e;return t(["duration"])},EDIT_WORKOUT:e=>{const{normalize:t}=e;return t(["Edit the workout"])},ELEVATION:e=>{const{normalize:t}=e;return t(["elevation"])},END:e=>{const{normalize:t}=e;return t(["end"])},FROM:e=>{const{normalize:t}=e;return t(["from"])},GPX_FILE:e=>{const{normalize:t}=e;return t([".gpx file"])},HIDE_FILTERS:e=>{const{normalize:t}=e;return t(["hide filters"])},LATEST_WORKOUTS:e=>{const{normalize:t}=e;return t(["Latest workouts"])},LOAD_MORE_WORKOUT:e=>{const{normalize:t}=e;return t(["Load more workouts"])},MAX_ALTITUDE:e=>{const{normalize:t}=e;return t(["max. altitude"])},MAX_FILES:e=>{const{normalize:t}=e;return t(["max files"])},MAX_SIZE:e=>{const{normalize:t}=e;return t(["max size"])},MAX_SPEED:e=>{const{normalize:t}=e;return t(["max. speed"])},MIN_ALTITUDE:e=>{const{normalize:t}=e;return t(["min. altitude"])},NEXT_SEGMENT:e=>{const{normalize:t}=e;return t(["No next segment"])},NEXT_WORKOUT:e=>{const{normalize:t}=e;return t(["Next workout"])},NO_DATA_CLEANING:e=>{const{normalize:t}=e;return t(["data from gpx, without any cleaning"])},NO_FILE_PROVIDED:e=>{const{normalize:t}=e;return t(["No file provided"])},NO_FOLDER:e=>{const{normalize:t}=e;return t(["no folder inside"])},NO_MAP:e=>{const{normalize:t}=e;return t(["No map"])},NO_NEXT_SEGMENT:e=>{const{normalize:t}=e;return t(["No next segment"])},NO_NEXT_WORKOUT:e=>{const{normalize:t}=e;return t(["No next workout"])},NO_NOTES:e=>{const{normalize:t}=e;return t(["No notes"])},NO_PREVIOUS_SEGMENT:e=>{const{normalize:t}=e;return t(["No previous segment"])},NO_PREVIOUS_WORKOUT:e=>{const{normalize:t}=e;return t(["No previous workout"])},NO_RECORDS:e=>{const{normalize:t}=e;return t(["No records."])},NO_WORKOUTS:e=>{const{normalize:t}=e;return t(["No workouts."])},NOTES:e=>{const{normalize:t}=e;return t(["notes"])},PAUSES:e=>{const{normalize:t}=e;return t(["pauses"])},PREVIOUS_SEGMENT:e=>{const{normalize:t}=e;return t(["Previous segment"])},PREVIOUS_WORKOUT:e=>{const{normalize:t}=e;return t(["Previous workout"])},RECORD:e=>{const{normalize:t,plural:n}=e;return n([t(["record"]),t(["records"])])},RECORD_AS:e=>{const{normalize:t}=e;return t(["Ave. speed"])},RECORD_FD:e=>{const{normalize:t}=e;return t(["Farest distance"])},RECORD_LD:e=>{const{normalize:t}=e;return t(["Longest duration"])},RECORD_MS:e=>{const{normalize:t}=e;return t(["Max. speed"])},REMAINING_CHARS:e=>{const{normalize:t}=e;return t(["remaining characters"])},SEGMENT:e=>{const{normalize:t,plural:n}=e;return n([t(["segment"]),t(["segments"])])},SPEED:e=>{const{normalize:t}=e;return t(["speed"])},SPORT:e=>{const{normalize:t,plural:n}=e;return n([t(["sport"]),t(["sports"])])},START:e=>{const{normalize:t}=e;return t(["start"])},START_ELEVATION_AT_ZERO:e=>{const{normalize:t}=e;return t(["start elevation axis at zero"])},TITLE:e=>{const{normalize:t}=e;return t(["title"])},TO:e=>{const{normalize:t}=e;return t(["to"])},TOTAL_DURATION:e=>{const{normalize:t}=e;return t(["total duration"])},UPLOAD_FIRST_WORKOUT:e=>{const{normalize:t}=e;return t(["Upload one!"])},WEATHER:{HUMIDITY:e=>{const{normalize:t}=e;return t(["humidity"])},TEMPERATURE:e=>{const{normalize:t}=e;return t(["temperature"])},WIND:e=>{const{normalize:t}=e;return t(["wind"])},DARK_SKY:{"clear-day":e=>{const{normalize:t}=e;return t(["clear day"])},"clear-night":e=>{const{normalize:t}=e;return t(["clear night"])},cloudy:e=>{const{normalize:t}=e;return t(["cloudy"])},fog:e=>{const{normalize:t}=e;return t(["fog"])},"partly-cloudy-day":e=>{const{normalize:t}=e;return t(["partly cloudy day"])},"partly-cloudy-night":e=>{const{normalize:t}=e;return t(["partly cloudy night"])},rain:e=>{const{normalize:t}=e;return t(["rain"])},sleet:e=>{const{normalize:t}=e;return t(["sleet"])},snow:e=>{const{normalize:t}=e;return t(["snow"])},wind:e=>{const{normalize:t}=e;return t(["wind"])}}},WITH_GPX:e=>{const{normalize:t}=e;return t(["with .gpx file"])},WITHOUT_GPX:e=>{const{normalize:t}=e;return t(["without .gpx file"])},WORKOUT:e=>{const{normalize:t,plural:n}=e;return n([t(["workout"]),t(["workouts"])])},WORKOUT_DATE:e=>{const{normalize:t}=e;return t(["workout date"])},WORKOUT_DELETION_CONFIRMATION:e=>{const{normalize:t}=e;return t(["Are you sure you want to delete this workout?"])},ZIP_ARCHIVE:e=>{const{normalize:t}=e;return t([".zip file"])},ZIP_ARCHIVE_DESCRIPTION:e=>{const{normalize:t}=e;return t(["or .zip file containing .gpx files"])}};t["default"]={admin:r,api:c,buttons:o,common:a,dashboard:i,error:s,sports:l,statistics:u,user:d,workouts:O}},c364:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return o}));n("b680"),n("99af");var r=["bytes","KB","MB","GB","TB"],c=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Math.floor(Math.log(e)/Math.log(1024));if(!e)return t?"0 bytes":{size:"0",suffix:"bytes"};var c=(e/Math.pow(1024,n)).toFixed(1),o=r[n];return t?"".concat(c).concat(o):{size:c,suffix:o}},o=function(e){var t=e/1048576;return+t.toFixed(2)}},c46a:function(e,t,n){"use strict";n("99af");var r=n("7a23"),c=n("d257"),o={class:"user-picture"},a=["alt","src"],i={key:1,class:"no-picture"},s=Object(r["createElementVNode"])("i",{class:"fa fa-user-circle-o","aria-hidden":"true"},null,-1),l=[s],u=Object(r["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(r["computed"])((function(){return t.user.picture?"".concat(Object(c["a"])(),"users/").concat(t.user.username,"/picture"):""}));return function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[""!==Object(r["unref"])(n)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:0,class:"profile-user-img",alt:e.$t("user.USER_PICTURE"),src:Object(r["unref"])(n)},null,8,a)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",i,l))])}}});n("aa08");const d=u;t["a"]=d},c53b:function(e,t,n){"use strict";n("aa3b")},c57d:function(e,t,n){},c651:function(e,t,n){},c661:function(e,t,n){},c6db:function(e,t,n){},cb9e:function(e,t,n){"use strict";n("633e")},cd49:function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("159b"),n("b0c0");var r=n("9b4a"),c=n("d9fa"),o=n("7a23"),a=n("9483");Object(a["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}});var i=function(e){return Object(o["pushScopeId"])("data-v-75ada372"),e=e(),Object(o["popScopeId"])(),e},s={id:"footer"},l={class:"footer-items"},u={class:"footer-item"},d=i((function(){return Object(o["createElementVNode"])("strong",null,"FitTrackee",-1)})),O=Object(o["createStaticVNode"])('',4),b=Object(o["defineComponent"])({props:{version:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.version;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",s,[Object(o["createElementVNode"])("div",l,[Object(o["createElementVNode"])("div",u,[d,Object(o["createTextVNode"])(" v"+Object(o["toDisplayString"])(Object(o["unref"])(r)),1)]),O])])}}}),m=(n("d4e1"),n("6b0d")),p=n.n(m);const E=p()(b,[["__scopeId","data-v-75ada372"]]);var f=E,j=(n("25f0"),n("47e2")),T=n("c46a"),S=n("dad5"),_=n("2906"),A=(n("d81d"),n("8923")),N=n("d481");n("ddb0"),n("ac1f"),n("466d");function R(){var e=n("e7b6"),t={};return e.keys().forEach((function(n){var r=n.match(/([A-Za-z0-9-_]+)\./i);if(r&&r.length>1){var c=r[1];t[c]=e(n).default}})),t}var g=Object(j["a"])({legacy:!1,locale:"en",fallbackLocale:"en",globalInjection:!0,messages:R()}),k={en:A["a"],fr:N["a"]},v={en:"English",fr:"Français"},I=g.global.availableLocales,h=I.map((function(e){return{label:v[e],value:e}})),C=function(e){return Object(o["pushScopeId"])("data-v-6259410f"),e=e(),Object(o["popScopeId"])(),e},D={id:"nav"},y={class:"nav-container"},U={class:"nav-app-name"},P={class:"nav-items-close"},L=C((function(){return Object(o["createElementVNode"])("div",{class:"app-name"},"FitTrackee",-1)})),M={key:0,class:"nav-items-group"},w=C((function(){return Object(o["createElementVNode"])("div",{class:"nav-item nav-separator"},null,-1)})),V={class:"nav-items-user-menu"},B={key:0,class:"nav-items-group"},z={class:"nav-item nav-profile-img"},x={key:1,class:"nav-items-group"},G=C((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-language"},null,-1)})),F=Object(o["defineComponent"])({emits:["menuInteraction"],setup:function(e,t){var n=t.emit,r=Object(j["b"])(),c=r.locale,a=Object(_["a"])(),i=Object(o["computed"])((function(){return a.getters[S["a"].GETTERS.AUTH_USER_PROFILE]})),s=Object(o["computed"])((function(){return a.getters[S["a"].GETTERS.IS_AUTHENTICATED]})),l=Object(o["computed"])((function(){return a.getters[S["b"].GETTERS.LANGUAGE]})),u=Object(o["ref"])(!1);function d(){u.value=!0,n("menuInteraction",!0)}function O(){u.value=!1,n("menuInteraction",!1)}function b(e){c.value=e.value.toString(),a.commit(S["b"].MUTATIONS.UPDATE_LANG,e.value)}function m(){a.dispatch(S["a"].ACTIONS.LOGOUT)}return function(e,t){var n=Object(o["resolveComponent"])("router-link"),r=Object(o["resolveComponent"])("Dropdown");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",D,[Object(o["createElementVNode"])("div",y,[Object(o["createElementVNode"])("div",U,[Object(o["createElementVNode"])("div",{class:"nav-item app-name",onClick:t[0]||(t[0]=function(t){return e.$router.push("/")})}," FitTrackee ")]),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["nav-icon-open",{"menu-open":Object(o["unref"])(u)}])},[Object(o["createElementVNode"])("i",{class:"fa fa-bars hamburger-icon",onClick:t[1]||(t[1]=function(e){return d()})})],2),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["nav-items",{"menu-open":Object(o["unref"])(u)}])},[Object(o["createElementVNode"])("div",P,[L,Object(o["createElementVNode"])("i",{class:Object(o["normalizeClass"])(["fa fa-close close-icon nav-item",{"menu-closed":!Object(o["unref"])(u)}]),onClick:t[2]||(t[2]=function(e){return O()})},null,2)]),Object(o["createElementVNode"])("div",{class:"nav-items-app-menu",onClick:t[3]||(t[3]=function(e){return O()})},[Object(o["unref"])(s)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",M,[Object(o["createVNode"])(n,{class:"nav-item",to:"/"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("dashboard.DASHBOARD")),1)]})),_:1}),Object(o["createVNode"])(n,{class:"nav-item",to:"/workouts"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("workouts.WORKOUT",2))),1)]})),_:1}),Object(o["createVNode"])(n,{class:"nav-item",to:"/statistics"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("statistics.STATISTICS")),1)]})),_:1}),Object(o["createVNode"])(n,{class:"nav-item",to:"/workouts/add"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("workouts.ADD_WORKOUT")),1)]})),_:1}),Object(o["unref"])(s)&&Object(o["unref"])(i).admin?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,class:"nav-item",to:"/admin"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("admin.ADMIN")),1)]})),_:1})):Object(o["createCommentVNode"])("",!0),w])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",V,[Object(o["unref"])(s)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",B,[Object(o["createElementVNode"])("div",z,[Object(o["createVNode"])(T["a"],{user:Object(o["unref"])(i)},null,8,["user"])]),Object(o["createVNode"])(n,{class:"nav-item",to:"/profile",onClick:O},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["unref"])(i).username),1)]})),_:1}),Object(o["createElementVNode"])("div",{class:"nav-item nav-link",onClick:m},Object(o["toDisplayString"])(e.$t("user.LOGOUT")),1)])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",x,[Object(o["createVNode"])(n,{class:"nav-item",to:"/login",onClick:O},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.LOGIN")),1)]})),_:1}),Object(o["createVNode"])(n,{class:"nav-item",to:"/register",onClick:O},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.REGISTER")),1)]})),_:1})])),Object(o["unref"])(h)&&Object(o["unref"])(l)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:2,class:"nav-item",options:Object(o["unref"])(h),selected:Object(o["unref"])(l),onSelected:b},{default:Object(o["withCtx"])((function(){return[G]})),_:1},8,["options","selected"])):Object(o["createCommentVNode"])("",!0)])],2)])])}}});n("7cc4");const W=p()(F,[["__scopeId","data-v-6259410f"]]);var K=W,$={id:"no-config"},H={class:"error-page"},Y=Object(o["createStaticVNode"])('
',1),q=["innerHTML"];function X(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",$,[Object(o["createElementVNode"])("div",H,[Y,Object(o["createElementVNode"])("p",{class:"error-message",innerHTML:e.$t("error.APP_ERROR")},null,8,q)])])}n("4c29");const Z={},J=p()(Z,[["render",X],["__scopeId","data-v-1596efb7"]]);var Q=J,ee=Object(o["createElementVNode"])("div",{id:"top"},null,-1),te={key:0,class:"app-container"},ne={class:"app-loading"},re={class:"container scroll"},ce=Object(o["createElementVNode"])("i",{class:"fa fa-chevron-up","aria-hidden":"true"},null,-1),oe=[ce],ae=Object(o["defineComponent"])({setup:function(e){var t=Object(_["a"])(),n=Object(o["computed"])((function(){return t.getters[S["b"].GETTERS.APP_CONFIG]})),r=Object(o["computed"])((function(){return t.getters[S["b"].GETTERS.APP_LOADING]})),c=Object(o["ref"])(!1),a=Object(o["ref"])(!1);function i(e){c.value=e}function s(e){return e.getBoundingClientRect().top=0}function l(){window.onscroll=function(){var e=document.querySelector("#bottom");a.value=null!==e&&s(e)}}function u(){window.scrollTo({top:0,behavior:"smooth"}),setTimeout((function(){a.value=!1}),300)}return Object(o["onBeforeMount"])((function(){return t.dispatch(S["b"].ACTIONS.GET_APPLICATION_CONFIG)})),Object(o["onMounted"])((function(){return l()})),function(e,t){var s=Object(o["resolveComponent"])("Loader"),l=Object(o["resolveComponent"])("router-view");return Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,[ee,Object(o["createVNode"])(K,{onMenuInteraction:i}),Object(o["unref"])(r)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",te,[Object(o["createElementVNode"])("div",ne,[Object(o["createVNode"])(s)])])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])(["app-container",{"hide-scroll":c.value}])},[Object(o["unref"])(n)?(Object(o["openBlock"])(),Object(o["createBlock"])(l,{key:0})):(Object(o["openBlock"])(),Object(o["createBlock"])(Q,{key:1}))],2)),Object(o["createElementVNode"])("div",re,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["scroll-button",{"display-button":a.value}]),onClick:u},oe,2)]),Object(o["unref"])(n)?(Object(o["openBlock"])(),Object(o["createBlock"])(f,{key:2,version:Object(o["unref"])(n)?Object(o["unref"])(n).version:""},null,8,["version"])):Object(o["createCommentVNode"])("",!0)],64)}}});n("6112");const ie=ae;var se=ie,le=(n("5319"),n("3ca3"),n("caad"),n("6c02")),ue=(n("b64b"),n("c364")),de=function(e){return Object(o["pushScopeId"])("data-v-4b4a2fb3"),e=e(),Object(o["popScopeId"])(),e},Oe={id:"admin-app",class:"admin-card"},be=["onSubmit"],me={for:"max_users"},pe=["disabled"],Ee={class:"user-limit-help"},fe={class:"info-box"},je=de((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)})),Te={for:"max_single_file_size"},Se=["disabled"],_e={for:"max_zip_file_size"},Ae=["disabled"],Ne={for:"gpx_limit_import"},Re=["disabled"],ge={key:1,class:"form-buttons"},ke={class:"confirm",type:"submit"},ve=["onClick"],Ie={key:2,class:"form-buttons"},he=Object(o["defineComponent"])({props:{appConfig:null,edition:{type:Boolean,default:!1}},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(le["d"])(),c=Object(o["reactive"])({max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0}),a=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.ERROR_MESSAGES]}));function i(e){Object.keys(c).map((function(t){["max_single_file_size","max_zip_file_size"].includes(t)?c[t]=Object(ue["a"])(e[t]):c[t]=e[t]}))}function s(){i(t.appConfig),n.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),r.push("/admin/application")}function l(){var e=Object.assign({},c);e.max_single_file_size*=1048576,e.max_zip_file_size*=1048576,n.dispatch(S["b"].ACTIONS.UPDATE_APPLICATION_CONFIG,e)}return Object(o["onBeforeMount"])((function(){t.appConfig&&i(t.appConfig)})),function(t,n){var r=Object(o["resolveComponent"])("ErrorMessage"),i=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Oe,[Object(o["createVNode"])(i,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.TITLE")),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("form",{class:"admin-form",onSubmit:Object(o["withModifiers"])(l,["prevent"])},[Object(o["createElementVNode"])("label",me,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":n[0]||(n[0]=function(e){return Object(o["unref"])(c).max_users=e}),disabled:!e.edition},null,8,pe),[[o["vModelText"],Object(o["unref"])(c).max_users]])]),Object(o["createElementVNode"])("div",Ee,[Object(o["createElementVNode"])("span",fe,[je,Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),Object(o["createElementVNode"])("label",Te,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":n[1]||(n[1]=function(e){return Object(o["unref"])(c).max_single_file_size=e}),disabled:!e.edition},null,8,Se),[[o["vModelText"],Object(o["unref"])(c).max_single_file_size]])]),Object(o["createElementVNode"])("label",_e,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":n[2]||(n[2]=function(e){return Object(o["unref"])(c).max_zip_file_size=e}),disabled:!e.edition},null,8,Ae),[[o["vModelText"],Object(o["unref"])(c).max_zip_file_size]])]),Object(o["createElementVNode"])("label",Ne,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":n[3]||(n[3]=function(e){return Object(o["unref"])(c).gpx_limit_import=e}),disabled:!e.edition},null,8,Re),[[o["vModelText"],Object(o["unref"])(c).gpx_limit_import]])]),Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,message:Object(o["unref"])(a)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),e.edition?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ge,[Object(o["createElementVNode"])("button",ke,Object(o["toDisplayString"])(t.$t("buttons.SUBMIT")),1),Object(o["createElementVNode"])("button",{class:"cancel",onClick:Object(o["withModifiers"])(s,["prevent"])},Object(o["toDisplayString"])(t.$t("buttons.CANCEL")),9,ve)])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ie,[Object(o["createElementVNode"])("button",{class:"confirm",onClick:n[4]||(n[4]=Object(o["withModifiers"])((function(e){return t.$router.push("/admin/application/edit")}),["prevent"]))},Object(o["toDisplayString"])(t.$t("buttons.EDIT")),1),Object(o["createElementVNode"])("button",{class:"cancel",onClick:n[5]||(n[5]=Object(o["withModifiers"])((function(e){return t.$router.push("/admin")}),["prevent"]))},Object(o["toDisplayString"])(t.$t("admin.BACK_TO_ADMIN")),1)]))],40,be)]})),_:1})])}}});n("f03a");const Ce=p()(he,[["__scopeId","data-v-4b4a2fb3"]]);var De=Ce,ye={class:"stat-card"},Ue={class:"stat-content box"},Pe={class:"stat-icon"},Le={class:"stat-details"},Me={class:"stat-huge"},we={class:"stat"},Ve=Object(o["defineComponent"])({props:{icon:null,text:null,value:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.icon,c=n.text,a=n.value;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ye,[Object(o["createElementVNode"])("div",Ue,[Object(o["createElementVNode"])("div",Pe,[Object(o["createElementVNode"])("i",{class:Object(o["normalizeClass"])(["fa","fa-".concat(Object(o["unref"])(r))])},null,2)]),Object(o["createElementVNode"])("div",Le,[Object(o["createElementVNode"])("div",Me,Object(o["toDisplayString"])(Object(o["unref"])(a)),1),Object(o["createElementVNode"])("div",we,Object(o["toDisplayString"])(Object(o["unref"])(c)),1)])])])}}});n("a211");const Be=Ve;var ze=Be,xe={id:"user-stats"},Ge=Object(o["defineComponent"])({props:{appStatistics:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.appStatistics,c=Object(o["computed"])((function(){return Object(ue["b"])(r.value.uploads_dir_size,!1)}));return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",xe,[Object(o["createVNode"])(ze,{icon:"users",value:Object(o["unref"])(r).users,text:e.$t("admin.USER",Object(o["unref"])(r).users)},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"tags",value:Object(o["unref"])(r).sports,text:e.$t("workouts.SPORT",Object(o["unref"])(r).sports)},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"calendar",value:Object(o["unref"])(r).workouts,text:e.$t("workouts.WORKOUT",Object(o["unref"])(r).workouts)},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"folder-open",value:Object(o["unref"])(c).size,text:Object(o["unref"])(c).suffix},null,8,["value","text"])])}}});n("a34f");const Fe=Ge;var We=Fe,Ke={class:"card"},$e={class:"card-title"},He={class:"card-content"};function Ye(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ke,[Object(o["createElementVNode"])("div",$e,[Object(o["renderSlot"])(e.$slots,"title")]),Object(o["createElementVNode"])("div",He,[Object(o["renderSlot"])(e.$slots,"content")])])}n("0a85");const qe={},Xe=p()(qe,[["render",Ye]]);var Ze=Xe,Je=function(e){return Object(o["pushScopeId"])("data-v-1bcb269a"),e=e(),Object(o["popScopeId"])(),e},Qe={id:"admin-menu",class:"center-card"},et={class:"admin-menu description-list"},tt=Je((function(){return Object(o["createElementVNode"])("br",null,null,-1)})),nt={class:"registration-status"},rt=Object(o["defineComponent"])({props:{appConfig:null,appStatistics:{default:function(){return{}}}},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.appConfig,c=n.appStatistics;return function(e,t){var n=Object(o["resolveComponent"])("router-link");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Qe,[Object(o["createVNode"])(Ze,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("admin.ADMINISTRATION")),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(We,{appStatistics:Object(o["unref"])(c)},null,8,["appStatistics"]),Object(o["createElementVNode"])("div",et,[Object(o["createElementVNode"])("dl",null,[Object(o["createElementVNode"])("dt",null,[Object(o["createVNode"])(n,{to:"/admin/application"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("admin.APPLICATION")),1)]})),_:1})]),Object(o["createElementVNode"])("dd",null,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("admin.UPDATE_APPLICATION_DESCRIPTION")),1),tt,Object(o["createElementVNode"])("span",nt,Object(o["toDisplayString"])(e.$t("admin.REGISTRATION_".concat(Object(o["unref"])(r).is_registration_enabled?"ENABLED":"DISABLED"))),1)]),Object(o["createElementVNode"])("dt",null,[Object(o["createVNode"])(n,{to:"/admin/sports"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("workouts.SPORT",0))),1)]})),_:1})]),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(e.$t("admin.ENABLE_DISABLE_SPORTS")),1),Object(o["createElementVNode"])("dt",null,[Object(o["createVNode"])(n,{to:"/admin/users"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("admin.USER",0))),1)]})),_:1})]),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(e.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)])])]})),_:1})])}}});n("06e3");const ct=p()(rt,[["__scopeId","data-v-1bcb269a"]]);var ot=ct,at=n("1119"),it=function(e){return Object(o["pushScopeId"])("data-v-6d62af67"),e=e(),Object(o["popScopeId"])(),e},st={id:"admin-sports",class:"admin-card"},lt={class:"responsive-table"},ut=it((function(){return Object(o["createElementVNode"])("th",null,"#",-1)})),dt={class:"text-left"},Ot={class:"text-left sport-action"},bt=it((function(){return Object(o["createElementVNode"])("th",null,null,-1)})),mt={class:"text-center"},pt=it((function(){return Object(o["createElementVNode"])("span",{class:"cell-heading"},"id",-1)})),Et={class:"cell-heading"},ft={class:"sport-label"},jt={class:"cell-heading"},Tt={class:"text-center"},St={class:"cell-heading"},_t={class:"sport-action"},At={class:"cell-heading"},Nt={class:"action-button"},Rt=["onClick"],gt={key:0,class:"has-workouts"},kt=it((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)})),vt=Object(o["defineComponent"])({setup:function(e){var t=Object(j["b"])(),n=t.t,r=Object(_["a"])(),c=Object(o["computed"])((function(){return Object(at["e"])(r.getters[S["c"].GETTERS.SPORTS],n)})),a=Object(o["computed"])((function(){return r.getters[S["b"].GETTERS.ERROR_MESSAGES]}));function i(e,t){r.dispatch(S["c"].ACTIONS.UPDATE_SPORTS,{id:e,isActive:t})}return function(e,t){var n=Object(o["resolveComponent"])("SportImage"),r=Object(o["resolveComponent"])("ErrorMessage"),s=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",st,[Object(o["createVNode"])(s,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("admin.SPORTS.TITLE")),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("button",{class:"top-button",onClick:t[0]||(t[0]=Object(o["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1),Object(o["createElementVNode"])("div",lt,[Object(o["createElementVNode"])("table",null,[Object(o["createElementVNode"])("thead",null,[Object(o["createElementVNode"])("tr",null,[ut,Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.IMAGE")),1),Object(o["createElementVNode"])("th",dt,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.LABEL")),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),Object(o["createElementVNode"])("th",Ot,Object(o["toDisplayString"])(e.$t("admin.ACTION")),1),bt])]),Object(o["createElementVNode"])("tbody",null,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(c),(function(t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("tr",{key:t.id},[Object(o["createElementVNode"])("td",mt,[pt,Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.id),1)]),Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",Et,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.IMAGE")),1),Object(o["createVNode"])(n,{title:t.translatedLabel,"sport-label":t.label,color:t.color},null,8,["title","sport-label","color"])]),Object(o["createElementVNode"])("td",ft,[Object(o["createElementVNode"])("span",jt,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.LABEL")),1),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.translatedLabel),1)]),Object(o["createElementVNode"])("td",Tt,[Object(o["createElementVNode"])("span",St,Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),Object(o["createElementVNode"])("i",{class:Object(o["normalizeClass"])("fa fa".concat(t.is_active?"-check":"")),"aria-hidden":"true"},null,2)]),Object(o["createElementVNode"])("td",_t,[Object(o["createElementVNode"])("span",At,Object(o["toDisplayString"])(e.$t("admin.ACTION")),1),Object(o["createElementVNode"])("div",Nt,[Object(o["createElementVNode"])("button",{class:Object(o["normalizeClass"])({danger:t.is_active}),onClick:function(e){return i(t.id,!t.is_active)}},Object(o["toDisplayString"])(e.$t("buttons.".concat(t.is_active?"DIS":"EN","ABLE"))),11,Rt),t.has_workouts?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",gt,[kt,Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(e.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):Object(o["createCommentVNode"])("",!0)])])])})),128))])]),Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,message:Object(o["unref"])(a)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("button",{onClick:t[1]||(t[1]=Object(o["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1)])]})),_:1})])}}});n("6d8e");const It=p()(vt,[["__scopeId","data-v-6d62af67"]]);var ht=It,Ct=n("b166"),Dt=n("9176"),yt=n("6d7d"),Ut=n("97e5"),Pt=n("5e65"),Lt=function(e){return Object(o["pushScopeId"])("data-v-047ae14e"),e=e(),Object(o["popScopeId"])(),e},Mt={id:"admin-users",class:"admin-card"},wt={class:"responsive-table"},Vt=Lt((function(){return Object(o["createElementVNode"])("th",null,"#",-1)})),Bt={class:"left-text"},zt={class:"left-text"},xt={class:"left-text"},Gt={class:"cell-heading"},Ft={class:"cell-heading"},Wt={class:"cell-heading"},Kt={class:"cell-heading"},$t={class:"text-center"},Ht={class:"cell-heading"},Yt={class:"text-center"},qt={class:"cell-heading"},Xt={class:"text-center"},Zt={class:"cell-heading"},Jt=["disabled","onClick"],Qt=Object(o["defineComponent"])({setup:function(e){var t=Object(_["a"])(),n=Object(le["c"])(),r=Object(le["d"])(),c=["admin","created_at","username","workouts_count"],a="created_at",i=Object(o["reactive"])(Object(Ut["a"])(n.query,c,a)),s=Object(o["computed"])((function(){return t.getters[S["a"].GETTERS.AUTH_USER_PROFILE]})),l=Object(o["computed"])((function(){return t.getters[S["e"].GETTERS.USERS]})),u=Object(o["computed"])((function(){return t.getters[S["e"].GETTERS.USERS_PAGINATION]})),d=Object(o["computed"])((function(){return t.getters[S["b"].GETTERS.ERROR_MESSAGES]}));function O(e){t.dispatch(S["e"].ACTIONS.GET_USERS,e)}function b(e,n){t.dispatch(S["e"].ACTIONS.UPDATE_USER,{username:e,admin:n})}function m(e,t){i[e]=t,"per_page"===e&&(i.page=1),r.push({path:"/admin/users",query:i})}return Object(o["onBeforeMount"])((function(){return O(i)})),Object(o["onUnmounted"])((function(){t.dispatch(S["e"].ACTIONS.EMPTY_USERS)})),Object(o["watch"])((function(){return n.query}),(function(e){i=Object(Ut["a"])(e,c,a,{query:i}),O(i)})),function(e,t){var n=Object(o["resolveComponent"])("router-link"),r=Object(o["resolveComponent"])("ErrorMessage"),a=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Mt,[Object(o["createVNode"])(a,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("admin.USER",0))),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("button",{class:"top-button",onClick:t[0]||(t[0]=Object(o["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1),Object(o["createVNode"])(Dt["a"],{sort:Object(o["unref"])(Ut["c"]),order_by:c,query:Object(o["unref"])(i),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:m},null,8,["sort","query"]),Object(o["createElementVNode"])("div",wt,[Object(o["createElementVNode"])("table",null,[Object(o["createElementVNode"])("thead",null,[Object(o["createElementVNode"])("tr",null,[Vt,Object(o["createElementVNode"])("th",Bt,Object(o["toDisplayString"])(e.$t("user.USERNAME")),1),Object(o["createElementVNode"])("th",zt,Object(o["toDisplayString"])(e.$t("user.EMAIL")),1),Object(o["createElementVNode"])("th",xt,Object(o["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE")),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("workouts.WORKOUT",0))),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("user.ADMIN")),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("admin.ACTION")),1)])]),Object(o["createElementVNode"])("tbody",null,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(l),(function(t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("tr",{key:t.username},[Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",Gt,Object(o["toDisplayString"])(e.$t("user.PROFILE.PICTURE")),1),Object(o["createVNode"])(T["a"],{user:t},null,8,["user"])]),Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",Ft,Object(o["toDisplayString"])(e.$t("user.USERNAME")),1),Object(o["createVNode"])(n,{to:"/users/".concat(t.username)},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.username),1)]})),_:2},1032,["to"])]),Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",Wt,Object(o["toDisplayString"])(e.$t("user.EMAIL")),1),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.email),1)]),Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",Kt,Object(o["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE")),1),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(Object(o["unref"])(Ct["a"])(Object(o["unref"])(Pt["c"])(t.created_at,Object(o["unref"])(s).timezone),"dd/MM/yyyy HH:mm")),1)]),Object(o["createElementVNode"])("td",$t,[Object(o["createElementVNode"])("span",Ht,Object(o["toDisplayString"])(Object(o["capitalize"])(e.$t("workouts.WORKOUT",0))),1),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.nb_workouts),1)]),Object(o["createElementVNode"])("td",Yt,[Object(o["createElementVNode"])("span",qt,Object(o["toDisplayString"])(e.$t("user.ADMIN")),1),Object(o["createElementVNode"])("i",{class:Object(o["normalizeClass"])("fa fa".concat(t.admin?"-check":"","-square-o")),"aria-hidden":"true"},null,2)]),Object(o["createElementVNode"])("td",Xt,[Object(o["createElementVNode"])("span",Zt,Object(o["toDisplayString"])(e.$t("admin.ACTION")),1),Object(o["createElementVNode"])("button",{class:Object(o["normalizeClass"])({danger:t.admin}),disabled:t.username===Object(o["unref"])(s).username,onClick:function(e){return b(t.username,!t.admin)}},Object(o["toDisplayString"])(e.$t("admin.USERS.TABLE.".concat(t.admin?"REMOVE":"ADD","_ADMIN_RIGHTS"))),11,Jt)])])})),128))])]),Object(o["unref"])(u).page?(Object(o["openBlock"])(),Object(o["createBlock"])(yt["a"],{key:0,path:"/admin/users",pagination:Object(o["unref"])(u),query:Object(o["unref"])(i)},null,8,["pagination","query"])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(d)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:1,message:Object(o["unref"])(d)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("button",{onClick:t[1]||(t[1]=Object(o["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1)])]})),_:1})])}}});n("d669");const en=p()(Qt,[["__scopeId","data-v-047ae14e"]]);var tn=en,nn=n("3c44"),rn=(n("99af"),{class:"profile-tabs custom-checkboxes-group"}),cn={class:"profile-tabs-checkboxes custom-checkboxes"},on=["id","name","checked","disabled","onInput"],an=Object(o["defineComponent"])({props:{tabs:null,selectedTab:null,edition:{type:Boolean},disabled:{type:Boolean,default:!1}},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.tabs,c=n.selectedTab,a=n.disabled;function i(e){switch(e){case"PICTURE":return"/profile/edit/picture";case"PREFERENCES":case"SPORTS":return"/profile".concat(t.edition?"/edit":"","/").concat(e.toLocaleLowerCase());default:case"PROFILE":return"/profile".concat(t.edition?"/edit":"")}}return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",rn,[Object(o["createElementVNode"])("div",cn,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(r),(function(t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"profile-tab custom-checkbox",key:t},[Object(o["createElementVNode"])("label",null,[Object(o["createElementVNode"])("input",{type:"radio",id:t,name:t,checked:Object(o["unref"])(c)===t,disabled:Object(o["unref"])(a),onInput:function(n){return e.$router.push(i(t))}},null,40,on),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(e.$t("user.PROFILE.TABS.".concat(t))),1)])])})),128))])])}}});n("cb9e");const sn=an;var ln=sn,un={id:"user-profile"},dn={class:"box"},On=Object(o["defineComponent"])({props:{user:null,tab:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.user,c=n.tab,a=["PROFILE","PREFERENCES","SPORTS"];return function(e,t){var n=Object(o["resolveComponent"])("router-view");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",un,[Object(o["createVNode"])(nn["a"],{user:Object(o["unref"])(r)},null,8,["user"]),Object(o["createElementVNode"])("div",dn,[Object(o["createVNode"])(ln,{tabs:a,selectedTab:Object(o["unref"])(c),edition:!1},null,8,["selectedTab"]),Object(o["createVNode"])(n,{user:Object(o["unref"])(r)},null,8,["user"])])])}}});n("7a25");const bn=p()(On,[["__scopeId","data-v-e26535e0"]]);var mn=bn,pn=n("71a7"),En={id:"user-preferences",class:"description-list"},fn={class:"profile-buttons"},jn=Object(o["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(o["computed"])((function(){return t.user.language?v[t.user.language]:v["en"]})),r=Object(o["computed"])((function(){return t.user.weekm?"MONDAY":"SUNDAY"})),c=Object(o["computed"])((function(){return t.user.timezone?t.user.timezone:"Europe/Paris"}));return function(t,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",En,[Object(o["createElementVNode"])("dl",null,[Object(o["createElementVNode"])("dt",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.LANGUAGE"))+":",1),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(Object(o["unref"])(n)),1),Object(o["createElementVNode"])("dt",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.TIMEZONE"))+":",1),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(Object(o["unref"])(c)),1),Object(o["createElementVNode"])("dt",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.".concat(Object(o["unref"])(r)))),1),Object(o["createElementVNode"])("dt",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.UNITS.LABEL"))+":",1),Object(o["createElementVNode"])("dd",null,Object(o["toDisplayString"])(t.$t("user.PROFILE.UNITS.".concat(e.user.imperial_units?"IMPERIAL":"METRIC"))),1)]),Object(o["createElementVNode"])("div",fn,[Object(o["createElementVNode"])("button",{onClick:a[0]||(a[0]=function(e){return t.$router.push("/profile/edit/preferences")})},Object(o["toDisplayString"])(t.$t("user.PROFILE.EDIT_PREFERENCES")),1),Object(o["createElementVNode"])("button",{onClick:a[1]||(a[1]=function(e){return t.$router.push("/")})},Object(o["toDisplayString"])(t.$t("common.HOME")),1)])])}}});const Tn=jn;var Sn=Tn,_n={id:"user-profile-edition",class:"center-card"},An=Object(o["defineComponent"])({props:{user:null,tab:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.user,a=r.tab,i=["PROFILE","PICTURE","PREFERENCES","SPORTS"],s=Object(o["computed"])((function(){return n.getters[S["a"].GETTERS.USER_LOADING]}));return function(e,t){var n=Object(o["resolveComponent"])("router-view"),r=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",_n,[Object(o["createVNode"])(r,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.".concat(Object(o["unref"])(a),"_EDITION"))),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(ln,{tabs:i,selectedTab:Object(o["unref"])(a),edition:!0,disabled:Object(o["unref"])(s)},null,8,["selectedTab","disabled"]),Object(o["createVNode"])(n,{user:Object(o["unref"])(c)},null,8,["user"])]})),_:1})])}}});const Nn=An;var Rn=Nn,gn={id:"user-infos-edition"},kn={class:"profile-form form-box"},vn=["onSubmit"],In={class:"form-items",for:"email"},hn=["value"],Cn={class:"form-items",for:"registrationDate"},Dn=["value"],yn={class:"form-items",for:"password"},Un=["disabled"],Pn={class:"form-items",for:"passwordConfirmation"},Ln=["disabled"],Mn=Object(o["createElementVNode"])("hr",null,null,-1),wn={class:"form-items",for:"first_name"},Vn=["disabled"],Bn={class:"form-items",for:"last_name"},zn={class:"form-items",for:"birth_date"},xn=["disabled"],Gn={class:"form-items",for:"location"},Fn=["disabled"],Wn={class:"form-items"},Kn={class:"form-buttons"},$n={class:"confirm",type:"submit"},Hn=Object(o["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.user,a=Object(o["reactive"])({password:"",password_conf:"",first_name:"",last_name:"",birth_date:"",location:"",bio:""}),i=Object(o["computed"])((function(){return t.user.created_at?Object(Ct["a"])(new Date(t.user.created_at),"dd/MM/yyyy HH:mm"):""})),s=Object(o["computed"])((function(){return n.getters[S["a"].GETTERS.USER_LOADING]})),l=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.ERROR_MESSAGES]})),u=Object(o["ref"])(!1);function d(e){a.first_name=e.first_name?e.first_name:"",a.last_name=e.last_name?e.last_name:"",a.birth_date=e.birth_date?Object(Ct["a"])(new Date(e.birth_date),"yyyy-MM-dd"):"",a.location=e.location?e.location:"",a.bio=e.bio?e.bio:""}function O(e){a.bio=e}function b(){n.dispatch(S["a"].ACTIONS.UPDATE_USER_PROFILE,a)}function m(e){u.value=e}function p(e){n.dispatch(S["a"].ACTIONS.DELETE_ACCOUNT,{username:e})}return Object(o["onMounted"])((function(){t.user&&d(t.user)})),function(e,t){var n=Object(o["resolveComponent"])("Modal"),r=Object(o["resolveComponent"])("ErrorMessage"),d=Object(o["resolveComponent"])("CustomTextArea");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",gn,[Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,title:e.$t("common.CONFIRMATION"),message:e.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:t[0]||(t[0]=function(e){return p(Object(o["unref"])(c).username)}),onCancelAction:t[1]||(t[1]=function(e){return m(!1)})},null,8,["title","message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",kn,[Object(o["unref"])(l)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,message:Object(o["unref"])(l)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("form",{onSubmit:Object(o["withModifiers"])(b,["prevent"])},[Object(o["createElementVNode"])("label",In,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.EMAIL"))+" ",1),Object(o["createElementVNode"])("input",{id:"email",value:Object(o["unref"])(c).email,disabled:""},null,8,hn)]),Object(o["createElementVNode"])("label",Cn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),Object(o["createElementVNode"])("input",{id:"registrationDate",value:Object(o["unref"])(i),disabled:""},null,8,Dn)]),Object(o["createElementVNode"])("label",yn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PASSWORD"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"password",type:"password","onUpdate:modelValue":t[2]||(t[2]=function(e){return Object(o["unref"])(a).password=e}),disabled:Object(o["unref"])(s)},null,8,Un),[[o["vModelText"],Object(o["unref"])(a).password]])]),Object(o["createElementVNode"])("label",Pn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PASSWORD_CONFIRMATION"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"passwordConfirmation",type:"password","onUpdate:modelValue":t[3]||(t[3]=function(e){return Object(o["unref"])(a).password_conf=e}),disabled:Object(o["unref"])(s)},null,8,Ln),[[o["vModelText"],Object(o["unref"])(a).password_conf]])]),Mn,Object(o["createElementVNode"])("label",wn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.FIRST_NAME"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"first_name","onUpdate:modelValue":t[4]||(t[4]=function(e){return Object(o["unref"])(a).first_name=e}),disabled:Object(o["unref"])(s)},null,8,Vn),[[o["vModelText"],Object(o["unref"])(a).first_name]])]),Object(o["createElementVNode"])("label",Bn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.LAST_NAME"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"last_name","onUpdate:modelValue":t[5]||(t[5]=function(e){return Object(o["unref"])(a).last_name=e})},null,512),[[o["vModelText"],Object(o["unref"])(a).last_name]])]),Object(o["createElementVNode"])("label",zn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.BIRTH_DATE"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":t[6]||(t[6]=function(e){return Object(o["unref"])(a).birth_date=e}),disabled:Object(o["unref"])(s)},null,8,xn),[[o["vModelText"],Object(o["unref"])(a).birth_date]])]),Object(o["createElementVNode"])("label",Gn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.LOCATION"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{id:"location","onUpdate:modelValue":t[7]||(t[7]=function(e){return Object(o["unref"])(a).location=e}),disabled:Object(o["unref"])(s)},null,8,Fn),[[o["vModelText"],Object(o["unref"])(a).location]])]),Object(o["createElementVNode"])("label",Wn,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.BIO"))+" ",1),Object(o["createVNode"])(d,{name:"bio",charLimit:200,input:Object(o["unref"])(a).bio,disabled:Object(o["unref"])(s),onUpdateValue:O},null,8,["input","disabled"])]),Object(o["createElementVNode"])("div",Kn,[Object(o["createElementVNode"])("button",$n,Object(o["toDisplayString"])(e.$t("buttons.SUBMIT")),1),Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[8]||(t[8]=Object(o["withModifiers"])((function(t){return e.$router.push("/profile")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("buttons.CANCEL")),1),Object(o["createElementVNode"])("button",{class:"danger",onClick:t[9]||(t[9]=Object(o["withModifiers"])((function(e){return m(!0)}),["prevent"]))},Object(o["toDisplayString"])(e.$t("buttons.DELETE_MY_ACCOUNT")),1)])],40,vn)])])}}});n("f574");const Yn=Hn;var qn=Yn,Xn=function(e){return Object(o["pushScopeId"])("data-v-56c3f022"),e=e(),Object(o["popScopeId"])(),e},Zn={id:"user-picture-edition"},Jn={class:"user-picture-form"},Qn=["onSubmit"],er={class:"picture-help"},tr={class:"info-box"},nr=Xn((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)})),rr={class:"picture-buttons"},cr=["disabled"],or=Object(o["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.user,a=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.ERROR_MESSAGES]})),i=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.APP_CONFIG]})),s=i.value.max_single_file_size?Object(ue["b"])(i.value.max_single_file_size):"",l=Object(o["ref"])(null);function u(){n.dispatch(S["a"].ACTIONS.DELETE_PICTURE)}function d(e){e.target.files&&(l.value=e.target.files[0])}function O(){l.value&&n.dispatch(S["a"].ACTIONS.UPDATE_USER_PICTURE,{picture:l.value})}return function(e,t){var n=Object(o["resolveComponent"])("ErrorMessage");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Zn,[Object(o["createElementVNode"])("div",Jn,[Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,message:Object(o["unref"])(a)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(T["a"],{user:Object(o["unref"])(c)},null,8,["user"]),Object(o["createElementVNode"])("form",{onSubmit:Object(o["withModifiers"])(O,["prevent"])},[Object(o["createElementVNode"])("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:d},null,32),Object(o["createElementVNode"])("div",er,[Object(o["createElementVNode"])("span",tr,[nr,Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(e.$t("workouts.MAX_SIZE"))+": "+Object(o["toDisplayString"])(Object(o["unref"])(s)),1)])]),Object(o["createElementVNode"])("div",rr,[Object(o["createElementVNode"])("button",{type:"submit",disabled:!Object(o["unref"])(l)},Object(o["toDisplayString"])(e.$t("user.PROFILE.PICTURE_UPDATE")),9,cr),Object(o["unref"])(c).picture?(Object(o["openBlock"])(),Object(o["createElementBlock"])("button",{key:0,class:"danger",onClick:u},Object(o["toDisplayString"])(e.$t("user.PROFILE.PICTURE_REMOVE")),1)):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[0]||(t[0]=function(t){return e.$router.push("/profile")})},Object(o["toDisplayString"])(e.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],40,Qn)])])}}});n("35e3");const ar=p()(or,[["__scopeId","data-v-56c3f022"]]);var ir=ar,sr=(n("498a"),n("4de4"),["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Fort_Nelson","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"]),lr={id:"tz-dropdown"},ur=["value","disabled","onKeydown"],dr=["onClick","onMouseover","autofocus"],Or=Object(o["defineComponent"])({props:{input:null,disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup:function(e,t){var n=t.emit,r=e,c=Object(o["toRefs"])(r),a=c.input,i=c.disabled,s=Object(o["ref"])(r.input),l=Object(o["ref"])(!1),u=Object(o["ref"])(null),d=Object(o["ref"])(0);function O(e){return e.toLowerCase().match(s.value.toLowerCase())}function b(e){d.value=e}function m(e){s.value=e,l.value=!1,n("updateTimezone",e)}function p(e){var t,n,r,c;(e.preventDefault(),null!==(t=u.value)&&void 0!==t&&null!==(n=t.firstElementChild)&&void 0!==n&&n.innerHTML)&&m(null===(r=u.value)||void 0===r||null===(c=r.firstElementChild)||void 0===c?void 0:c.innerHTML)}function E(e){e.preventDefault(),l.value=!0,s.value=e.target.value.trim()}return Object(o["watch"])((function(){return r.input}),(function(e){s.value=e})),function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",lr,[Object(o["createElementVNode"])("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:s.value,disabled:Object(o["unref"])(i),required:"",onKeydown:[t[0]||(t[0]=Object(o["withKeys"])((function(e){return m(Object(o["unref"])(a))}),["esc"])),Object(o["withKeys"])(p,["enter"])],onInput:E},null,40,ur),l.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("ul",{key:0,class:"tz-dropdown-list",ref:function(e,t){t["tzList"]=e,u.value=e}},[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(sr).filter((function(e){return O(e)})),(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("li",{key:e,class:Object(o["normalizeClass"])(["tz-dropdown-item",{focus:t===d.value}]),onClick:function(t){return m(e)},onMouseover:function(e){return b(t)},autofocus:t===d.value},Object(o["toDisplayString"])(e),43,dr)})),128))],512)):Object(o["createCommentVNode"])("",!0)])}}});n("be8b");const br=p()(Or,[["__scopeId","data-v-47ea2903"]]);var mr=br,pr={id:"user-preferences-edition"},Er={class:"profile-form form-box"},fr=["onSubmit"],jr={class:"form-items"},Tr=["disabled"],Sr=["value"],_r={class:"form-items"},Ar={class:"form-items"},Nr=["disabled"],Rr=["value"],gr={class:"form-items"},kr=["disabled"],vr=["value"],Ir={class:"form-buttons"},hr={class:"confirm",type:"submit"},Cr=Object(o["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["reactive"])({imperial_units:!1,language:"",timezone:"Europe/Paris",weekm:!1}),c=[{label:"MONDAY",value:!0},{label:"SUNDAY",value:!1}],a=[{label:"IMPERIAL",value:!0},{label:"METRIC",value:!1}],i=Object(o["computed"])((function(){return n.getters[S["a"].GETTERS.USER_LOADING]})),s=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.ERROR_MESSAGES]}));function l(e){r.imperial_units=!!e.imperial_units&&e.imperial_units,r.language=e.language?e.language:"en",r.timezone=e.timezone?e.timezone:"Europe/Paris",r.weekm=!!e.weekm&&e.weekm}function u(){n.dispatch(S["a"].ACTIONS.UPDATE_USER_PREFERENCES,r)}function d(e){r.timezone=e}return Object(o["onMounted"])((function(){t.user&&l(t.user)})),function(e,t){var n=Object(o["resolveComponent"])("ErrorMessage");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",pr,[Object(o["createElementVNode"])("div",Er,[Object(o["unref"])(s)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,message:Object(o["unref"])(s)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("form",{onSubmit:Object(o["withModifiers"])(u,["prevent"])},[Object(o["createElementVNode"])("label",jr,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.LANGUAGE"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("select",{id:"language","onUpdate:modelValue":t[0]||(t[0]=function(e){return Object(o["unref"])(r).language=e}),disabled:Object(o["unref"])(i)},[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(h),(function(e){return Object(o["openBlock"])(),Object(o["createElementBlock"])("option",{value:e.value,key:e.value},Object(o["toDisplayString"])(e.label),9,Sr)})),128))],8,Tr),[[o["vModelSelect"],Object(o["unref"])(r).language]])]),Object(o["createElementVNode"])("label",_r,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.TIMEZONE"))+" ",1),Object(o["createVNode"])(mr,{input:Object(o["unref"])(r).timezone,disabled:Object(o["unref"])(i),onUpdateTimezone:d},null,8,["input","disabled"])]),Object(o["createElementVNode"])("label",Ar,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("select",{id:"weekm","onUpdate:modelValue":t[1]||(t[1]=function(e){return Object(o["unref"])(r).weekm=e}),disabled:Object(o["unref"])(i)},[(Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(c,(function(t){return Object(o["createElementVNode"])("option",{value:t.value,key:t.value},Object(o["toDisplayString"])(e.$t("user.PROFILE.".concat(t.label))),9,Rr)})),64))],8,Nr),[[o["vModelSelect"],Object(o["unref"])(r).weekm]])]),Object(o["createElementVNode"])("label",gr,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("user.PROFILE.UNITS.LABEL"))+" ",1),Object(o["withDirectives"])(Object(o["createElementVNode"])("select",{id:"imperial_units","onUpdate:modelValue":t[2]||(t[2]=function(e){return Object(o["unref"])(r).imperial_units=e}),disabled:Object(o["unref"])(i)},[(Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(a,(function(t){return Object(o["createElementVNode"])("option",{value:t.value,key:t.value},Object(o["toDisplayString"])(e.$t("user.PROFILE.UNITS.".concat(t.label))),9,vr)})),64))],8,kr),[[o["vModelSelect"],Object(o["unref"])(r).imperial_units]])]),Object(o["createElementVNode"])("div",Ir,[Object(o["createElementVNode"])("button",hr,Object(o["toDisplayString"])(e.$t("buttons.SUBMIT")),1),Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[3]||(t[3]=Object(o["withModifiers"])((function(t){return e.$router.push("/profile/preferences")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("buttons.CANCEL")),1)])],40,fr)])])}}});const Dr=Cr;var yr=Dr,Ur=(n("2532"),{id:"user-sport-preferences"}),Pr={key:0,class:"responsive-table"},Lr={class:"mobile-display"},Mr={key:0,class:"profile-buttons mobile-display"},wr={key:1,class:"profile-buttons"},Vr={class:"text-left"},Br={key:0},zr={class:"cell-heading"},xr=["value"],Gr={class:"cell-heading"},Fr={key:0,class:"disabled-message"},Wr={key:1,class:"fa fa-refresh fa-spin fa-fw"},Kr={class:"cell-heading"},$r={class:"cell-heading"},Hr=["checked"],Yr={class:"cell-heading"},qr=["value"],Xr={key:1},Zr={key:0,class:"action-buttons"},Jr={class:"cell-heading"},Qr=["onClick"],ec={key:1,class:"edition-buttons"},tc=["disabled"],nc=["disabled"],rc={key:0,class:"profile-buttons"},cc={key:1,class:"profile-buttons"},oc=Object(o["defineComponent"])({props:{user:null,isEdition:{type:Boolean}},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(j["b"])(),c=r.t,a=Object(o["toRefs"])(t),i=a.isEdition,s=a.user,l=Object(o["inject"])("sportColors"),u=Object(o["computed"])((function(){return n.getters[S["c"].GETTERS.SPORTS]})),d=Object(o["computed"])((function(){return Object(at["e"])(u.value,c,!0,s.value.sports_list)})),O=Object(o["computed"])((function(){return n.getters[S["a"].GETTERS.USER_LOADING]})),b=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.ERROR_MESSAGES]})),m=Object(o["reactive"])({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1});function p(e){null!==e?(m.sport_id=e.id,m.color=e.color?e.color:l[e.label],m.is_active=e.is_active_for_user,m.stopped_speed_threshold=e.stopped_speed_threshold):N()}function E(e){return m.sport_id===e}function f(e){m.color=e.target.value}function T(e){m.stopped_speed_threshold=parseFloat(e.target.value)}function A(e){m.is_active=e.target.checked}function N(){m.sport_id=0,m.color=null,m.is_active=!0,m.stopped_speed_threshold=1,n.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES)}function R(e){e.preventDefault(),n.dispatch(S["a"].ACTIONS.UPDATE_USER_SPORT_PREFERENCES,m)}return Object(o["watch"])((function(){return O.value}),(function(e){e||b.value||N()})),function(e,t){var n=Object(o["resolveComponent"])("SportImage"),r=Object(o["resolveComponent"])("ErrorMessage");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ur,[Object(o["unref"])(u).length>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Pr,[Object(o["createElementVNode"])("div",Lr,[Object(o["unref"])(i)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Mr,[Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[0]||(t[0]=Object(o["withModifiers"])((function(t){return e.$router.push("/profile/sports")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("buttons.BACK")),1)])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",wr,[Object(o["createElementVNode"])("button",{onClick:t[1]||(t[1]=function(t){return e.$router.push("/profile/edit/sports")})},Object(o["toDisplayString"])(e.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),Object(o["createElementVNode"])("button",{onClick:t[2]||(t[2]=function(t){return e.$router.push("/")})},Object(o["toDisplayString"])(e.$t("common.HOME")),1)]))]),Object(o["createElementVNode"])("table",null,[Object(o["createElementVNode"])("thead",null,[Object(o["createElementVNode"])("tr",null,[Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.COLOR")),1),Object(o["createElementVNode"])("th",Vr,Object(o["toDisplayString"])(e.$t("workouts.SPORT",0)),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("workouts.WORKOUT",0)),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),Object(o["createElementVNode"])("th",null,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),Object(o["unref"])(i)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("th",Br,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.ACTION")),1)):Object(o["createCommentVNode"])("",!0)])]),Object(o["createElementVNode"])("tbody",null,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(d),(function(c){return Object(o["openBlock"])(),Object(o["createElementBlock"])("tr",{key:c.id},[Object(o["createElementVNode"])("td",null,[Object(o["createElementVNode"])("span",zr,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.COLOR")),1),E(c.id)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:0,class:"sport-color",type:"color",value:Object(o["unref"])(m).color,onInput:f},null,40,xr)):(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:1,title:c.translatedLabel,"sport-label":c.label,color:c.color?c.color:Object(o["unref"])(l)[c.label]},null,8,["title","sport-label","color"]))]),Object(o["createElementVNode"])("td",{class:Object(o["normalizeClass"])(["sport-label",{"disabled-sport":!c.is_active}])},[Object(o["createElementVNode"])("span",Gr,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.LABEL")),1),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(c.translatedLabel)+" ",1),c.is_active?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",Fr," ("+Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),Object(o["unref"])(O)&&E(c.id)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("i",Wr)):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(b)&&Object(o["unref"])(m).sport_id===c.id?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:2,message:Object(o["unref"])(b)},null,8,["message"])):Object(o["createCommentVNode"])("",!0)],2),Object(o["createElementVNode"])("td",{class:Object(o["normalizeClass"])(["text-center",{"disabled-sport":!c.is_active}])},[Object(o["createElementVNode"])("span",Kr,Object(o["toDisplayString"])(e.$t("workouts.WORKOUT",0)),1),Object(o["createElementVNode"])("i",{class:Object(o["normalizeClass"])("fa fa".concat(Object(o["unref"])(s).sports_list.includes(c.id)?"-check":"")),"aria-hidden":"true"},null,2)],2),Object(o["createElementVNode"])("td",{class:Object(o["normalizeClass"])(["text-center",{"disabled-sport":!c.is_active}])},[Object(o["createElementVNode"])("span",$r,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),E(c.id)&&c.is_active?(Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:0,type:"checkbox",checked:c.is_active_for_user,onChange:A},null,40,Hr)):(Object(o["openBlock"])(),Object(o["createElementBlock"])("i",{key:1,class:Object(o["normalizeClass"])("fa fa".concat(c.is_active_for_user?"-check":"")),"aria-hidden":"true"},null,2))],2),Object(o["createElementVNode"])("td",{class:Object(o["normalizeClass"])(["text-center",{"disabled-sport":!c.is_active}])},[Object(o["createElementVNode"])("span",Yr,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),E(c.id)&&c.is_active?(Object(o["openBlock"])(),Object(o["createElementBlock"])("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1",value:Object(o["unref"])(m).stopped_speed_threshold,onInput:T},null,40,qr)):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",Xr,Object(o["toDisplayString"])(c.stopped_speed_threshold),1))],2),Object(o["unref"])(i)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("td",Zr,[Object(o["createElementVNode"])("span",Jr,Object(o["toDisplayString"])(e.$t("user.PROFILE.SPORT.ACTION")),1),0===Object(o["unref"])(m).sport_id?(Object(o["openBlock"])(),Object(o["createElementBlock"])("button",{key:0,onClick:function(e){return p(c)}},Object(o["toDisplayString"])(e.$t("buttons.EDIT")),9,Qr)):Object(o["createCommentVNode"])("",!0),E(c.id)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ec,[Object(o["createElementVNode"])("button",{disabled:Object(o["unref"])(O),onClick:R},Object(o["toDisplayString"])(e.$t("buttons.SUBMIT")),9,tc),Object(o["createElementVNode"])("button",{disabled:Object(o["unref"])(O),onClick:t[3]||(t[3]=function(e){return p(null)})},Object(o["toDisplayString"])(e.$t("buttons.CANCEL")),9,nc)])):Object(o["createCommentVNode"])("",!0)])):Object(o["createCommentVNode"])("",!0)])})),128))])]),Object(o["unref"])(i)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",rc,[Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[4]||(t[4]=Object(o["withModifiers"])((function(t){return e.$router.push("/profile/sports")}),["prevent"]))},Object(o["toDisplayString"])(e.$t("buttons.BACK")),1)])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",cc,[Object(o["createElementVNode"])("button",{onClick:t[5]||(t[5]=function(t){return e.$router.push("/profile/edit/sports")})},Object(o["toDisplayString"])(e.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),Object(o["createElementVNode"])("button",{onClick:t[6]||(t[6]=function(t){return e.$router.push("/")})},Object(o["toDisplayString"])(e.$t("common.HOME")),1)]))])):Object(o["createCommentVNode"])("",!0)])}}});n("3c78");const ac=p()(oc,[["__scopeId","data-v-c313eca8"]]);var ic=ac,sc=n("5502"),lc=n("ade3"),uc=n("bc3a"),dc=n.n(uc),Oc=n("d257"),bc=dc.a.create({baseURL:Object(Oc["a"])()});bc.interceptors.request.use((function(e){var t=_o.getters[S["a"].GETTERS.AUTH_TOKEN];if(t){var n="Bearer ".concat(t);e.headers&&e.headers.Authorization!==n&&(e.headers.Authorization="Bearer ".concat(t))}return e}),(function(e){return Promise.reject(e)}));var mc,pc,Ec,fc,jc,Tc,Sc,_c,Ac,Nc,Rc,gc,kc,vc,Ic=bc,hc=dc.a.create({baseURL:Object(Oc["a"])()}),Cc=hc,Dc=function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.delete("users/".concat(t.username)).then((function(n){204===n.status?t.fromAdmin?hs.push("/admin/users"):e.dispatch(S["a"].ACTIONS.LOGOUT).then((function(){return hs.push("/")})):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))},yc=(mc={},Object(lc["a"])(mc,S["e"].ACTIONS.EMPTY_USER,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["e"].MUTATIONS.UPDATE_USER,{})})),Object(lc["a"])(mc,S["e"].ACTIONS.EMPTY_USERS,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["e"].MUTATIONS.UPDATE_USERS,[]),e.commit(S["e"].MUTATIONS.UPDATE_USERS_PAGINATION,{})})),Object(lc["a"])(mc,S["e"].ACTIONS.GET_USER,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["e"].MUTATIONS.UPDATE_USERS_LOADING,!0),Ic.get("users/".concat(t)).then((function(t){"success"===t.data.status?e.commit(S["e"].MUTATIONS.UPDATE_USER,t.data.data.users[0]):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),Object(lc["a"])(mc,S["e"].ACTIONS.GET_USERS,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["e"].MUTATIONS.UPDATE_USERS_LOADING,!0),Ic.get("users",{params:t}).then((function(t){"success"===t.data.status?(e.commit(S["e"].MUTATIONS.UPDATE_USERS,t.data.data.users),e.commit(S["e"].MUTATIONS.UPDATE_USERS_PAGINATION,t.data.pagination)):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),Object(lc["a"])(mc,S["e"].ACTIONS.UPDATE_USER,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.patch("users/".concat(t.username),{admin:t.admin}).then((function(t){"success"===t.data.status?e.commit(S["e"].MUTATIONS.UPDATE_USER_IN_USERS,t.data.data.users[0]):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),Object(lc["a"])(mc,S["e"].ACTIONS.DELETE_USER_ACCOUNT,(function(e,t){Dc(e,{username:t.username,fromAdmin:!0})})),mc),Uc=g.global.locale,Pc=function(e){localStorage.removeItem("authToken"),e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["d"].MUTATIONS.EMPTY_USER_STATS),e.commit(S["a"].MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(S["e"].MUTATIONS.UPDATE_USERS,[]),e.commit(S["f"].MUTATIONS.EMPTY_WORKOUTS),e.commit(S["f"].MUTATIONS.EMPTY_WORKOUT),hs.push("/login")},Lc=(pc={},Object(lc["a"])(pc,S["a"].ACTIONS.CHECK_AUTH_USER,(function(e){window.localStorage.authToken&&!e.getters[S["a"].GETTERS.IS_AUTHENTICATED]&&(e.commit(S["a"].MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE))})),Object(lc["a"])(pc,S["a"].ACTIONS.GET_USER_PROFILE,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.get("auth/profile").then((function(t){"success"===t.data.status?(e.commit(S["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),t.data.data.language&&(e.commit(S["b"].MUTATIONS.UPDATE_LANG,t.data.data.language),Uc.value=t.data.data.language),e.dispatch(S["c"].ACTIONS.GET_SPORTS)):(Object(Oc["b"])(e,null),Pc(e))})).catch((function(t){Object(Oc["b"])(e,t),Pc(e)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.LOGIN_OR_REGISTER,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Cc.post("/auth/".concat(t.actionType),t.formData).then((function(n){if("success"===n.data.status){var r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(S["a"].MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE).then((function(){return hs.push("string"===typeof t.redirectUrl?t.redirectUrl:"/")}))}else Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.LOGOUT,(function(e){Pc(e)})),Object(lc["a"])(pc,S["a"].ACTIONS.UPDATE_USER_PROFILE,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!0),Ic.post("auth/profile/edit",t).then((function(t){"success"===t.data.status?(e.commit(S["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),hs.push("/profile")):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.UPDATE_USER_PREFERENCES,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!0),Ic.post("auth/profile/edit/preferences",t).then((function(t){"success"===t.data.status?(e.commit(S["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),e.commit(S["b"].MUTATIONS.UPDATE_LANG,t.data.data.language),Uc.value=t.data.data.language,hs.push("/profile/preferences")):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.UPDATE_USER_SPORT_PREFERENCES,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!0),Ic.post("auth/profile/edit/sports",t).then((function(t){"success"===t.data.status?e.dispatch(S["c"].ACTIONS.GET_SPORTS):Object(Oc["b"])(e,null)})).catch((function(t){Object(Oc["b"])(e,t),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.UPDATE_USER_PICTURE,(function(e,t){if(e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");var n=new FormData;n.append("file",t.picture),Ic.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then((function(t){"success"===t.data.status?e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE).then((function(){return hs.push("/profile")})):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.DELETE_ACCOUNT,(function(e,t){Dc(e,t)})),Object(lc["a"])(pc,S["a"].ACTIONS.DELETE_PICTURE,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!0),Ic.delete("auth/picture").then((function(t){204===t.status?e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE).then((function(){return hs.push("/profile")})):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.SEND_PASSWORD_RESET_REQUEST,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Cc.post("auth/password/reset-request",t).then((function(t){"success"===t.data.status?hs.push("/password-reset/sent"):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),Object(lc["a"])(pc,S["a"].ACTIONS.RESET_USER_PASSWORD,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Cc.post("auth/password/update",t).then((function(t){"success"===t.data.status?hs.push("/password-reset/password-updated"):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),pc),Mc=(Ec={},Object(lc["a"])(Ec,S["a"].GETTERS.AUTH_TOKEN,(function(e){return e.authToken})),Object(lc["a"])(Ec,S["a"].GETTERS.AUTH_USER_PROFILE,(function(e){return e.authUserProfile})),Object(lc["a"])(Ec,S["a"].GETTERS.IS_AUTHENTICATED,(function(e){return null!==e.authToken})),Object(lc["a"])(Ec,S["a"].GETTERS.IS_ADMIN,(function(e){return e.authUserProfile&&e.authUserProfile.admin})),Object(lc["a"])(Ec,S["a"].GETTERS.USER_LOADING,(function(e){return e.loading})),Ec),wc=(fc={},Object(lc["a"])(fc,S["a"].MUTATIONS.CLEAR_AUTH_USER_TOKEN,(function(e){e.authToken=null,e.authUserProfile={}})),Object(lc["a"])(fc,S["a"].MUTATIONS.UPDATE_AUTH_TOKEN,(function(e,t){e.authToken=t})),Object(lc["a"])(fc,S["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,(function(e,t){e.authUserProfile=t})),Object(lc["a"])(fc,S["a"].MUTATIONS.UPDATE_USER_LOADING,(function(e,t){e.loading=t})),fc),Vc={authToken:null,authUserProfile:{},loading:!1},Bc={state:Vc,actions:Lc,getters:Mc,mutations:wc},zc=Bc,xc=(jc={},Object(lc["a"])(jc,S["b"].ACTIONS.GET_APPLICATION_CONFIG,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,!0),Ic.get("config").then((function(t){"success"===t.data.status?e.commit(S["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,!1)}))})),Object(lc["a"])(jc,S["b"].ACTIONS.GET_APPLICATION_STATS,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.get("stats/all").then((function(t){"success"===t.data.status?e.commit(S["b"].MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),Object(lc["a"])(jc,S["b"].ACTIONS.UPDATE_APPLICATION_CONFIG,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.patch("config",t).then((function(t){"success"===t.data.status?(e.commit(S["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data),hs.push("/admin/application")):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),jc),Gc=(Tc={},Object(lc["a"])(Tc,S["b"].GETTERS.APP_CONFIG,(function(e){return e.application.config})),Object(lc["a"])(Tc,S["b"].GETTERS.APP_LOADING,(function(e){return e.appLoading})),Object(lc["a"])(Tc,S["b"].GETTERS.APP_STATS,(function(e){return e.application.statistics})),Object(lc["a"])(Tc,S["b"].GETTERS.ERROR_MESSAGES,(function(e){return e.errorMessages})),Object(lc["a"])(Tc,S["b"].GETTERS.LANGUAGE,(function(e){return e.language})),Object(lc["a"])(Tc,S["b"].GETTERS.LOCALE,(function(e){return e.locale})),Tc),Fc=(Sc={},Object(lc["a"])(Sc,S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES,(function(e){e.errorMessages=null})),Object(lc["a"])(Sc,S["b"].MUTATIONS.SET_ERROR_MESSAGES,(function(e,t){e.errorMessages=t})),Object(lc["a"])(Sc,S["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,(function(e,t){e.application.config=t})),Object(lc["a"])(Sc,S["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,(function(e,t){e.appLoading=t})),Object(lc["a"])(Sc,S["b"].MUTATIONS.UPDATE_APPLICATION_STATS,(function(e,t){e.application.statistics=t})),Object(lc["a"])(Sc,S["b"].MUTATIONS.UPDATE_LANG,(function(e,t){e.language=t,e.locale=k[t]})),Sc),Wc={root:!0,language:"en",locale:A["a"],errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0}},appLoading:!1},Kc=(_c={},Object(lc["a"])(_c,S["c"].ACTIONS.GET_SPORTS,(function(e){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.get("sports").then((function(t){"success"===t.data.status?(e.commit(S["c"].MUTATIONS.SET_SPORTS,t.data.data.sports),e.commit(S["a"].MUTATIONS.UPDATE_USER_LOADING,!1)):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),Object(lc["a"])(_c,S["c"].ACTIONS.UPDATE_SPORTS,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.patch("sports/".concat(t.id),{is_active:t.isActive}).then((function(t){"success"===t.data.status?e.dispatch(S["c"].ACTIONS.GET_SPORTS):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),_c),$c=Object(lc["a"])({},S["c"].GETTERS.SPORTS,(function(e){return e.sports})),Hc=Object(lc["a"])({},S["c"].MUTATIONS.SET_SPORTS,(function(e,t){e.sports=t})),Yc={sports:[]},qc={state:Yc,actions:Kc,getters:$c,mutations:Hc},Xc=qc,Zc=Object(lc["a"])({},S["d"].ACTIONS.GET_USER_STATS,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.get("stats/".concat(t.username,"/").concat(t.filterType),{params:t.params}).then((function(t){"success"===t.data.status?e.commit(S["d"].MUTATIONS.UPDATE_USER_STATS,t.data.data.statistics):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))})),Jc=Object(lc["a"])({},S["d"].GETTERS.USER_STATS,(function(e){return e.statistics})),Qc=(Ac={},Object(lc["a"])(Ac,S["d"].MUTATIONS.UPDATE_USER_STATS,(function(e,t){e.statistics=t})),Object(lc["a"])(Ac,S["d"].MUTATIONS.EMPTY_USER_STATS,(function(e){e.statistics={}})),Ac),eo={statistics:{}},to={state:eo,actions:Zc,getters:Jc,mutations:Qc},no=to,ro=(Nc={},Object(lc["a"])(Nc,S["e"].GETTERS.USER,(function(e){return e.user})),Object(lc["a"])(Nc,S["e"].GETTERS.USERS,(function(e){return e.users})),Object(lc["a"])(Nc,S["e"].GETTERS.USERS_LOADING,(function(e){return e.loading})),Object(lc["a"])(Nc,S["e"].GETTERS.USERS_PAGINATION,(function(e){return e.pagination})),Nc),co=(Rc={},Object(lc["a"])(Rc,S["e"].MUTATIONS.UPDATE_USER,(function(e,t){e.user=t})),Object(lc["a"])(Rc,S["e"].MUTATIONS.UPDATE_USER_IN_USERS,(function(e,t){e.users=e.users.map((function(e){return e.username===t.username?t:e}))})),Object(lc["a"])(Rc,S["e"].MUTATIONS.UPDATE_USERS,(function(e,t){e.users=t})),Object(lc["a"])(Rc,S["e"].MUTATIONS.UPDATE_USERS_LOADING,(function(e,t){e.loading=t})),Object(lc["a"])(Rc,S["e"].MUTATIONS.UPDATE_USERS_PAGINATION,(function(e,t){e.pagination=t})),Rc),oo={user:{},users:[],loading:!1,pagination:{}},ao={state:oo,actions:yc,getters:ro,mutations:co},io=ao,so=n("4870"),lo=function(e,t,n){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),Ic.get("workouts",{params:t}).then((function(t){"success"===t.data.status?(e.commit(S["f"].MUTATIONS[n],t.data.data.workouts),n===so["c"]["SET_USER_WORKOUTS"]&&e.commit(S["f"].MUTATIONS.SET_WORKOUTS_PAGINATION,t.data.pagination)):Object(Oc["b"])(e,null)})).catch((function(t){return Object(Oc["b"])(e,t)}))},uo=(gc={},Object(lc["a"])(gc,S["f"].ACTIONS.GET_CALENDAR_WORKOUTS,(function(e,t){e.commit(S["f"].MUTATIONS.EMPTY_CALENDAR_WORKOUTS),lo(e,t,so["c"]["SET_CALENDAR_WORKOUTS"])})),Object(lc["a"])(gc,S["f"].ACTIONS.GET_USER_WORKOUTS,(function(e,t){lo(e,t,so["c"]["SET_USER_WORKOUTS"])})),Object(lc["a"])(gc,S["f"].ACTIONS.GET_TIMELINE_WORKOUTS,(function(e,t){lo(e,t,so["c"]["SET_TIMELINE_WORKOUTS"])})),Object(lc["a"])(gc,S["f"].ACTIONS.GET_MORE_TIMELINE_WORKOUTS,(function(e,t){lo(e,t,so["c"]["ADD_TIMELINE_WORKOUTS"])})),Object(lc["a"])(gc,S["f"].ACTIONS.GET_WORKOUT_DATA,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!0);var n=t.segmentId?"/segment/".concat(t.segmentId):"";Ic.get("workouts/".concat(t.workoutId)).then((function(r){var c=r.data.data.workouts[0];if("success"===r.data.status){if(t.segmentId&&(0===c.segments.length||!c.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(S["f"].MUTATIONS.SET_WORKOUT,r.data.data.workouts[0]),r.data.data.workouts[0].with_gpx&&(Ic.get("workouts/".concat(t.workoutId,"/chart_data").concat(n)).then((function(t){"success"===t.data.status&&e.commit(S["f"].MUTATIONS.SET_WORKOUT_CHART_DATA,t.data.data.chart_data)})),Ic.get("workouts/".concat(t.workoutId,"/gpx").concat(n)).then((function(t){"success"===t.data.status&&e.commit(S["f"].MUTATIONS.SET_WORKOUT_GPX,t.data.data.gpx)})))}else e.commit(S["f"].MUTATIONS.EMPTY_WORKOUT),Object(Oc["b"])(e,null)})).catch((function(t){e.commit(S["f"].MUTATIONS.EMPTY_WORKOUT),Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(lc["a"])(gc,S["f"].ACTIONS.DELETE_WORKOUT,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),Ic.delete("workouts/".concat(t.workoutId)).then((function(){e.commit(S["f"].MUTATIONS.EMPTY_WORKOUT),e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE),hs.push("/")})).catch((function(t){Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(lc["a"])(gc,S["f"].ACTIONS.EDIT_WORKOUT,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),Ic.patch("workouts/".concat(t.workoutId),t.data).then((function(){e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE),e.dispatch(S["f"].ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then((function(){hs.push({name:"Workout",params:{workoutId:t.workoutId}})}))})).catch((function(t){Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(lc["a"])(gc,S["f"].ACTIONS.ADD_WORKOUT,(function(e,t){if(e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");var n=new FormData;n.append("file",t.file),n.append("data",'{"sport_id": '.concat(t.sport_id,', "notes": "').concat(t.notes,'"}')),Ic.post("workouts",n,{headers:{"content-type":"multipart/form-data"}}).then((function(t){if("created"===t.data.status){e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE);var n=t.data.data.workouts[0];hs.push(1===t.data.data.workouts.length?"/workouts/".concat(n.id):"/")}})).catch((function(t){Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(lc["a"])(gc,S["f"].ACTIONS.ADD_WORKOUT_WITHOUT_GPX,(function(e,t){e.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),Ic.post("workouts/no_gpx",t).then((function(t){if("created"===t.data.status){e.dispatch(S["a"].ACTIONS.GET_USER_PROFILE);var n=t.data.data.workouts[0];hs.push("/workouts/".concat(n.id))}})).catch((function(t){Object(Oc["b"])(e,t)})).finally((function(){return e.commit(S["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),gc),Oo=(kc={},Object(lc["a"])(kc,S["f"].GETTERS.CALENDAR_WORKOUTS,(function(e){return e.calendar_workouts})),Object(lc["a"])(kc,S["f"].GETTERS.TIMELINE_WORKOUTS,(function(e){return e.timeline_workouts})),Object(lc["a"])(kc,S["f"].GETTERS.USER_WORKOUTS,(function(e){return e.user_workouts})),Object(lc["a"])(kc,S["f"].GETTERS.WORKOUT_DATA,(function(e){return e.workoutData})),Object(lc["a"])(kc,S["f"].GETTERS.WORKOUTS_PAGINATION,(function(e){return e.pagination})),kc),bo=(vc={},Object(lc["a"])(vc,S["f"].MUTATIONS.ADD_TIMELINE_WORKOUTS,(function(e,t){e.timeline_workouts=e.timeline_workouts.concat(t)})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_CALENDAR_WORKOUTS,(function(e,t){e.calendar_workouts=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_TIMELINE_WORKOUTS,(function(e,t){e.timeline_workouts=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_USER_WORKOUTS,(function(e,t){e.user_workouts=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_WORKOUTS_PAGINATION,(function(e,t){e.pagination=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_WORKOUT,(function(e,t){e.workoutData.workout=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_WORKOUT_CHART_DATA,(function(e,t){e.workoutData.chartData=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_WORKOUT_GPX,(function(e,t){e.workoutData.gpx=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.SET_WORKOUT_LOADING,(function(e,t){e.workoutData.loading=t})),Object(lc["a"])(vc,S["f"].MUTATIONS.EMPTY_CALENDAR_WORKOUTS,(function(e){e.calendar_workouts=[]})),Object(lc["a"])(vc,S["f"].MUTATIONS.EMPTY_WORKOUTS,(function(e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]})),Object(lc["a"])(vc,S["f"].MUTATIONS.EMPTY_WORKOUT,(function(e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[]}})),vc),mo={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[]}},po={state:mo,actions:uo,getters:Oo,mutations:bo},Eo=po,fo={authUserModule:zc,sportsModule:Xc,statsModule:no,usersModule:io,workoutsModule:Eo},jo={state:Wc,actions:xc,getters:Gc,mutations:Fc,modules:fo},To=jo,So=Object(sc["a"])(To),_o=So,Ao=n("2909"),No=n("5530"),Ro=n("1556"),go=n("68c6"),ko=function(e){return Object(o["pushScopeId"])("data-v-c9d1f10c"),e=e(),Object(o["popScopeId"])(),e},vo={class:"timeline-workout"},Io={class:"box"},ho={class:"workout-user-date"},Co={class:"workout-user"},Do=["title"],yo={key:0},Uo={key:1,class:"no-map"},Po={class:"img"},Lo={class:"data"},Mo=ko((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)})),wo={key:0},Vo={class:"data"},Bo=ko((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)})),zo={key:0,class:"data elevation"},xo=["alt"],Go={class:"data-values"},Fo=Object(o["createTextVNode"])("/ "),Wo={key:1,class:"data altitude"},Ko=ko((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)})),$o={class:"data-values"},Ho=Object(o["createTextVNode"])(" +"),Yo=Object(o["createTextVNode"])("/- "),qo=Object(o["defineComponent"])({props:{user:null,useImperialUnits:{type:Boolean},workout:{default:function(){return{}}},sport:{default:function(){return{}}}},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.user,a=r.workout,i=r.sport,s=r.useImperialUnits,l=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.LOCALE]}));return function(e,t){var n=Object(o["resolveComponent"])("router-link"),r=Object(o["resolveComponent"])("SportImage"),u=Object(o["resolveComponent"])("Distance");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",vo,[Object(o["createElementVNode"])("div",Io,[Object(o["createElementVNode"])("div",ho,[Object(o["createElementVNode"])("div",Co,[Object(o["createVNode"])(T["a"],{user:Object(o["unref"])(c)},null,8,["user"]),Object(o["unref"])(c).username?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,class:"workout-user-name",to:{name:"User",params:{username:Object(o["unref"])(c).username}}},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["unref"])(c).username),1)]})),_:1},8,["to"])):Object(o["createCommentVNode"])("",!0)]),Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:Object(o["unref"])(a).id}}},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["unref"])(a).title),1)]})),_:1},8,["to"])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(a).workout_date&&Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:"workout-date",title:Object(o["unref"])(Ct["a"])(Object(o["unref"])(Pt["c"])(Object(o["unref"])(a).workout_date,Object(o["unref"])(c).timezone),"dd/MM/yyyy HH:mm")},Object(o["toDisplayString"])(Object(o["unref"])(Ro["a"])(new Date(Object(o["unref"])(a).workout_date),new Date,{addSuffix:!0,locale:Object(o["unref"])(l)})),9,Do)):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["workout-map",{"no-cursor":!Object(o["unref"])(a)}]),onClick:t[0]||(t[0]=function(t){return Object(o["unref"])(a).id?e.$router.push({name:"Workout",params:{workoutId:Object(o["unref"])(a).id}}):null})},[Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",yo,[Object(o["unref"])(a).with_gpx?(Object(o["openBlock"])(),Object(o["createBlock"])(go["a"],{key:0,workout:Object(o["unref"])(a)},null,8,["workout"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Uo,Object(o["toDisplayString"])(e.$t("workouts.NO_MAP")),1))])):Object(o["createCommentVNode"])("",!0)],2),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["workout-data",{"without-gpx":Object(o["unref"])(a)&&!Object(o["unref"])(a).with_gpx}]),onClick:t[1]||(t[1]=function(t){return Object(o["unref"])(a).id?e.$router.push({name:"Workout",params:{workoutId:Object(o["unref"])(a).id}}):null})},[Object(o["createElementVNode"])("div",Po,[Object(o["unref"])(i).label?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,"sport-label":Object(o["unref"])(i).label,color:Object(o["unref"])(i).color},null,8,["sport-label","color"])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",Lo,[Mo,Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",wo,Object(o["toDisplayString"])(Object(o["unref"])(a).moving),1)):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",Vo,[Bo,Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(u,{key:0,distance:Object(o["unref"])(a).distance,digits:3,unitFrom:"km",useImperialUnits:Object(o["unref"])(s)},null,8,["distance","useImperialUnits"])):Object(o["createCommentVNode"])("",!0)]),Object(o["unref"])(a)&&Object(o["unref"])(a).with_gpx?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",zo,[Object(o["createElementVNode"])("img",{class:"mountains",src:"/img/workouts/mountains.svg",alt:e.$t("workouts.ELEVATION")},null,8,xo),Object(o["createElementVNode"])("div",Go,[Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(u,{key:0,distance:Object(o["unref"])(a).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:Object(o["unref"])(s)},null,8,["distance","useImperialUnits"])):Object(o["createCommentVNode"])("",!0),Fo,Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(u,{key:1,distance:Object(o["unref"])(a).max_alt,unitFrom:"m",useImperialUnits:Object(o["unref"])(s)},null,8,["distance","useImperialUnits"])):Object(o["createCommentVNode"])("",!0)])])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(a)&&Object(o["unref"])(a).with_gpx?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Wo,[Ko,Object(o["createElementVNode"])("div",$o,[Ho,Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(u,{key:0,distance:Object(o["unref"])(a).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:Object(o["unref"])(s)},null,8,["distance","useImperialUnits"])):Object(o["createCommentVNode"])("",!0),Yo,Object(o["unref"])(a).id?(Object(o["openBlock"])(),Object(o["createBlock"])(u,{key:1,distance:Object(o["unref"])(a).descent,unitFrom:"m",useImperialUnits:Object(o["unref"])(s)},null,8,["distance","useImperialUnits"])):Object(o["createCommentVNode"])("",!0)])])):Object(o["createCommentVNode"])("",!0)],2)])])}}});n("4f8e");const Xo=p()(qo,[["__scopeId","data-v-c9d1f10c"]]);var Zo=Xo,Jo=n("1724"),Qo=n("9230"),ea={id:"timeline"},ta={class:"section-title"},na={key:0},ra={key:1},ca={key:1,class:"more-workouts"},oa=Object(o["defineComponent"])({props:{sports:null,user:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.sports,a=r.user,i=Object(o["ref"])(1),s=5,l=t.user.nb_workouts>=s?s:t.user.nb_workouts;Object(o["onBeforeMount"])((function(){return O()}));var u=Object(o["computed"])((function(){return n.getters[S["f"].GETTERS.TIMELINE_WORKOUTS]})),d=Object(o["computed"])((function(){return u.value.length>0&&null!==u.value[u.value.length-1].previous_workout}));function O(){n.dispatch(S["f"].ACTIONS.GET_TIMELINE_WORKOUTS,Object(No["a"])({page:i.value,per_page:s},Qo["a"]))}function b(){i.value+=1,n.dispatch(S["f"].ACTIONS.GET_MORE_TIMELINE_WORKOUTS,Object(No["a"])({page:i.value,per_page:s},Qo["a"]))}return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ea,[Object(o["createElementVNode"])("div",ta,Object(o["toDisplayString"])(e.$t("workouts.LATEST_WORKOUTS")),1),Object(o["unref"])(a).nb_workouts>0&&0===Object(o["unref"])(u).length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",na,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(Ao["a"])(Array(Object(o["unref"])(l)).keys()),(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(Zo,{user:Object(o["unref"])(a),useImperialUnits:Object(o["unref"])(a).imperial_units,key:e},null,8,["user","useImperialUnits"])})),128))])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ra,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(u),(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(Zo,{workout:e,sport:Object(o["unref"])(u).length>0?Object(o["unref"])(c).filter((function(t){return t.id===e.sport_id}))[0]:null,user:Object(o["unref"])(a),useImperialUnits:Object(o["unref"])(a).imperial_units,key:e.id},null,8,["workout","sport","user","useImperialUnits"])})),128)),0===Object(o["unref"])(u).length?(Object(o["openBlock"])(),Object(o["createBlock"])(Jo["a"],{key:0})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(d)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ca,[Object(o["createElementVNode"])("button",{onClick:b},Object(o["toDisplayString"])(e.$t("workouts.LOAD_MORE_WORKOUT")),1)])):Object(o["createCommentVNode"])("",!0)]))])}}});n("ba00");const aa=p()(oa,[["__scopeId","data-v-9ef2a9ac"]]);var ia=aa,sa=n("74b5"),la=n("a618"),ua=n("f7f1"),da=n("1ba4"),Oa=n("5888"),ba=n("4e31"),ma=(n("fb6a"),["title"]),pa=Object(o["defineComponent"])({props:{workout:null,sportLabel:null,sportColor:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.workout,c=n.sportLabel;return function(t,n){var a=Object(o["resolveComponent"])("SportImage");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"calendar-workout",onClick:n[0]||(n[0]=function(e){return t.$router.push({name:"Workout",params:{workoutId:Object(o["unref"])(r).id}})})},[Object(o["createVNode"])(a,{"sport-label":Object(o["unref"])(c),title:Object(o["unref"])(r).title,color:e.sportColor},null,8,["sport-label","title","color"]),Object(o["createElementVNode"])("sup",null,[Object(o["unref"])(r).records.length>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:Object(o["unref"])(r).records.map((function(e){return" ".concat(t.$t("workouts.RECORD_".concat(e.record_type)))}))},null,8,ma)):Object(o["createCommentVNode"])("",!0)])])}}});n("374b");const Ea=pa;var fa=Ea,ja=(n("4fad"),{class:"donut-chart"}),Ta={height:"34",width:"34",viewBox:"0 0 34 34"},Sa=["stroke","stroke-dashoffset","transform"],_a=Object(o["defineComponent"])({props:{colors:null,datasets:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.colors,c=n.datasets,a=-90,i=16,s=16,l=14,u=2*Math.PI*l;function d(e,t){return t-e*t}function O(e,t){var n="rotate(".concat(a,", ").concat(i,", ").concat(s,")");return a=360*t+a,n}return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ja,[(Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Ta,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object.entries(Object(o["unref"])(c)),(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("g",{key:t},[Object(o["createElementVNode"])("circle",{cx:i,cy:s,r:l,fill:"transparent",stroke:Object(o["unref"])(r)[+e[0]],"stroke-dashoffset":d(e[1].percentage,u),"stroke-dasharray":u,"stroke-width":"3","stroke-opacity":"0.8",transform:O(t,e[1].percentage)},null,8,Sa)])})),128))]))])}}});const Aa=_a;var Na=Aa,Ra={class:"calendar-workouts-chart"},ga={class:"workouts-count"},ka={key:0,class:"workouts-pane"},va={class:"more-workouts"},Ia=Object(o["defineComponent"])({props:{colors:null,datasets:null,sports:null,workouts:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.colors,c=n.datasets,a=n.sports,i=n.workouts,s=Object(o["ref"])(!0);function l(e){e.stopPropagation(),s.value=!s.value}return function(e,t){var n=Object(o["resolveDirective"])("click-outside");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ra,[Object(o["createElementVNode"])("div",{class:"workouts-chart",onClick:l},[Object(o["createElementVNode"])("div",ga,Object(o["toDisplayString"])(Object(o["unref"])(i).length),1),Object(o["createVNode"])(Na,{datasets:Object(o["unref"])(c),colors:Object(o["unref"])(r)},null,8,["datasets","colors"])]),s.value?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ka,[Object(o["withDirectives"])(Object(o["createElementVNode"])("div",va,[Object(o["createElementVNode"])("i",{class:"fa fa-times calendar-more","aria-hidden":"true",onClick:l}),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(i),(function(e,t){return Object(o["openBlock"])(),Object(o["createBlock"])(fa,{key:t,workout:e,sportLabel:Object(o["unref"])(at["b"])(e,Object(o["unref"])(a))},null,8,["workout","sportLabel"])})),128))],512),[[n,l]])]))])}}});n("9d02");const ha=p()(Ia,[["__scopeId","data-v-f372901a"]]);var Ca=ha,Da={class:"calendar-workouts"},ya={class:"desktop-display"},Ua={key:0,class:"workouts-display"},Pa={key:1,class:"donut-display"},La={class:"mobile-display"},Ma={key:0,class:"donut-display"},wa=Object(o["defineComponent"])({props:{workouts:null,sports:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.workouts,c=n.sports,a=Object(o["computed"])((function(){return Object(Qo["c"])(t.workouts)})),i=Object(o["computed"])((function(){return Object(at["d"])(t.sports)})),s=6;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Da,[Object(o["createElementVNode"])("div",ya,[Object(o["unref"])(r).length<=s?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ua,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(r).slice(0,s),(function(e,t){return Object(o["openBlock"])(),Object(o["createBlock"])(fa,{key:t,workout:e,sportLabel:Object(o["unref"])(at["b"])(e,Object(o["unref"])(c)),sportColor:Object(o["unref"])(at["a"])(e,Object(o["unref"])(c))},null,8,["workout","sportLabel","sportColor"])})),128))])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Pa,[Object(o["createVNode"])(Ca,{workouts:Object(o["unref"])(r),sports:Object(o["unref"])(c),datasets:Object(o["unref"])(a),colors:Object(o["unref"])(i)},null,8,["workouts","sports","datasets","colors"])]))]),Object(o["createElementVNode"])("div",La,[Object(o["unref"])(r).length>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ma,[Object(o["createVNode"])(Ca,{workouts:Object(o["unref"])(r),sports:Object(o["unref"])(c),datasets:Object(o["unref"])(a),colors:Object(o["unref"])(i)},null,8,["workouts","sports","datasets","colors"])])):Object(o["createCommentVNode"])("",!0)])])}}});n("e0d4");const Va=wa;var Ba=Va,za={class:"calendar-cells"},xa={class:"calendar-cell-day"},Ga=Object(o["defineComponent"])({props:{currentDay:null,endDate:null,sports:null,startDate:null,timezone:null,weekStartingMonday:{type:Boolean},workouts:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.currentDay,c=n.endDate,a=n.sports,i=n.startDate,s=n.timezone,l=n.weekStartingMonday,u=n.workouts,d=Object(o["ref"])([]);function O(){d.value=[];var e=i.value;while(e<=c.value){for(var t=[],n=0;n<7;n++)t.push(e),e=Object(ua["a"])(e,1);d.value.push(t)}}function b(e){return l.value?[5,6].includes(e):[0,6].includes(e)}function m(e,t){return t?t.filter((function(t){return Object(da["a"])(Object(Pt["c"])(t.workout_date,s),e)})).reverse():[]}return Object(o["onMounted"])((function(){return O()})),Object(o["watch"])((function(){return t.currentDay}),(function(){return O()})),function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",za,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(d.value,(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"calendar-row",key:t},[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e,(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(["calendar-cell",{"disabled-cell":!Object(o["unref"])(Oa["a"])(e,Object(o["unref"])(r)),"week-end":b(t),today:Object(o["unref"])(ba["a"])(e)}]),key:t},[Object(o["createVNode"])(Ba,{workouts:m(e,Object(o["unref"])(u)),sports:Object(o["unref"])(a)},null,8,["workouts","sports"]),Object(o["createElementVNode"])("div",xa,Object(o["toDisplayString"])(Object(o["unref"])(Ct["a"])(e,"d")),1)],2)})),128))])})),128))])}}});n("e4394");const Fa=Ga;var Wa=Fa,Ka={class:"calendar-days"},$a=Object(o["defineComponent"])({props:{startDate:null,localeOptions:null},setup:function(e){for(var t=e,n=[],r=0;r<7;r++)n.push(Object(ua["a"])(t.startDate,r));return function(t,r){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ka,[(Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(n,(function(t,n){return Object(o["createElementVNode"])("div",{class:"calendar-day",key:n},Object(o["toDisplayString"])(Object(o["unref"])(Ct["a"])(t,"EEE",{locale:e.localeOptions})),1)})),64))])}}});n("bbab");const Ha=$a;var Ya=Ha,qa={class:"calendar-header"},Xa=Object(o["createElementVNode"])("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1),Za=[Xa],Ja={class:"calendar-month"},Qa=Object(o["createElementVNode"])("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1),ei=[Qa],ti=Object(o["defineComponent"])({props:{day:null,localeOptions:null},emits:["displayNextMonth","displayPreviousMonth"],setup:function(e,t){var n=t.emit,r=e,c=Object(o["toRefs"])(r),a=c.day,i=c.localeOptions;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",qa,[Object(o["createElementVNode"])("div",{class:"calendar-arrow calendar-arrow-left",onClick:t[0]||(t[0]=function(e){return n("displayPreviousMonth")})},Za),Object(o["createElementVNode"])("div",Ja,[Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(Ct["a"])(Object(o["unref"])(a),"MMM yyyy",{locale:Object(o["unref"])(i)})),1)]),Object(o["createElementVNode"])("div",{class:"calendar-arrow calendar-arrow-right",onClick:t[1]||(t[1]=function(e){return n("displayNextMonth")})},ei)])}}});n("68cf");const ni=ti;var ri=ni,ci={id:"user-calendar"},oi={class:"calendar-card box"},ai=Object(o["defineComponent"])({props:{sports:null,user:null},setup:function(e){var t=e,n=Object(_["a"])(),r=Object(o["toRefs"])(t),c=r.sports,a=r.user,i="yyyy-MM-dd",s=Object(o["ref"])(new Date),l=Object(o["ref"])(Object(Pt["b"])(s.value,t.user.weekm)),u=Object(o["computed"])((function(){return n.getters[S["f"].GETTERS.CALENDAR_WORKOUTS]})),d=Object(o["computed"])((function(){return n.getters[S["b"].GETTERS.LOCALE]}));function O(){l.value=Object(Pt["b"])(s.value,t.user.weekm);var e=Object(No["a"])({from:Object(Ct["a"])(l.value.start,i),to:Object(Ct["a"])(l.value.end,i),page:1,per_page:100},Qo["a"]);n.dispatch(S["f"].ACTIONS.GET_CALENDAR_WORKOUTS,e)}function b(){s.value=Object(sa["a"])(s.value,1),O()}function m(){s.value=Object(la["a"])(s.value,1),O()}return Object(o["onBeforeMount"])((function(){return O()})),function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ci,[Object(o["createElementVNode"])("div",oi,[Object(o["createVNode"])(ri,{day:Object(o["unref"])(s),"locale-options":Object(o["unref"])(d),onDisplayNextMonth:b,onDisplayPreviousMonth:m},null,8,["day","locale-options"]),Object(o["createVNode"])(Ya,{"start-date":Object(o["unref"])(l).start,"locale-options":Object(o["unref"])(d)},null,8,["start-date","locale-options"]),Object(o["createVNode"])(Wa,{currentDay:Object(o["unref"])(s),"end-date":Object(o["unref"])(l).end,sports:Object(o["unref"])(c),"start-date":Object(o["unref"])(l).start,timezone:Object(o["unref"])(a).timezone,workouts:Object(o["unref"])(u),weekStartingMonday:Object(o["unref"])(a).weekm},null,8,["currentDay","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])])}}});n("11f9");const ii=ai;var si=ii,li=n("f628"),ui=n("8cac"),di=n("ec59"),Oi={class:"user-month-stats"},bi=Object(o["defineComponent"])({props:{sports:null,user:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.sports,c=n.user,a=new Date,i={duration:"week",start:Object(li["a"])(a),end:Object(ui["a"])(a)},s=t.sports.map((function(e){return e.id}));return function(e,t){var n=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Oi,[Object(o["createVNode"])(n,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("dashboard.THIS_MONTH")),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(di["a"],{sports:Object(o["unref"])(r),user:Object(o["unref"])(c),"chart-params":i,"displayed-sport-ids":Object(o["unref"])(s),"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])]})),_:1})])}}});n("7d95");const mi=p()(bi,[["__scopeId","data-v-1bcddc12"]]);var pi=mi,Ei=(n("4e82"),{class:"records-card"}),fi={class:"record-type"},ji={class:"record-value"},Ti={class:"record-date"},Si=Object(o["defineComponent"])({props:{records:null,sportTranslatedLabel:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.records,c=n.sportTranslatedLabel;return function(e,t){var n=Object(o["resolveComponent"])("SportImage"),a=Object(o["resolveComponent"])("router-link"),i=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ei,[Object(o["createVNode"])(i,null,{title:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(n,{"sport-label":Object(o["unref"])(r).label,color:Object(o["unref"])(r).color},null,8,["sport-label","color"]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(Object(o["unref"])(c)),1)]})),content:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(r).records,(function(t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"record",key:t.id},[Object(o["createElementVNode"])("span",fi,Object(o["toDisplayString"])(e.$t("workouts.RECORD_".concat(t.record_type))),1),Object(o["createElementVNode"])("span",ji,Object(o["toDisplayString"])(t.value),1),Object(o["createElementVNode"])("span",Ti,[Object(o["createVNode"])(a,{to:{name:"Workout",params:{workoutId:t.workout_id}}},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(t.workout_date),1)]})),_:2},1032,["to"])])])})),128))]})),_:1})])}}});n("b4bc");const _i=p()(Si,[["__scopeId","data-v-aee1f956"]]);var Ai=_i,Ni=(n("7db0"),n("6284")),Ri=function(e,t,n){var r,c="km",o=n?Ni["c"][c].defaultTarget:c;switch(e.record_type){case"AS":case"MS":r="".concat(Object(Ni["a"])(+e.value,c,o,2)," ").concat(o,"/h");break;case"FD":r="".concat(Object(Ni["a"])(+e.value,c,o,3)," ").concat(o);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(Pt["a"])(Object(Pt["c"])(e.workout_date,t)).workout_date,workout_id:e.workout_id,id:e.id,record_type:e.record_type,value:r}},gi=function(e,t,n,r){return e.reduce((function(e,c){var o=t.find((function(e){return e.id===c.sport_id}));return o&&o.label&&(void 0===e[o.translatedLabel]&&(e[o.translatedLabel]={label:o.label,color:o.color,records:[]}),e[o.translatedLabel].records.push(Ri(c,n,r))),e}),{})},ki=function(e){return Object(o["pushScopeId"])("data-v-ae25a82a"),e=e(),Object(o["popScopeId"])(),e},vi={class:"user-records-section"},Ii={class:"section-title"},hi=ki((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)})),Ci={class:"user-records"},Di={key:0,class:"no-records"},yi=Object(o["defineComponent"])({props:{sports:null,user:null},setup:function(e){var t=e,n=Object(j["b"])(),r=n.t,c=Object(o["computed"])((function(){return gi(t.user.records,Object(at["e"])(t.sports,r),t.user.timezone,t.user.imperial_units)}));return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",vi,[Object(o["createElementVNode"])("div",Ii,[hi,Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.$t("workouts.RECORD",2)),1)]),Object(o["createElementVNode"])("div",Ci,[0===Object.keys(Object(o["unref"])(c)).length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Di,Object(o["toDisplayString"])(t.$t("workouts.NO_RECORDS")),1)):Object(o["createCommentVNode"])("",!0),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object.keys(Object(o["unref"])(c)).sort(),(function(t){return Object(o["openBlock"])(),Object(o["createBlock"])(Ai,{sportTranslatedLabel:t,records:Object(o["unref"])(c)[t],key:t,useImperialUnits:e.user.imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"])})),128))])])}}});n("c53b");const Ui=p()(yi,[["__scopeId","data-v-ae25a82a"]]);var Pi=Ui,Li=(n("b680"),n("1276"),{id:"user-stats"}),Mi=Object(o["defineComponent"])({props:{user:null},setup:function(e){var t=e,n=Object(j["b"])(),r=n.t,c=Object(o["toRefs"])(t),a=c.user,i=Object(o["computed"])((function(){return t.user.total_duration})),s=Object(o["computed"])((function(){return O(i)})),l="km",u=a.value.imperial_units?Ni["c"][l].defaultTarget:l,d=a.value.imperial_units?Object(Ni["a"])(a.value.total_distance,l,u,2):parseFloat(a.value.total_distance.toFixed(2));function O(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 function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Li,[Object(o["createVNode"])(ze,{icon:"calendar",value:Object(o["unref"])(a).nb_workouts,text:e.$t("workouts.WORKOUT",Object(o["unref"])(a).nb_workouts)},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"road",value:Object(o["unref"])(d),text:"mi"===Object(o["unref"])(u)?"miles":Object(o["unref"])(u)},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"clock-o",value:Object(o["unref"])(s).days,text:Object(o["unref"])(s).duration},null,8,["value","text"]),Object(o["createVNode"])(ze,{icon:"tags",value:Object(o["unref"])(a).nb_sports,text:e.$t("workouts.SPORT",Object(o["unref"])(a).nb_sports)},null,8,["value","text"])])}}});n("e5d1");const wi=Mi;var Vi=wi,Bi=function(e){return Object(o["pushScopeId"])("data-v-2f390f91"),e=e(),Object(o["popScopeId"])(),e},zi={key:0,id:"dashboard",class:"view"},xi={class:"container mobile-menu"},Gi={class:"box"},Fi=Bi((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1)})),Wi=[Fi],Ki=Bi((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1)})),$i=[Ki],Hi=Bi((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1)})),Yi=[Hi],qi=Bi((function(){return Object(o["createElementVNode"])("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1)})),Xi=[qi],Zi={class:"container"},Ji={class:"container dashboard-container"},Qi={class:"left-container dashboard-sub-container"},es={class:"right-container dashboard-sub-container"},ts=Bi((function(){return Object(o["createElementVNode"])("div",{id:"bottom"},null,-1)})),ns={key:1,class:"app-loading"},rs=Object(o["defineComponent"])({setup:function(e){var t=Object(_["a"])(),n=Object(o["computed"])((function(){return t.getters[S["a"].GETTERS.AUTH_USER_PROFILE]})),r=Object(o["computed"])((function(){return t.getters[S["c"].GETTERS.SPORTS]})),c=Object(o["ref"])("calendar");function a(e){c.value=e}return function(e,t){var i=Object(o["resolveComponent"])("Loader");return Object(o["unref"])(n).username&&Object(o["unref"])(r).length>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",zi,[Object(o["createElementVNode"])("div",xi,[Object(o["createElementVNode"])("div",Gi,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["mobile-menu-item",{"is-selected":"calendar"===c.value}]),onClick:t[0]||(t[0]=function(e){return a("calendar")})},Wi,2),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["mobile-menu-item",{"is-selected":"chart"===c.value}]),onClick:t[1]||(t[1]=function(e){return a("chart")})},$i,2),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["mobile-menu-item",{"is-selected":"timeline"===c.value}]),onClick:t[2]||(t[2]=function(e){return a("timeline")})},Yi,2),Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(["mobile-menu-item",{"is-selected":"records"===c.value}]),onClick:t[3]||(t[3]=function(e){return a("records")})},Xi,2)])]),Object(o["createElementVNode"])("div",Zi,[Object(o["createVNode"])(Vi,{user:Object(o["unref"])(n)},null,8,["user"])]),Object(o["createElementVNode"])("div",Ji,[Object(o["createElementVNode"])("div",Qi,[Object(o["createVNode"])(pi,{sports:Object(o["unref"])(r),user:Object(o["unref"])(n),class:Object(o["normalizeClass"])({"is-hidden":!("chart"===c.value)})},null,8,["sports","user","class"]),Object(o["createVNode"])(Pi,{sports:Object(o["unref"])(r),user:Object(o["unref"])(n),class:Object(o["normalizeClass"])({"is-hidden":!("records"===c.value)})},null,8,["sports","user","class"])]),Object(o["createElementVNode"])("div",es,[Object(o["createVNode"])(si,{sports:Object(o["unref"])(r),user:Object(o["unref"])(n),class:Object(o["normalizeClass"])({"is-hidden":!("calendar"===c.value)})},null,8,["sports","user","class"]),Object(o["createVNode"])(ia,{sports:Object(o["unref"])(r),user:Object(o["unref"])(n),class:Object(o["normalizeClass"])({"is-hidden":!("timeline"===c.value)})},null,8,["sports","user","class"])])]),ts])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ns,[Object(o["createVNode"])(i)]))}}});n("3d56");const cs=p()(rs,[["__scopeId","data-v-2f390f91"]]);var os=cs,as=n("f7f9"),is={class:"not-found view"},ss=Object(o["defineComponent"])({setup:function(e){return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",is,[Object(o["createVNode"])(as["a"])])}}});const ls=ss;var us=ls,ds={id:"bike"},Os=["src"];function bs(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ds,[Object(o["createElementVNode"])("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,8,Os)])}n("dc71");const ms={},ps=p()(ms,[["render",bs],["__scopeId","data-v-39d425b4"]]);var Es=ps,fs=n("0395"),js={id:"loginOrRegister",class:"view"},Ts={class:"container"},Ss={class:"container-sub"},_s={class:"container-sub"},As=Object(o["defineComponent"])({props:{action:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.action;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",js,[Object(o["createElementVNode"])("div",Ts,[Object(o["createElementVNode"])("div",Ss,[Object(o["createVNode"])(Es)]),Object(o["createElementVNode"])("div",_s,[Object(o["createVNode"])(fs["a"],{action:Object(o["unref"])(r)},null,8,["action"])])])])}}});n("db41");const Ns=p()(As,[["__scopeId","data-v-6a38125b"]]);var Rs=Ns,gs=function(e){var t=/(\/profile)(\/edit)*(\/*)/,n=e.replace(t,"").toUpperCase();return""===n?"PROFILE":n.toUpperCase()},ks=[{path:"/",name:"Dashboard",component:os},{path:"/login",name:"Login",component:Rs,props:{action:"login"}},{path:"/register",name:"Register",component:Rs,props:{action:"register"}},{path:"/password-reset/sent",name:"PasswordEmailSent",component:function(){return n.e("reset").then(n.bind(null,"364c"))},props:{action:"request-sent"}},{path:"/password-reset/request",name:"PasswordResetRequest",component:function(){return n.e("reset").then(n.bind(null,"364c"))},props:{action:"reset-request"}},{path:"/password-reset/password-updated",name:"PasswordUpdated",component:function(){return n.e("reset").then(n.bind(null,"364c"))},props:{action:"password-updated"}},{path:"/password-reset",name:"PasswordReset",component:function(){return n.e("reset").then(n.bind(null,"364c"))},props:{action:"reset"}},{path:"/profile",name:"Profile",component:function(){return n.e("profile").then(n.bind(null,"36e8"))},children:[{path:"",name:"UserProfile",component:mn,props:function(e){return{tab:gs(e.path)}},children:[{path:"",name:"UserInfos",component:pn["a"]},{path:"preferences",name:"UserPreferences",component:Sn},{path:"sports",name:"UserSportPreferences",component:ic,props:{isEdition:!1}}]},{path:"edit",name:"UserProfileEdition",component:Rn,props:function(e){return{tab:gs(e.path)}},children:[{path:"",name:"UserInfosEdition",component:qn},{path:"picture",name:"UserPictureEdition",component:ir},{path:"preferences",name:"UserPreferencesEdition",component:yr},{path:"sports",name:"UserSportPreferencesEdition",component:ic,props:{isEdition:!0}}]}]},{path:"/statistics",name:"Statistics",component:function(){return n.e("statistics").then(n.bind(null,"ccb2"))}},{path:"/users/:username",name:"User",component:function(){return n.e("profile").then(n.bind(null,"ad3d"))}},{path:"/workouts",name:"Workouts",component:function(){return n.e("workouts").then(n.bind(null,"0385"))}},{path:"/workouts/:workoutId",name:"Workout",component:function(){return n.e("workouts").then(n.bind(null,"304a"))},props:{displaySegment:!1}},{path:"/workouts/:workoutId/edit",name:"EditWorkout",component:function(){return n.e("workouts").then(n.bind(null,"8ee9"))}},{path:"/workouts/:workoutId/segment/:segmentId",name:"WorkoutSegment",component:function(){return n.e("workouts").then(n.bind(null,"304a"))},props:{displaySegment:!0}},{path:"/workouts/add",name:"AddWorkout",component:function(){return n.e("workouts").then(n.bind(null,"692d"))}},{path:"/admin",name:"Administration",component:function(){return n.e("admin").then(n.bind(null,"89b3"))},children:[{path:"",name:"AdministrationMenu",component:ot},{path:"application",name:"ApplicationAdministration",component:De},{path:"application/edit",name:"ApplicationAdministrationEdition",component:De,props:{edition:!0}},{path:"sports",name:"SportsAdministration",component:ht},{path:"users",name:"UsersAdministration",component:tn}]},{path:"/:pathMatch(.*)*",name:"not-found",component:us}],vs=Object(le["a"])({history:Object(le["b"])("/"),routes:ks}),Is=["/login","/password-reset","/password-reset/password-updated","/password-reset/request","/password-reset/sent","/register"];vs.beforeEach((function(e,t,n){_o.dispatch(S["a"].ACTIONS.CHECK_AUTH_USER).then((function(){if(_o.getters[S["a"].GETTERS.IS_AUTHENTICATED]&&Is.includes(e.path))return n("/");if(_o.getters[S["a"].GETTERS.IS_AUTHENTICATED]||Is.includes(e.path))n();else{var t="/"===e.path?{path:"/login"}:{path:"/login",query:{from:e.fullPath}};n(t)}})).catch((function(e){console.error(e),n()}))}));var hs=vs,Cs={class:"alert-message"},Ds=["innerHTML"],ys=Object(o["defineComponent"])({props:{message:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.message;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Cs,[Object(o["createElementVNode"])("div",{innerHTML:e.$t(Object(o["unref"])(r))},null,8,Ds)])}}});n("268c");const Us=p()(ys,[["__scopeId","data-v-69d7e4ff"]]);var Ps=Us,Ls={class:"custom-textarea"},Ms=["id","name","maxLenght","disabled"],ws={class:"remaining-chars"},Vs=Object(o["defineComponent"])({props:{name:null,charLimit:{default:500},disabled:{type:Boolean,default:!1},input:{default:""}},emits:["updateValue"],setup:function(e,t){var n=t.emit,r=e,c=Object(o["ref"])("");function a(e){n("updateValue",e.target.value)}return Object(o["watch"])((function(){return r.input}),(function(e){c.value=e})),function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ls,[Object(o["withDirectives"])(Object(o["createElementVNode"])("textarea",{id:e.name,name:e.name,maxLenght:e.charLimit,disabled:e.disabled,"onUpdate:modelValue":n[0]||(n[0]=function(e){return Object(o["isRef"])(c)?c.value=e:c=e}),onInput:a},null,40,Ms),[[o["vModelText"],Object(o["unref"])(c)]]),Object(o["createElementVNode"])("div",ws,Object(o["toDisplayString"])(t.$t("workouts.REMAINING_CHARS"))+": "+Object(o["toDisplayString"])(Object(o["unref"])(c).length)+"/"+Object(o["toDisplayString"])(e.charLimit),1)])}}});n("f61d");const Bs=p()(Vs,[["__scopeId","data-v-3ec2aca2"]]);var zs=Bs,xs=Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(" ")+" "),Gs=Object(o["defineComponent"])({props:{distance:null,unitFrom:null,useImperialUnits:{type:Boolean},digits:{default:2},displayUnit:{type:Boolean,default:!0},speed:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.digits,c=n.displayUnit,a=n.distance,i=n.speed,s=n.strong,l=n.unitFrom,u=n.useImperialUnits,d=Object(o["computed"])((function(){return u.value?Ni["c"][l.value].defaultTarget:l.value})),O=Object(o["computed"])((function(){return u.value?Object(Ni["a"])(a.value,l.value,d.value,r.value):parseFloat(a.value.toFixed(r.value))}));return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,[Object(o["createElementVNode"])("span",{class:Object(o["normalizeClass"])(["distance",{strong:Object(o["unref"])(s)}])},Object(o["toDisplayString"])(Object(o["unref"])(O)),3),xs,Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:0,class:Object(o["normalizeClass"])(["unit",{strong:Object(o["unref"])(s)}])},Object(o["toDisplayString"])(Object(o["unref"])(d))+Object(o["toDisplayString"])(Object(o["unref"])(i)?"/h":""),3)):Object(o["createCommentVNode"])("",!0)],64)}}});n("9aea");const Fs=p()(Gs,[["__scopeId","data-v-f46ff1d6"]]);var Ws=Fs,Ks={class:"dropdown-wrapper"},$s={key:0,class:"dropdown-list"},Hs=["onClick"],Ys=Object(o["defineComponent"])({props:{options:null,selected:null},emits:{selected:function(e){return e}},setup:function(e,t){var n=t.emit,r=e,c=Object(le["c"])(),a=Object(o["ref"])(!1),i=r.options.map((function(e){return e}));function s(){a.value=!a.value}function l(e){n("selected",e),a.value=!1}return Object(o["watch"])((function(){return c.path}),(function(){return a.value=!1})),function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ks,[Object(o["createElementVNode"])("div",{class:"dropdown-selected",onClick:s},[Object(o["renderSlot"])(t.$slots,"default")]),Object(o["unref"])(a)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("ul",$s,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(i),(function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("li",{class:Object(o["normalizeClass"])(["dropdown-item",{selected:t.value===e.selected}]),key:n,onClick:function(e){return l(t)}},Object(o["toDisplayString"])(t.label),11,Hs)})),128))])):Object(o["createCommentVNode"])("",!0)])}}});n("55a6");const qs=p()(Ys,[["__scopeId","data-v-ca61364c"]]);var Xs=qs,Zs={class:"error-message"},Js={key:0},Qs={key:1},el=Object(o["defineComponent"])({props:{message:null},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.message;return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Zs,[Array.isArray(Object(o["unref"])(r))?(Object(o["openBlock"])(),Object(o["createElementBlock"])("ul",Js,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(r),(function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("li",{key:n},Object(o["toDisplayString"])(e.$t(t)),1)})),128))])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Qs,Object(o["toDisplayString"])(e.$t(Object(o["unref"])(r))),1))])}}});n("3a2a");const tl=p()(el,[["__scopeId","data-v-2659a79a"]]);var nl=tl,rl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve"},cl=Object(o["createElementVNode"])("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),ol=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M321.097,112.359c20.973,12.338,47.985,5.315,60.293-15.652c12.34-20.973,5.35-47.974-15.623-60.304\n\t\tc-21.009-12.332-47.99-5.317-60.314,15.65C293.129,73.036,300.103,100.027,321.097,112.359z"}),Object(o["createElementVNode"])("path",{d:"M393.081,264.102c-2.414,0-4.8,0.194-7.169,0.362l-14.431-71.605l4.702-1.757c10.666-3.987,16.093-15.868,12.098-26.54\n\t\tc-3.994-10.681-15.946-16.084-26.531-12.09l-51.823,19.38l-2.321-18.864c6.3-13.193,5.541-29.78-4.767-41.482\n\t\tc-21.224-24.092-47.12-12.508-55.191-5.976l-106.884,86.555l0.016,0.024c-3.319,2.893-6.089,6.485-7.86,10.842\n\t\tc-2.191,5.396-2.596,11.067-1.564,16.384c-8.503,0.669-15.255,7.571-15.255,16.246c0,9.085,7.346,16.44,16.432,16.48l-6.797,15.906\n\t\tc-8.62-2.465-17.674-3.866-27.066-3.866C44.27,264.102,0,308.354,0,362.754c0,54.403,44.27,98.663,98.668,98.663\n\t\tc54.403,0,98.652-44.26,98.652-98.663c0-36.228-19.683-67.867-48.858-85.024l10.957-25.652h17.767l60.281,24.462l-32.201,52.773\n\t\tc-8.297,13.612-3.994,31.382,9.615,39.685c4.691,2.86,9.878,4.229,15,4.229c9.729,0,19.234-4.929,24.677-13.838l29.339-48.095\n\t\tl19.072,11.511c-5.447,12.227-8.54,25.726-8.54,39.95c0,54.403,44.254,98.663,98.652,98.663c54.402,0,98.656-44.26,98.656-98.663\n\t\tC491.737,308.354,447.483,264.102,393.081,264.102z M98.668,436.671c-40.756,0-73.923-33.161-73.923-73.917\n\t\tc0-40.756,33.167-73.909,73.923-73.909c5.944,0,11.649,0.896,17.188,2.224l-20.476,47.893\n\t\tc-11.758,1.619-20.843,11.598-20.843,23.792c0,13.323,10.808,24.132,24.13,24.132c8.767,0,16.367-4.745,20.589-11.76h52.065\n\t\tC165.395,409.988,135.188,436.671,98.668,436.671z M171.322,350.383h-52.065c-0.355-0.588-0.708-1.176-1.112-1.732l20.476-47.901\n\t\tC155.679,311.776,167.793,329.595,171.322,350.383z M296.781,290.175l7.666-12.564c4.416-7.233,5.431-16.038,2.774-24.084\n\t\tc-2.661-8.046-8.718-14.515-16.562-17.704l-52.725-21.395l32.443-26.281l1.804,14.691c0.756,6.267,4.366,11.841,9.761,15.12\n\t\tc3.271,1.981,6.979,2.988,10.698,2.988c2.435,0,4.88-0.435,7.218-1.306l48.15-18.001l13.627,67.691\n\t\tc-18.268,6.162-34.117,17.51-45.848,32.314L296.781,290.175z M375.396,337.633l-38.003-22.94\n\t\tc7.877-9.118,17.787-16.319,29.205-20.734L375.396,337.633z M393.081,436.671c-40.757,0-73.907-33.161-73.907-73.917\n\t\tc0-9.544,1.965-18.597,5.268-26.983l44.541,26.888c0,0.032-0.016,0.064-0.016,0.095c0,13.323,10.808,24.132,24.114,24.132\n\t\tc13.322,0,24.118-10.81,24.118-24.132c0-10.478-6.721-19.307-16.06-22.64l-10.277-51.043c0.756-0.024,1.463-0.226,2.22-0.226\n\t\tc40.757,0,73.911,33.153,73.911,73.909C466.992,403.51,433.838,436.671,393.081,436.671z"})],-1),al=[cl,ol];function il(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",rl,al)}var sl={name:"CyclingSport"};const ll=p()(sl,[["render",il]]);var ul=ll,dl={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 491.737 491.737",style:{"enable-background":"new 0 0 491.737 491.737"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},Ol=Object(o["createElementVNode"])("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),bl=Object(o["createElementVNode"])("g",{id:"g147"},[Object(o["createElementVNode"])("path",{d:"m 189.097,82.359 c 20.97701,12.331184 47.97442,5.308784 60.293,-15.652 12.32942,-20.979222 5.35418,-47.981117 -15.623,-60.304 -21.00482,-12.3391184 -47.99,-5.317 -60.314,15.65 -12.324,20.983 -5.34599,47.967183 15.644,60.306 z",id:"path143"}),Object(o["createElementVNode"])("path",{d:"m 393.081,264.102 c -2.414,0 -4.8,0.194 -7.169,0.362 l -14.431,-71.605 4.702,-1.757 c 10.666,-3.987 16.093,-15.868 12.098,-26.54 -3.994,-10.681 -15.946,-16.084 -26.531,-12.09 l -63.05508,-1.53717 C 284.04753,137.09803 248.90259,106.55858 243.33317,101.62481 217.77732,75.090916 186.1698,85.012419 178.0988,91.544419 L 140.764,192.085 l 0.016,0.024 c -3.319,2.893 -6.089,6.485 -7.86,10.842 -2.191,5.396 -2.596,11.067 -1.564,16.384 -8.503,0.669 -15.255,7.571 -15.255,16.246 0,9.085 7.346,16.44 16.432,16.48 l -6.797,15.906 c -8.62,-2.465 -17.674,-3.866 -27.066,-3.866 C 44.27,264.102 0,308.354 0,362.754 c 0,54.403 44.27,98.663 98.668,98.663 54.403,0 98.652,-44.26 98.652,-98.663 0,-36.228 -19.683,-67.867 -48.858,-85.024 l 10.957,-25.652 h 17.767 l 60.281,24.462 -32.201,52.773 c -8.297,13.612 -3.994,31.382 9.615,39.685 4.691,2.86 9.878,4.229 15,4.229 9.729,0 19.234,-4.929 24.677,-13.838 l 29.339,-48.095 19.072,11.511 c -5.447,12.227 -8.54,25.726 -8.54,39.95 0,54.403 44.254,98.663 98.652,98.663 54.402,0 98.656,-44.26 98.656,-98.663 0,-54.401 -44.254,-98.653 -98.656,-98.653 z M 98.668,436.671 c -40.756,0 -73.923,-33.161 -73.923,-73.917 0,-40.756 33.167,-73.909 73.923,-73.909 5.944,0 11.649,0.896 17.188,2.224 L 95.38,338.962 c -11.758,1.619 -20.843,11.598 -20.843,23.792 0,13.323 10.808,24.132 24.13,24.132 8.767,0 16.367,-4.745 20.589,-11.76 h 52.065 c -5.926,34.862 -36.133,61.545 -72.653,61.545 z m 72.654,-86.288 h -52.065 c -0.355,-0.588 -0.708,-1.176 -1.112,-1.732 l 20.476,-47.901 c 17.058,11.026 29.172,28.845 32.701,49.633 z m 125.459,-60.208 7.666,-12.564 c 4.416,-7.233 5.431,-16.038 2.774,-24.084 -2.661,-8.046 -8.718,-14.515 -16.562,-17.704 l -73.83357,-31.7176 16.7558,-45.21274 c 10.36934,4.13303 41.82171,27.90767 45.77423,28.08592 3.271,1.981 8.57725,1.46711 12.29625,1.46711 2.435,0 18.50584,0.70472 20.84384,-0.16628 L 343.32113,188.03378 361.635,269.33 c -18.268,6.162 -34.117,17.51 -45.848,32.314 z m 78.615,47.458 -38.003,-22.94 c 7.877,-9.118 17.787,-16.319 29.205,-20.734 z m 17.685,99.038 c -40.757,0 -73.907,-33.161 -73.907,-73.917 0,-9.544 1.965,-18.597 5.268,-26.983 l 44.541,26.888 c 0,0.032 -0.016,0.064 -0.016,0.095 0,13.323 10.808,24.132 24.114,24.132 13.322,0 24.118,-10.81 24.118,-24.132 0,-10.478 -6.721,-19.307 -16.06,-22.64 l -10.277,-51.043 c 0.756,-0.024 1.463,-0.226 2.22,-0.226 40.757,0 73.911,33.153 73.911,73.909 -10e-4,40.756 -33.155,73.917 -73.912,73.917 z",id:"path145"})],-1),ml=[Ol,bl];function pl(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",dl,ml)}var El={name:"CyclingTransport"};const fl=p()(El,[["render",pl]]);var jl=fl,Tl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 463.507 463.507",style:{"enable-background":"new 0 0 463.507 463.507"},"xml:space":"preserve"},Sl=Object(o["createElementVNode"])("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),_l=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M246.413,78.492c21.688,0,39.255-17.573,39.255-39.251c0-21.67-17.567-39.24-39.255-39.24\n\t\tc-21.652,0-39.242,17.57-39.242,39.24C207.171,60.919,224.761,78.492,246.413,78.492z"}),Object(o["createElementVNode"])("path",{d:"M386.604,202.858c0-11.185-9.066-20.251-20.253-20.251h-68.479l-38.62-54.832l0.127-0.933\n\t\tc1.378-10.474-1.474-21.067-7.911-29.444c-6.441-8.378-15.932-13.852-26.408-15.23c-11.596-1.511-22.592,2.224-30.852,9.225V45.779\n\t\tc0-7.847-6.362-14.217-14.225-14.217H140.59c-7.867,0-14.225,6.37-14.225,14.217v168.953c0,20.68,15.821,37.476,35.979,39.446\n\t\tl-3.043,7.073l-23.859,90.136l-53.73,72.188c-8.006,10.768-5.794,25.987,4.984,34.001c4.348,3.245,9.443,4.811,14.491,4.811\n\t\tc7.422,0,14.729-3.385,19.511-9.795l56.529-75.945c1.851-2.484,3.213-5.299,4.003-8.289l16.266-61.414l44.521,40.877l-6.076,88.603\n\t\tc-0.917,13.393,9.177,24.99,22.58,25.908c0.552,0.04,1.124,0.056,1.691,0.056c12.66,0,23.339-9.819,24.208-22.642l6.882-100.264\n\t\tc0.508-7.364-2.371-14.572-7.815-19.564l-45.994-42.219l13.992-90.613l19.331,27.435c3.801,5.387,9.972,8.592,16.552,8.592h70.882\n\t\tl1.339,232.294c0,4.478,3.626,8.101,8.101,8.101c4.479,0,8.101-3.624,8.101-8.101l-1.339-234.036\n\t\tC381.588,218.245,386.604,211.15,386.604,202.858z"})],-1),Al=[Sl,_l];function Nl(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Tl,Al)}var Rl={name:"Hiking"};const gl=p()(Rl,[["render",Nl]]);var kl=gl,vl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"},Il=Object(o["createElementVNode"])("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),hl=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M149.951,67.997c15.711-7.143,22.739-25.675,15.596-41.416c-7.124-15.701-25.723-22.682-41.453-15.539\n\t\t\tc-15.721,7.134-22.702,25.752-15.578,41.444C115.679,68.216,134.23,75.14,149.951,67.997z"}),Object(o["createElementVNode"])("path",{d:"M87.517,89.072l-32.828,87.755c-1.979,5.967-1.683,12.594,1.1,18.733c4.055,8.922,12.604,14.525,21.755,15.271\n\t\t\tl76.873,6.244l29.137,64.184c4.122,9.046,14.832,13.148,23.906,9.017c9.075-4.131,13.072-14.859,8.951-23.944l-36.424-80.201\n\t\t\tc0,0-3.605-13.76-21.343-14.133l-43.873-2.572l21.009-55.166l31.671,20.588c5.584,3.663,10.997,3.682,15.1,1.722l55.051-24.997\n\t\t\tc17.069-7.755,6.952-30.036-10.108-22.29l-47.506,21.707l-53.55-34.846c0,0-11.638-8.013-24.241-2.285\n\t\t\tC102.205,73.858,91.112,77.243,87.517,89.072z"}),Object(o["createElementVNode"])("path",{d:"M423.687,182.488l-2.61,15.042c-2.123,12.154-13.35,25.092-25.092,28.888l-3.711,1.195\n\t\t\tc3.041-16.543,1.282-34.148-6.215-50.633c-19.498-42.974-70.094-61.87-112.943-42.419\n\t\t\tc-42.878,19.479-61.936,70.017-42.438,112.981c17.069,37.562,57.881,56.744,96.534,47.966l-0.784,1.415\n\t\t\tc-5.968,10.796-20.817,19.221-33.144,18.8l-17.892-0.622c-12.336-0.411-30.514,5.002-40.603,12.116l-22.376,15.759\n\t\t\tc-10.107,7.104-28.276,12.632-40.612,12.354l-12.001-0.277c12.718-22.845,14.889-51.159,3.242-76.806\n\t\t\tc-19.517-42.955-70.074-61.879-113.019-42.381c-42.792,19.44-61.87,70.007-42.372,112.933\n\t\t\tc16.667,36.711,56.084,55.788,93.914,48.444l-1.32,2.056c-6.675,10.385-22.08,18.398-34.406,17.92l-32.79-1.291\n\t\t\tc-12.326-0.497-24.021,8.97-26.096,21.143l-2.62,15.339c-0.564,3.271-0.354,6.11,0.401,8.501c-0.43,1.778-0.736,3.548-0.736,5.326\n\t\t\tv9.562c0,10.557,8.568,19.125,19.125,19.125h460.932c10.557,0,19.115-8.568,19.106-19.125l-0.125-167.507\n\t\t\tc0-2.782-0.593-5.221-1.616-7.286c1.396-3.806,2.057-7.841,1.598-11.839l-4.677-40.497c-1.415-12.249-9.763-29.146-18.637-37.724\n\t\t\tl-36.127-34.951C434.712,167.418,425.79,170.325,423.687,182.488z"})])],-1),Cl=[Il,hl];function Dl(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",vl,Cl)}var yl={name:"MountainBiking"};const Ul=p()(yl,[["render",Dl]]);var Pl=Ul,Ll={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 503.162 503.162",style:{"enable-background":"new 0 0 503.162 503.162"},"xml:space":"preserve"},Ml=Object(o["createStaticVNode"])(' silhouette of a person riding an electric mountain bike ',18),wl=[Ml];function Vl(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Ll,wl)}var Bl={name:"MountainBikingElectric"};const zl=p()(Bl,[["render",Vl]]);var xl=zl,Gl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 534.51 534.51",style:{"enable-background":"new 0 0 534.51 534.51"},"xml:space":"preserve"},Fl=Object(o["createElementVNode"])("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),Wl=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M70.517,393.857h132.622l-67.205,68.631c-3.28,3.385-3.204,8.797,0.172,12.076c1.597,1.568,3.72,2.43,5.958,2.43\n\t\t\tc2.305,0,4.533-0.947,6.12-2.572l78.881-80.555h221.315c12.45,0,30.676-6.006,40.296-13.914\n\t\t\tc8.788-7.229,19.049-16.217,26.345-24.299c10.375-9.811,22.214-23.639-4.255-22.834c-6.98,0.248-206.789,0.02-223.926,0\n\t\t\tl47.144-48.139l22.176-22.032l28.209,9.17c10.414,3.385,22.472-0.803,26.919-9.362c4.446-8.558,0.268-18.407-9.343-21.993\n\t\t\tl-17.404-6.512l54.698-54.774c12.507,6.617,28.362,4.867,38.899-5.671l46.541-46.607c13.11-13.015,13.11-33.957,0-46.923\n\t\t\tc-12.909-13.034-34.042-13.034-46.942,0l-46.512,46.598c-10.892,10.815-12.508,27.139-5.26,39.742l-57.853,59.077L253.744,183.09\n\t\t\tc-1.482-0.851-14.153-5.786-26.833-10.643c-14.898-5.719-30.371,0.583-34.53,13.971l-7.525,24.241l-35.324,118.451\n\t\t\tc-0.468,1.34-0.603,2.562-0.746,3.711H14.136c-12.45,0-17.662,8.836-11.618,19.727l23.237,21.592\n\t\t\tC39.123,385.068,58.066,393.857,70.517,393.857z M272.63,248.727c1.797-5.967,8.099-9.39,14.075-7.64l51.37,14.975l-33.038,33.737\n\t\t\tl-43.453,43.012h-14.2L272.63,248.727z"}),Object(o["createElementVNode"])("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1),Kl=[Fl,Wl];function $l(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Gl,Kl)}var Hl={name:"Rowing"};const Yl=p()(Hl,[["render",$l]]);var ql=Yl,Xl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve"},Zl=Object(o["createElementVNode"])("desc",{id:"runningDescription"},"silhouette of a running person",-1),Jl=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M282.74,80.771c22.318,0,40.401-18.08,40.401-40.389C323.141,18.084,305.058,0,282.74,0\n\t\tc-22.281,0-40.378,18.084-40.378,40.383C242.362,62.691,260.458,80.771,282.74,80.771z"}),Object(o["createElementVNode"])("path",{d:"M400.207,188.547H331.47l-38.766-55.03l0.123-0.944c1.384-10.514-1.475-21.146-7.94-29.556\n\t\tc-6.461-8.409-16.007-13.903-26.52-15.287c-10.926-1.429-22.619,3.12-31.206,8.646c-1.441,0.928-84.97,54.921-84.97,54.921\n\t\tc-5.175,3.358-8.542,8.877-9.165,15.016c-0.634,6.13,1.574,12.222,5.976,16.541l58.982,58l-6.417,48.954l-18.707,65.584l-67.8-19.4\n\t\tc-12.911-3.676-26.44,3.796-30.159,16.747c-3.699,12.951,3.799,26.459,16.758,30.168l91.271,26.109\n\t\tc2.192,0.627,4.444,0.936,6.7,0.936c4.113,0,8.195-1.04,11.848-3.073c5.655-3.146,9.833-8.409,11.611-14.635l21.963-77.057\n\t\tl26.365,36.639l6.684,119.628c0.73,12.991,11.501,23.036,24.349,23.036c0.441,0,0.92-0.016,1.379-0.039\n\t\tc13.453-0.748,23.745-12.262,23-25.713l-7.083-126.736c-0.271-4.643-1.846-9.116-4.56-12.887l-32.24-44.811l11.959-91.279\n\t\tl19.409,27.555c3.794,5.407,10.005,8.624,16.613,8.624h79.28c11.226,0,20.326-9.101,20.326-20.329\n\t\tC420.533,197.647,411.432,188.547,400.207,188.547z M204.606,190.357l-19.026-18.717l23.476-15.206L204.606,190.357z"})],-1),Ql=[Zl,Jl];function eu(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Xl,Ql)}var tu={name:"Running"};const nu=p()(tu,[["render",eu]]);var ru=nu,cu={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 522.362 522.362",style:{"enable-background":"new 0 0 522.362 522.362"},"xml:space":"preserve"},ou=Object(o["createElementVNode"])("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),au=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M14.314,351.859L408.088,461.78c4.484,1.311,9.104,1.97,13.731,1.97l0,0c17.471,0,33.746-9.429,42.467-24.604\n\t\t\tc2.716-4.724,3.137-10.27,1.157-15.214c-1.912-4.762-5.767-8.31-10.576-9.744c-7.373-2.237-15.481,1.109-22.146,9.229\n\t\t\tc-3.548,4.303-9.496,6.244-15.07,4.714l-136.467-38.078c1.396-0.555,2.812-1.195,4.236-2.065l103.266-63.15\n\t\t\tc15.443-9.362,18.493-33.957,7.812-43.883l-64.758-60.233l39.972-21.688l69.682,9.744c5.23,0.736,9.744-2.037,10.079-6.187\n\t\t\tc0.344-4.141-3.624-8.1-8.855-8.826l-48.605-6.828l22.472-12.192c39.895-23.275,5.823-85.192-35.334-63.112l-87.554,61.19\n\t\t\tl-117.503-16.515l2.543-12.087c0.545-2.582-1.109-5.116-3.691-5.661c-2.572-0.593-5.116,1.1-5.661,3.701l-2.678,12.709\n\t\t\tl-18.331-2.582c-5.231-0.727-9.467,2.123-9.467,6.369s4.236,8.281,9.467,9.017l15.176,2.123l-2.544,12.087\n\t\t\tc-0.545,2.582,1.109,5.125,3.691,5.671c0.334,0.076,0.66,0.105,0.994,0.105c2.209,0,4.198-1.54,4.676-3.787l2.678-12.737\n\t\t\tl102.414,14.315l-5.308,3.72c-4.332,3.022-10.155,9.151-11.723,14.201c-3.844,12.45-1.473,26.717,10.452,37.705l68.802,62.175\n\t\t\tc0,0-50.978,31.776-74.998,46.397c-14.219,8.606-13.674,23.858-6.129,33.393L23.705,318.199\n\t\t\tc-10.012-2.792-20.569,2.554-23.113,11.695C-2,339.169,4.159,349.029,14.314,351.859z"}),Object(o["createElementVNode"])("path",{d:"M450.842,72.003c-15.291,16.715-14.201,42.667,2.639,58.121c16.706,15.31,42.716,14.086,58.073-2.668\n\t\t\tc15.386-16.677,14.172-42.734-2.544-58.016C492.305,54.064,466.17,55.192,450.842,72.003z"})])],-1),iu=[ou,au];function su(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",cu,iu)}var lu={name:"SkiingAlpine"};const uu=p()(lu,[["render",su]]);var du=uu,Ou={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 296 296",style:{"enable-background":"new 0 0 296 296"},"xml:space":"preserve"},bu=Object(o["createElementVNode"])("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),mu=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M241.313,246.906h-39.564l0.456-1.273c5.62-18.374,3.479-37.58-6.027-54.278c-5.653-9.929-13.443-18.018-22.745-23.959\n\t\tl12.886-51.126c3.035-12.05-4.272-24.266-16.322-27.301c-2.634-0.664-5.278-0.826-7.833-0.559\n\t\tc-0.151-0.011-0.299-0.032-0.452-0.038c-26.03-1.077-51.443,8.485-70.33,25.993L41.586,82.855\n\t\tc-4.332-2.741-10.065-1.451-12.806,2.881s-1.451,10.065,2.88,12.806l47.625,30.136c-2.557,6.013-0.962,13.224,4.375,17.531\n\t\tc2.774,2.24,6.104,3.33,9.413,3.33c4.377-0.001,8.717-1.907,11.68-5.579l0.478-0.591c8.686-10.766,20.465-18.479,33.484-22.317\n\t\tl-11.095,44.046c-1.061,4.214-0.854,8.448,0.374,12.305c-12.908,17.917-28.398,33.68-46.198,46.979l-14.649,10.727\n\t\tc-3.938,2.943-6.001,7.798-6.005,11.798H8.25c-4.556,0-8.083,4.131-8.083,8.688v2.063c0,4.556,3.527,8.25,8.083,8.25h55.188\n\t\th161.375H280c9.113,0,16.167-7.387,16.167-16.5v-2.5H241.313z M153.974,192.398c0.741-0.153,1.471-0.231,2.188-0.457\n\t\tc5.742,3.406,10.53,8.313,13.945,14.311c5.378,9.447,6.59,20.402,3.41,30.797l-1.799,5.674c-0.447,1.461-0.656,3.184-0.657,4.184\n\t\th-69.909C121.581,231.906,139.297,213.274,153.974,192.398z M167,57.938c0-15.378,12.466-27.844,27.844-27.844\n\t\ts27.844,12.466,27.844,27.844s-12.466,27.844-27.844,27.844S167,73.315,167,57.938z"})],-1),pu=[bu,mu];function Eu(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Ou,pu)}var fu={name:"SkiingCrossCountry"};const ju=p()(fu,[["render",Eu]]);var Tu=ju,Su={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"},_u=Object(o["createElementVNode"])("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),Au=Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("g",null,[Object(o["createElementVNode"])("path",{d:"M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775\n\t\t\th-16.753c-12.346,0-29.645,6.847-38.643,15.29l-32.35,30.342l-1.233-105.388c0.822-18.446-10.596-24.634-10.596-24.634\n\t\t\tl-56.543-25.972l33.67-67.645l38.527,22.912c0,0,15.472,9.715,26.727-9.324l37.026-63.093c1.625-3.519,2.094-7.564,1.052-11.609\n\t\t\tc-2.381-9.256-11.81-14.86-21.095-12.479c-4.083,1.042-7.459,3.49-9.754,6.713l-30.772,51.962l-62.777-37.102\n\t\t\tc-4.733-2.716-10.519-3.691-16.257-2.209l-78.345,20.12c-5.03,1.291-8.96,4.762-11.017,9.142l-38.097,76.165\n\t\t\tc-2.591,3.854-3.624,8.73-2.371,13.607c2.285,8.941,11.456,14.363,20.435,12.059c5.04-1.291,8.951-4.743,10.997-9.161\n\t\t\tl35.314-70.858l28.936-7.296l-76.203,149.921l-65.981,16.734c-1.759,0.393-3.48,1.023-5.163,1.836\n\t\t\tc-10.596,5.412-14.679,18.179-9.267,28.803c4.733,9.266,15.252,13.636,24.901,10.978l78.067-20.187\n\t\t\tc18.6-4.093,23.313-14.449,23.313-14.449l30.581-58.79l62.28,35.678l0.593,86.216c0.01,1.08,0.259,2.161,0.421,3.241l-11.6-4.188\n\t\t\tc-11.608-4.188-30.57-4.608-42.361-0.956l-26.135,8.128c-11.79,3.663-30.791,3.338-42.447-0.717l-19.221-6.694\n\t\t\tc-11.657-4.054-28.831-0.984-38.374,6.838L109.9,433.954c-9.544,7.822-26.67,10.72-38.25,6.483L40.84,429.135\n\t\t\tc-11.58-4.256-25.608,1.157-31.336,12.097l-7.21,13.789c-5.728,10.93-0.354,19.794,11.982,19.794H500.27\n\t\t\tc12.336,0,24.309-9.802,26.728-21.907l8.004-39.981c2.409-12.097-0.325-30.733-6.14-41.616L505.204,326.949z"}),Object(o["createElementVNode"])("path",{d:"M326.395,126.625c17.806-4.562,28.563-22.721,23.983-40.526c-4.581-17.844-22.74-28.554-40.555-23.983\n\t\t\tc-17.796,4.581-28.535,22.711-23.964,40.535C290.439,120.476,308.599,131.205,326.395,126.625z"})])],-1),Nu=[_u,Au];function Ru(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Su,Nu)}var gu={name:"Trail"};const ku=p()(gu,[["render",Ru]]);var vu=ku,Iu={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},hu=Object(o["createStaticVNode"])('silhouette of a walking person',3),Cu=[hu];function Du(e,t,n,r,c,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Iu,Cu)}var yu={name:"Walking"};const Uu=p()(yu,[["render",Du]]);var Pu=Uu,Lu=["title"],Mu=Object(o["defineComponent"])({props:{sportLabel:null,color:null,title:{default:""}},setup:function(e){var t=e,n=Object(o["toRefs"])(t),r=n.color,c=n.sportLabel,a=n.title,i=Object(o["inject"])("sportColors");return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"sport-img",style:Object(o["normalizeStyle"])({fill:Object(o["unref"])(r)?Object(o["unref"])(r):Object(o["unref"])(i)[Object(o["unref"])(c)]}),title:Object(o["unref"])(a)?Object(o["unref"])(a):e.$t("sports.".concat(Object(o["unref"])(c),".LABEL"))},["Cycling (Sport)"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(ul,{key:0})):Object(o["createCommentVNode"])("",!0),"Cycling (Transport)"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(jl,{key:1})):Object(o["createCommentVNode"])("",!0),"Hiking"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(kl,{key:2})):Object(o["createCommentVNode"])("",!0),"Mountain Biking"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(Pl,{key:3})):Object(o["createCommentVNode"])("",!0),"Mountain Biking (Electric)"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(xl,{key:4})):Object(o["createCommentVNode"])("",!0),"Rowing"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(ql,{key:5})):Object(o["createCommentVNode"])("",!0),"Running"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(ru,{key:6})):Object(o["createCommentVNode"])("",!0),"Skiing (Alpine)"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(du,{key:7})):Object(o["createCommentVNode"])("",!0),"Skiing (Cross Country)"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(Tu,{key:8})):Object(o["createCommentVNode"])("",!0),"Trail"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(vu,{key:9})):Object(o["createCommentVNode"])("",!0),"Walking"===Object(o["unref"])(c)?(Object(o["openBlock"])(),Object(o["createBlock"])(Pu,{key:10})):Object(o["createCommentVNode"])("",!0)],12,Lu)}}});const wu=Mu;var Vu=wu,Bu={class:"loader"};function zu(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Bu)}n("3306");const xu={},Gu=p()(xu,[["render",zu],["__scopeId","data-v-4c9921ee"]]);var Fu=Gu,Wu={id:"modal"},Ku={class:"custom-modal"},$u={key:0,class:"modal-message"},Hu={key:1,class:"modal-message"},Yu={class:"modal-buttons"},qu=Object(o["defineComponent"])({props:{title:null,message:null,strongMessage:{default:function(){return null}}},emits:["cancelAction","confirmAction"],setup:function(e,t){var n=t.emit,r=e,c=Object(_["a"])(),a=Object(o["toRefs"])(r),i=a.title,s=a.message,l=a.strongMessage,u=Object(o["computed"])((function(){return c.getters[S["b"].GETTERS.ERROR_MESSAGES]}));return Object(o["onUnmounted"])((function(){return c.commit(S["b"].MUTATIONS.EMPTY_ERROR_MESSAGES)})),function(e,t){var r=Object(o["resolveComponent"])("i18n-t"),c=Object(o["resolveComponent"])("ErrorMessage"),a=Object(o["resolveComponent"])("Card");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Wu,[Object(o["createElementVNode"])("div",Ku,[Object(o["createVNode"])(a,null,{title:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Object(o["unref"])(i)),1)]})),content:Object(o["withCtx"])((function(){return[Object(o["unref"])(l)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",$u,[Object(o["createVNode"])(r,{keypath:Object(o["unref"])(s)},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(l)),1)]})),_:1},8,["keypath"])])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Hu,Object(o["toDisplayString"])(Object(o["unref"])(s)),1)),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])(c,{key:2,message:Object(o["unref"])(u)},null,8,["message"])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",Yu,[Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("button",{key:0,class:"confirm",onClick:t[0]||(t[0]=function(e){return n("confirmAction")})},Object(o["toDisplayString"])(e.$t("buttons.YES")),1)),Object(o["createElementVNode"])("button",{class:"cancel",onClick:t[1]||(t[1]=function(e){return n("cancelAction")})},Object(o["toDisplayString"])(e.$t("buttons.".concat(Object(o["unref"])(u)?"CANCEL":"NO"))),1)])]})),_:1})])])}}});n("9303");const Xu=p()(qu,[["__scopeId","data-v-e8fcfaba"]]);var Zu=Xu,Ju=[{target:Ps,name:"AlertMessage"},{target:Ze,name:"Card"},{target:zs,name:"CustomTextArea"},{target:Ws,name:"Distance"},{target:Xs,name:"Dropdown"},{target:nl,name:"ErrorMessage"},{target:Fu,name:"Loader"},{target:Zu,name:"Modal"},{target:Vu,name:"SportImage"}],Qu={mounted:function(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent),document.body.addEventListener("touchstart",e.clickOutsideEvent)},unmounted:function(e){e.clickOutsideEvent&&(document.body.removeEventListener("click",e.clickOutsideEvent),document.body.removeEventListener("touchstart",e.clickOutsideEvent),e.clickOutsideEvent=void 0)}};r["Chart"].register(r["BarElement"],r["LineElement"],r["PointElement"],r["Legend"],r["Title"],r["Tooltip"],r["Filler"],r["BarController"],r["CategoryScale"],r["LineController"],r["LinearScale"],c["a"]);var ed=Object(o["createApp"])(se).provide("sportColors",at["c"]).use(g).use(_o).use(hs).directive("click-outside",Qu);Ju.forEach((function(e){ed.component(e.name,e.target)})),ed.mount("#app")},d08c:function(e,t,n){},d23c:function(e,t,n){},d257:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return o}));n("caad"),n("2532"),n("d81d"),n("4de4"),n("d3b7"),n("ac1f"),n("1276");var r=n("dad5"),c=function(){return"/api/"},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"UNKNOWN",c=t?t.response?413===t.response.status?"file size is greater than the allowed size":t.response.data.message?t.response.data.message:n:t.message?t.message:n:n;e.commit(r["b"].MUTATIONS.SET_ERROR_MESSAGES,c.includes("\n")?c.split("\n").filter((function(e){return""!==e})).map((function(e){return"api.ERROR.".concat(e)})):"api.ERROR.".concat(c))}},d4e1:function(e,t,n){"use strict";n("f59f")},d669:function(e,t,n){"use strict";n("6fd8")},dad5:function(e,t,n){"use strict";var r,c,o,a,i,s,l,u,d,O,b,m,p,E,f;n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return _})),n.d(t,"a",(function(){return A})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return R})),function(e){e["CHECK_AUTH_USER"]="CHECK_AUTH_USER",e["DELETE_ACCOUNT"]="DELETE_ACCOUNT",e["DELETE_PICTURE"]="DELETE_PICTURE",e["GET_USER_PROFILE"]="GET_USER_PROFILE",e["LOGIN_OR_REGISTER"]="LOGIN_OR_REGISTER",e["LOGOUT"]="LOGOUT",e["SEND_PASSWORD_RESET_REQUEST"]="SEND_PASSWORD_RESET_REQUEST",e["RESET_USER_PASSWORD"]="RESET_USER_PASSWORD",e["UPDATE_USER_PICTURE"]="UPDATE_USER_PICTURE",e["UPDATE_USER_PROFILE"]="UPDATE_USER_PROFILE",e["UPDATE_USER_PREFERENCES"]="UPDATE_USER_PREFERENCES",e["UPDATE_USER_SPORT_PREFERENCES"]="UPDATE_USER_SPORT_PREFERENCES"}(r||(r={})),function(e){e["AUTH_TOKEN"]="AUTH_TOKEN",e["AUTH_USER_PROFILE"]="AUTH_USER_PROFILE",e["IS_ADMIN"]="IS_ADMIN",e["IS_AUTHENTICATED"]="IS_AUTHENTICATED",e["USER_LOADING"]="USER_LOADING"}(c||(c={})),function(e){e["CLEAR_AUTH_USER_TOKEN"]="CLEAR_AUTH_USER_TOKEN",e["UPDATE_AUTH_TOKEN"]="UPDATE_AUTH_TOKEN",e["UPDATE_AUTH_USER_PROFILE"]="UPDATE_AUTH_USER_PROFILE",e["UPDATE_USER_LOADING"]="UPDATE_USER_LOADING"}(o||(o={})),function(e){e["GET_APPLICATION_CONFIG"]="GET_APPLICATION_CONFIG",e["GET_APPLICATION_STATS"]="GET_APPLICATION_STATS",e["UPDATE_APPLICATION_CONFIG"]="UPDATE_APPLICATION_CONFIG"}(a||(a={})),function(e){e["APP_CONFIG"]="APP_CONFIG",e["APP_LOADING"]="APP_LOADING",e["APP_STATS"]="APP_STATS",e["ERROR_MESSAGES"]="ERROR_MESSAGES",e["LANGUAGE"]="LANGUAGE",e["LOCALE"]="LOCALE"}(i||(i={})),function(e){e["EMPTY_ERROR_MESSAGES"]="EMPTY_ERROR_MESSAGES",e["SET_ERROR_MESSAGES"]="SET_ERROR_MESSAGES",e["UPDATE_APPLICATION_CONFIG"]="UPDATE_APPLICATION_CONFIG",e["UPDATE_APPLICATION_LOADING"]="UPDATE_APPLICATION_LOADING",e["UPDATE_APPLICATION_STATS"]="UPDATE_APPLICATION_STATS",e["UPDATE_LANG"]="UPDATE_LANG"}(s||(s={})),function(e){e["GET_SPORTS"]="GET_SPORTS",e["UPDATE_SPORTS"]="UPDATE_SPORTS"}(l||(l={})),function(e){e["SPORTS"]="SPORTS"}(u||(u={})),function(e){e["SET_SPORTS"]="SET_SPORTS"}(d||(d={})),function(e){e["GET_USER_STATS"]="GET_USER_STATS"}(O||(O={})),function(e){e["USER_STATS"]="USER_STATS"}(b||(b={})),function(e){e["EMPTY_USER_STATS"]="EMPTY_USER_STATS",e["UPDATE_USER_STATS"]="UPDATE_USER_STATS"}(m||(m={})),function(e){e["EMPTY_USER"]="EMPTY_USER",e["EMPTY_USERS"]="EMPTY_USERS",e["GET_USER"]="GET_USER",e["GET_USERS"]="GET_USERS",e["UPDATE_USER"]="UPDATE_USER",e["DELETE_USER_ACCOUNT"]="DELETE_USER_ACCOUNT"}(p||(p={})),function(e){e["USER"]="USER",e["USERS"]="USERS",e["USERS_LOADING"]="USERS_LOADING",e["USERS_PAGINATION"]="USERS_PAGINATION"}(E||(E={})),function(e){e["UPDATE_USER"]="UPDATE_USER",e["UPDATE_USER_IN_USERS"]="UPDATE_USER_IN_USERS",e["UPDATE_USERS"]="UPDATE_USERS",e["UPDATE_USERS_LOADING"]="UPDATE_USERS_LOADING",e["UPDATE_USERS_PAGINATION"]="UPDATE_USERS_PAGINATION"}(f||(f={}));var j=n("4870"),T={ACTIONS:a,GETTERS:i,MUTATIONS:s},S={ACTIONS:l,GETTERS:u,MUTATIONS:d},_={ACTIONS:O,GETTERS:b,MUTATIONS:m},A={ACTIONS:r,GETTERS:c,MUTATIONS:o},N={ACTIONS:p,GETTERS:E,MUTATIONS:f},R={ACTIONS:j["a"],GETTERS:j["b"],MUTATIONS:j["c"]}},db41:function(e,t,n){"use strict";n("7826")},dbf1:function(e,t,n){},dc71:function(e,t,n){"use strict";n("c57d")},e0d4:function(e,t,n){"use strict";n("6e30")},e4394:function(e,t,n){"use strict";n("c651")},e5d1:function(e,t,n){"use strict";n("f980")},e7b6:function(e,t,n){var r={"./en/en.ts":"c142","./fr/fr.ts":"663e"};function c(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}c.keys=function(){return Object.keys(r)},c.resolve=o,e.exports=c,c.id="e7b6"},e806:function(e,t,n){"use strict";n("538d")},ec59:function(e,t,n){"use strict";var r=n("7a23"),c={class:"start-chart"},o={key:0},a={key:1},i={class:"chart-radio"},s=["checked"],l=["checked"],u=["checked"],d={key:0},O=["checked"],b={key:1},m=["checked"],p={key:2},E=["checked"];function f(e,t,n,f,j,T){var S=Object(r["resolveComponent"])("Chart");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[e.hideChartIfNoData&&e.emptyStats?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,Object(r["toDisplayString"])(e.$t("workouts.NO_WORKOUTS")),1)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",a,[Object(r["createElementVNode"])("div",i,[Object(r["createElementVNode"])("label",null,[Object(r["createElementVNode"])("input",{type:"radio",name:"total_distance",checked:"total_distance"===e.displayedData,onClick:t[0]||(t[0]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,s),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.DISTANCE")),1)]),Object(r["createElementVNode"])("label",null,[Object(r["createElementVNode"])("input",{type:"radio",name:"total_duration",checked:"total_duration"===e.displayedData,onClick:t[1]||(t[1]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,l),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.DURATION")),1)]),Object(r["createElementVNode"])("label",null,[Object(r["createElementVNode"])("input",{type:"radio",name:"nb_workouts",checked:"nb_workouts"===e.displayedData,onClick:t[2]||(t[2]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,u),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.WORKOUT",2)),1)]),e.fullStats?(Object(r["openBlock"])(),Object(r["createElementBlock"])("label",d,[Object(r["createElementVNode"])("input",{type:"radio",name:"average_speed",checked:"average_speed"===e.displayedData,onClick:t[3]||(t[3]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,O),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.AVERAGE_SPEED")),1)])):Object(r["createCommentVNode"])("",!0),e.fullStats?(Object(r["openBlock"])(),Object(r["createElementBlock"])("label",b,[Object(r["createElementVNode"])("input",{type:"radio",name:"total_ascent",checked:"total_ascent"===e.displayedData,onClick:t[4]||(t[4]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,m),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.ASCENT")),1)])):Object(r["createCommentVNode"])("",!0),e.fullStats?(Object(r["openBlock"])(),Object(r["createElementBlock"])("label",p,[Object(r["createElementVNode"])("input",{type:"radio",name:"total_descent",checked:"total_descent"===e.displayedData,onClick:t[5]||(t[5]=function(){return e.updateDisplayData&&e.updateDisplayData.apply(e,arguments)})},null,8,E),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("workouts.DESCENT")),1)])):Object(r["createCommentVNode"])("",!0)]),e.labels.length>0?(Object(r["openBlock"])(),Object(r["createBlock"])(S,{key:0,datasets:e.datasets,labels:e.labels,displayedData:e.displayedData,displayedSportIds:e.displayedSportIds,fullStats:e.fullStats,useImperialUnits:e.user.imperial_units},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits"])):Object(r["createCommentVNode"])("",!0)]))])}var j=n("1da1"),T=(n("96cf"),n("b0c0"),n("b64b"),n("b166")),S={class:"chart"};function _(e,t,n,c,o,a){var i=Object(r["resolveComponent"])("BarChart");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",S,[Object(r["createVNode"])(i,Object(r["mergeProps"])(e.barChartProps,{class:"bar-chart"}),null,16)])}n("e9c4"),n("d3b7"),n("d81d");var A=n("b48c"),N=n("47e2"),R=(n("99af"),n("b680"),n("25f0"),n("4d90"),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="0";t&&(n=String(Math.floor(e/86400)),e%=86400);var r=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;var c=String(Math.floor(e/60)).padStart(2,"0"),o=String(e%60).padStart(2,"0");return t?"".concat("0"===n?"":"".concat(n,"d ")).concat("00"===r?"":"".concat(r,"h ")).concat(c,"m ").concat(o,"s"):"".concat("00"===r?"":"".concat(r,":")).concat(c,":").concat(o)}),g=n("6284"),k=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c="km",o=n?g["c"][c].defaultTarget:c;switch(e){case"average_speed":return"".concat(t.toFixed(2)," ").concat(o,"/h");case"total_duration":return R(t,r);case"total_distance":return"".concat(t.toFixed(2)," ").concat(o);case"total_ascent":case"total_descent":return"".concat((t/1e3).toFixed(2)," ").concat(o);default:return t.toString()}},v=Object(r["defineComponent"])({name:"Chart",components:{BarChart:A["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},useImperialUnits:{type:Boolean,required:!0}},setup:function(e){var t=Object(N["b"])(),n=t.t;function c(e){return isNaN(e)?0:+e}function o(e,t){return c(e)+c(t)}var a=Object(r["computed"])((function(){return{labels:e.labels,datasets:JSON.parse(JSON.stringify(e.datasets))}})),i=Object(r["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:"average_speed"!==e.displayedData,grid:{drawOnChartArea:!1},ticks:{maxTicksLimit:6,callback:function(t){return k(e.displayedData,+t,e.useImperialUnits,!1)}},afterFit:function(t){t.width=e.fullStats?75:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(t){return"average_speed"===e.displayedData&&t.dataset.backgroundColor?t.dataset.backgroundColor[0]:"#666666"},rotation:function(t){return e.fullStats&&t.chart.chartArea.width<580?310:0},display:function(t){return!(e.fullStats&&t.chart.chartArea.width<300)&&("average_speed"!==e.displayedData||1==e.displayedSportIds.length&&"auto")},formatter:function(t,n){if("average_speed"===e.displayedData)return k(e.displayedData,t,e.useImperialUnits,!1);var r=n.chart.data.datasets.map((function(e){return e.data[n.dataIndex]})).reduce((function(e,t){return o(e,t)}),0);return n.datasetIndex===e.displayedSportIds.length-1&&r>0?k(e.displayedData,r,e.useImperialUnits,!1):null}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:"average_speed"===e.displayedData?"nearest":"average"},filter:function(e){return"0"!==e.formattedValue},callbacks:{label:function(t){var r=n("sports.".concat(t.dataset.label,".LABEL"))||"";return r&&(r+=": "),null!==t.parsed.y&&(r+=k(e.displayedData,t.parsed.y,e.useImperialUnits)),r},footer:function(t){if("average_speed"===e.displayedData)return"";var r=0;return t.map((function(e){r+=e.parsed.y})),"".concat(n("common.TOTAL"),": ")+k(e.displayedData,r,e.useImperialUnits)}}}}}})),s=Object(A["useBarChart"])({chartData:a,options:i}),l=s.barChartProps;return{barChartProps:l}}}),I=n("6b0d"),h=n.n(I);const C=h()(v,[["render",_]]);var D=C,y=n("dad5"),U=n("2906"),P=n("7416"),L=Object(r["defineComponent"])({name:"UserMonthStats",components:{Chart:D},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(U["a"])(),n=Object(r["ref"])("total_distance"),c=Object(r["computed"])((function(){return t.getters[y["d"].GETTERS.USER_STATS]})),o=Object(r["computed"])((function(){return Object(P["a"])(e.chartParams,e.user.weekm,e.sports,e.displayedSportIds,c.value,e.user.imperial_units)}));function a(n){t.dispatch(y["d"].ACTIONS.GET_USER_STATS,{username:e.user.username,filterType:"by_time",params:n})}function i(e){n.value=e.target.name}function s(e,t){return{from:Object(T["a"])(e.start,"yyyy-MM-dd"),to:Object(T["a"])(e.end,"yyyy-MM-dd"),time:"week"===e.duration?"week".concat(t.weekm?"m":""):e.duration}}return Object(r["onBeforeMount"])((function(){return a(s(e.chartParams,e.user))})),Object(r["watch"])((function(){return e.chartParams}),function(){var t=Object(j["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a(s(n,e.user));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),{datasets:Object(r["computed"])((function(){return o.value.datasets[n.value]})),labels:Object(r["computed"])((function(){return o.value.labels})),emptyStats:Object(r["computed"])((function(){return 0===Object.keys(c.value).length})),displayedData:n,updateDisplayData:i}}});n("5b6e");const M=h()(L,[["render",f],["__scopeId","data-v-14aef866"]]);t["a"]=M},ef3f:function(e,t,n){},f03a:function(e,t,n){"use strict";n("d23c")},f574:function(e,t,n){"use strict";n("49a7")},f59f:function(e,t,n){},f61d:function(e,t,n){"use strict";n("6ac7")},f7f9:function(e,t,n){"use strict";var r=n("7a23"),c={id:"error"},o={class:"error-content"},a=Object(r["defineComponent"])({props:{title:null,message:null,buttonText:null,path:{default:"/"}},setup:function(e){var t=e,n=Object(r["toRefs"])(t),a=n.buttonText,i=n.title,s=n.message,l=n.path;return function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[Object(r["createElementVNode"])("div",o,[Object(r["createElementVNode"])("h1",null,Object(r["toDisplayString"])(Object(r["unref"])(i)),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(Object(r["unref"])(s)),1),Object(r["unref"])(a)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,onClick:t[0]||(t[0]=function(t){return e.$router.push(Object(r["unref"])(l))}),class:"upper"},Object(r["toDisplayString"])(Object(r["unref"])(a)),1)):Object(r["createCommentVNode"])("",!0)])])}}}),i=(n("7390"),n("6b0d")),s=n.n(i);const l=s()(a,[["__scopeId","data-v-b60bfa80"]]);var u=l,d=Object(r["defineComponent"])({props:{target:{default:"PAGE"}},setup:function(e){var t=e,n=Object(r["toRefs"])(t),c=n.target;return function(e,t){return Object(r["openBlock"])(),Object(r["createBlock"])(u,{title:"404",message:e.$t("error.NOT_FOUND.".concat(Object(r["unref"])(c))),"button-text":e.$t("common.HOME")},null,8,["message","button-text"])}}});const O=d;t["a"]=O},f87a:function(e,t,n){},f980:function(e,t,n){},ff29:function(e,t,n){}}); //# sourceMappingURL=app.48d03f56.js.map