2 lines
182 KiB
JavaScript
2 lines
182 KiB
JavaScript
(function(e){function t(t){for(var r,o,i=t[0],s=t[1],l=t[2],u=0,d=[];u<i.length;u++)o=i[u],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);m&&m(t);while(d.length)d.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,o=1;o<n.length;o++){var i=n[o];0!==a[i]&&(r=!1)}r&&(c.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},o={app:0},a={app:0},c=[];function i(e){return s.p+"static/js/"+({admin:"admin","main~workouts":"main~workouts",main:"main",workouts:"workouts",profile:"profile",reset:"reset"}[e]||e)+"."+{admin:"4047df15","main~workouts":"aa540c70",main:"265d6693",workouts:"52ba33b8",profile:"7e87449f",reset:"98679f6c","chunk-2d0c9189":"c81458cc","chunk-2d0cf391":"020c75ea","chunk-2d0da8f3":"c8c3e7e8","chunk-2d2248b6":"d84473c1","chunk-2d22523a":"4b710d99"}[e]+".js"}function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(e){var t=[],n={admin:1,"main~workouts":1,main:1,workouts:1,profile:1,reset:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var r="static/css/"+({admin:"admin","main~workouts":"main~workouts",main:"main",workouts:"workouts",profile:"profile",reset:"reset"}[e]||e)+"."+{admin:"2e1912ed","main~workouts":"2563ccfd",main:"0baa26a6",workouts:"d952f3cf",profile:"14a2947f",reset:"3e6931c7","chunk-2d0c9189":"31d6cfe0","chunk-2d0cf391":"31d6cfe0","chunk-2d0da8f3":"31d6cfe0","chunk-2d2248b6":"31d6cfe0","chunk-2d22523a":"31d6cfe0"}[e]+".css",a=s.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var l=c[i],u=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(u===r||u===a))return t()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){l=d[i],u=l.getAttribute("data-href");if(u===r||u===a)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var r=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=r,delete o[e],m.parentNode.removeChild(m),n(c)},m.href=a;var O=document.getElementsByTagName("head")[0];O.appendChild(m)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var c=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=c);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=i(e);var d=new Error;l=function(t){u.onerror=u.onload=null,clearTimeout(m);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",d.name="ChunkLoadError",d.type=r,d.request=o,n[1](d)}a[e]=void 0}};var m=setTimeout((function(){l({type:"timeout",target:u})}),12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(t)},s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],u=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var m=u;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"05d9":function(e,t,n){"use strict";var r=n("7a23"),o={class:"stat-card"},a={class:"stat-content box"},c={class:"stat-icon"},i={class:"stat-details"},s={class:"stat-huge"},l={class:"stat"};function u(e,t,n,u,d,m){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[Object(r["createElementVNode"])("div",a,[Object(r["createElementVNode"])("div",c,[Object(r["createElementVNode"])("i",{class:Object(r["normalizeClass"])(["fa","fa-".concat(e.icon)])},null,2)]),Object(r["createElementVNode"])("div",i,[Object(r["createElementVNode"])("div",s,Object(r["toDisplayString"])(e.value),1),Object(r["createElementVNode"])("div",l,Object(r["toDisplayString"])(e.text),1)])])])}n("a9e3");var d=Object(r["defineComponent"])({name:"StatCard",props:{icon:{type:String,required:!0},value:{type:[String,Number],required:!0},text:{type:String,required:!0}}}),m=(n("85fa"),n("6b0d")),O=n.n(m);const p=O()(d,[["render",u]]);t["a"]=p},"0a59":function(e,t,n){},1119:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return s}));var r=n("5530"),o=(n("d81d"),n("4e82"),n("4de4"),n("d3b7"),{"Cycling (Sport)":"#4c9792","Cycling (Transport)":"#88af98",Hiking:"#bb757c","Mountain Biking":"#d4b371","Mountain Biking (Electric)":"#fc9d6f",Rowing:"#fcce72",Running:"#835b83","Skiing (Alpine)":"#67a4bd","Skiing (Cross Country)":"#9498d0",Trail:"#09a98a",Walking:"#838383"}),a=function(e){var t={};return e.map((function(e){return t[e.id]=o[e.label]})),t},c=function(e,t){var n=e.translatedLabel.toLowerCase(),r=t.translatedLabel.toLowerCase();return n>r?1:n<r?-1:0},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((function(e){return!n||e.is_active})).map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{translatedLabel:t("sports.".concat(e.label,".LABEL"))})})).sort(c)},s=function(e,t){return t.filter((function(t){return t.id===e.sport_id})).map((function(e){return e.label}))[0]}},"13dc":function(e,t,n){"use strict";n("c0dc")},"16c2":function(e,t,n){"use strict";n("a03e")},1850:function(e,t,n){"use strict";n("da66")},"18b2":function(e,t,n){},"1f4c":function(e,t,n){},2024:function(e,t,n){},"21a0":function(e,t,n){"use strict";n("8f8e")},"25ba":function(e,t,n){"use strict";n("cabe")},2906:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("5502");function o(){return Object(r["b"])()}},3214:function(e,t,n){"use strict";n("2024")},3853:function(e,t,n){"use strict";n("c75e")},"3c44":function(e,t,n){"use strict";n("b680"),n("a9e3");var r=n("7a23"),o=function(e){return Object(r["pushScopeId"])("data-v-a6fa997c"),e=e(),Object(r["popScopeId"])(),e},a={class:"box user-header"},c={class:"user-details"},i={class:"user-name"},s={class:"user-stats"},l={class:"user-stat"},u={class:"stat-number"},d={class:"stat-label"},m={class:"user-stat"},O={class:"stat-number"},p=o((function(){return Object(r["createElementVNode"])("span",{class:"stat-label"},"km",-1)})),E={class:"user-stat hide-small"},b={class:"stat-number"},T={class:"stat-label"};function S(e,t,n,o,S,A){var f=Object(r["resolveComponent"])("UserPicture");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",a,[Object(r["createVNode"])(f,{user:e.user},null,8,["user"]),Object(r["createElementVNode"])("div",c,[Object(r["createElementVNode"])("div",i,Object(r["toDisplayString"])(e.user.username),1),Object(r["createElementVNode"])("div",s,[Object(r["createElementVNode"])("div",l,[Object(r["createElementVNode"])("span",u,Object(r["toDisplayString"])(e.user.nb_workouts),1),Object(r["createElementVNode"])("span",d,Object(r["toDisplayString"])(e.$t("workouts.WORKOUT",e.user.nb_workouts)),1)]),Object(r["createElementVNode"])("div",m,[Object(r["createElementVNode"])("span",O,Object(r["toDisplayString"])(Number(e.user.total_distance).toFixed(0)),1),p]),Object(r["createElementVNode"])("div",E,[Object(r["createElementVNode"])("span",b,Object(r["toDisplayString"])(e.user.nb_sports),1),Object(r["createElementVNode"])("span",T,Object(r["toDisplayString"])(e.$t("workouts.SPORT",e.user.nb_sports)),1)])])])])}var A=n("c46a"),f=Object(r["defineComponent"])({name:"ProfileDisplay",components:{UserPicture:A["a"]},props:{user:{type:Object,required:!0}}}),_=(n("5085"),n("6b0d")),j=n.n(_);const N=j()(f,[["render",S],["__scopeId","data-v-a6fa997c"]]);t["a"]=N},4870:function(e,t,n){"use strict";var r,o,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),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"}(o||(o={})),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"}(a||(a={}))},"4a13":function(e,t,n){"use strict";n("92d6")},"4b55":function(e,t,n){"use strict";n("8384")},"4c14":function(e,t,n){"use strict";n("abe8")},5085:function(e,t,n){"use strict";n("1f4c")},"57ba":function(e,t,n){"use strict";n("18b2")},"5df8":function(e,t,n){},"5e65":function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return T}));var r=n("69eb"),o=n("d6e9"),a=n("f628"),c=n("f7f1"),i=n("cdb6"),s=n("74b5"),l=n("8cac"),u=n("2fc8"),d=n("b166"),m=n("78b2"),O=function(e,t,n){switch(e){case"week":return Object(r["a"])(t,{weekStartsOn:n?1:0});case"year":return Object(o["a"])(t);case"month":return Object(a["a"])(t);default:throw new Error('Invalid duration, expected: "week", "month", "year", got: "'.concat(e,'"'))}},p=function(e,t){switch(e){case"week":return Object(c["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,'"'))}},E=function(e,t){return Object(m["a"])(new Date(e),t)},b=function(e,t){var n=Object(a["a"])(e),o=Object(l["a"])(e),c=t?1:0;return{start:Object(r["a"])(n,{weekStartsOn:c}),end:Object(u["a"])(o,{weekStartsOn:c})}},T=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)}}},"608d":function(e,t,n){"use strict";n("90b9")},"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"])}}}}},o={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"])}}},a={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"])}},c={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.<br />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"])},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"])},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"])}},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"])}},m={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"])},KM:e=>{const{normalize:t}=e;return t(["km"])},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"])},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:o,buttons:a,common:c,dashboard:i,error:s,sports:l,statistics:u,user:d,workouts:m}},"6d7d":function(e,t,n){"use strict";var r=n("7a23"),o=function(e){return Object(r["pushScopeId"])("data-v-56dc89d4"),e=e(),Object(r["popScopeId"])(),e},a={class:"pagination-center","aria-label":"navigation"},c={class:"pagination"},i=o((function(){return Object(r["createElementVNode"])("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)})),s={key:0},l=o((function(){return Object(r["createElementVNode"])("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)}));function u(e,t,n,o,u,d){var m=Object(r["resolveComponent"])("router-link");return Object(r["openBlock"])(),Object(r["createElementBlock"])("nav",a,[Object(r["createElementVNode"])("ul",c,[Object(r["createElementVNode"])("li",{class:Object(r["normalizeClass"])(["page-prev",{disabled:!e.pagination.has_prev}])},[Object(r["createVNode"])(m,{class:"page-link",to:{path:e.path,query:e.getQuery(e.pagination.page,-1)},event:e.pagination.has_prev?"click":"",disabled:!e.pagination.has_prev},{default:Object(r["withCtx"])((function(){return[i,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"])(e.rangePagination(e.pagination.pages,e.pagination.page),(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("li",{key:t,class:Object(r["normalizeClass"])(["page",{active:t===e.pagination.page}])},["..."===t?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",s," ... ")):(Object(r["openBlock"])(),Object(r["createBlock"])(m,{key:1,class:"page-link",to:{path:e.path,query:e.getQuery(+t)}},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(t),1)]})),_:2},1032,["to"]))],2)})),128)),Object(r["createElementVNode"])("li",{class:Object(r["normalizeClass"])(["page-next",{disabled:!e.pagination.has_next}])},[Object(r["createVNode"])(m,{class:"page-link",to:{path:e.path,query:e.getQuery(e.pagination.page,1)},event:e.pagination.has_next?"click":"",disabled:!e.pagination.has_next},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("api.PAGINATION.NEXT"))+" ",1),l]})),_:1},8,["to","event","disabled"])],2)])])}var d=n("97e5"),m=Object(r["defineComponent"])({name:"Pagination",props:{pagination:{type:Object,required:!0},path:{type:String,required:!0},query:{type:Object,required:!0}},setup:function(e){function t(t,n){var r=Object.assign({},e.query);return r.page=n?t+n:t,r}return{rangePagination:d["b"],getQuery:t}}}),O=(n("1850"),n("6b0d")),p=n.n(O);const E=p()(m,[["render",u],["__scopeId","data-v-56dc89d4"]]);t["a"]=E},"6eb4":function(e,t,n){},"6f1d":function(e,t,n){"use strict";n("ff71")},"71a7":function(e,t,n){"use strict";var r=n("7a23"),o={id:"user-infos",class:"description-list"},a={class:"user-bio"},c={key:1,class:"profile-buttons"},i={key:2,class:"profile-buttons"};function s(e,t,n,s,l,u){var d=Object(r["resolveComponent"])("Modal");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[e.displayModal?(Object(r["openBlock"])(),Object(r["createBlock"])(d,{key:0,title:e.$t("common.CONFIRMATION"),message:"admin.CONFIRM_USER_ACCOUNT_DELETION",strongMessage:e.user.username,onConfirmAction:t[0]||(t[0]=function(t){return e.deleteUserAccount(e.user.username)}),onCancelAction:t[1]||(t[1]=function(t){return e.updateDisplayModal(!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"])(e.registrationDate),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.FIRST_NAME"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(e.user.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"])(e.user.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"])(e.birthDate),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.LOCATION"))+":",1),Object(r["createElementVNode"])("dd",null,Object(r["toDisplayString"])(e.user.location),1),Object(r["createElementVNode"])("dt",null,Object(r["toDisplayString"])(e.$t("user.PROFILE.BIO"))+":",1),Object(r["createElementVNode"])("dd",a,Object(r["toDisplayString"])(e.user.bio),1)]),e.fromAdmin?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,[e.authUser.username!==e.user.username?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,class:"danger",onClick:t[2]||(t[2]=Object(r["withModifiers"])((function(t){return e.updateDisplayModal(!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",i,[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)]))])}var l=n("b166"),u=n("dad5"),d=n("2906"),m=Object(r["defineComponent"])({name:"UserInfos",props:{user:{type:Object,required:!0},fromAdmin:{type:Boolean,default:!1}},setup:function(e){var t=Object(d["a"])(),n=Object(r["computed"])((function(){return t.getters[u["a"].GETTERS.AUTH_USER_PROFILE]})),o=Object(r["computed"])((function(){return e.user.created_at?Object(l["a"])(new Date(e.user.created_at),"dd/MM/yyyy HH:mm"):""})),a=Object(r["computed"])((function(){return e.user.birth_date?Object(l["a"])(new Date(e.user.birth_date),"dd/MM/yyyy"):""})),c=Object(r["ref"])(!1);function i(e){c.value=e}function s(e){t.dispatch(u["a"].ACTIONS.DELETE_ACCOUNT,{username:e})}return{authUser:n,birthDate:a,displayModal:c,registrationDate:o,deleteUserAccount:s,updateDisplayModal:i}}}),O=(n("4c14"),n("6b0d")),p=n.n(O);const E=p()(m,[["render",s],["__scopeId","data-v-17c7b32c"]]);t["a"]=E},"79e1":function(e,t,n){"use strict";n("851f")},"7ffe":function(e,t,n){"use strict";n("9f54")},8384:function(e,t,n){},"851f":function(e,t,n){},"85fa":function(e,t,n){"use strict";n("0a59")},"8f8e":function(e,t,n){},"90b9":function(e,t,n){},9176:function(e,t,n){"use strict";n("99af"),n("4e82");var r=n("7a23"),o={class:"table-selects"},a=["value"],c=["value"],i=["value"],s=["value"],l=["value"],u=["value"];function d(e,t,n,d,m,O){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[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:e.query.order_by,onChange:t[0]||(t[0]=function(){return e.onSelectUpdate&&e.onSelectUpdate.apply(e,arguments)})},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.order_by,(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("option",{value:t,key:t},Object(r["toDisplayString"])(e.$t("".concat(e.message,".").concat(t.toUpperCase()))),9,c)})),128))],40,a)]),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:e.query.order,onChange:t[1]||(t[1]=function(){return e.onSelectUpdate&&e.onSelectUpdate.apply(e,arguments)})},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.sort,(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:e.query.per_page,onChange:t[2]||(t[2]=function(){return e.onSelectUpdate&&e.onSelectUpdate.apply(e,arguments)})},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.per_page,(function(e){return Object(r["openBlock"])(),Object(r["createElementBlock"])("option",{value:e,key:e},Object(r["toDisplayString"])(e),9,u)})),128))],40,l)])])}var m=Object(r["defineComponent"])({name:"FilterSelects",props:{order_by:{type:Object,required:!0},query:{type:Object,required:!0},sort:{type:Object,required:!0},message:{type:String,required:!0}},emits:["updateSelect"],setup:function(e,t){var n=t.emit;function r(e){n("updateSelect",e.target.id,e.target.value)}return{per_page:[10,25,50,100],onSelectUpdate:r}}}),O=(n("79e1"),n("6b0d")),p=n.n(O);const E=p()(m,[["render",d],["__scopeId","data-v-50c78582"]]);t["a"]=E},9242:function(e,t,n){"use strict";n("ee25")},"92d6":function(e,t,n){},"95ba":function(e,t,n){"use strict";n("6eb4")},"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"],o=1,a=10,c=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=c(e.page,o),d.per_page=c(e.per_page,a),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.concat(u(t+2,t-2)))),t+2<=e-2?(n=n.concat(["..."]),n=n.concat(u(e,e-1))):n="..."!==n[n.length-1]&&n[n.length-1]>=e-2&&n[n.length-1]<e?n.concat(u(e,+n[n.length-1]+1)):n.concat(u(e,t<e-3?t+3:t-5)),n}},9838:function(e,t,n){},"9c9a":function(e,t,n){},"9f54":function(e,t,n){},a03e:function(e,t,n){},a1fe:function(e,t,n){"use strict";n("aa70")},aa0a:function(e,t,n){"use strict";n("fb34")},aa70:function(e,t,n){},aa8e:function(e,t,n){},abe8:function(e,t,n){},b373:function(e,t,n){"use strict";n("edb9")},b986:function(e,t,n){"use strict";n("5df8")},c0dc:function(e,t,n){},c142: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(["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"])}}}}},o={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"])}}},a={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"])}},c={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.<br />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"])},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"])},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"])}},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"])}},m={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"])},KM:e=>{const{normalize:t}=e;return t(["km"])},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"])},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:o,buttons:a,common:c,dashboard:i,error:s,sports:l,statistics:u,user:d,workouts:m}},c364:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));n("b680"),n("99af");var r=["bytes","KB","MB","GB","TB"],o=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 o=(e/Math.pow(1024,n)).toFixed(1),a=r[n];return t?"".concat(o).concat(a):{size:o,suffix:a}},a=function(e){var t=e/1048576;return+t.toFixed(2)}},c46a:function(e,t,n){"use strict";var r=n("7a23"),o={class:"user-picture"},a=["alt","src"],c={key:1,class:"no-picture"},i=Object(r["createElementVNode"])("i",{class:"fa fa-user-circle-o","aria-hidden":"true"},null,-1),s=[i];function l(e,t,n,i,l,u){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",o,[""!==e.authUserPictureUrl?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:0,class:"profile-user-img",alt:e.$t("user.USER_PICTURE"),src:e.authUserPictureUrl},null,8,a)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",c,s))])}n("99af");var u=n("d257"),d=Object(r["defineComponent"])({name:"UserPicture",props:{user:{type:Object,required:!0}},setup:function(e){return{authUserPictureUrl:Object(r["computed"])((function(){return e.user.picture?"".concat(Object(u["a"])(),"users/").concat(e.user.username,"/picture"):""}))}}}),m=(n("13dc"),n("6b0d")),O=n.n(m);const p=O()(d,[["render",l]]);t["a"]=p},c75e:function(e,t,n){},cabe:function(e,t,n){},cbea:function(e,t,n){"use strict";n("fb41")},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"),o=n("d9fa"),a=n("7a23"),c=n("9483");Object(c["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(a["pushScopeId"])("data-v-317a6409"),e=e(),Object(a["popScopeId"])(),e},s=i((function(){return Object(a["createElementVNode"])("div",{id:"top"},null,-1)})),l={key:0,class:"app-container"},u={class:"app-loading"},d={class:"container scroll"},m=i((function(){return Object(a["createElementVNode"])("i",{class:"fa fa-chevron-up","aria-hidden":"true"},null,-1)})),O=[m];function p(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("NavBar"),m=Object(a["resolveComponent"])("Loader"),p=Object(a["resolveComponent"])("router-view"),E=Object(a["resolveComponent"])("NoConfig"),b=Object(a["resolveComponent"])("Footer");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[s,Object(a["createVNode"])(i,{onMenuInteraction:e.updateHideScrollBar},null,8,["onMenuInteraction"]),e.appLoading?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",l,[Object(a["createElementVNode"])("div",u,[Object(a["createVNode"])(m)])])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:1,class:Object(a["normalizeClass"])(["app-container",{"hide-scroll":e.hideScrollBar}])},[e.appConfig?(Object(a["openBlock"])(),Object(a["createBlock"])(p,{key:0})):(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:1}))],2)),Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["scroll-button",{"display-button":e.displayScrollButton}]),onClick:t[0]||(t[0]=function(){return e.scrollToTop&&e.scrollToTop.apply(e,arguments)})},O,2)]),e.appConfig?(Object(a["openBlock"])(),Object(a["createBlock"])(b,{key:2,version:e.appConfig?e.appConfig.version:""},null,8,["version"])):Object(a["createCommentVNode"])("",!0)],64)}var E=function(e){return Object(a["pushScopeId"])("data-v-36297652"),e=e(),Object(a["popScopeId"])(),e},b={id:"footer"},T={class:"footer-items"},S={class:"footer-item"},A=E((function(){return Object(a["createElementVNode"])("strong",null,"FitTrackee",-1)})),f=Object(a["createStaticVNode"])('<div class="footer-item bullet" data-v-36297652>•</div><div class="footer-item" data-v-36297652><a href="https://github.com/SamR1/FitTrackee" target="_blank" rel="noopener noreferrer" data-v-36297652> source code </a> under <a href="https://choosealicense.com/licenses/agpl-3.0/" target="_blank" rel="noopener noreferrer" data-v-36297652> AGPLv3 </a>license </div><div class="footer-item bullet" data-v-36297652>•</div><div class="footer-item" data-v-36297652><a href="https://samr1.github.io/FitTrackee/" target="_blank" rel="noopener noreferrer" data-v-36297652> documentation </a></div>',4);function _(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",b,[Object(a["createElementVNode"])("div",T,[Object(a["createElementVNode"])("div",S,[A,Object(a["createTextVNode"])(" v"+Object(a["toDisplayString"])(e.version),1)]),f])])}var j=Object(a["defineComponent"])({name:"Footer",props:{version:{type:String,required:!0}}}),N=(n("fa79"),n("6b0d")),g=n.n(N);const R=g()(j,[["render",_],["__scopeId","data-v-36297652"]]);var I=R,v=function(e){return Object(a["pushScopeId"])("data-v-9d3d8adc"),e=e(),Object(a["popScopeId"])(),e},U={id:"nav"},h={class:"nav-container"},C={class:"nav-app-name"},k={class:"nav-items-close"},D=v((function(){return Object(a["createElementVNode"])("div",{class:"app-name"},"FitTrackee",-1)})),P={key:0,class:"nav-items-group"},M=v((function(){return Object(a["createElementVNode"])("div",{class:"nav-item nav-separator"},null,-1)})),L={class:"nav-items-user-menu"},z={key:0,class:"nav-items-group"},y={class:"nav-item nav-profile-img"},w={key:1,class:"nav-items-group"},V=v((function(){return Object(a["createElementVNode"])("i",{class:"fa fa-language"},null,-1)}));function B(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("router-link"),s=Object(a["resolveComponent"])("UserPicture"),l=Object(a["resolveComponent"])("Dropdown");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",U,[Object(a["createElementVNode"])("div",h,[Object(a["createElementVNode"])("div",C,[Object(a["createElementVNode"])("div",{class:"nav-item app-name",onClick:t[0]||(t[0]=function(t){return e.$router.push("/")})}," FitTrackee ")]),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["nav-icon-open",{"menu-open":e.isMenuOpen}])},[Object(a["createElementVNode"])("i",{class:"fa fa-bars hamburger-icon",onClick:t[1]||(t[1]=function(t){return e.openMenu()})})],2),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["nav-items",{"menu-open":e.isMenuOpen}])},[Object(a["createElementVNode"])("div",k,[D,Object(a["createElementVNode"])("i",{class:Object(a["normalizeClass"])(["fa fa-close close-icon nav-item",{"menu-closed":!e.isMenuOpen}]),onClick:t[2]||(t[2]=function(t){return e.closeMenu()})},null,2)]),Object(a["createElementVNode"])("div",{class:"nav-items-app-menu",onClick:t[3]||(t[3]=function(t){return e.closeMenu()})},[e.isAuthenticated?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",P,[Object(a["createVNode"])(i,{class:"nav-item",to:"/"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("dashboard.DASHBOARD")),1)]})),_:1}),Object(a["createVNode"])(i,{class:"nav-item",to:"/workouts"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.capitalize(e.$t("workouts.WORKOUT",2))),1)]})),_:1}),Object(a["createVNode"])(i,{class:"nav-item",to:"/statistics"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("statistics.STATISTICS")),1)]})),_:1}),Object(a["createVNode"])(i,{class:"nav-item",to:"/workouts/add"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("workouts.ADD_WORKOUT")),1)]})),_:1}),e.isAuthenticated&&e.authUser.admin?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,class:"nav-item",to:"/admin"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.ADMIN")),1)]})),_:1})):Object(a["createCommentVNode"])("",!0),M])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",L,[e.isAuthenticated?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",z,[Object(a["createElementVNode"])("div",y,[Object(a["createVNode"])(s,{user:e.authUser},null,8,["user"])]),Object(a["createVNode"])(i,{class:"nav-item",to:"/profile",onClick:e.closeMenu},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.authUser.username),1)]})),_:1},8,["onClick"]),Object(a["createElementVNode"])("div",{class:"nav-item nav-link",onClick:t[4]||(t[4]=function(){return e.logout&&e.logout.apply(e,arguments)})},Object(a["toDisplayString"])(e.$t("user.LOGOUT")),1)])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",w,[Object(a["createVNode"])(i,{class:"nav-item",to:"/login",onClick:e.closeMenu},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.LOGIN")),1)]})),_:1},8,["onClick"]),Object(a["createVNode"])(i,{class:"nav-item",to:"/register",onClick:e.closeMenu},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.REGISTER")),1)]})),_:1},8,["onClick"])])),e.availableLanguages&&e.language?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:2,class:"nav-item",options:e.availableLanguages,selected:e.language,onSelected:e.updateLanguage},{default:Object(a["withCtx"])((function(){return[V]})),_:1},8,["options","selected","onSelected"])):Object(a["createCommentVNode"])("",!0)])],2)])])}n("99af"),n("25f0");var G=n("47e2"),x=n("c46a"),F=n("dad5"),K=n("2906"),W=n("d257"),H=(n("d81d"),n("8923")),$=n("d481");n("ddb0"),n("ac1f"),n("466d");function Y(){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 o=r[1];t[o]=e(n).default}})),t}var q=Object(G["a"])({legacy:!1,locale:"en",fallbackLocale:"en",globalInjection:!0,messages:Y()}),X={en:H["a"],fr:$["a"]},Z={en:"English",fr:"Français"},J=q.global.availableLocales,Q=J.map((function(e){return{label:Z[e],value:e}})),ee=Object(a["defineComponent"])({name:"NavBar",components:{UserPicture:x["a"]},emits:["menuInteraction"],setup:function(e,t){var n=t.emit,r=Object(G["b"])(),o=r.locale,c=Object(K["a"])(),i=Object(a["computed"])((function(){return c.getters[F["a"].GETTERS.AUTH_USER_PROFILE]})),s=Object(a["computed"])((function(){return c.getters[F["a"].GETTERS.IS_AUTHENTICATED]})),l=Object(a["computed"])((function(){return s.value&&i.value.picture?"".concat(Object(W["a"])(),"/users/").concat(i.value.username,"/picture?").concat(Date.now()):""})),u=Object(a["computed"])((function(){return c.getters[F["b"].GETTERS.LANGUAGE]})),d=Object(a["ref"])(!1);function m(){d.value=!0,n("menuInteraction",!0)}function O(){d.value=!1,n("menuInteraction",!1)}function p(e){o.value=e.value.toString(),c.commit(F["b"].MUTATIONS.UPDATE_LANG,e.value)}function E(){c.dispatch(F["a"].ACTIONS.LOGOUT)}return{availableLanguages:Q,authUser:i,authUserPictureUrl:l,isAuthenticated:s,isMenuOpen:d,language:u,capitalize:a["capitalize"],openMenu:m,closeMenu:O,updateLanguage:p,logout:E}}});n("9242");const te=g()(ee,[["render",B],["__scopeId","data-v-9d3d8adc"]]);var ne=te,re={id:"no-config"},oe={class:"error-page"},ae=Object(a["createStaticVNode"])('<div class="error-img" data-v-01d4a985><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -51 512 512" data-v-01d4a985><g id="error" data-v-01d4a985><path class="error-page-img" d="M 0 0 C 0 11.300781 0 399.777344 0 410 L 512 410 C 512 402.324219 512 2.425781 512 0 Z M 370 71 L 370 30 L 411 30 L 411 71 Z M 30 30 L 340 30 L 340 71 L 30 71 Z M 482 380 L 30 380 L 30 101 L 482 101 Z M 441 71 L 441 30 L 482 30 L 482 71 Z M 441 71 " data-v-01d4a985></path><path class="error-page-img" d="M 325.519531 297.070312 C 294.328125 265.878906 294.328125 215.125 325.519531 183.929688 L 304.304688 162.71875 C 261.417969 205.605469 261.417969 275.390625 304.304688 318.28125 Z M 325.519531 297.070312 " data-v-01d4a985></path><path class="error-page-img" d="M 197.089844 180 L 237.089844 180 L 237.089844 220 L 197.089844 220 Z M 197.089844 180 " data-v-01d4a985></path><path class="error-page-img" d="M 197.089844 261 L 237.089844 261 L 237.089844 301 L 197.089844 301 Z M 197.089844 261 " data-v-01d4a985></path></g></svg></div>',1),ce=["innerHTML"];function ie(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",re,[Object(a["createElementVNode"])("div",oe,[ae,Object(a["createElementVNode"])("p",{class:"error-message",innerHTML:e.$t("error.APP_ERROR")},null,8,ce)])])}var se=Object(a["defineComponent"])({name:"NoConfig",setup:function(){var e=Object(G["b"])(),t=e.t;return{t:t}}});n("f037");const le=g()(se,[["render",ie],["__scopeId","data-v-01d4a985"]]);var ue=le,de=Object(a["defineComponent"])({name:"App",components:{Footer:I,NavBar:ne,NoConfig:ue},setup:function(){var e=Object(K["a"])(),t=Object(a["computed"])((function(){return e.getters[F["b"].GETTERS.APP_CONFIG]})),n=Object(a["computed"])((function(){return e.getters[F["b"].GETTERS.APP_LOADING]})),r=Object(a["ref"])(!1),o=Object(a["ref"])(!1);function c(e){r.value=e}function i(e){return e.getBoundingClientRect().top<window.innerHeight&&e.getBoundingClientRect().bottom>=0}function s(){window.onscroll=function(){var e=document.querySelector("#bottom");o.value=null!==e&&i(e)}}function l(){window.scrollTo({top:0,behavior:"smooth"}),setTimeout((function(){o.value=!1}),300)}return Object(a["onBeforeMount"])((function(){return e.dispatch(F["b"].ACTIONS.GET_APPLICATION_CONFIG)})),Object(a["onMounted"])((function(){return s()})),{appConfig:t,appLoading:n,hideScrollBar:r,displayScrollButton:o,scrollToTop:l,updateHideScrollBar:c}}});n("608d");const me=g()(de,[["render",p],["__scopeId","data-v-317a6409"]]);var Oe=me,pe=(n("5319"),n("3ca3"),n("caad"),n("6c02")),Ee=function(e){return Object(a["pushScopeId"])("data-v-26175b66"),e=e(),Object(a["popScopeId"])(),e},be={id:"admin-app",class:"admin-card"},Te={for:"max_users"},Se=["disabled"],Ae={class:"user-limit-help"},fe={class:"info-box"},_e=Ee((function(){return Object(a["createElementVNode"])("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)})),je={for:"max_single_file_size"},Ne=["disabled"],ge={for:"max_zip_file_size"},Re=["disabled"],Ie={for:"gpx_limit_import"},ve=["disabled"],Ue={key:1,class:"form-buttons"},he={class:"confirm",type:"submit"},Ce={key:2,class:"form-buttons"};function ke(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("ErrorMessage"),s=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",be,[Object(a["createVNode"])(s,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.TITLE")),1)]})),content:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("form",{class:"admin-form",onSubmit:t[7]||(t[7]=Object(a["withModifiers"])((function(){return e.onSubmit&&e.onSubmit.apply(e,arguments)}),["prevent"]))},[Object(a["createElementVNode"])("label",Te,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.appData.max_users=t}),disabled:!e.edition},null,8,Se),[[a["vModelText"],e.appData.max_users]])]),Object(a["createElementVNode"])("div",Ae,[Object(a["createElementVNode"])("span",fe,[_e,Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),Object(a["createElementVNode"])("label",je,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.appData.max_single_file_size=t}),disabled:!e.edition},null,8,Ne),[[a["vModelText"],e.appData.max_single_file_size]])]),Object(a["createElementVNode"])("label",ge,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.appData.max_zip_file_size=t}),disabled:!e.edition},null,8,Re),[[a["vModelText"],e.appData.max_zip_file_size]])]),Object(a["createElementVNode"])("label",Ie,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.appData.gpx_limit_import=t}),disabled:!e.edition},null,8,ve),[[a["vModelText"],e.appData.gpx_limit_import]])]),e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),e.edition?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ue,[Object(a["createElementVNode"])("button",he,Object(a["toDisplayString"])(e.$t("buttons.SUBMIT")),1),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[4]||(t[4]=Object(a["withModifiers"])((function(){return e.onCancel&&e.onCancel.apply(e,arguments)}),["prevent"]))},Object(a["toDisplayString"])(e.$t("buttons.CANCEL")),1)])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ce,[Object(a["createElementVNode"])("button",{class:"confirm",onClick:t[5]||(t[5]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin/application/edit")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("buttons.EDIT")),1),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[6]||(t[6]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1)]))],32)]})),_:1})])}n("b64b");var De=n("c364"),Pe=Object(a["defineComponent"])({name:"AdminApplication",props:{appConfig:{type:Object,required:!0},edition:{type:Boolean,default:!1}},setup:function(e){var t=Object(K["a"])(),n=Object(pe["d"])(),r=Object(a["reactive"])({max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0}),o=Object(a["computed"])((function(){return t.getters[F["b"].GETTERS.ERROR_MESSAGES]}));function c(e){Object.keys(r).map((function(t){["max_single_file_size","max_zip_file_size"].includes(t)?r[t]=Object(De["a"])(e[t]):r[t]=e[t]}))}function i(){c(e.appConfig),t.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),n.push("/admin/application")}function s(){var e=Object.assign({},r);e.max_single_file_size*=1048576,e.max_zip_file_size*=1048576,t.dispatch(F["b"].ACTIONS.UPDATE_APPLICATION_CONFIG,e)}return Object(a["onBeforeMount"])((function(){e.appConfig&&c(e.appConfig)})),{appData:r,errorMessages:o,onCancel:i,onSubmit:s}}});n("3853");const Me=g()(Pe,[["render",ke],["__scopeId","data-v-26175b66"]]);var Le=Me,ze=function(e){return Object(a["pushScopeId"])("data-v-4f30aa64"),e=e(),Object(a["popScopeId"])(),e},ye={id:"admin-menu",class:"center-card"},we={class:"admin-menu description-list"},Ve=ze((function(){return Object(a["createElementVNode"])("br",null,null,-1)})),Be={class:"registration-status"};function Ge(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("AppStatsCards"),s=Object(a["resolveComponent"])("router-link"),l=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ye,[Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.ADMINISTRATION")),1)]})),content:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(i,{"app-statistics":e.appStatistics},null,8,["app-statistics"]),Object(a["createElementVNode"])("div",we,[Object(a["createElementVNode"])("dl",null,[Object(a["createElementVNode"])("dt",null,[Object(a["createVNode"])(s,{to:"/admin/application"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.APPLICATION")),1)]})),_:1})]),Object(a["createElementVNode"])("dd",null,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.UPDATE_APPLICATION_DESCRIPTION")),1),Ve,Object(a["createElementVNode"])("span",Be,Object(a["toDisplayString"])(e.$t("admin.REGISTRATION_".concat(e.appConfig.is_registration_enabled?"ENABLED":"DISABLED"))),1)]),Object(a["createElementVNode"])("dt",null,[Object(a["createVNode"])(s,{to:"/admin/sports"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.capitalize(e.$t("workouts.SPORT",0))),1)]})),_:1})]),Object(a["createElementVNode"])("dd",null,Object(a["toDisplayString"])(e.$t("admin.ENABLE_DISABLE_SPORTS")),1),Object(a["createElementVNode"])("dt",null,[Object(a["createVNode"])(s,{to:"/admin/users"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.capitalize(e.$t("admin.USER",0))),1)]})),_:1})]),Object(a["createElementVNode"])("dd",null,Object(a["toDisplayString"])(e.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)])])]})),_:1})])}var xe={id:"user-stats"};function Fe(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("StatCard");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",xe,[Object(a["createVNode"])(i,{icon:"users",value:e.usersCount,text:e.$t("admin.USER",e.usersCount)},null,8,["value","text"]),Object(a["createVNode"])(i,{icon:"tags",value:e.sportsCount,text:e.$t("workouts.SPORT",e.sportsCount)},null,8,["value","text"]),Object(a["createVNode"])(i,{icon:"calendar",value:e.workoutCount,text:e.$t("workouts.WORKOUT",e.workoutCount)},null,8,["value","text"]),Object(a["createVNode"])(i,{icon:"folder-open",value:e.uploadDirSize.size,text:e.uploadDirSize.suffix},null,8,["value","text"])])}var Ke=n("05d9"),We=Object(a["defineComponent"])({name:"UserStatsCards",components:{StatCard:Ke["a"]},props:{appStatistics:{type:Object,default:function(){return{}}}},setup:function(e){return{uploadDirSize:Object(a["computed"])((function(){return e.appStatistics.uploads_dir_size?Object(De["b"])(e.appStatistics.uploads_dir_size,!1):{size:0,suffix:"bytes"}})),usersCount:Object(a["computed"])((function(){return e.appStatistics.users?e.appStatistics.users:0})),sportsCount:Object(a["computed"])((function(){return e.appStatistics.sports?e.appStatistics.sports:0})),workoutCount:Object(a["computed"])((function(){return e.appStatistics.workouts?e.appStatistics.workouts:0}))}}});n("a1fe");const He=g()(We,[["render",Fe]]);var $e=He,Ye={class:"card"},qe={class:"card-title"},Xe={class:"card-content"};function Ze(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ye,[Object(a["createElementVNode"])("div",qe,[Object(a["renderSlot"])(e.$slots,"title")]),Object(a["createElementVNode"])("div",Xe,[Object(a["renderSlot"])(e.$slots,"content")])])}var Je=Object(a["defineComponent"])({name:"Card"});n("16c2");const Qe=g()(Je,[["render",Ze]]);var et=Qe,tt=Object(a["defineComponent"])({name:"AdminMenu",components:{AppStatsCards:$e,Card:et},props:{appConfig:{type:Object,required:!0},appStatistics:{type:Object}},setup:function(){return{capitalize:a["capitalize"]}}});n("4a13");const nt=g()(tt,[["render",Ge],["__scopeId","data-v-4f30aa64"]]);var rt=nt,ot=function(e){return Object(a["pushScopeId"])("data-v-6d930723"),e=e(),Object(a["popScopeId"])(),e},at={id:"admin-sports",class:"admin-card"},ct={class:"responsive-table"},it=ot((function(){return Object(a["createElementVNode"])("th",null,"#",-1)})),st={class:"text-left"},lt={class:"text-left sport-action"},ut=ot((function(){return Object(a["createElementVNode"])("th",null,null,-1)})),dt={class:"center-text"},mt=ot((function(){return Object(a["createElementVNode"])("span",{class:"cell-heading"},"id",-1)})),Ot={class:"cell-heading"},pt={class:"sport-label"},Et={class:"cell-heading"},bt={class:"center-text"},Tt={class:"cell-heading"},St={class:"sport-action"},At={class:"cell-heading"},ft={class:"action-button"},_t=["onClick"],jt={key:0,class:"has-workouts"},Nt=ot((function(){return Object(a["createElementVNode"])("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)}));function gt(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("SportImage"),s=Object(a["resolveComponent"])("ErrorMessage"),l=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",at,[Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("admin.SPORTS.TITLE")),1)]})),content:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("button",{class:"top-button",onClick:t[0]||(t[0]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1),Object(a["createElementVNode"])("div",ct,[Object(a["createElementVNode"])("table",null,[Object(a["createElementVNode"])("thead",null,[Object(a["createElementVNode"])("tr",null,[it,Object(a["createElementVNode"])("th",null,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.IMAGE")),1),Object(a["createElementVNode"])("th",st,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.LABEL")),1),Object(a["createElementVNode"])("th",null,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),Object(a["createElementVNode"])("th",lt,Object(a["toDisplayString"])(e.$t("admin.ACTION")),1),ut])]),Object(a["createElementVNode"])("tbody",null,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.translatedSports,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("tr",{key:t.id},[Object(a["createElementVNode"])("td",dt,[mt,Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(t.id),1)]),Object(a["createElementVNode"])("td",null,[Object(a["createElementVNode"])("span",Ot,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.IMAGE")),1),Object(a["createVNode"])(i,{title:t.translatedLabel,"sport-label":t.label},null,8,["title","sport-label"])]),Object(a["createElementVNode"])("td",pt,[Object(a["createElementVNode"])("span",Et,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.LABEL")),1),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(t.translatedLabel),1)]),Object(a["createElementVNode"])("td",bt,[Object(a["createElementVNode"])("span",Tt,Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),Object(a["createElementVNode"])("i",{class:Object(a["normalizeClass"])("fa fa".concat(t.is_active?"-check":"","-square-o")),"aria-hidden":"true"},null,2)]),Object(a["createElementVNode"])("td",St,[Object(a["createElementVNode"])("span",At,Object(a["toDisplayString"])(e.$t("admin.ACTION")),1),Object(a["createElementVNode"])("div",ft,[Object(a["createElementVNode"])("button",{class:Object(a["normalizeClass"])({danger:t.is_active}),onClick:function(n){return e.updateSportStatus(t.id,!t.is_active)}},Object(a["toDisplayString"])(e.$t("buttons.".concat(t.is_active?"DIS":"EN","ABLE"))),11,_t),t.has_workouts?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",jt,[Nt,Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):Object(a["createCommentVNode"])("",!0)])])])})),128))])]),e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:0,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("button",{onClick:t[1]||(t[1]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1)])]})),_:1})])}var Rt=n("1119"),It=Object(a["defineComponent"])({name:"AdminSports",setup:function(){var e=Object(G["b"])(),t=e.t,n=Object(K["a"])(),r=Object(a["computed"])((function(){return Object(Rt["d"])(n.getters[F["c"].GETTERS.SPORTS],t)})),o=Object(a["computed"])((function(){return n.getters[F["b"].GETTERS.ERROR_MESSAGES]}));function c(e,t){n.dispatch(F["c"].ACTIONS.UPDATE_SPORTS,{id:e,isActive:t})}return{errorMessages:o,translatedSports:r,updateSportStatus:c}}});n("3214");const vt=g()(It,[["render",gt],["__scopeId","data-v-6d930723"]]);var Ut=vt,ht=function(e){return Object(a["pushScopeId"])("data-v-eb17bef8"),e=e(),Object(a["popScopeId"])(),e},Ct={id:"admin-users",class:"admin-card"},kt={class:"responsive-table"},Dt=ht((function(){return Object(a["createElementVNode"])("th",null,"#",-1)})),Pt={class:"left-text"},Mt={class:"left-text"},Lt={class:"left-text"},zt={class:"cell-heading"},yt={class:"cell-heading"},wt={class:"cell-heading"},Vt={class:"cell-heading"},Bt={class:"center-text"},Gt={class:"cell-heading"},xt={class:"center-text"},Ft={class:"cell-heading"},Kt={class:"center-text"},Wt={class:"cell-heading"},Ht=["disabled","onClick"];function $t(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("FilterSelects"),s=Object(a["resolveComponent"])("UserPicture"),l=Object(a["resolveComponent"])("router-link"),u=Object(a["resolveComponent"])("Pagination"),d=Object(a["resolveComponent"])("ErrorMessage"),m=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ct,[Object(a["createVNode"])(m,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.capitalize(e.$t("admin.USER",0))),1)]})),content:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("button",{class:"top-button",onClick:t[0]||(t[0]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1),Object(a["createVNode"])(i,{sort:e.sortList,order_by:e.orderByList,query:e.query,message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:e.reloadUsers},null,8,["sort","order_by","query","onUpdateSelect"]),Object(a["createElementVNode"])("div",kt,[Object(a["createElementVNode"])("table",null,[Object(a["createElementVNode"])("thead",null,[Object(a["createElementVNode"])("tr",null,[Dt,Object(a["createElementVNode"])("th",Pt,Object(a["toDisplayString"])(e.$t("user.USERNAME")),1),Object(a["createElementVNode"])("th",Mt,Object(a["toDisplayString"])(e.$t("user.EMAIL")),1),Object(a["createElementVNode"])("th",Lt,Object(a["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE")),1),Object(a["createElementVNode"])("th",null,Object(a["toDisplayString"])(e.capitalize(e.$t("workouts.WORKOUT",0))),1),Object(a["createElementVNode"])("th",null,Object(a["toDisplayString"])(e.$t("user.ADMIN")),1),Object(a["createElementVNode"])("th",null,Object(a["toDisplayString"])(e.$t("admin.ACTION")),1)])]),Object(a["createElementVNode"])("tbody",null,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.users,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("tr",{key:t.username},[Object(a["createElementVNode"])("td",null,[Object(a["createElementVNode"])("span",zt,Object(a["toDisplayString"])(e.$t("user.PROFILE.PICTURE")),1),Object(a["createVNode"])(s,{user:t},null,8,["user"])]),Object(a["createElementVNode"])("td",null,[Object(a["createElementVNode"])("span",yt,Object(a["toDisplayString"])(e.$t("user.USERNAME")),1),Object(a["createVNode"])(l,{to:"/users/".concat(t.username)},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(t.username),1)]})),_:2},1032,["to"])]),Object(a["createElementVNode"])("td",null,[Object(a["createElementVNode"])("span",wt,Object(a["toDisplayString"])(e.$t("user.EMAIL")),1),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(t.email),1)]),Object(a["createElementVNode"])("td",null,[Object(a["createElementVNode"])("span",Vt,Object(a["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE")),1),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.format(e.getDateWithTZ(t.created_at,e.authUser.timezone),"dd/MM/yyyy HH:mm")),1)]),Object(a["createElementVNode"])("td",Bt,[Object(a["createElementVNode"])("span",Gt,Object(a["toDisplayString"])(e.capitalize(e.$t("workouts.WORKOUT",0))),1),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(t.nb_workouts),1)]),Object(a["createElementVNode"])("td",xt,[Object(a["createElementVNode"])("span",Ft,Object(a["toDisplayString"])(e.$t("user.ADMIN")),1),Object(a["createElementVNode"])("i",{class:Object(a["normalizeClass"])("fa fa".concat(t.admin?"-check":"","-square-o")),"aria-hidden":"true"},null,2)]),Object(a["createElementVNode"])("td",Kt,[Object(a["createElementVNode"])("span",Wt,Object(a["toDisplayString"])(e.$t("admin.ACTION")),1),Object(a["createElementVNode"])("button",{class:Object(a["normalizeClass"])({danger:t.admin}),disabled:t.username===e.authUser.username,onClick:function(n){return e.updateUser(t.username,!t.admin)}},Object(a["toDisplayString"])(e.$t("admin.USERS.TABLE.".concat(t.admin?"REMOVE":"ADD","_ADMIN_RIGHTS"))),11,Ht)])])})),128))])]),e.pagination.page?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0,path:"/admin/users",pagination:e.pagination,query:e.query},null,8,["pagination","query"])):Object(a["createCommentVNode"])("",!0),e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:1,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("button",{onClick:t[1]||(t[1]=Object(a["withModifiers"])((function(t){return e.$router.push("/admin")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("admin.BACK_TO_ADMIN")),1)])]})),_:1})])}var Yt=n("b166"),qt=n("9176"),Xt=n("6d7d"),Zt=n("97e5"),Jt=n("5e65"),Qt=Object(a["defineComponent"])({name:"AdminUsers",components:{FilterSelects:qt["a"],Pagination:Xt["a"],UserPicture:x["a"]},setup:function(){var e=Object(K["a"])(),t=Object(pe["c"])(),n=Object(pe["d"])(),r=["admin","created_at","username","workouts_count"],o="created_at",c=Object(a["reactive"])(Object(Zt["a"])(t.query,r,o)),i=Object(a["computed"])((function(){return e.getters[F["a"].GETTERS.AUTH_USER_PROFILE]})),s=Object(a["computed"])((function(){return e.getters[F["e"].GETTERS.USERS]})),l=Object(a["computed"])((function(){return e.getters[F["e"].GETTERS.USERS_PAGINATION]})),u=Object(a["computed"])((function(){return e.getters[F["b"].GETTERS.ERROR_MESSAGES]}));function d(t){e.dispatch(F["e"].ACTIONS.GET_USERS,t)}function m(t,n){e.dispatch(F["e"].ACTIONS.UPDATE_USER,{username:t,admin:n})}function O(e,t){c[e]=t,"per_page"===e&&(c.page=1),n.push({path:"/admin/users",query:c})}return Object(a["onBeforeMount"])((function(){return d(c)})),Object(a["watch"])((function(){return t.query}),(function(e){c=Object(Zt["a"])(e,r,o,{query:c}),d(c)})),Object(a["onUnmounted"])((function(){e.dispatch(F["e"].ACTIONS.EMPTY_USERS)})),{authUser:i,errorMessages:u,orderByList:r,pagination:l,query:c,sortList:Zt["c"],users:s,capitalize:a["capitalize"],format:Yt["a"],getDateWithTZ:Jt["c"],reloadUsers:O,updateUser:m}}});n("b986");const en=g()(Qt,[["render",$t],["__scopeId","data-v-eb17bef8"]]);var tn=en,nn={id:"user-profile"},rn={class:"box"};function on(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("UserHeader"),s=Object(a["resolveComponent"])("UserProfileTabs"),l=Object(a["resolveComponent"])("router-view");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",nn,[Object(a["createVNode"])(i,{user:e.user},null,8,["user"]),Object(a["createElementVNode"])("div",rn,[Object(a["createVNode"])(s,{tabs:e.tabs,selectedTab:e.tab,edition:!1},null,8,["tabs","selectedTab"]),Object(a["createVNode"])(l,{user:e.user},null,8,["user"])])])}var an=n("3c44"),cn={class:"profile-tabs custom-checkboxes-group"},sn={class:"profile-tabs-checkboxes custom-checkboxes"},ln=["id","name","checked","disabled","onInput"];function un(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",cn,[Object(a["createElementVNode"])("div",sn,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.tabs,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"profile-tab custom-checkbox",key:t},[Object(a["createElementVNode"])("label",null,[Object(a["createElementVNode"])("input",{type:"radio",id:t,name:t,checked:e.selectedTab===t,disabled:e.disabled,onInput:function(n){return e.$router.push(e.getPath(t))}},null,40,ln),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.$t("user.PROFILE.TABS.".concat(t))),1)])])})),128))])])}var dn=Object(a["defineComponent"])({name:"UserProfileTabs",props:{tabs:{type:Object,required:!0},selectedTab:{type:String,required:!0},edition:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1}},setup:function(e){function t(t){switch(t){case"PICTURE":return"/profile/edit/picture";case"PREFERENCES":return"/profile".concat(e.edition?"/edit":"","/preferences");default:case"PROFILE":return"/profile".concat(e.edition?"/edit":"")}}return{getPath:t}}});n("d42e");const mn=g()(dn,[["render",un]]);var On=mn,pn=Object(a["defineComponent"])({name:"ProfileDisplay",components:{UserHeader:an["a"],UserProfileTabs:On},props:{user:{type:Object,required:!0},tab:{type:String,required:!0}},setup:function(){return{tabs:["PROFILE","PREFERENCES"]}}});n("7ffe");const En=g()(pn,[["render",on],["__scopeId","data-v-c81580c0"]]);var bn=En,Tn=n("71a7"),Sn={id:"user-preferences",class:"description-list"},An={class:"profile-buttons"};function fn(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Sn,[Object(a["createElementVNode"])("dl",null,[Object(a["createElementVNode"])("dt",null,Object(a["toDisplayString"])(e.$t("user.PROFILE.LANGUAGE"))+":",1),Object(a["createElementVNode"])("dd",null,Object(a["toDisplayString"])(e.language),1),Object(a["createElementVNode"])("dt",null,Object(a["toDisplayString"])(e.$t("user.PROFILE.TIMEZONE"))+":",1),Object(a["createElementVNode"])("dd",null,Object(a["toDisplayString"])(e.timezone),1),Object(a["createElementVNode"])("dt",null,Object(a["toDisplayString"])(e.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),Object(a["createElementVNode"])("dd",null,Object(a["toDisplayString"])(e.$t("user.PROFILE.".concat(e.fistDayOfWeek))),1)]),Object(a["createElementVNode"])("div",An,[Object(a["createElementVNode"])("button",{onClick:t[0]||(t[0]=function(t){return e.$router.push("/profile/edit/preferences")})},Object(a["toDisplayString"])(e.$t("user.PROFILE.EDIT_PREFERENCES")),1),Object(a["createElementVNode"])("button",{onClick:t[1]||(t[1]=function(t){return e.$router.push("/")})},Object(a["toDisplayString"])(e.$t("common.HOME")),1)])])}var _n=Object(a["defineComponent"])({name:"UserPreferences",props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(a["computed"])((function(){return e.user.language?Z[e.user.language]:Z["en"]})),n=Object(a["computed"])((function(){return e.user.weekm?"MONDAY":"SUNDAY"})),r=Object(a["computed"])((function(){return e.user.timezone?e.user.timezone:"Europe/Paris"}));return{fistDayOfWeek:n,language:t,timezone:r}}});n("cbea");const jn=g()(_n,[["render",fn],["__scopeId","data-v-39667dbe"]]);var Nn=jn,gn={id:"user-profile-edition",class:"center-card"};function Rn(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("UserProfileTabs"),s=Object(a["resolveComponent"])("router-view"),l=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",gn,[Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.".concat(e.tab,"_EDITION"))),1)]})),content:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(i,{tabs:e.tabs,selectedTab:e.tab,edition:!0,disabled:e.loading},null,8,["tabs","selectedTab","disabled"]),Object(a["createVNode"])(s,{user:e.user},null,8,["user"])]})),_:1})])}var In=Object(a["defineComponent"])({name:"ProfileEdition",components:{UserProfileTabs:On},props:{user:{type:Object,required:!0},tab:{type:String,required:!0}},setup:function(){var e=Object(K["a"])();return{loading:Object(a["computed"])((function(){return e.getters[F["a"].GETTERS.USER_LOADING]})),tabs:["PROFILE","PICTURE","PREFERENCES"]}}});const vn=g()(In,[["render",Rn]]);var Un=vn,hn={id:"user-infos-edition"},Cn={class:"profile-form form-box"},kn={class:"form-items",for:"email"},Dn=["value"],Pn={class:"form-items",for:"registrationDate"},Mn=["value"],Ln={class:"form-items",for:"password"},zn=["disabled"],yn={class:"form-items",for:"passwordConfirmation"},wn=["disabled"],Vn=Object(a["createElementVNode"])("hr",null,null,-1),Bn={class:"form-items",for:"first_name"},Gn=["disabled"],xn={class:"form-items",for:"last_name"},Fn={class:"form-items",for:"birth_date"},Kn=["disabled"],Wn={class:"form-items",for:"location"},Hn=["disabled"],$n={class:"form-items"},Yn={class:"form-buttons"},qn={class:"confirm",type:"submit"};function Xn(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("Modal"),s=Object(a["resolveComponent"])("ErrorMessage"),l=Object(a["resolveComponent"])("CustomTextArea");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",hn,[e.displayModal?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,title:e.$t("common.CONFIRMATION"),message:e.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:t[0]||(t[0]=function(t){return e.deleteAccount(e.user.username)}),onCancelAction:t[1]||(t[1]=function(t){return e.updateDisplayModal(!1)})},null,8,["title","message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",Cn,[e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:0,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("form",{onSubmit:t[10]||(t[10]=Object(a["withModifiers"])((function(){return e.updateProfile&&e.updateProfile.apply(e,arguments)}),["prevent"]))},[Object(a["createElementVNode"])("label",kn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.EMAIL"))+" ",1),Object(a["createElementVNode"])("input",{id:"email",value:e.user.email,disabled:""},null,8,Dn)]),Object(a["createElementVNode"])("label",Pn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),Object(a["createElementVNode"])("input",{id:"registrationDate",value:e.registrationDate,disabled:""},null,8,Mn)]),Object(a["createElementVNode"])("label",Ln,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PASSWORD"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"password",type:"password","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.userForm.password=t}),disabled:e.loading},null,8,zn),[[a["vModelText"],e.userForm.password]])]),Object(a["createElementVNode"])("label",yn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PASSWORD_CONFIRMATION"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"passwordConfirmation",type:"password","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.userForm.password_conf=t}),disabled:e.loading},null,8,wn),[[a["vModelText"],e.userForm.password_conf]])]),Vn,Object(a["createElementVNode"])("label",Bn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.FIRST_NAME"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"first_name","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.userForm.first_name=t}),disabled:e.loading},null,8,Gn),[[a["vModelText"],e.userForm.first_name]])]),Object(a["createElementVNode"])("label",xn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.LAST_NAME"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"last_name","onUpdate:modelValue":t[5]||(t[5]=function(t){return e.userForm.last_name=t})},null,512),[[a["vModelText"],e.userForm.last_name]])]),Object(a["createElementVNode"])("label",Fn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.BIRTH_DATE"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.userForm.birth_date=t}),disabled:e.loading},null,8,Kn),[[a["vModelText"],e.userForm.birth_date]])]),Object(a["createElementVNode"])("label",Wn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.LOCATION"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("input",{id:"location","onUpdate:modelValue":t[7]||(t[7]=function(t){return e.userForm.location=t}),disabled:e.loading},null,8,Hn),[[a["vModelText"],e.userForm.location]])]),Object(a["createElementVNode"])("label",$n,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.BIO"))+" ",1),Object(a["createVNode"])(l,{name:"bio",charLimit:200,input:e.userForm.bio,disabled:e.loading,onUpdateValue:e.updateBio},null,8,["input","disabled","onUpdateValue"])]),Object(a["createElementVNode"])("div",Yn,[Object(a["createElementVNode"])("button",qn,Object(a["toDisplayString"])(e.$t("buttons.SUBMIT")),1),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[8]||(t[8]=Object(a["withModifiers"])((function(t){return e.$router.push("/profile")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("buttons.CANCEL")),1),Object(a["createElementVNode"])("button",{class:"danger",onClick:t[9]||(t[9]=Object(a["withModifiers"])((function(t){return e.updateDisplayModal(!0)}),["prevent"]))},Object(a["toDisplayString"])(e.$t("buttons.DELETE_MY_ACCOUNT")),1)])],32)])])}var Zn=Object(a["defineComponent"])({name:"UserInfosEdition",props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(K["a"])(),n=Object(a["reactive"])({password:"",password_conf:"",first_name:"",last_name:"",birth_date:"",location:"",bio:""}),r=Object(a["computed"])((function(){return e.user.created_at?Object(Yt["a"])(new Date(e.user.created_at),"dd/MM/yyyy HH:mm"):""})),o=Object(a["computed"])((function(){return t.getters[F["a"].GETTERS.USER_LOADING]})),c=Object(a["computed"])((function(){return t.getters[F["b"].GETTERS.ERROR_MESSAGES]})),i=Object(a["ref"])(!1);function s(e){n.first_name=e.first_name?e.first_name:"",n.last_name=e.last_name?e.last_name:"",n.birth_date=e.birth_date?Object(Yt["a"])(new Date(e.birth_date),"yyyy-MM-dd"):"",n.location=e.location?e.location:"",n.bio=e.bio?e.bio:""}function l(e){n.bio=e}function u(){t.dispatch(F["a"].ACTIONS.UPDATE_USER_PROFILE,n)}function d(e){i.value=e}function m(e){t.dispatch(F["a"].ACTIONS.DELETE_ACCOUNT,{username:e})}return Object(a["onMounted"])((function(){e.user&&s(e.user)})),{displayModal:i,errorMessages:c,loading:o,registrationDate:r,userForm:n,deleteAccount:m,updateBio:l,updateDisplayModal:d,updateProfile:u}}});n("57ba");const Jn=g()(Zn,[["render",Xn]]);var Qn=Jn,er=function(e){return Object(a["pushScopeId"])("data-v-0ea4550a"),e=e(),Object(a["popScopeId"])(),e},tr={id:"user-picture-edition"},nr={class:"user-picture-form"},rr={class:"picture-help"},or={class:"info-box"},ar=er((function(){return Object(a["createElementVNode"])("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)})),cr={class:"picture-buttons"},ir=["disabled"];function sr(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("ErrorMessage"),s=Object(a["resolveComponent"])("UserPicture");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",tr,[Object(a["createElementVNode"])("div",nr,[e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(s,{user:e.user},null,8,["user"]),Object(a["createElementVNode"])("form",{onSubmit:t[3]||(t[3]=Object(a["withModifiers"])((function(){return e.updateUserPicture&&e.updateUserPicture.apply(e,arguments)}),["prevent"]))},[Object(a["createElementVNode"])("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:t[0]||(t[0]=function(){return e.updatePictureFile&&e.updatePictureFile.apply(e,arguments)})},null,32),Object(a["createElementVNode"])("div",rr,[Object(a["createElementVNode"])("span",or,[ar,Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.$t("workouts.MAX_SIZE"))+": "+Object(a["toDisplayString"])(e.fileSizeLimit),1)])]),Object(a["createElementVNode"])("div",cr,[Object(a["createElementVNode"])("button",{type:"submit",disabled:!e.pictureFile},Object(a["toDisplayString"])(e.$t("user.PROFILE.PICTURE_UPDATE")),9,ir),e.user.picture?(Object(a["openBlock"])(),Object(a["createElementBlock"])("button",{key:0,class:"danger",onClick:t[1]||(t[1]=function(){return e.deleteUserPicture&&e.deleteUserPicture.apply(e,arguments)})},Object(a["toDisplayString"])(e.$t("user.PROFILE.PICTURE_REMOVE")),1)):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[2]||(t[2]=function(t){return e.$router.push("/profile")})},Object(a["toDisplayString"])(e.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32)])])}var lr=Object(a["defineComponent"])({name:"UserPictureEdition",components:{UserPicture:x["a"]},props:{user:{type:Object,required:!0}},setup:function(){var e=Object(K["a"])(),t=Object(a["computed"])((function(){return e.getters[F["b"].GETTERS.ERROR_MESSAGES]})),n=Object(a["computed"])((function(){return e.getters[F["b"].GETTERS.APP_CONFIG]})),r=n.value.max_single_file_size?Object(De["b"])(n.value.max_single_file_size):"",o=Object(a["ref"])(null);function c(){e.dispatch(F["a"].ACTIONS.DELETE_PICTURE)}function i(e){e.target.files&&(o.value=e.target.files[0])}function s(){o.value&&e.dispatch(F["a"].ACTIONS.UPDATE_USER_PICTURE,{picture:o.value})}return{errorMessages:t,fileSizeLimit:r,pictureFile:o,deleteUserPicture:c,updateUserPicture:s,updatePictureFile:i}}});n("21a0");const ur=g()(lr,[["render",sr],["__scopeId","data-v-0ea4550a"]]);var dr=ur,mr={id:"user-preferences-edition"},Or={class:"profile-form form-box"},pr={class:"form-items"},Er=["disabled"],br=["value"],Tr={class:"form-items"},Sr={class:"form-items"},Ar=["disabled"],fr=["value"],_r={class:"form-buttons"},jr={class:"confirm",type:"submit"};function Nr(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("ErrorMessage"),s=Object(a["resolveComponent"])("TimezoneDropdown");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",mr,[Object(a["createElementVNode"])("div",Or,[e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("form",{onSubmit:t[3]||(t[3]=Object(a["withModifiers"])((function(){return e.updateProfile&&e.updateProfile.apply(e,arguments)}),["prevent"]))},[Object(a["createElementVNode"])("label",pr,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.LANGUAGE"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("select",{id:"language","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.userForm.language=t}),disabled:e.loading},[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.availableLanguages,(function(e){return Object(a["openBlock"])(),Object(a["createElementBlock"])("option",{value:e.value,key:e.value},Object(a["toDisplayString"])(e.label),9,br)})),128))],8,Er),[[a["vModelSelect"],e.userForm.language]])]),Object(a["createElementVNode"])("label",Tr,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.TIMEZONE"))+" ",1),Object(a["createVNode"])(s,{input:e.userForm.timezone,disabled:e.loading,onUpdateTimezone:e.updateTZ},null,8,["input","disabled","onUpdateTimezone"])]),Object(a["createElementVNode"])("label",Sr,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+" ",1),Object(a["withDirectives"])(Object(a["createElementVNode"])("select",{id:"weekm","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.userForm.weekm=t}),disabled:e.loading},[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.weekStart,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("option",{value:t.value,key:t.value},Object(a["toDisplayString"])(e.$t("user.PROFILE.".concat(t.label))),9,fr)})),128))],8,Ar),[[a["vModelSelect"],e.userForm.weekm]])]),Object(a["createElementVNode"])("div",_r,[Object(a["createElementVNode"])("button",jr,Object(a["toDisplayString"])(e.$t("buttons.SUBMIT")),1),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[2]||(t[2]=Object(a["withModifiers"])((function(t){return e.$router.push("/profile/preferences")}),["prevent"]))},Object(a["toDisplayString"])(e.$t("buttons.CANCEL")),1)])],32)])])}n("4de4");var gr={id:"tz-dropdown"},Rr=["value","disabled"],Ir={key:0,class:"tz-dropdown-list",ref:"tzList"},vr=["onClick","onMouseover","autofocus"];function Ur(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",gr,[Object(a["createElementVNode"])("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:e.timezone,disabled:e.disabled,required:"",onKeydown:[t[0]||(t[0]=Object(a["withKeys"])((function(t){return e.onUpdateTimezone(e.input)}),["esc"])),t[1]||(t[1]=Object(a["withKeys"])((function(){return e.onEnter&&e.onEnter.apply(e,arguments)}),["enter"]))],onInput:t[2]||(t[2]=function(){return e.openDropdown&&e.openDropdown.apply(e,arguments)})},null,40,Rr),e.isOpen?(Object(a["openBlock"])(),Object(a["createElementBlock"])("ul",Ir,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.timeZones.filter((function(t){return e.matchTimezone(t)})),(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("li",{key:t,class:Object(a["normalizeClass"])(["tz-dropdown-item",{focus:n===e.focusItemIndex}]),onClick:function(n){return e.onUpdateTimezone(t)},onMouseover:function(t){return e.onMouseOver(n)},autofocus:n===e.focusItemIndex},Object(a["toDisplayString"])(t),43,vr)})),128))],512)):Object(a["createCommentVNode"])("",!0)])}n("498a");var hr=["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"],Cr=Object(a["defineComponent"])({name:"TimezoneDropdown",props:{disabled:{type:Boolean,default:!1},input:{type:String,required:!0}},emits:["updateTimezone"],setup:function(e,t){var n=t.emit,r=Object(a["ref"])(e.input),o=Object(a["ref"])(!1),c=Object(a["ref"])(null),i=Object(a["ref"])(0);function s(e){return e.toLowerCase().match(r.value.toLowerCase())}function l(e){i.value=e}function u(e){r.value=e,o.value=!1,n("updateTimezone",e)}function d(e){var t,n,r,o;(e.preventDefault(),null!==(t=c.value)&&void 0!==t&&null!==(n=t.firstElementChild)&&void 0!==n&&n.innerHTML)&&u(null===(r=c.value)||void 0===r||null===(o=r.firstElementChild)||void 0===o?void 0:o.innerHTML)}function m(e){e.preventDefault(),o.value=!0,r.value=e.target.value.trim()}return Object(a["watch"])((function(){return e.input}),(function(e){r.value=e})),{focusItemIndex:i,isOpen:o,timezone:r,timeZones:hr,tzList:c,matchTimezone:s,onEnter:d,onMouseOver:l,onUpdateTimezone:u,openDropdown:m}}});n("6f1d");const kr=g()(Cr,[["render",Ur],["__scopeId","data-v-47c6a273"]]);var Dr=kr,Pr=Object(a["defineComponent"])({name:"UserPreferencesEdition",components:{TimezoneDropdown:Dr},props:{user:{type:Object,required:!0}},setup:function(e){var t=Object(K["a"])(),n=Object(a["reactive"])({language:"",timezone:"Europe/Paris",weekm:!1}),r=[{label:"MONDAY",value:!0},{label:"SUNDAY",value:!1}],o=Object(a["computed"])((function(){return t.getters[F["a"].GETTERS.USER_LOADING]})),c=Object(a["computed"])((function(){return t.getters[F["b"].GETTERS.ERROR_MESSAGES]}));function i(e){n.language=e.language?e.language:"en",n.timezone=e.timezone?e.timezone:"Europe/Paris",n.weekm=!!e.weekm&&e.weekm}function s(){t.dispatch(F["a"].ACTIONS.UPDATE_USER_PREFERENCES,n)}function l(e){n.timezone=e}return Object(a["onMounted"])((function(){e.user&&i(e.user)})),{availableLanguages:Q,errorMessages:c,loading:o,userForm:n,weekStart:r,updateProfile:s,updateTZ:l}}});const Mr=g()(Pr,[["render",Nr]]);var Lr=Mr,zr=n("5502"),yr=n("ade3"),wr=n("bc3a"),Vr=n.n(wr),Br=Vr.a.create({baseURL:Object(W["a"])()});Br.interceptors.request.use((function(e){var t=$o.getters[F["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 Gr,xr,Fr,Kr,Wr,Hr,$r,Yr,qr,Xr,Zr,Jr,Qr,eo,to=Br,no=Vr.a.create({baseURL:Object(W["a"])()}),ro=no,oo=q.global.locale,ao=function(e){localStorage.removeItem("authToken"),e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["d"].MUTATIONS.EMPTY_USER_STATS),e.commit(F["a"].MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(F["e"].MUTATIONS.UPDATE_USERS,[]),e.commit(F["f"].MUTATIONS.EMPTY_WORKOUTS),e.commit(F["f"].MUTATIONS.EMPTY_WORKOUT),Jo.push("/login")},co=(Gr={},Object(yr["a"])(Gr,F["a"].ACTIONS.CHECK_AUTH_USER,(function(e){window.localStorage.authToken&&!e.getters[F["a"].GETTERS.IS_AUTHENTICATED]&&(e.commit(F["a"].MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE))})),Object(yr["a"])(Gr,F["a"].ACTIONS.GET_USER_PROFILE,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.get("auth/profile").then((function(t){"success"===t.data.status?(e.commit(F["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),t.data.data.language&&(e.commit(F["b"].MUTATIONS.UPDATE_LANG,t.data.data.language),oo.value=t.data.data.language),e.dispatch(F["c"].ACTIONS.GET_SPORTS)):(Object(W["b"])(e,null),ao(e))})).catch((function(t){Object(W["b"])(e,t),ao(e)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.LOGIN_OR_REGISTER,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),ro.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(F["a"].MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE).then((function(){return Jo.push("string"===typeof t.redirectUrl?t.redirectUrl:"/")}))}else Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.LOGOUT,(function(e){ao(e)})),Object(yr["a"])(Gr,F["a"].ACTIONS.UPDATE_USER_PROFILE,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!0),to.post("auth/profile/edit",t).then((function(t){"success"===t.data.status?(e.commit(F["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),Jo.push("/profile")):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.UPDATE_USER_PREFERENCES,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!0),to.post("auth/profile/edit/preferences",t).then((function(t){"success"===t.data.status?(e.commit(F["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,t.data.data),e.commit(F["b"].MUTATIONS.UPDATE_LANG,t.data.data.language),oo.value=t.data.data.language,Jo.push("/profile/preferences")):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.UPDATE_USER_PICTURE,(function(e,t){if(e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");var n=new FormData;n.append("file",t.picture),to.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then((function(t){"success"===t.data.status?e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE).then((function(){return Jo.push("/profile")})):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.DELETE_ACCOUNT,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.delete("users/".concat(t.username)).then((function(t){204===t.status?e.dispatch(F["a"].ACTIONS.LOGOUT).then((function(){return Jo.push("/")})):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.DELETE_PICTURE,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!0),to.delete("auth/picture").then((function(t){204===t.status?e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE).then((function(){return Jo.push("/profile")})):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["a"].MUTATIONS.UPDATE_USER_LOADING,!1)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.SEND_PASSWORD_RESET_REQUEST,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),ro.post("auth/password/reset-request",t).then((function(t){"success"===t.data.status?Jo.push("/password-reset/sent"):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Object(yr["a"])(Gr,F["a"].ACTIONS.RESET_USER_PASSWORD,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),ro.post("auth/password/update",t).then((function(t){"success"===t.data.status?Jo.push("/password-reset/password-updated"):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Gr),io=(xr={},Object(yr["a"])(xr,F["a"].GETTERS.AUTH_TOKEN,(function(e){return e.authToken})),Object(yr["a"])(xr,F["a"].GETTERS.AUTH_USER_PROFILE,(function(e){return e.authUserProfile})),Object(yr["a"])(xr,F["a"].GETTERS.IS_AUTHENTICATED,(function(e){return null!==e.authToken})),Object(yr["a"])(xr,F["a"].GETTERS.IS_ADMIN,(function(e){return e.authUserProfile&&e.authUserProfile.admin})),Object(yr["a"])(xr,F["a"].GETTERS.USER_LOADING,(function(e){return e.loading})),xr),so=(Fr={},Object(yr["a"])(Fr,F["a"].MUTATIONS.CLEAR_AUTH_USER_TOKEN,(function(e){e.authToken=null,e.authUserProfile={}})),Object(yr["a"])(Fr,F["a"].MUTATIONS.UPDATE_AUTH_TOKEN,(function(e,t){e.authToken=t})),Object(yr["a"])(Fr,F["a"].MUTATIONS.UPDATE_AUTH_USER_PROFILE,(function(e,t){e.authUserProfile=t})),Object(yr["a"])(Fr,F["a"].MUTATIONS.UPDATE_USER_LOADING,(function(e,t){e.loading=t})),Fr),lo={authToken:null,authUserProfile:{},loading:!1},uo={state:lo,actions:co,getters:io,mutations:so},mo=uo,Oo=(Kr={},Object(yr["a"])(Kr,F["b"].ACTIONS.GET_APPLICATION_CONFIG,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,!0),to.get("config").then((function(t){"success"===t.data.status?e.commit(F["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,!1)}))})),Object(yr["a"])(Kr,F["b"].ACTIONS.GET_APPLICATION_STATS,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.get("stats/all").then((function(t){"success"===t.data.status?e.commit(F["b"].MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Object(yr["a"])(Kr,F["b"].ACTIONS.UPDATE_APPLICATION_CONFIG,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.patch("config",t).then((function(t){"success"===t.data.status?(e.commit(F["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data),Jo.push("/admin/application")):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Kr),po=(Wr={},Object(yr["a"])(Wr,F["b"].GETTERS.APP_CONFIG,(function(e){return e.application.config})),Object(yr["a"])(Wr,F["b"].GETTERS.APP_LOADING,(function(e){return e.appLoading})),Object(yr["a"])(Wr,F["b"].GETTERS.APP_STATS,(function(e){return e.application.statistics})),Object(yr["a"])(Wr,F["b"].GETTERS.ERROR_MESSAGES,(function(e){return e.errorMessages})),Object(yr["a"])(Wr,F["b"].GETTERS.LANGUAGE,(function(e){return e.language})),Object(yr["a"])(Wr,F["b"].GETTERS.LOCALE,(function(e){return e.locale})),Wr),Eo=(Hr={},Object(yr["a"])(Hr,F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES,(function(e){e.errorMessages=null})),Object(yr["a"])(Hr,F["b"].MUTATIONS.SET_ERROR_MESSAGES,(function(e,t){e.errorMessages=t})),Object(yr["a"])(Hr,F["b"].MUTATIONS.UPDATE_APPLICATION_CONFIG,(function(e,t){e.application.config=t})),Object(yr["a"])(Hr,F["b"].MUTATIONS.UPDATE_APPLICATION_LOADING,(function(e,t){e.appLoading=t})),Object(yr["a"])(Hr,F["b"].MUTATIONS.UPDATE_APPLICATION_STATS,(function(e,t){e.application.statistics=t})),Object(yr["a"])(Hr,F["b"].MUTATIONS.UPDATE_LANG,(function(e,t){e.language=t,e.locale=X[t]})),Hr),bo={root:!0,language:"en",locale:H["a"],errorMessages:null,application:{},appLoading:!1},To=($r={},Object(yr["a"])($r,F["c"].ACTIONS.GET_SPORTS,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.get("sports").then((function(t){"success"===t.data.status?e.commit(F["c"].MUTATIONS.SET_SPORTS,t.data.data.sports):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),Object(yr["a"])($r,F["c"].ACTIONS.UPDATE_SPORTS,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.patch("sports/".concat(t.id),{is_active:t.isActive}).then((function(t){"success"===t.data.status?e.dispatch(F["c"].ACTIONS.GET_SPORTS):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),$r),So=Object(yr["a"])({},F["c"].GETTERS.SPORTS,(function(e){return e.sports})),Ao=Object(yr["a"])({},F["c"].MUTATIONS.SET_SPORTS,(function(e,t){e.sports=t})),fo={sports:[]},_o={state:fo,actions:To,getters:So,mutations:Ao},jo=_o,No=Object(yr["a"])({},F["d"].ACTIONS.GET_USER_STATS,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.get("stats/".concat(t.username,"/").concat(t.filterType),{params:t.params}).then((function(t){"success"===t.data.status?e.commit(F["d"].MUTATIONS.UPDATE_USER_STATS,t.data.data.statistics):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))})),go=Object(yr["a"])({},F["d"].GETTERS.USER_STATS,(function(e){return e.statistics})),Ro=(Yr={},Object(yr["a"])(Yr,F["d"].MUTATIONS.UPDATE_USER_STATS,(function(e,t){e.statistics=t})),Object(yr["a"])(Yr,F["d"].MUTATIONS.EMPTY_USER_STATS,(function(e){e.statistics={}})),Yr),Io={statistics:{}},vo={state:Io,actions:No,getters:go,mutations:Ro},Uo=vo,ho=(qr={},Object(yr["a"])(qr,F["e"].ACTIONS.EMPTY_USER,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["e"].MUTATIONS.UPDATE_USER,{})})),Object(yr["a"])(qr,F["e"].ACTIONS.EMPTY_USERS,(function(e){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["e"].MUTATIONS.UPDATE_USERS,[]),e.commit(F["e"].MUTATIONS.UPDATE_USERS_PAGINATION,{})})),Object(yr["a"])(qr,F["e"].ACTIONS.GET_USER,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["e"].MUTATIONS.UPDATE_USERS_LOADING,!0),to.get("users/".concat(t)).then((function(t){"success"===t.data.status?e.commit(F["e"].MUTATIONS.UPDATE_USER,t.data.data.users[0]):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),Object(yr["a"])(qr,F["e"].ACTIONS.GET_USERS,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["e"].MUTATIONS.UPDATE_USERS_LOADING,!0),to.get("users",{params:t}).then((function(t){"success"===t.data.status?(e.commit(F["e"].MUTATIONS.UPDATE_USERS,t.data.data.users),e.commit(F["e"].MUTATIONS.UPDATE_USERS_PAGINATION,t.data.pagination)):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),Object(yr["a"])(qr,F["e"].ACTIONS.UPDATE_USER,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.patch("users/".concat(t.username),{admin:t.admin}).then((function(t){"success"===t.data.status?e.commit(F["e"].MUTATIONS.UPDATE_USER_IN_USERS,t.data.data.users[0]):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)})).finally((function(){return e.commit(F["e"].MUTATIONS.UPDATE_USERS_LOADING,!1)}))})),qr),Co=(Xr={},Object(yr["a"])(Xr,F["e"].GETTERS.USER,(function(e){return e.user})),Object(yr["a"])(Xr,F["e"].GETTERS.USERS,(function(e){return e.users})),Object(yr["a"])(Xr,F["e"].GETTERS.USERS_LOADING,(function(e){return e.loading})),Object(yr["a"])(Xr,F["e"].GETTERS.USERS_PAGINATION,(function(e){return e.pagination})),Xr),ko=(Zr={},Object(yr["a"])(Zr,F["e"].MUTATIONS.UPDATE_USER,(function(e,t){e.user=t})),Object(yr["a"])(Zr,F["e"].MUTATIONS.UPDATE_USER_IN_USERS,(function(e,t){e.users=e.users.map((function(e){return e.username===t.username?t:e}))})),Object(yr["a"])(Zr,F["e"].MUTATIONS.UPDATE_USERS,(function(e,t){e.users=t})),Object(yr["a"])(Zr,F["e"].MUTATIONS.UPDATE_USERS_LOADING,(function(e,t){e.loading=t})),Object(yr["a"])(Zr,F["e"].MUTATIONS.UPDATE_USERS_PAGINATION,(function(e,t){e.pagination=t})),Zr),Do={user:{},users:[],loading:!1,pagination:{}},Po={state:Do,actions:ho,getters:Co,mutations:ko},Mo=Po,Lo=n("4870"),zo=function(e,t,n){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),to.get("workouts",{params:t}).then((function(t){"success"===t.data.status?(e.commit(F["f"].MUTATIONS[n],t.data.data.workouts),n===Lo["c"]["SET_USER_WORKOUTS"]&&e.commit(F["f"].MUTATIONS.SET_WORKOUTS_PAGINATION,t.data.pagination)):Object(W["b"])(e,null)})).catch((function(t){return Object(W["b"])(e,t)}))},yo=(Jr={},Object(yr["a"])(Jr,F["f"].ACTIONS.GET_CALENDAR_WORKOUTS,(function(e,t){e.commit(F["f"].MUTATIONS.EMPTY_CALENDAR_WORKOUTS),zo(e,t,Lo["c"]["SET_CALENDAR_WORKOUTS"])})),Object(yr["a"])(Jr,F["f"].ACTIONS.GET_USER_WORKOUTS,(function(e,t){zo(e,t,Lo["c"]["SET_USER_WORKOUTS"])})),Object(yr["a"])(Jr,F["f"].ACTIONS.GET_TIMELINE_WORKOUTS,(function(e,t){zo(e,t,Lo["c"]["SET_TIMELINE_WORKOUTS"])})),Object(yr["a"])(Jr,F["f"].ACTIONS.GET_MORE_TIMELINE_WORKOUTS,(function(e,t){zo(e,t,Lo["c"]["ADD_TIMELINE_WORKOUTS"])})),Object(yr["a"])(Jr,F["f"].ACTIONS.GET_WORKOUT_DATA,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!0);var n=t.segmentId?"/segment/".concat(t.segmentId):"";to.get("workouts/".concat(t.workoutId)).then((function(r){var o=r.data.data.workouts[0];if("success"===r.data.status){if(t.segmentId&&(0===o.segments.length||!o.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(F["f"].MUTATIONS.SET_WORKOUT,r.data.data.workouts[0]),r.data.data.workouts[0].with_gpx&&(to.get("workouts/".concat(t.workoutId,"/chart_data").concat(n)).then((function(t){"success"===t.data.status&&e.commit(F["f"].MUTATIONS.SET_WORKOUT_CHART_DATA,t.data.data.chart_data)})),to.get("workouts/".concat(t.workoutId,"/gpx").concat(n)).then((function(t){"success"===t.data.status&&e.commit(F["f"].MUTATIONS.SET_WORKOUT_GPX,t.data.data.gpx)})))}else e.commit(F["f"].MUTATIONS.EMPTY_WORKOUT),Object(W["b"])(e,null)})).catch((function(t){e.commit(F["f"].MUTATIONS.EMPTY_WORKOUT),Object(W["b"])(e,t)})).finally((function(){return e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(yr["a"])(Jr,F["f"].ACTIONS.DELETE_WORKOUT,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),to.delete("workouts/".concat(t.workoutId)).then((function(){e.commit(F["f"].MUTATIONS.EMPTY_WORKOUT),e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE),Jo.push("/")})).catch((function(t){Object(W["b"])(e,t)})).finally((function(){return e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(yr["a"])(Jr,F["f"].ACTIONS.EDIT_WORKOUT,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),to.patch("workouts/".concat(t.workoutId),t.data).then((function(){e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE),e.dispatch(F["f"].ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then((function(){Jo.push({name:"Workout",params:{workoutId:t.workoutId}})}))})).catch((function(t){Object(W["b"])(e,t)})).finally((function(){return e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(yr["a"])(Jr,F["f"].ACTIONS.ADD_WORKOUT,(function(e,t){if(e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["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,'"}')),to.post("workouts",n,{headers:{"content-type":"multipart/form-data"}}).then((function(t){if("created"===t.data.status){e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE);var n=t.data.data.workouts[0];Jo.push(1===t.data.data.workouts.length?"/workouts/".concat(n.id):"/")}})).catch((function(t){Object(W["b"])(e,t)})).finally((function(){return e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Object(yr["a"])(Jr,F["f"].ACTIONS.ADD_WORKOUT_WITHOUT_GPX,(function(e,t){e.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!0),to.post("workouts/no_gpx",t).then((function(t){if("created"===t.data.status){e.dispatch(F["a"].ACTIONS.GET_USER_PROFILE);var n=t.data.data.workouts[0];Jo.push("/workouts/".concat(n.id))}})).catch((function(t){Object(W["b"])(e,t)})).finally((function(){return e.commit(F["f"].MUTATIONS.SET_WORKOUT_LOADING,!1)}))})),Jr),wo=(Qr={},Object(yr["a"])(Qr,F["f"].GETTERS.CALENDAR_WORKOUTS,(function(e){return e.calendar_workouts})),Object(yr["a"])(Qr,F["f"].GETTERS.TIMELINE_WORKOUTS,(function(e){return e.timeline_workouts})),Object(yr["a"])(Qr,F["f"].GETTERS.USER_WORKOUTS,(function(e){return e.user_workouts})),Object(yr["a"])(Qr,F["f"].GETTERS.WORKOUT_DATA,(function(e){return e.workoutData})),Object(yr["a"])(Qr,F["f"].GETTERS.WORKOUTS_PAGINATION,(function(e){return e.pagination})),Qr),Vo=(eo={},Object(yr["a"])(eo,F["f"].MUTATIONS.ADD_TIMELINE_WORKOUTS,(function(e,t){e.timeline_workouts=e.timeline_workouts.concat(t)})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_CALENDAR_WORKOUTS,(function(e,t){e.calendar_workouts=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_TIMELINE_WORKOUTS,(function(e,t){e.timeline_workouts=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_USER_WORKOUTS,(function(e,t){e.user_workouts=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_WORKOUTS_PAGINATION,(function(e,t){e.pagination=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_WORKOUT,(function(e,t){e.workoutData.workout=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_WORKOUT_CHART_DATA,(function(e,t){e.workoutData.chartData=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_WORKOUT_GPX,(function(e,t){e.workoutData.gpx=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.SET_WORKOUT_LOADING,(function(e,t){e.workoutData.loading=t})),Object(yr["a"])(eo,F["f"].MUTATIONS.EMPTY_CALENDAR_WORKOUTS,(function(e){e.calendar_workouts=[]})),Object(yr["a"])(eo,F["f"].MUTATIONS.EMPTY_WORKOUTS,(function(e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]})),Object(yr["a"])(eo,F["f"].MUTATIONS.EMPTY_WORKOUT,(function(e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[]}})),eo),Bo={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[]}},Go={state:Bo,actions:yo,getters:wo,mutations:Vo},xo=Go,Fo={authUserModule:mo,sportsModule:jo,statsModule:Uo,usersModule:Mo,workoutsModule:xo},Ko={state:bo,actions:Oo,getters:po,mutations:Eo,modules:Fo},Wo=Ko,Ho=Object(zr["a"])(Wo),$o=Ho,Yo=function(e){var t=/(\/profile)(\/edit)*(\/*)/,n=e.replace(t,"").toUpperCase();return""===n?"PROFILE":n.toUpperCase()},qo=[{path:"/",name:"Dashboard",component:function(){return Promise.all([n.e("main~workouts"),n.e("main")]).then(n.bind(null,"7277"))}},{path:"/login",name:"Login",component:function(){return Promise.all([n.e("main~workouts"),n.e("main")]).then(n.bind(null,"d277"))},props:{action:"login"}},{path:"/register",name:"Register",component:function(){return Promise.all([n.e("main~workouts"),n.e("main")]).then(n.bind(null,"d277"))},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:bn,props:function(e){return{tab:Yo(e.path)}},children:[{path:"",name:"UserInfos",component:Tn["a"]},{path:"preferences",name:"UserPreferences",component:Nn}]},{path:"edit",name:"UserProfileEdition",component:Un,props:function(e){return{tab:Yo(e.path)}},children:[{path:"",name:"UserInfosEdition",component:Qn},{path:"picture",name:"UserPictureEdition",component:dr},{path:"preferences",name:"UserPreferencesEdition",component:Lr}]}]},{path:"/statistics",name:"Statistics",component:function(){return Promise.all([n.e("main~workouts"),n.e("main")]).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 Promise.all([n.e("main~workouts"),n.e("workouts")]).then(n.bind(null,"0385"))}},{path:"/workouts/:workoutId",name:"Workout",component:function(){return Promise.all([n.e("main~workouts"),n.e("workouts")]).then(n.bind(null,"304a"))},props:{displaySegment:!1}},{path:"/workouts/:workoutId/edit",name:"EditWorkout",component:function(){return Promise.all([n.e("main~workouts"),n.e("workouts")]).then(n.bind(null,"8ee9"))}},{path:"/workouts/:workoutId/segment/:segmentId",name:"WorkoutSegment",component:function(){return Promise.all([n.e("main~workouts"),n.e("workouts")]).then(n.bind(null,"304a"))},props:{displaySegment:!0}},{path:"/workouts/add",name:"AddWorkout",component:function(){return Promise.all([n.e("main~workouts"),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:rt},{path:"application",name:"ApplicationAdministration",component:Le},{path:"application/edit",name:"ApplicationAdministrationEdition",component:Le,props:{edition:!0}},{path:"sports",name:"SportsAdministration",component:Ut},{path:"users",name:"UsersAdministration",component:tn}]},{path:"/:pathMatch(.*)*",name:"not-found",component:function(){return Promise.all([n.e("main~workouts"),n.e("main")]).then(n.bind(null,"e19f"))}}],Xo=Object(pe["a"])({history:Object(pe["b"])("/"),routes:qo}),Zo=["/login","/password-reset","/password-reset/password-updated","/password-reset/request","/password-reset/sent","/register"];Xo.beforeEach((function(e,t,n){$o.dispatch(F["a"].ACTIONS.CHECK_AUTH_USER).then((function(){if($o.getters[F["a"].GETTERS.IS_AUTHENTICATED]&&Zo.includes(e.path))return n("/");if($o.getters[F["a"].GETTERS.IS_AUTHENTICATED]||Zo.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 Jo=Xo,Qo={class:"alert-message"},ea=["innerHTML"];function ta(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Qo,[Object(a["createElementVNode"])("div",{innerHTML:e.$t(e.message)},null,8,ea)])}var na=Object(a["defineComponent"])({name:"AlertMessage",props:{message:String}});n("f5dfd");const ra=g()(na,[["render",ta],["__scopeId","data-v-f5e8066a"]]);var oa=ra,aa={class:"custom-textarea"},ca=["id","name","maxLenght","disabled"],ia={class:"remaining-chars"};function sa(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",aa,[Object(a["withDirectives"])(Object(a["createElementVNode"])("textarea",{id:e.name,name:e.name,maxLenght:e.charLimit,disabled:e.disabled,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.text=t}),onInput:t[1]||(t[1]=function(){return e.updateText&&e.updateText.apply(e,arguments)})},null,40,ca),[[a["vModelText"],e.text]]),Object(a["createElementVNode"])("div",ia,Object(a["toDisplayString"])(e.$t("workouts.REMAINING_CHARS"))+": "+Object(a["toDisplayString"])(e.text.length)+"/"+Object(a["toDisplayString"])(e.charLimit),1)])}n("a9e3");var la=Object(a["defineComponent"])({name:"CustomTextArea",props:{charLimit:{type:Number,default:500},disabled:{type:Boolean,default:!1},input:{type:String,default:""},name:{type:String,required:!0}},emits:["updateValue"],setup:function(e,t){var n=t.emit,r=Object(a["ref"])("");function o(e){n("updateValue",e.target.value)}return Object(a["watch"])((function(){return e.input}),(function(e){r.value=e})),{text:r,updateText:o}}});n("aa0a");const ua=g()(la,[["render",sa],["__scopeId","data-v-ad3739fc"]]);var da=ua,ma={class:"dropdown-wrapper"},Oa={key:0,class:"dropdown-list"},pa=["onClick"];function Ea(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ma,[Object(a["createElementVNode"])("div",{class:"dropdown-selected",onClick:t[0]||(t[0]=function(){return e.toggleDropdown&&e.toggleDropdown.apply(e,arguments)})},[Object(a["renderSlot"])(e.$slots,"default",{},void 0,!0)]),e.isOpen?(Object(a["openBlock"])(),Object(a["createElementBlock"])("ul",Oa,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dropdownOptions,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("li",{class:Object(a["normalizeClass"])(["dropdown-item",{selected:t.value===e.selected}]),key:n,onClick:function(n){return e.updateSelected(t)}},Object(a["toDisplayString"])(t.label),11,pa)})),128))])):Object(a["createCommentVNode"])("",!0)])}var ba=Object(a["defineComponent"])({name:"Dropdown",props:{options:{type:Object,required:!0},selected:{type:String,required:!0}},emits:{selected:function(e){return e}},setup:function(e,t){var n=t.emit,r=Object(pe["c"])(),o=Object(a["ref"])(!1),c=e.options.map((function(e){return e}));function i(){o.value=!o.value}function s(e){n("selected",e),o.value=!1}return Object(a["watch"])((function(){return r.path}),(function(){return o.value=!1})),{dropdownOptions:c,isOpen:o,toggleDropdown:i,updateSelected:s}}});n("95ba");const Ta=g()(ba,[["render",Ea],["__scopeId","data-v-5ef2ddef"]]);var Sa=Ta,Aa={class:"error-message"},fa={key:0},_a={key:1};function ja(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Aa,[Array.isArray(e.message)?(Object(a["openBlock"])(),Object(a["createElementBlock"])("ul",fa,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.message,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("li",{key:n},Object(a["toDisplayString"])(e.$t(t)),1)})),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",_a,Object(a["toDisplayString"])(e.$t(e.message)),1))])}var Na=Object(a["defineComponent"])({name:"ErrorMessage",props:{message:[String,Array]}});n("4b55");const ga=g()(Na,[["render",ja],["__scopeId","data-v-5c177a93"]]);var Ra=ga,Ia=["title"];function va(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("CyclingSport"),s=Object(a["resolveComponent"])("CyclingTransport"),l=Object(a["resolveComponent"])("Hiking"),u=Object(a["resolveComponent"])("MountainBiking"),d=Object(a["resolveComponent"])("MountainBikingElectric"),m=Object(a["resolveComponent"])("Rowing"),O=Object(a["resolveComponent"])("Running"),p=Object(a["resolveComponent"])("SkiingAlpine"),E=Object(a["resolveComponent"])("SkiingCrossCountry"),b=Object(a["resolveComponent"])("Trail"),T=Object(a["resolveComponent"])("Walking");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"sport-img",style:Object(a["normalizeStyle"])({fill:e.sportColors[e.sportLabel]}),title:e.title?e.title:e.$t("sports.".concat(e.sportLabel,".LABEL"))},["Cycling (Sport)"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0})):Object(a["createCommentVNode"])("",!0),"Cycling (Transport)"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:1})):Object(a["createCommentVNode"])("",!0),"Hiking"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:2})):Object(a["createCommentVNode"])("",!0),"Mountain Biking"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:3})):Object(a["createCommentVNode"])("",!0),"Mountain Biking (Electric)"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:4})):Object(a["createCommentVNode"])("",!0),"Rowing"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(m,{key:5})):Object(a["createCommentVNode"])("",!0),"Running"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(O,{key:6})):Object(a["createCommentVNode"])("",!0),"Skiing (Alpine)"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(p,{key:7})):Object(a["createCommentVNode"])("",!0),"Skiing (Cross Country)"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:8})):Object(a["createCommentVNode"])("",!0),"Trail"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(b,{key:9})):Object(a["createCommentVNode"])("",!0),"Walking"===e.sportLabel?(Object(a["openBlock"])(),Object(a["createBlock"])(T,{key:10})):Object(a["createCommentVNode"])("",!0)],12,Ia)}var Ua={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"},ha=Object(a["createElementVNode"])("desc",{id:"cyclingSportDescription"}," silhouette of a person riding a bicycle ",-1),Ca=Object(a["createElementVNode"])("g",null,[Object(a["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(a["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),ka=[ha,Ca];function Da(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Ua,ka)}var Pa={name:"CyclingSport"};const Ma=g()(Pa,[["render",Da]]);var La=Ma,za={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"},ya=Object(a["createElementVNode"])("desc",{id:"cyclingTransportDescription"}," silhouette of a person riding a bicycle (for transportation) ",-1),wa=Object(a["createElementVNode"])("g",{id:"g147"},[Object(a["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(a["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),Va=[ya,wa];function Ba(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",za,Va)}var Ga={name:"CyclingTransport"};const xa=g()(Ga,[["render",Ba]]);var Fa=xa,Ka={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"},Wa=Object(a["createElementVNode"])("desc",{id:"hikingDescription"},"silhouette of a person hiking",-1),Ha=Object(a["createElementVNode"])("g",null,[Object(a["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(a["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),$a=[Wa,Ha];function Ya(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Ka,$a)}var qa={name:"Hiking"};const Xa=g()(qa,[["render",Ya]]);var Za=Xa,Ja={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"},Qa=Object(a["createElementVNode"])("desc",{id:"mountainBikingDescription"}," silhouette of a person riding a mountain bike ",-1),ec=Object(a["createElementVNode"])("g",null,[Object(a["createElementVNode"])("g",null,[Object(a["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(a["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(a["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),tc=[Qa,ec];function nc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Ja,tc)}var rc={name:"MountainBiking"};const oc=g()(rc,[["render",nc]]);var ac=oc,cc={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"},ic=Object(a["createStaticVNode"])('<desc id="electricMountainBikingDescription"> silhouette of a person riding an electric mountain bike </desc><g id="g10"><g id="g8"><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 c-15.721,7.134-22.702,25.752-15.578,41.444C115.679,68.216,134.23,75.14,149.951,67.997z" id="path2"></path><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 l76.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 c0,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 c17.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 C102.205,73.858,91.112,77.243,87.517,89.072z" id="path4"></path><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 c3.041-16.543,1.282-34.148-6.215-50.633c-19.498-42.974-70.094-61.87-112.943-42.419 c-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 c-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 c-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 c-19.517-42.955-70.074-61.879-113.019-42.381c-42.792,19.44-61.87,70.007-42.372,112.933 c16.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 c-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 v9.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 c0-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 l-36.127-34.951C434.712,167.418,425.79,170.325,423.687,182.488z" id="path6"></path></g></g><g id="g8-6" transform="matrix(0.61784003,0,0,0.55860964,327.27544,1.4160784)"><path d="m 49.126,150.126 c 0,-42.346 26.212,-78.68 63.26,-93.643 L 131.29,18.512 C 66.847,27.667 17.126,83.194 17.126,150.126 c 0,60.895 41.157,112.355 97.113,128.035 l 3.636,-32.354 C 77.952,232.337 49.126,194.535 49.126,150.126 Z" id="path2-1"></path><path d="m 283.019,150.126 c 0,-60.883 -41.139,-112.333 -97.076,-128.025 l -3.718,32.33 c 39.946,13.457 68.794,51.27 68.794,95.695 0,42.099 -25.907,78.255 -62.613,93.379 l -19.428,38.217 c 64.383,-9.207 114.041,-64.707 114.041,-131.596 z" id="path4-8"></path><path d="m 226.169,134.015 c 1.26,-2.479 1.141,-5.202 -0.314,-7.572 -1.454,-2.371 -4.036,-3.316 -6.818,-3.316 H 158.216 L 171.309,9.3 C 171.755,5.441 169.363,1.443 165.637,0.337 164.868,0.109 164.089,0 163.32,0 c -2.954,0 -5.746,1.681 -7.121,4.442 L 73.946,169.718 c -1.234,2.479 -1.098,5.78 0.36,8.136 1.459,2.355 4.031,4.273 6.802,4.273 h 60.019 L 128.823,291.67 c -0.43,3.844 1.951,7.077 5.657,8.185 0.761,0.228 1.532,0.29 2.293,0.29 2.948,0 5.74,-1.637 7.133,-4.378 z" id="path6-7"></path></g><g id="g10-9" transform="translate(226.08362,-24.282003)"></g><g id="g12-2" transform="translate(226.08362,-24.282003)"></g><g id="g14-0" transform="translate(226.08362,-24.282003)"></g><g id="g16-2" transform="translate(226.08362,-24.282003)"></g><g id="g18-3" transform="translate(226.08362,-24.282003)"></g><g id="g20-7" transform="translate(226.08362,-24.282003)"></g><g id="g22-5" transform="translate(226.08362,-24.282003)"></g><g id="g24-9" transform="translate(226.08362,-24.282003)"></g><g id="g26-2" transform="translate(226.08362,-24.282003)"></g><g id="g28-2" transform="translate(226.08362,-24.282003)"></g><g id="g30-8" transform="translate(226.08362,-24.282003)"></g><g id="g32-9" transform="translate(226.08362,-24.282003)"></g><g id="g34-7" transform="translate(226.08362,-24.282003)"></g><g id="g36-3" transform="translate(226.08362,-24.282003)"></g><g id="g38-6" transform="translate(226.08362,-24.282003)"></g>',18),sc=[ic];function lc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",cc,sc)}var uc={name:"MountainBikingElectric"};const dc=g()(uc,[["render",lc]]);var mc=dc,Oc={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"},pc=Object(a["createElementVNode"])("desc",{id:"rowingDescription"},"silhouette of a person rowing",-1),Ec=Object(a["createElementVNode"])("g",null,[Object(a["createElementVNode"])("g",null,[Object(a["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(a["createElementVNode"])("circle",{cx:"248.953",cy:"109.842",r:"52.326"})])],-1),bc=[pc,Ec];function Tc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Oc,bc)}var Sc={name:"Rowing"};const Ac=g()(Sc,[["render",Tc]]);var fc=Ac,_c={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"},jc=Object(a["createElementVNode"])("desc",{id:"runningDescription"},"silhouette of a running person",-1),Nc=Object(a["createElementVNode"])("g",null,[Object(a["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(a["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),gc=[jc,Nc];function Rc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",_c,gc)}var Ic={name:"Running"};const vc=g()(Ic,[["render",Rc]]);var Uc=vc,hc={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"},Cc=Object(a["createElementVNode"])("desc",{id:"alpineSkiingDescription"},"silhouette of a person skiing",-1),kc=Object(a["createElementVNode"])("g",null,[Object(a["createElementVNode"])("g",null,[Object(a["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(a["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),Dc=[Cc,kc];function Pc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",hc,Dc)}var Mc={name:"SkiingAlpine"};const Lc=g()(Mc,[["render",Pc]]);var zc=Lc,yc={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"},wc=Object(a["createElementVNode"])("desc",{id:"crossCountrySkiingDescription"}," silhouette of a person skiing (cross country) ",-1),Vc=Object(a["createElementVNode"])("g",null,[Object(a["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),Bc=[wc,Vc];function Gc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",yc,Bc)}var xc={name:"SkiingCrossCountry"};const Fc=g()(xc,[["render",Gc]]);var Kc=Fc,Wc={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"},Hc=Object(a["createElementVNode"])("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),$c=Object(a["createElementVNode"])("g",null,[Object(a["createElementVNode"])("g",null,[Object(a["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(a["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),Yc=[Hc,$c];function qc(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Wc,Yc)}var Xc={name:"Trail"};const Zc=g()(Xc,[["render",qc]]);var Jc=Zc,Qc={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"},ei=Object(a["createStaticVNode"])('<desc id="walkingDescription">silhouette of a walking person</desc><defs id="defs797"></defs><g id="g792"><path d="m 272.74,80.771 c 22.318,0 40.401,-18.08 40.401,-40.389 C 313.141,18.084 295.058,0 272.74,0 c -22.281,0 -40.378,18.084 -40.378,40.383 0,22.308 18.096,40.388 40.378,40.388 z" id="path788"></path><path d="m 328.5854,174.48445 -40.64148,10.93729 4.76008,-51.90474 0.123,-0.944 c 1.384,-10.514 -1.475,-21.146 -7.94,-29.556 -6.461,-8.409 -16.007,-13.903 -26.52,-15.287 -10.926,-1.429 -22.619,3.12 -31.206,8.646 -1.441,0.928 -84.97,54.921 -84.97,54.921 -5.175,3.358 -8.542,8.877 -9.165,15.016 -0.634,6.13 1.574,12.222 5.976,16.541 l 58.982,58 -6.417,48.954 -25.88143,79.08977 -54.08338,43.67932 c -14.762199,11.1022 -24.410111,22.37008 -15.912276,36.07186 8.515526,13.68031 27.439076,15.75973 42.273746,4.63076 l 48.9456,-38.84296 c 12.09075,-7.84858 23.84126,-20.18502 28.3003,-35.27702 L 235.052,315.187 l 26.365,36.639 6.684,119.628 c 0.73,12.991 11.501,23.036 24.349,23.036 0.441,0 0.92,-0.016 1.379,-0.039 13.453,-0.748 23.745,-12.262 23,-25.713 l -7.083,-126.736 c -0.271,-4.643 -1.846,-9.116 -4.56,-12.887 l -32.24,-44.811 7.981,-57.1 c -15.00943,6.0905 -25.84439,5.48716 0,0 l 59.50354,-17.8263 c 10.75379,-3.22166 16.4326,-12.34116 13.52152,-25.36894 -2.44853,-10.95778 -14.74571,-13.15695 -25.36666,-9.52431 z M 204.606,190.357 185.58,171.64 209.056,156.434 Z" id="path790"></path></g>',3),ti=[ei];function ni(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",Qc,ti)}var ri={name:"Walking"};const oi=g()(ri,[["render",ni]]);var ai=oi,ci=Object(a["defineComponent"])({name:"SportImage",components:{CyclingSport:La,CyclingTransport:Fa,Hiking:Za,MountainBiking:ac,MountainBikingElectric:mc,Rowing:fc,Running:Uc,SkiingAlpine:zc,SkiingCrossCountry:Kc,Trail:Jc,Walking:ai},props:{sportLabel:{type:String,required:!0},title:{type:String,required:!1}},setup:function(){return{sportColors:Object(a["inject"])("sportColors")}}});const ii=g()(ci,[["render",va]]);var si=ii,li={class:"loader"};function ui(e,t,n,r,o,c){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",li)}var di=Object(a["defineComponent"])({name:"Loader"});n("b373");const mi=g()(di,[["render",ui],["__scopeId","data-v-8bf75da8"]]);var Oi=mi,pi={id:"modal"},Ei={class:"custom-modal"},bi={key:0,class:"modal-message"},Ti={key:1,class:"modal-message"},Si={class:"modal-buttons"};function Ai(e,t,n,r,o,c){var i=Object(a["resolveComponent"])("i18n-t"),s=Object(a["resolveComponent"])("ErrorMessage"),l=Object(a["resolveComponent"])("Card");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",pi,[Object(a["createElementVNode"])("div",Ei,[Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.title),1)]})),content:Object(a["withCtx"])((function(){return[e.strongMessage?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",bi,[Object(a["createVNode"])(i,{keypath:e.message},{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.strongMessage),1)]})),_:1},8,["keypath"])])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ti,Object(a["toDisplayString"])(e.message),1)),e.errorMessages?(Object(a["openBlock"])(),Object(a["createBlock"])(s,{key:2,message:e.errorMessages},null,8,["message"])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",Si,[e.errorMessages?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("button",{key:0,class:"confirm",onClick:t[0]||(t[0]=function(t){return e.emit("confirmAction")})},Object(a["toDisplayString"])(e.$t("buttons.YES")),1)),Object(a["createElementVNode"])("button",{class:"cancel",onClick:t[1]||(t[1]=function(t){return e.emit("cancelAction")})},Object(a["toDisplayString"])(e.$t("buttons.".concat(e.errorMessages?"CANCEL":"NO"))),1)])]})),_:1})])])}var fi=Object(a["defineComponent"])({name:"Modal",props:{title:{type:String,required:!0},message:{type:String,required:!0},strongMessage:{type:String||null,default:null}},emits:["cancelAction","confirmAction"],setup:function(e,t){var n=t.emit,r=Object(K["a"])(),o=Object(a["computed"])((function(){return r.getters[F["b"].GETTERS.ERROR_MESSAGES]}));return Object(a["onUnmounted"])((function(){return r.commit(F["b"].MUTATIONS.EMPTY_ERROR_MESSAGES)})),{errorMessages:o,emit:n}}});n("25ba");const _i=g()(fi,[["render",Ai],["__scopeId","data-v-366182c4"]]);var ji=_i,Ni=[oa,et,da,Sa,Ra,Oi,ji,si],gi={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"],o["a"]);var Ri=Object(a["createApp"])(Oe).provide("sportColors",Rt["b"]).use(q).use($o).use(Jo).directive("click-outside",gi);Ni.forEach((function(e){Ri.component(e.name,e)})),Ri.mount("#app")},d257:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("caad"),n("2532"),n("d81d"),n("4de4"),n("d3b7"),n("ac1f"),n("1276");var r=n("dad5"),o=function(){return"/api/"},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"UNKNOWN",o=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,o.includes("\n")?o.split("\n").filter((function(e){return""!==e})).map((function(e){return"api.ERROR.".concat(e)})):"api.ERROR.".concat(o))}},d42e:function(e,t,n){"use strict";n("dc79")},da66:function(e,t,n){},dad5:function(e,t,n){"use strict";var r,o,a,c,i,s,l,u,d,m,O,p,E,b,T;n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return _})),n.d(t,"a",(function(){return j})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return g})),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"}(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"}(o||(o={})),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"}(a||(a={})),function(e){e["GET_APPLICATION_CONFIG"]="GET_APPLICATION_CONFIG",e["GET_APPLICATION_STATS"]="GET_APPLICATION_STATS",e["UPDATE_APPLICATION_CONFIG"]="UPDATE_APPLICATION_CONFIG"}(c||(c={})),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"}(m||(m={})),function(e){e["USER_STATS"]="USER_STATS"}(O||(O={})),function(e){e["EMPTY_USER_STATS"]="EMPTY_USER_STATS",e["UPDATE_USER_STATS"]="UPDATE_USER_STATS"}(p||(p={})),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||(E={})),function(e){e["USER"]="USER",e["USERS"]="USERS",e["USERS_LOADING"]="USERS_LOADING",e["USERS_PAGINATION"]="USERS_PAGINATION"}(b||(b={})),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"}(T||(T={}));var S=n("4870"),A={ACTIONS:c,GETTERS:i,MUTATIONS:s},f={ACTIONS:l,GETTERS:u,MUTATIONS:d},_={ACTIONS:m,GETTERS:O,MUTATIONS:p},j={ACTIONS:r,GETTERS:o,MUTATIONS:a},N={ACTIONS:E,GETTERS:b,MUTATIONS:T},g={ACTIONS:S["a"],GETTERS:S["b"],MUTATIONS:S["c"]}},dc79:function(e,t,n){},e7b6:function(e,t,n){var r={"./en/en.ts":"c142","./fr/fr.ts":"663e"};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id="e7b6"},edb9:function(e,t,n){},ee25:function(e,t,n){},f037:function(e,t,n){"use strict";n("aa8e")},f5dfd:function(e,t,n){"use strict";n("9838")},fa79:function(e,t,n){"use strict";n("9c9a")},fb34:function(e,t,n){},fb41:function(e,t,n){},ff71:function(e,t,n){}});
|
|
//# sourceMappingURL=app.e01bf3f7.js.map
|