1 line
357 KiB
Plaintext
1 line
357 KiB
Plaintext
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/Common/StatCard.vue","webpack:///./src/components/Common/StatCard.vue?50f0","webpack:///./src/components/Common/StatCard.vue?8fe7","webpack:///./src/components/User/ProfileEdition/UserInfosEdition.vue?67ed","webpack:///./src/utils/sports.ts","webpack:///./src/components/User/UserPicture.vue?6d42","webpack:///./src/components/Common/Card.vue?8159","webpack:///./src/components/Common/Pagination.vue?efed","webpack:///./src/use/useStore.ts","webpack:///./src/components/Administration/AdminSports.vue?6443","webpack:///./src/components/Administration/AdminApplication.vue?7cc7","webpack:///./src/components/User/ProfileDisplay/UserHeader.vue","webpack:///./src/components/User/ProfileDisplay/UserHeader.vue?73f1","webpack:///./src/components/User/ProfileDisplay/UserHeader.vue?4ce6","webpack:///./src/store/modules/workouts/enums.ts","webpack:///./src/components/Administration/AdminMenu.vue?4bef","webpack:///./src/components/Common/ErrorMessage.vue?f921","webpack:///./src/components/User/ProfileDisplay/UserHeader.vue?a4e5","webpack:///./src/components/NavBar.vue?410d","webpack:///./src/utils/dates.ts","webpack:///./src/App.vue?4cf5","webpack:///./src/locales/fr/administration.json","webpack:///./src/locales/fr/api.json","webpack:///./src/locales/fr/buttons.json","webpack:///./src/locales/fr/common.json","webpack:///./src/locales/fr/dashboard.json","webpack:///./src/locales/fr/error.json","webpack:///./src/locales/fr/sports.json","webpack:///./src/locales/fr/statistics.json","webpack:///./src/locales/fr/user.json","webpack:///./src/locales/fr/workouts.json","webpack:///./src/locales/fr/fr.ts","webpack:///./src/components/Common/Pagination.vue","webpack:///./src/components/Common/Pagination.vue?93e2","webpack:///./src/components/Common/Pagination.vue?73f7","webpack:///./src/components/User/ProfileDisplay/UserInfos.vue","webpack:///./src/components/User/ProfileDisplay/UserInfos.vue?7c95","webpack:///./src/components/User/ProfileDisplay/UserInfos.vue?820e","webpack:///./src/components/Common/FilterSelects.vue?56eb","webpack:///./src/components/Footer.vue?d019","webpack:///./src/components/User/ProfileDisplay/index.vue?1702","webpack:///./src/components/Common/StatCard.vue?c013","webpack:///./src/components/Common/Modal.vue?4e3e","webpack:///./src/components/Common/FilterSelects.vue","webpack:///./src/components/Common/FilterSelects.vue?927e","webpack:///./src/components/Common/FilterSelects.vue?0254","webpack:///./src/components/Common/Dropdown.vue?2734","webpack:///./src/components/User/ProfileDisplay/UserInfos.vue?db14","webpack:///./src/utils/api.ts","webpack:///./src/components/Administration/AppStatsCards.vue?d919","webpack:///./src/components/Common/CustomTextArea.vue?6de7","webpack:///./src/components/Common/Loader.vue?9489","webpack:///./src/components/User/ProfileEdition/UserPictureEdition.vue?a666","webpack:///./src/components/Administration/AdminUsers.vue?8815","webpack:///./src/locales/en/administration.json","webpack:///./src/locales/en/api.json","webpack:///./src/locales/en/buttons.json","webpack:///./src/locales/en/common.json","webpack:///./src/locales/en/dashboard.json","webpack:///./src/locales/en/error.json","webpack:///./src/locales/en/sports.json","webpack:///./src/locales/en/statistics.json","webpack:///./src/locales/en/user.json","webpack:///./src/locales/en/workouts.json","webpack:///./src/locales/en/en.ts","webpack:///./src/utils/files.ts","webpack:///./src/components/User/UserPicture.vue","webpack:///./src/components/User/UserPicture.vue?2f01","webpack:///./src/components/User/UserPicture.vue?22b2","webpack:///./src/components/User/ProfileDisplay/UserPreferences.vue?2098","webpack:///./src/registerServiceWorker.ts","webpack:///./src/App.vue","webpack:///./src/components/Footer.vue","webpack:///./src/components/Footer.vue?87b7","webpack:///./src/components/Footer.vue?c832","webpack:///./src/components/NavBar.vue","webpack:///./src/i18n.ts","webpack:///./src/utils/locales.ts","webpack:///./src/components/NavBar.vue?a890","webpack:///./src/components/NavBar.vue?ab0f","webpack:///./src/components/NoConfig.vue","webpack:///./src/components/NoConfig.vue?37a4","webpack:///./src/components/NoConfig.vue?ad85","webpack:///./src/App.vue?3acc","webpack:///./src/App.vue?dfb6","webpack:///./src/components/Administration/AdminApplication.vue","webpack:///./src/components/Administration/AdminApplication.vue?8e5b","webpack:///./src/components/Administration/AdminApplication.vue?80c4","webpack:///./src/components/Administration/AdminMenu.vue","webpack:///./src/components/Administration/AppStatsCards.vue","webpack:///./src/components/Administration/AppStatsCards.vue?d6b2","webpack:///./src/components/Administration/AppStatsCards.vue?7576","webpack:///./src/components/Common/Card.vue","webpack:///./src/components/Common/Card.vue?f962","webpack:///./src/components/Common/Card.vue?a585","webpack:///./src/components/Administration/AdminMenu.vue?9783","webpack:///./src/components/Administration/AdminMenu.vue?4828","webpack:///./src/components/Administration/AdminSports.vue","webpack:///./src/components/Administration/AdminSports.vue?9572","webpack:///./src/components/Administration/AdminSports.vue?271c","webpack:///./src/components/Administration/AdminUsers.vue","webpack:///./src/components/Administration/AdminUsers.vue?e346","webpack:///./src/components/Administration/AdminUsers.vue?d3af","webpack:///./src/components/User/ProfileDisplay/index.vue","webpack:///./src/components/User/UserProfileTabs.vue","webpack:///./src/components/User/UserProfileTabs.vue?9e70","webpack:///./src/components/User/UserProfileTabs.vue?3fc9","webpack:///./src/components/User/ProfileDisplay/index.vue?f20a","webpack:///./src/components/User/ProfileDisplay/index.vue?b24c","webpack:///./src/components/User/ProfileDisplay/UserPreferences.vue","webpack:///./src/components/User/ProfileDisplay/UserPreferences.vue?2ffa","webpack:///./src/components/User/ProfileDisplay/UserPreferences.vue?a232","webpack:///./src/components/User/ProfileEdition/index.vue","webpack:///./src/components/User/ProfileEdition/index.vue?4849","webpack:///./src/components/User/ProfileEdition/index.vue?f268","webpack:///./src/components/User/ProfileEdition/UserInfosEdition.vue","webpack:///./src/components/User/ProfileEdition/UserInfosEdition.vue?b205","webpack:///./src/components/User/ProfileEdition/UserInfosEdition.vue?92df","webpack:///./src/components/User/ProfileEdition/UserPictureEdition.vue","webpack:///./src/components/User/ProfileEdition/UserPictureEdition.vue?203b","webpack:///./src/components/User/ProfileEdition/UserPictureEdition.vue?311f","webpack:///./src/components/User/ProfileEdition/UserPreferencesEdition.vue","webpack:///./src/components/User/ProfileEdition/UserPreferencesEdition.vue?13dd","webpack:///./src/components/User/ProfileEdition/UserPreferencesEdition.vue?d2de","webpack:///./src/api/authApi.ts","webpack:///./src/store/modules/root/actions.ts","webpack:///./src/store/modules/root/getters.ts","webpack:///./src/store/modules/root/mutations.ts","webpack:///./src/store/modules/root/state.ts","webpack:///./src/store/modules/sports/actions.ts","webpack:///./src/store/modules/sports/getters.ts","webpack:///./src/store/modules/sports/mutations.ts","webpack:///./src/store/modules/sports/state.ts","webpack:///./src/store/modules/sports/index.ts","webpack:///./src/store/modules/statistics/actions.ts","webpack:///./src/store/modules/statistics/getters.ts","webpack:///./src/store/modules/statistics/mutations.ts","webpack:///./src/store/modules/statistics/state.ts","webpack:///./src/store/modules/statistics/index.ts","webpack:///./src/api/defaultApi.ts","webpack:///./src/store/modules/user/actions.ts","webpack:///./src/store/modules/user/getters.ts","webpack:///./src/store/modules/user/mutations.ts","webpack:///./src/store/modules/user/state.ts","webpack:///./src/store/modules/user/index.ts","webpack:///./src/store/modules/users/actions.ts","webpack:///./src/store/modules/users/getters.ts","webpack:///./src/store/modules/users/mutations.ts","webpack:///./src/store/modules/users/state.ts","webpack:///./src/store/modules/users/index.ts","webpack:///./src/store/modules/workouts/actions.ts","webpack:///./src/store/modules/workouts/getters.ts","webpack:///./src/store/modules/workouts/mutations.ts","webpack:///./src/store/modules/workouts/state.ts","webpack:///./src/store/modules/workouts/index.ts","webpack:///./src/store/modules/root/index.ts","webpack:///./src/store/index.ts","webpack:///./src/router/index.ts","webpack:///./src/components/Common/AlertMessage.vue","webpack:///./src/components/Common/AlertMessage.vue?af1b","webpack:///./src/components/Common/AlertMessage.vue?2e10","webpack:///./src/components/Common/CustomTextArea.vue","webpack:///./src/components/Common/CustomTextArea.vue?8616","webpack:///./src/components/Common/CustomTextArea.vue?3b63","webpack:///./src/components/Common/Dropdown.vue","webpack:///./src/components/Common/Dropdown.vue?3644","webpack:///./src/components/Common/Dropdown.vue?9a46","webpack:///./src/components/Common/ErrorMessage.vue","webpack:///./src/components/Common/ErrorMessage.vue?ab8e","webpack:///./src/components/Common/ErrorMessage.vue?7b9e","webpack:///./src/components/Common/Images/SportImage/index.vue","webpack:///./src/components/Common/Images/SportImage/CyclingSport.vue","webpack:///./src/components/Common/Images/SportImage/CyclingSport.vue?7ed2","webpack:///./src/components/Common/Images/SportImage/CyclingTransport.vue","webpack:///./src/components/Common/Images/SportImage/CyclingTransport.vue?dba6","webpack:///./src/components/Common/Images/SportImage/Hiking.vue","webpack:///./src/components/Common/Images/SportImage/Hiking.vue?3937","webpack:///./src/components/Common/Images/SportImage/MountainBiking.vue","webpack:///./src/components/Common/Images/SportImage/MountainBiking.vue?9b70","webpack:///./src/components/Common/Images/SportImage/Running.vue","webpack:///./src/components/Common/Images/SportImage/Running.vue?2248","webpack:///./src/components/Common/Images/SportImage/Walking.vue","webpack:///./src/components/Common/Images/SportImage/Walking.vue?d660","webpack:///./src/components/Common/Images/SportImage/index.vue?2baa","webpack:///./src/components/Common/Images/SportImage/index.vue?5245","webpack:///./src/components/Common/Loader.vue","webpack:///./src/components/Common/Loader.vue?2b84","webpack:///./src/components/Common/Loader.vue?4fd1","webpack:///./src/components/Common/Modal.vue","webpack:///./src/components/Common/Modal.vue?1385","webpack:///./src/components/Common/Modal.vue?e362","webpack:///./src/custom-components.ts","webpack:///./src/directives.ts","webpack:///./src/main.ts","webpack:///./src/utils/index.ts","webpack:///./src/components/User/UserProfileTabs.vue?722a","webpack:///./src/store/modules/root/enums.ts","webpack:///./src/store/modules/sports/enums.ts","webpack:///./src/store/modules/statistics/enums.ts","webpack:///./src/store/modules/user/enums.ts","webpack:///./src/store/modules/users/enums.ts","webpack:///./src/store/constants.ts","webpack:///./src/locales sync [A-Za-z0-9-_,\\s]+\\.ts$/","webpack:///./src/components/NoConfig.vue?56f6","webpack:///./src/components/Common/AlertMessage.vue?e180"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","class","icon","text","props","String","required","Number","render","sportColors","Hiking","Running","Walking","sportIdColors","sports","colors","map","sport","id","label","sortSports","a","b","sportATranslatedLabel","translatedLabel","toLowerCase","sportBTranslatedLabel","translateSports","onlyActive","filter","is_active","sort","getSportLabel","workout","sport_id","useStore","user","username","nb_workouts","$t","total_distance","toFixed","nb_sports","components","UserPicture","__scopeId","WorkoutsActions","WorkoutsGetters","WorkoutsMutations","getStartDate","duration","day","weekStartingMonday","weekStartsOn","incrementDate","getDateWithTZ","dateInUTC","tz","Date","getCalendarStartAndEnd","date","monthStart","monthEnd","start","end","formatWorkoutDate","dateTime","dateFormat","timeFormat","workout_date","workout_time","Action","Ajouter/retirer des droits d'administration, supprimer des comptes utilisateurs.","Admin","Administration","Application","Nombre maximum d'utilisateurs actifs ","Si égal à 0, pas limite d'inscription","Taille max. des archives zip (en Mo) ","Taille max. des fichiers (en Mo) ","Configuration de l'application","Nombre max. de fichiers dans une archive zip ","Revenir à l'admin","Etes-vous sûr de vouloir supprimer le compte de ","0"," ? Toutes les données seront définitivement.","Supprimer l'utilisateur","Activer/désactiver des sports.","Les inscriptions sont actuellement désactivées.","Les inscriptions sont actuellement activées.","Actif","des séances existent","Image","Label","Administration - Sports","Configurer l'application (nombre maximum d'utilisateurs inscrits, taille maximale des fichers).","utilisateur","utilisateurs","Ajouter les drois d'admin","Retirer les drois d'admin","status administrateur","date d'inscription","nom d'utilisateur","nombre de séances","Erreur. Veuillez réessayer ou contacter l'administrateur.","Email : une adresse email valide doit être fournie.","Erreur lors de la récupération de la configuration.","Erreur lors de la mise à jour de la configuration","Erreur, veuillez réessayer ou contacter l'administrateur.","Erreur, les inscriptions sont désactivées.","Extension de fichier non autorisée.","La taille du fichier est supérieure à la limite autorisée.","Identifiants invalides.","Données fournies incorrectes.","Jeton de connexion invalide, merci de vous reconnecter.","Jeton de connexion, merci de vous reconnecter.","Pas de fichier fourni.","Pas de fichier sélectionné.","Erreur Réseau.","Mot de passe : les mots de passe saisis sont différents.","Merci de fournir un jeton de connexion valide.","Mot de passe : 8 caractères minimum.","Ce sport n'existe pas.","Signature expirée. Merci de vous reconnecter.","Désolé, cet utilisateur existe déjà.","Inscription validée.","L'utilisateur n'existe pas","Nom d'utilisateur : 3 à 12 caractères requis.","Vous n'avez pas les permissions nécessaires.","précédent","suivant","Précédent","Annuler","Supprimer mon compte","Désactiver","Modifier","Activer","Filtrer","Se connecter","Non","S'inscrire","Valider","Oui","Confirmation","jour","jours","Accueil","ici","trier par ","tri","ascendant","descendant","par page","Total","Tableau de Bord","Ce mois","L'application semble rencontrer quelques problèmes.<br />Veuillez réessayer plus tard ou contacter l'administrateur.","Page introuvable","Séance introuvable","Vélo (Sport)","Vélo (Transport)","Randonnée","VTT","Course","Marche","Statistiques","semaine","mois","année","Etes-vous sûr de vouloir supprimer votre compte ? Toutes les données seront définitivement effacés.","Email","Saisir une adresse email","Saisir un mot de passe","Confirmer le mot de passe","Jeton invalide, veullez demander une nouvelle réinitialisation de mot de passe.","Langue","Se déconnecter","Mot de passe","Confirmation du mot de passe","Mot de passe oublié ?","Réinitialisation du mot de passe","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.","Votre mot de passe a été mis à jour. Cliquez "," pour vous connecter.","Revenir au profil","Bio","Date de naissance","Modifier le profil","Modifier les préférences","Premier jour de la semaine","Prénom","Nom","Lieu","Lundi","Image de profil","Mise à jour de l'image de profil","Mettre à jour l'image","Supprimer","Mise à jour des préférences","Mise à jour du profil","Date d'inscription","Dimanche","image","préférences","profil","Fuseau horaire","Désolé, les inscriptions sont désactivées.","Réinitialiser votre mot de passe","photo de l'utilisateur","Nom d'utilisateur","Ajouter une séance","analyse","dénivelé positif","vitesse moyenne","vitesse moy.","revenir à la séance","dénivelé négatif","afficher les filtres","distance","durée","Modifier la séance","altitude","fin","à partir de","fichier .gpx","masquer les filtres","km","Séances récentes","Charger les séances suivantes","altitude max","fichiers max. ","taille max. ","vitesse max","altitude min","Segment suivant","Séance suivante","données issues du fichier gpx, sans correction","Pas de fichier fourni","pas de répertoire","Pas de carte","Pas de segment suivant","Pas de séance suivante","Pas de notes","Pas de segment précédent","Pas de séance précédente","Pas de records.","Pas de séances.","notes","pauses","Segment précédent","Séance précédente","record","records","Vitesse moy.","Distance la + longue","Durée la + longue","Vitesse max.","nombre de caractères restants ","segment","segments","vitesse","début","titre","jusqu'au","durée totale","Ajoutez votre première séance !","humidité","température","vent","ensoleillé","nuit claire","nuageux","brouillard","partiellement nuageux","nuit partiellement nuageuse","pluie","neige fondue","neige","venteux","avec un fichier .gpx","sans fichier .gpx","séance","séances","date de la séance","Etes-vous sûr de vouloir supprimer cette séance ?","archive .zip","ou une archive .zip contenant des fichiers .gpx","admin","api","buttons","common","dashboard","statistics","workouts","aria-label","aria-hidden","pagination","has_prev","to","path","getQuery","page","disabled","rangePagination","pages","has_next","query","setup","cursor","newQuery","assign","displayModal","title","strongMessage","deleteUserAccount","updateDisplayModal","registrationDate","first_name","last_name","birthDate","location","bio","fromAdmin","authUser","$router","go","Boolean","default","store","getters","GETTERS","AUTH_USER_PROFILE","created_at","format","birth_date","dispatch","ACTIONS","DELETE_ACCOUNT","order_by","onSelectUpdate","order","toUpperCase","per_page","nb","emits","emit","sortList","defaultPage","defaultPerPage","getNumberQueryValue","queryValue","defaultValue","getStringQueryValue","availableValues","includes","locationQuery","orderByList","defaultOrderBy","options","queryOptions","defaultSort","workoutsPayloadKeys","getRange","stop","Array","from","_","currentPage","concat","Add/remove admin rights, delete user account.","Max. number of active users","If 0, no limitation on registration.","Max. files of zip archive","Max. size of uploaded files (in Mb)","Application configuration","Max. size of zip archive (in Mb)","Back to admin","Are you sure you want to delete "," account? All data will be deleted, this cannot be undone.","Delete user","Enable/disable sports.","Registration is currently disabled.","Registration is currently enabled.","Active","workouts exist","Sports administration","Update application configuration (maximum number of registered users, maximum files size).","users","Add admin rights","Remove admin rights","admin status","registration date","workout count","Error. Please try again or contact the administrator.","Email: valid email must be provided.","Error on getting configuration.","Error when updating configuration","Error, please try again or contact the administrator.","Error, registration is disabled.","File extension not allowed.","File size is greater than the allowed size.","Invalid credentials.","Provided data are invalid.","Invalid token, please log in again.","Network Error.","No file provided.","No selected file.","Password: password and password confirmation don't match.","Provide a valid auth token.","Password: 8 characters required.","Sorry, that user already exists.","Sport does not exist.","Signature expired. Please log in again.","Successfully registered.","User does not exist.","Username: 3 to 12 characters required.","You do not have permissions.","previous","next","Back","Cancel","Delete my account","Disable","Edit","Enable","Filter","Log in","No","Register","Submit","Yes","days","Home","here","order by","ascending","descending","Dashboard","This month","The application seems encounter some issues.<br />Please try later or contact the administrator.","Page not found","Workout not found","Cycling (Sport)","Cycling (Transport)","Mountain Biking","Statistics","week","month","year","Are you sure you want to delete your account? All data will be deleted, this cannot be undone","Enter an email address","Enter a password","Confirm the password","Invalid token, please request a new password reset.","Language","Login","Logout","Password","Confirm Password","Password confirmation","Forgot password?","Password reset","Check your email. If your address is in our database, you'll received an email with a link to reset your password.","Your password have been updated. Click "," to log in.","Back to profile","Birth date","Edit profile","Edit preferences","First name","First day of week","Last name","Location","Monday","Picture","Picture edition","Update picture","Remove picture","Preferences edition","Profile edition","Registration date","Sunday","picture","preferences","profile","Timezone","Sorry, registration is disabled.","Reset your password","user picture","Username","Add a workout","analysis","ascent","ave. speed","average speed","back to workout","descent","display filters","Edit the workout","elevation",".gpx file","hide filters","Latest workouts","Load more workouts","max. altitude","max files","max size","max. speed","min. altitude","No next segment","Next workout","data from gpx, without any cleaning","No file provided","no folder inside","No map","No next workout","No notes","No previous segment","No previous workout","No records.","No workouts.","Previous segment","Previous workout","Ave. speed","Farest distance","Longest duration","Max. speed","remaining characters","speed","total duration","Upload one!","humidity","temperature","wind","clear day","clear night","cloudy","fog","partly cloudy day","partly cloudy night","rain","sleet","snow","with .gpx file","without .gpx file","workout date","Are you sure you want to delete this workout?",".zip file","or .zip file containing .gpx files","suffixes","getReadableFileSize","fileSize","asText","Math","floor","log","size","suffix","pow","getFileSizeInMB","authUserPictureUrl","alt","ready","registered","cached","updatefound","updated","offline","updateHideScrollBar","appLoading","hideScrollBar","appConfig","displayScrollButton","scrollToTop","version","isMenuOpen","openMenu","closeMenu","isAuthenticated","capitalize","logout","availableLanguages","language","selected","updateLanguage","loadLocaleMessages","locales","messages","keys","forEach","matched","match","locale","legacy","fallbackLocale","globalInjection","localeFromLanguage","en","fr","languageLabels","availableLocales","global","IS_AUTHENTICATED","now","LANGUAGE","option","toString","commit","MUTATIONS","UPDATE_LANG","LOGOUT","xmlns","viewBox","Footer","NavBar","NoConfig","APP_CONFIG","APP_LOADING","isScrolledToBottom","element","getBoundingClientRect","top","innerHeight","bottom","scroll","onscroll","querySelector","scrollTo","behavior","GET_APPLICATION_CONFIG","for","content","onSubmit","min","appData","max_users","edition","step","max_single_file_size","max_zip_file_size","gpx_limit_import","errorMessages","onCancel","router","ERROR_MESSAGES","updateForm","EMPTY_ERROR_MESSAGES","formData","UPDATE_APPLICATION_CONFIG","app-statistics","appStatistics","usersCount","sportsCount","workoutCount","uploadDirSize","StatCard","uploads_dir_size","AppStatsCards","Card","translatedSports","sport-label","updateSportStatus","has_workouts","SPORTS","isActive","UPDATE_SPORTS","reloadUsers","email","updateUser","FilterSelects","Pagination","route","USERS","USERS_PAGINATION","loadUsers","queryParams","GET_USERS","UPDATE_USER","queryParam","EMPTY_USERS","tabs","selectedTab","tab","checked","getPath","UserHeader","UserProfileTabs","timezone","fistDayOfWeek","weekm","loading","USER_LOADING","deleteAccount","updateProfile","userForm","password","password_conf","charLimit","input","updateBio","updateUserForm","UPDATE_USER_PROFILE","updateUserPicture","accept","updatePictureFile","pictureFile","deleteUserPicture","fileSizeLimit","DELETE_PICTURE","files","UPDATE_USER_PICTURE","lang","weekStart","UPDATE_USER_PREFERENCES","authApi","baseURL","interceptors","use","config","authToken","AUTH_TOKEN","auth","headers","Authorization","actions","context","UPDATE_APPLICATION_LOADING","res","status","catch","finally","GET_APPLICATION_STATS","UPDATE_APPLICATION_STATS","payload","patch","state","application","APP_STATS","LOCALE","mutations","SET_ERROR_MESSAGES","root","GET_SPORTS","SET_SPORTS","sportsState","GET_USER_STATS","filterType","params","UPDATE_USER_STATS","USER_STATS","EMPTY_USER_STATS","statisticsState","localStorage","removeItem","CLEAR_AUTH_USER_TOKEN","UPDATE_USERS","EMPTY_WORKOUTS","EMPTY_WORKOUT","CHECK_AUTH_USER","UPDATE_AUTH_TOKEN","GET_USER_PROFILE","UPDATE_AUTH_USER_PROFILE","LOGIN_OR_REGISTER","post","actionType","token","auth_token","setItem","UPDATE_USER_LOADING","form","FormData","append","delete","SEND_PASSWORD_RESET_REQUEST","RESET_USER_PASSWORD","authUserProfile","IS_ADMIN","userState","EMPTY_USER","UPDATE_USERS_PAGINATION","GET_USER","UPDATE_USERS_LOADING","UPDATE_USER_IN_USERS","USER","USERS_LOADING","updatedUser","usersState","SET_WORKOUTS_PAGINATION","GET_CALENDAR_WORKOUTS","EMPTY_CALENDAR_WORKOUTS","GET_USER_WORKOUTS","GET_TIMELINE_WORKOUTS","GET_MORE_TIMELINE_WORKOUTS","GET_WORKOUT_DATA","SET_WORKOUT_LOADING","segmentUrl","segmentId","workoutId","SET_WORKOUT","with_gpx","SET_WORKOUT_CHART_DATA","chart_data","SET_WORKOUT_GPX","gpx","DELETE_WORKOUT","EDIT_WORKOUT","ADD_WORKOUT","file","ADD_WORKOUT_WITHOUT_GPX","CALENDAR_WORKOUTS","calendar_workouts","TIMELINE_WORKOUTS","timeline_workouts","USER_WORKOUTS","user_workouts","WORKOUT_DATA","workoutData","WORKOUTS_PAGINATION","ADD_TIMELINE_WORKOUTS","SET_CALENDAR_WORKOUTS","SET_TIMELINE_WORKOUTS","SET_USER_WORKOUTS","chartData","workoutsState","sportsModule","statsModule","userModule","usersModule","workoutsModule","getTabFromPath","regex","replace","routes","component","action","children","UserInfos","UserPreferences","ProfileEdition","UserInfosEdition","UserPictureEdition","UserPreferencesEdition","displaySegment","AdminMenu","AdminApplication","AdminSports","AdminUsers","history","pathsWithoutAuthentication","beforeEach","fullPath","maxLenght","updateText","toggleDropdown","isOpen","dropdownOptions","index","updateSelected","isArray","subMessage","style","sportLabel","xmlns:xlink","x","y","xml:space","xmlns:svg","CyclingSport","CyclingTransport","MountainBiking","keypath","customComponents","AlertMessage","CustomTextArea","Dropdown","ErrorMessage","Loader","Modal","SportImage","clickOutsideDirective","mounted","binding","clickOutsideEvent","contains","body","addEventListener","unmounted","removeEventListener","register","app","App","provide","i18n","directive","mount","getApiUrl","handleError","msg","response","split","RootActions","RootGetters","RootMutations","SportsActions","SportsGetters","SportsMutation","StatisticsActions","StatisticsGetters","StatisticsMutations","UserActions","UserGetters","UserMutations","UsersActions","UsersGetters","UsersMutations","ROOT_STORE","SPORTS_STORE","STATS_STORE","USER_STORE","USERS_STORE","WORKOUTS_STORE","webpackContext","req","webpackContextResolve"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,E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A,MAAY,KAQxB,SAAYC,GACV,iBACA,mBACA,mCACA,yCAJF,CAAYA,MAAY,KAOxB,SAAYC,GACV,+BACA,iDACA,iCACA,iDACA,uDALF,CAAYA,MAAc,K,gBCgBbC,EAAa,CACxBnkB,QAASojB,EACT1jB,QAAS2jB,EACTrS,UAAWsS,GAGAc,EAAe,CAC1BpkB,QAASujB,EACT7jB,QAAS8jB,EACTxS,UAAWyS,GAGAY,EAAc,CACzBrkB,QAAS0jB,EACThkB,QAASikB,EACT3S,UAAW4S,GAGAU,EAAa,CACxBtkB,QAAS6jB,EACTnkB,QAASokB,EACT9S,UAAW+S,GAGAQ,EAAc,CACzBvkB,QAASgkB,EACTtkB,QAASukB,EACTjT,UAAWkT,GAGAM,EAAiB,CAC5BxkB,QAAS,OACTN,QAAS,OACTsR,UAAW,S,4CChEb,IAAIhlB,EAAM,CACT,aAAc,OACd,aAAc,QAIf,SAASy4B,EAAeC,GACvB,IAAIx4B,EAAKy4B,EAAsBD,GAC/B,OAAOj/B,EAAoByG,GAE5B,SAASy4B,EAAsBD,GAC9B,IAAIj/B,EAAoBgE,EAAEuC,EAAK04B,GAAM,CACpC,IAAIx+B,EAAI,IAAI0B,MAAM,uBAAyB88B,EAAM,KAEjD,MADAx+B,EAAE2B,KAAO,mBACH3B,EAEP,OAAO8F,EAAI04B,GAEZD,EAAe7U,KAAO,WACrB,OAAOrrB,OAAOqrB,KAAK5jB,IAEpBy4B,EAAen+B,QAAUq+B,EACzB3+B,EAAOD,QAAU0+B,EACjBA,EAAev4B,GAAK,Q,yDCvBpB,W,mCCAA,W","file":"static/js/app.e3db0803.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({\"admin\":\"admin\",\"main~workouts\":\"main~workouts\",\"main\":\"main\",\"workouts\":\"workouts\",\"profile\":\"profile\",\"reset\":\"reset\"}[chunkId]||chunkId) + \".\" + {\"admin\":\"ae6123c4\",\"main~workouts\":\"896585f2\",\"main\":\"bf1c6a90\",\"workouts\":\"13789396\",\"profile\":\"998bc0bd\",\"reset\":\"00470419\",\"chunk-2d0c9189\":\"c81458cc\",\"chunk-2d0cf391\":\"020c75ea\",\"chunk-2d0da8f3\":\"c8c3e7e8\",\"chunk-2d2248b6\":\"d84473c1\",\"chunk-2d22523a\":\"4b710d99\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"admin\":1,\"main~workouts\":1,\"main\":1,\"workouts\":1,\"profile\":1,\"reset\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"static/css/\" + ({\"admin\":\"admin\",\"main~workouts\":\"main~workouts\",\"main\":\"main\",\"workouts\":\"workouts\",\"profile\":\"profile\",\"reset\":\"reset\"}[chunkId]||chunkId) + \".\" + {\"admin\":\"27bf6ef5\",\"main~workouts\":\"dec22e70\",\"main\":\"b2ab76b7\",\"workouts\":\"45fb3086\",\"profile\":\"8c004342\",\"reset\":\"3a3a50ad\",\"chunk-2d0c9189\":\"31d6cfe0\",\"chunk-2d0cf391\":\"31d6cfe0\",\"chunk-2d0da8f3\":\"31d6cfe0\",\"chunk-2d2248b6\":\"31d6cfe0\",\"chunk-2d22523a\":\"31d6cfe0\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","<template>\n <div class=\"stat-card\">\n <div class=\"stat-content box\">\n <div class=\"stat-icon\">\n <i class=\"fa\" :class=\"`fa-${icon}`\" />\n </div>\n <div class=\"stat-details\">\n <div class=\"stat-huge\">{{ value }}</div>\n <div class=\"stat\">{{ text }}</div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'StatCard',\n props: {\n icon: {\n type: String,\n required: true,\n },\n value: {\n type: [String, Number],\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base';\n .stat-card {\n flex: 1;\n max-width: 25%;\n @media screen and (max-width: $small-limit) {\n flex: 1 0 50%;\n max-width: 49%;\n }\n\n .stat-content {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: $default-padding $default-padding * 2;\n\n .stat-icon {\n width: 30%;\n text-align: center;\n vertical-align: center;\n @media screen and (max-width: $medium-limit) {\n width: 50%;\n text-align: left;\n }\n\n .fa {\n font-size: 3em;\n @media screen and (max-width: $medium-limit) {\n font-size: 2em;\n }\n @media screen and (max-width: $x-small-limit) {\n font-size: 1.5em;\n }\n }\n }\n .stat-details {\n width: 70%;\n text-align: right;\n @media screen and (max-width: $medium-limit) {\n width: 100%;\n }\n\n .stat-huge {\n font-size: 1.7em;\n font-weight: bold;\n @media screen and (max-width: $medium-limit) {\n font-size: 1.3em;\n }\n @media screen and (max-width: $x-small-limit) {\n font-size: 1em;\n }\n }\n .stat {\n font-size: 1em;\n @media screen and (max-width: $medium-limit) {\n font-size: 0.9em;\n }\n @media screen and (max-width: $x-small-limit) {\n font-size: 0.8em;\n }\n }\n }\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'StatCard',\n props: {\n icon: {\n type: String,\n required: true,\n },\n value: {\n type: [String, Number],\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n })\n","import { render } from \"./StatCard.vue?vue&type=template&id=32e77e48\"\nimport script from \"./StatCard.vue?vue&type=script&lang=ts\"\nexport * from \"./StatCard.vue?vue&type=script&lang=ts\"\n\nimport \"./StatCard.vue?vue&type=style&index=0&id=32e77e48&lang=scss\"\nscript.render = render\n\nexport default script","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserInfosEdition.vue?vue&type=style&index=0&id=a2dfdb58&lang=scss\"","import { ISport, ITranslatedSport } from '@/types/sports'\nimport { IWorkout } from '@/types/workouts'\n\n// TODO: allow user to change colors\nexport const sportColors: Record<string, string> = {\n 'Cycling (Sport)': '#4c9792',\n 'Cycling (Transport)': '#88af98',\n Hiking: '#bb757c',\n 'Mountain Biking': '#d4b371',\n Running: '#835b83',\n Walking: '#838383',\n}\n\nexport const sportIdColors = (sports: ISport[]): Record<number, string> => {\n const colors: Record<number, string> = {}\n sports.map((sport) => (colors[sport.id] = sportColors[sport.label]))\n return colors\n}\n\nconst sortSports = (a: ITranslatedSport, b: ITranslatedSport): number => {\n const sportATranslatedLabel = a.translatedLabel.toLowerCase()\n const sportBTranslatedLabel = b.translatedLabel.toLowerCase()\n return sportATranslatedLabel > sportBTranslatedLabel\n ? 1\n : sportATranslatedLabel < sportBTranslatedLabel\n ? -1\n : 0\n}\n\nexport const translateSports = (\n sports: ISport[],\n t: CallableFunction,\n onlyActive = false\n): ITranslatedSport[] =>\n sports\n .filter((sport) => (onlyActive ? sport.is_active : true))\n .map((sport) => ({\n ...sport,\n translatedLabel: t(`sports.${sport.label}.LABEL`),\n }))\n .sort(sortSports)\n\nexport const getSportLabel = (workout: IWorkout, sports: ISport[]): string => {\n return sports\n .filter((sport) => sport.id === workout.sport_id)\n .map((sport) => sport.label)[0]\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserPicture.vue?vue&type=style&index=0&id=4aed39f4&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Card.vue?vue&type=style&index=0&id=c5956538&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Pagination.vue?vue&type=style&index=0&id=56dc89d4&lang=scss&scoped=true\"","import { useStore as VuexStore } from 'vuex'\n\nimport { Store } from '@/store/types'\n\nexport function useStore(): Store {\n return VuexStore() as Store\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AdminSports.vue?vue&type=style&index=0&id=6d930723&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AdminApplication.vue?vue&type=style&index=0&id=26175b66&lang=scss&scoped=true\"","<template>\n <div class=\"box user-header\">\n <UserPicture :user=\"user\" />\n <div class=\"user-details\">\n <div class=\"user-name\">{{ user.username }}</div>\n <div class=\"user-stats\">\n <div class=\"user-stat\">\n <span class=\"stat-number\">{{ user.nb_workouts }}</span>\n <span class=\"stat-label\">\n {{ $t('workouts.WORKOUT', user.nb_workouts) }}\n </span>\n </div>\n <div class=\"user-stat\">\n <span class=\"stat-number\">{{\n Number(user.total_distance).toFixed(0)\n }}</span>\n <span class=\"stat-label\">km</span>\n </div>\n <div class=\"user-stat hide-small\">\n <span class=\"stat-number\">{{ user.nb_sports }}</span>\n <span class=\"stat-label\">\n {{ $t('workouts.SPORT', user.nb_sports) }}\n </span>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent } from 'vue'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { IUserProfile } from '@/types/user'\n\n export default defineComponent({\n name: 'ProfileDisplay',\n components: {\n UserPicture,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n .user-header {\n display: flex;\n align-items: stretch;\n\n .user-details {\n flex-grow: 1;\n padding: $default-padding;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n .user-name {\n font-size: 2em;\n height: 60%;\n }\n\n .user-stats {\n display: flex;\n gap: $default-padding * 4;\n .user-stat {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: $default-padding;\n .stat-number,\n .stat-label {\n padding: 0 $default-padding * 0.5;\n }\n .stat-number {\n font-weight: bold;\n font-size: 1.5em;\n }\n }\n }\n\n @media screen and (max-width: $x-small-limit) {\n .user-name {\n font-size: 1.5em;\n }\n\n .user-stats {\n gap: $default-padding * 2;\n .user-stat {\n .stat-number {\n font-weight: bold;\n font-size: 1.2em;\n }\n\n &.hide-small {\n display: none;\n }\n }\n }\n }\n }\n }\n</style>\n","\n import { PropType, defineComponent } from 'vue'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { IUserProfile } from '@/types/user'\n\n export default defineComponent({\n name: 'ProfileDisplay',\n components: {\n UserPicture,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n })\n","import { render } from \"./UserHeader.vue?vue&type=template&id=a6fa997c&scoped=true\"\nimport script from \"./UserHeader.vue?vue&type=script&lang=ts\"\nexport * from \"./UserHeader.vue?vue&type=script&lang=ts\"\n\nimport \"./UserHeader.vue?vue&type=style&index=0&id=a6fa997c&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-a6fa997c\"\n\nexport default script","export enum WorkoutsActions {\n ADD_WORKOUT = 'ADD_WORKOUT',\n ADD_WORKOUT_WITHOUT_GPX = 'ADD_WORKOUT_WITHOUT_GPX',\n DELETE_WORKOUT = 'DELETE_WORKOUT',\n EDIT_WORKOUT = 'EDIT_WORKOUT',\n GET_CALENDAR_WORKOUTS = 'GET_CALENDAR_WORKOUTS',\n GET_USER_WORKOUTS = 'GET_USER_WORKOUTS',\n GET_TIMELINE_WORKOUTS = 'GET_TIMELINE_WORKOUTS',\n GET_MORE_TIMELINE_WORKOUTS = 'GET_MORE_TIMELINE_WORKOUTS',\n GET_WORKOUT_DATA = 'GET_WORKOUT_DATA',\n}\n\nexport enum WorkoutsGetters {\n CALENDAR_WORKOUTS = 'CALENDAR_WORKOUTS',\n TIMELINE_WORKOUTS = 'TIMELINE_WORKOUTS',\n USER_WORKOUTS = 'USER_WORKOUTS',\n WORKOUT_DATA = 'WORKOUT_DATA',\n WORKOUTS_PAGINATION = 'WORKOUTS_PAGINATION',\n}\n\nexport enum WorkoutsMutations {\n ADD_TIMELINE_WORKOUTS = 'ADD_TIMELINE_WORKOUTS',\n EMPTY_WORKOUTS = 'EMPTY_WORKOUTS',\n EMPTY_CALENDAR_WORKOUTS = 'EMPTY_CALENDAR_WORKOUTS',\n EMPTY_WORKOUT = 'EMPTY_WORKOUT',\n SET_CALENDAR_WORKOUTS = 'SET_CALENDAR_WORKOUTS',\n SET_TIMELINE_WORKOUTS = 'SET_TIMELINE_WORKOUTS',\n SET_USER_WORKOUTS = 'SET_USER_WORKOUTS',\n SET_WORKOUT = 'SET_WORKOUT',\n SET_WORKOUT_GPX = 'SET_WORKOUT_GPX',\n SET_WORKOUT_CHART_DATA = 'SET_WORKOUT_CHART_DATA',\n SET_WORKOUT_LOADING = 'SET_WORKOUT_LOADING',\n SET_WORKOUTS_PAGINATION = 'SET_WORKOUTS_PAGINATION',\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AdminMenu.vue?vue&type=style&index=0&id=4f30aa64&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ErrorMessage.vue?vue&type=style&index=0&id=5c177a93&scoped=true&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserHeader.vue?vue&type=style&index=0&id=a6fa997c&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./NavBar.vue?vue&type=style&index=0&id=03a78350&scoped=true&lang=scss\"","import {\n addDays,\n addMonths,\n addYears,\n endOfMonth,\n endOfWeek,\n format,\n startOfMonth,\n startOfWeek,\n startOfYear,\n} from 'date-fns'\nimport { utcToZonedTime } from 'date-fns-tz'\n\nexport const getStartDate = (\n duration: string,\n day: Date,\n weekStartingMonday: boolean\n): Date => {\n switch (duration) {\n case 'week':\n return startOfWeek(day, { weekStartsOn: weekStartingMonday ? 1 : 0 })\n case 'year':\n return startOfYear(day)\n case 'month':\n return startOfMonth(day)\n default:\n throw new Error(\n `Invalid duration, expected: \"week\", \"month\", \"year\", got: \"${duration}\"`\n )\n }\n}\n\nexport const incrementDate = (duration: string, day: Date): Date => {\n switch (duration) {\n case 'week':\n return addDays(day, 7)\n case 'year':\n return addYears(day, 1)\n case 'month':\n return addMonths(day, 1)\n default:\n throw new Error(\n `Invalid duration, expected: \"week\", \"month\", \"year\", got: \"${duration}\"`\n )\n }\n}\n\nexport const getDateWithTZ = (dateInUTC: string, tz: string): Date => {\n return utcToZonedTime(new Date(dateInUTC), tz)\n}\n\nexport const getCalendarStartAndEnd = (\n date: Date,\n weekStartingMonday: boolean\n): Record<string, Date> => {\n const monthStart = startOfMonth(date)\n const monthEnd = endOfMonth(date)\n const weekStartsOn = weekStartingMonday ? 1 : 0\n return {\n start: startOfWeek(monthStart, { weekStartsOn }),\n end: endOfWeek(monthEnd, { weekStartsOn }),\n }\n}\n\nexport const formatWorkoutDate = (\n dateTime: Date,\n dateFormat: string | null = null,\n timeFormat: string | null = null\n): Record<string, string> => {\n if (!dateFormat) {\n dateFormat = 'yyyy/MM/dd'\n }\n if (!timeFormat) {\n timeFormat = 'HH:mm'\n }\n return {\n workout_date: format(dateTime, dateFormat),\n workout_time: format(dateTime, timeFormat),\n }\n}\n","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader-v16/dist/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./App.vue?vue&type=style&index=0&id=317a6409&lang=scss&scoped=true\"","{\n \"ACTION\": \"Action\",\n \"ADMIN_RIGHTS_DELETE_USER_ACCOUNT\": \"Ajouter/retirer des droits d'administration, supprimer des comptes utilisateurs.\",\n \"ADMIN\": \"Admin\",\n \"ADMINISTRATION\": \"Administration\",\n \"APPLICATION\": \"Application\",\n \"APP_CONFIG\": {\n \"MAX_USERS_LABEL\": \"Nombre maximum d'utilisateurs actifs \",\n \"MAX_USERS_HELP\": \"Si égal à 0, pas limite d'inscription\",\n \"MAX_FILES_IN_ZIP_LABEL\": \"Taille max. des archives zip (en Mo) \",\n \"SINGLE_UPLOAD_MAX_SIZE_LABEL\": \"Taille max. des fichiers (en Mo) \",\n \"TITLE\": \"Configuration de l'application\",\n \"ZIP_UPLOAD_MAX_SIZE_LABEL\": \"Nombre max. de fichiers dans une archive zip \"\n },\n \"BACK_TO_ADMIN\": \"Revenir à l'admin\",\n \"CONFIRM_USER_ACCOUNT_DELETION\": \"Etes-vous sûr de vouloir supprimer le compte de {0} ? Toutes les données seront définitivement.\",\n \"DELETE_USER\": \"Supprimer l'utilisateur\",\n \"ENABLE_DISABLE_SPORTS\": \"Activer/désactiver des sports.\",\n \"REGISTRATION_DISABLED\": \"Les inscriptions sont actuellement désactivées.\",\n \"REGISTRATION_ENABLED\": \"Les inscriptions sont actuellement activées.\",\n \"SPORTS\": {\n \"TABLE\": {\n \"ACTIVE\": \"Actif\",\n \"HAS_WORKOUTS\": \"des séances existent\",\n \"IMAGE\": \"Image\",\n \"LABEL\": \"Label\"\n },\n \"TITLE\": \"Administration - Sports\"\n },\n \"UPDATE_APPLICATION_DESCRIPTION\": \"Configurer l'application (nombre maximum d'utilisateurs inscrits, taille maximale des fichers).\",\n \"USER\": \"utilisateur | utilisateurs\",\n \"USERS\": {\n \"TABLE\": {\n \"ADD_ADMIN_RIGHTS\": \"Ajouter les drois d'admin\",\n \"REMOVE_ADMIN_RIGHTS\": \"Retirer les drois d'admin\"\n },\n \"SELECTS\": {\n \"ORDER_BY\": {\n \"ADMIN\": \"status administrateur\",\n \"CREATED_AT\": \"date d'inscription\",\n \"USERNAME\": \"nom d'utilisateur\",\n \"WORKOUTS_COUNT\": \"nombre de séances\"\n }\n }\n }\n}\n","{\n \"ERROR\": {\n \"UNKNOWN\": \"Erreur. Veuillez réessayer ou contacter l'administrateur.\",\n \"email: valid email must be provided\": \"Email : une adresse email valide doit être fournie.\",\n \"error on getting configuration\": \"Erreur lors de la récupération de la configuration.\",\n \"error when updating configuration\": \"Erreur lors de la mise à jour de la configuration\",\n \"error, please try again or contact the administrator\": \"Erreur, veuillez réessayer ou contacter l'administrateur.\",\n \"error, registration is disabled\": \"Erreur, les inscriptions sont désactivées.\",\n \"file extension not allowed\": \"Extension de fichier non autorisée.\",\n \"file size is greater than the allowed size\": \"La taille du fichier est supérieure à la limite autorisée.\",\n \"invalid credentials\": \"Identifiants invalides.\",\n \"invalid payload\": \"Données fournies incorrectes.\",\n \"invalid token, please log in again\": \"Jeton de connexion invalide, merci de vous reconnecter.\",\n \"invalid token, please request a new token\": \"Jeton de connexion, merci de vous reconnecter.\",\n \"no file part\": \"Pas de fichier fourni.\",\n \"no selected file\": \"Pas de fichier sélectionné.\",\n \"Network Error\": \"Erreur Réseau.\",\n \"password: password and password confirmation do not match\": \"Mot de passe : les mots de passe saisis sont différents.\",\n \"provide a valid auth token\": \"Merci de fournir un jeton de connexion valide.\",\n \"password: 8 characters required\": \"Mot de passe : 8 caractères minimum.\",\n \"sport does not exist\": \"Ce sport n'existe pas.\",\n \"signature expired, please log in again\": \"Signature expirée. Merci de vous reconnecter.\",\n \"sorry, that user already exists\": \"Désolé, cet utilisateur existe déjà.\",\n \"successfully registered\": \"Inscription validée.\",\n \"user does not exist\": \"L'utilisateur n'existe pas\",\n \"username: 3 to 12 characters required\": \"Nom d'utilisateur : 3 à 12 caractères requis.\",\n \"you do not have permissions\": \"Vous n'avez pas les permissions nécessaires.\"\n },\n \"PAGINATION\": {\n \"PREVIOUS\": \"précédent\",\n \"NEXT\": \"suivant\"\n }\n}","{\n \"BACK\": \"Précédent\",\n \"CANCEL\": \"Annuler\",\n \"DELETE_MY_ACCOUNT\": \"Supprimer mon compte\",\n \"DISABLE\": \"Désactiver\",\n \"EDIT\": \"Modifier\",\n \"ENABLE\": \"Activer\",\n \"FILTER\": \"Filtrer\",\n \"LOGIN\": \"Se connecter\",\n \"NO\": \"Non\",\n \"REGISTER\": \"S'inscrire\",\n \"SUBMIT\": \"Valider\",\n \"YES\": \"Oui\"\n}","{\n \"CONFIRMATION\": \"Confirmation\",\n \"DAY\": \"jour | jours\",\n \"HOME\": \"Accueil\",\n \"HERE\": \"ici\",\n \"SELECTS\": {\n \"ORDER_BY\": {\n \"LABEL\": \"trier par \"\n },\n \"ORDER\": {\n \"LABEL\": \"tri\",\n \"ASC\": \"ascendant\",\n \"DESC\": \"descendant\"\n },\n \"PER_PAGE\": {\n \"LABEL\": \"par page\"\n }\n },\n \"TOTAL \": \"Total\"\n}","{\n \"DASHBOARD\": \"Tableau de Bord\",\n \"THIS_MONTH\": \"Ce mois\"\n}\n","{\n \"UNKNOWN\": \"Erreur. Veuillez réessayer ou contacter l'administrateur.\",\n \"APP_ERROR\": \"L'application semble rencontrer quelques problèmes.<br />Veuillez réessayer plus tard ou contacter l'administrateur.\",\n \"NOT_FOUND\": {\n \"PAGE\": \"Page introuvable\",\n \"WORKOUT\": \"Séance introuvable\"\n }\n}","{\n \"Cycling (Sport)\": {\n \"LABEL\": \"Vélo (Sport)\"\n },\n \"Cycling (Transport)\": {\n \"LABEL\": \"Vélo (Transport)\"\n },\n \"Hiking\": {\n \"LABEL\": \"Randonnée\"\n },\n \"Mountain Biking\": {\n \"LABEL\": \"VTT\"\n },\n \"Running\": {\n \"LABEL\": \"Course\"\n },\n \"Walking\": {\n \"LABEL\": \"Marche\"\n }\n}","{\n \"STATISTICS\": \"Statistiques\",\n \"TIME_FRAMES\": {\n \"week\": \"semaine\",\n \"month\": \"mois\",\n \"year\": \"année\"\n }\n}\n","{\n \"ADMIN\": \"Admin\",\n \"CONFIRM_ACCOUNT_DELETION\": \"Etes-vous sûr de vouloir supprimer votre compte ? Toutes les données seront définitivement effacés.\",\n \"EMAIL\": \"Email\",\n \"ENTER_EMAIL\": \"Saisir une adresse email\",\n \"ENTER_PASSWORD\": \"Saisir un mot de passe\",\n \"ENTER_PASSWORD_CONFIRMATION\": \"Confirmer le mot de passe\",\n \"INVALID_TOKEN\": \"Jeton invalide, veullez demander une nouvelle réinitialisation de mot de passe.\",\n \"LANGUAGE\": \"Langue\",\n \"LOGIN\": \"Se connecter\",\n \"LOGOUT\": \"Se déconnecter\",\n \"PASSWORD\": \"Mot de passe\",\n \"PASSWORD_CONFIRM\": \"Confirmation du mot de passe\",\n \"PASSWORD_CONFIRMATION\": \"Confirmation du mot de passe\",\n \"PASSWORD_FORGOTTEN\": \"Mot de passe oublié ?\",\n \"PASSWORD_RESET\": \"Réinitialisation du mot de passe\",\n \"PASSWORD_SENT_EMAIL_TEXT\": \"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.\",\n \"PASSWORD_UPDATED\": \"Votre mot de passe a été mis à jour. Cliquez {0} pour vous connecter.\",\n \"PROFILE\": {\n \"BACK_TO_PROFILE\": \"Revenir au profil\",\n \"BIO\": \"Bio\",\n \"BIRTH_DATE\": \"Date de naissance\",\n \"EDIT\": \"Modifier le profil\",\n \"EDIT_PREFERENCES\": \"Modifier les préférences\",\n \"FIRST_DAY_OF_WEEK\": \"Premier jour de la semaine\",\n \"FIRST_NAME\": \"Prénom\",\n \"LANGUAGE\": \"Langue\",\n \"LAST_NAME\": \"Nom\",\n \"LOCATION\": \"Lieu\",\n \"MONDAY\": \"Lundi\",\n \"PICTURE\": \"Image de profil\",\n \"PICTURE_EDITION\": \"Mise à jour de l'image de profil\",\n \"PICTURE_UPDATE\": \"Mettre à jour l'image\",\n \"PICTURE_REMOVE\": \"Supprimer\",\n \"PREFERENCES_EDITION\": \"Mise à jour des préférences\",\n \"PROFILE_EDITION\": \"Mise à jour du profil\",\n \"REGISTRATION_DATE\": \"Date d'inscription\",\n \"SUNDAY\": \"Dimanche\",\n \"TABS\": {\n \"PICTURE\": \"image\",\n \"PREFERENCES\": \"préférences\",\n \"PROFILE\": \"profil\"\n },\n \"TIMEZONE\": \"Fuseau horaire\"\n },\n \"REGISTER\": \"S'inscrire\",\n \"REGISTER_DISABLED\": \"Désolé, les inscriptions sont désactivées.\",\n \"RESET_PASSWORD\": \"Réinitialiser votre mot de passe\",\n \"USER_PICTURE\": \"photo de l'utilisateur\",\n \"USERNAME\": \"Nom d'utilisateur\"\n}","{\n \"ADD_WORKOUT\": \"Ajouter une séance\",\n \"ANALYSIS\": \"analyse\",\n \"ASCENT\": \"dénivelé positif\",\n \"AVERAGE_SPEED\": \"vitesse moyenne\",\n \"AVE_SPEED\": \"vitesse moy.\",\n \"BACK_TO_WORKOUT\": \"revenir à la séance\",\n \"DATE\": \"date\",\n \"DESCENT\": \"dénivelé négatif\",\n \"DISPLAY_FILTERS\": \"afficher les filtres\",\n \"DISTANCE\": \"distance\",\n \"DURATION\": \"durée\",\n \"EDIT_WORKOUT\": \"Modifier la séance\",\n \"ELEVATION\": \"altitude\",\n \"END\": \"fin\",\n \"FROM\": \"à partir de\",\n \"GPX_FILE\": \"fichier .gpx\",\n \"HIDE_FILTERS\": \"masquer les filtres\",\n \"KM\": \"km\",\n \"LATEST_WORKOUTS\": \"Séances récentes\",\n \"LOAD_MORE_WORKOUT\": \"Charger les séances suivantes\",\n \"MAX_ALTITUDE\": \"altitude max\",\n \"MAX_FILES\": \"fichiers max. \",\n \"MAX_SIZE\": \"taille max. \",\n \"MAX_SPEED\": \"vitesse max\",\n \"MIN_ALTITUDE\": \"altitude min\",\n \"NEXT_SEGMENT\": \"Segment suivant\",\n \"NEXT_WORKOUT\": \"Séance suivante\",\n \"NO_DATA_CLEANING\": \"données issues du fichier gpx, sans correction\",\n \"NO_FILE_PROVIDED\": \"Pas de fichier fourni\",\n \"NO_FOLDER\": \"pas de répertoire\",\n \"NO_MAP\": \"Pas de carte\",\n \"NO_NEXT_SEGMENT\": \"Pas de segment suivant\",\n \"NO_NEXT_WORKOUT\": \"Pas de séance suivante\",\n \"NO_NOTES\": \"Pas de notes\",\n \"NO_PREVIOUS_SEGMENT\": \"Pas de segment précédent\",\n \"NO_PREVIOUS_WORKOUT\": \"Pas de séance précédente\",\n \"NO_RECORDS\": \"Pas de records.\",\n \"NO_WORKOUTS\": \"Pas de séances.\",\n \"NOTES\": \"notes\",\n \"PAUSES\": \"pauses\",\n \"PREVIOUS_SEGMENT\": \"Segment précédent\",\n \"PREVIOUS_WORKOUT\": \"Séance précédente\",\n \"RECORD\": \"record | records\",\n \"RECORD_AS\": \"Vitesse moy.\",\n \"RECORD_FD\": \"Distance la + longue\",\n \"RECORD_LD\": \"Durée la + longue\",\n \"RECORD_MS\": \"Vitesse max.\",\n \"REMAINING_CHARS\": \"nombre de caractères restants \",\n \"SEGMENT\": \"segment | segments\",\n \"SPEED\": \"vitesse\",\n \"SPORT\": \"sport | sports\",\n \"START\": \"début\",\n \"TITLE\": \"titre\",\n \"TO\": \"jusqu'au\",\n \"TOTAL_DURATION\": \"durée totale\",\n \"UPLOAD_FIRST_WORKOUT\": \"Ajoutez votre première séance !\",\n \"WEATHER\": {\n \"HUMIDITY\": \"humidité\",\n \"TEMPERATURE\": \"température\",\n \"WIND\": \"vent\",\n \"DARK_SKY\": {\n \"clear-day\": \"ensoleillé\",\n \"clear-night\": \"nuit claire\",\n \"cloudy\": \"nuageux\",\n \"fog\": \"brouillard\",\n \"partly-cloudy-day\": \"partiellement nuageux\",\n \"partly-cloudy-night\": \"nuit partiellement nuageuse\",\n \"rain\": \"pluie\",\n \"sleet\": \"neige fondue\",\n \"snow\": \"neige\",\n \"wind\": \"venteux\"\n }\n },\n \"WITH_GPX\": \"avec un fichier .gpx\",\n \"WITHOUT_GPX\": \"sans fichier .gpx\",\n \"WORKOUT\": \"séance | séances\",\n \"WORKOUT_DATE\": \"date de la séance\",\n \"WORKOUT_DELETION_CONFIRMATION\": \"Etes-vous sûr de vouloir supprimer cette séance ?\",\n \"ZIP_ARCHIVE\": \"archive .zip\",\n \"ZIP_ARCHIVE_DESCRIPTION\": \"ou une archive .zip contenant des fichiers .gpx\"\n}\n","import AdministrationTranslations from './administration.json'\nimport ApiTranslations from './api.json'\nimport ButtonsTranslations from './buttons.json'\nimport CommonTranslations from './common.json'\nimport DashboardTranslations from './dashboard.json'\nimport ErrorTranslations from './error.json'\nimport SportsTranslations from './sports.json'\nimport StatisticsTranslations from './statistics.json'\nimport UserTranslations from './user.json'\nimport WorkoutsTranslations from './workouts.json'\n\nexport default {\n admin: AdministrationTranslations,\n api: ApiTranslations,\n buttons: ButtonsTranslations,\n common: CommonTranslations,\n dashboard: DashboardTranslations,\n error: ErrorTranslations,\n sports: SportsTranslations,\n statistics: StatisticsTranslations,\n user: UserTranslations,\n workouts: WorkoutsTranslations,\n}\n","<template>\n <nav class=\"pagination-center\" aria-label=\"navigation\">\n <ul class=\"pagination\">\n <li class=\"page-prev\" :class=\"{ disabled: !pagination.has_prev }\">\n <router-link\n class=\"page-link\"\n :to=\"{ path, query: getQuery(pagination.page, -1) }\"\n :event=\"pagination.has_prev ? 'click' : ''\"\n :disabled=\"!pagination.has_prev\"\n >\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\" />\n {{ $t('api.PAGINATION.PREVIOUS') }}\n </router-link>\n </li>\n <li\n v-for=\"page in rangePagination(pagination.pages, pagination.page)\"\n :key=\"page\"\n class=\"page\"\n :class=\"{ active: page === pagination.page }\"\n >\n <span v-if=\"page === '...'\"> ... </span>\n <router-link\n v-else\n class=\"page-link\"\n :to=\"{ path, query: getQuery(+page) }\"\n >\n {{ page }}\n </router-link>\n </li>\n <li class=\"page-next\" :class=\"{ disabled: !pagination.has_next }\">\n <router-link\n class=\"page-link\"\n :to=\"{ path, query: getQuery(pagination.page, 1) }\"\n :event=\"pagination.has_next ? 'click' : ''\"\n :disabled=\"!pagination.has_next\"\n >\n {{ $t('api.PAGINATION.NEXT') }}\n <i class=\"fa fa-chevron-right\" aria-hidden=\"true\" />\n </router-link>\n </li>\n </ul>\n </nav>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent } from 'vue'\n\n import { IPagination, TPaginationPayload } from '@/types/api'\n import { rangePagination } from '@/utils/api'\n\n export default defineComponent({\n name: 'Pagination',\n props: {\n pagination: {\n type: Object as PropType<IPagination>,\n required: true,\n },\n path: {\n type: String,\n required: true,\n },\n query: {\n type: Object as PropType<TPaginationPayload>,\n required: true,\n },\n },\n setup(props) {\n function getQuery(page: number, cursor?: number): TPaginationPayload {\n const newQuery = Object.assign({}, props.query)\n newQuery.page = cursor ? page + cursor : page\n return newQuery\n }\n return { rangePagination, getQuery }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n .pagination-center {\n display: flex;\n justify-content: center;\n font-size: 0.9em;\n\n .pagination {\n display: flex;\n padding-left: 0;\n list-style: none;\n border-radius: 0.25rem;\n\n .page-prev,\n .page-next,\n .page {\n border: solid 1px var(--card-border-color);\n padding: $default-padding $default-padding * 1.5;\n\n &.active {\n font-weight: bold;\n }\n\n &.disabled {\n cursor: default;\n a {\n color: var(--disabled-color);\n }\n }\n }\n\n .page {\n margin-left: -1px;\n }\n\n .page-prev {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n .page-next {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n margin-left: -1px;\n }\n .fa {\n font-size: 0.8em;\n padding: 0 $default-padding * 0.5;\n }\n }\n\n @media screen and (max-width: $medium-limit) {\n .pagination {\n .page {\n display: none;\n }\n }\n }\n }\n</style>\n","\n import { PropType, defineComponent } from 'vue'\n\n import { IPagination, TPaginationPayload } from '@/types/api'\n import { rangePagination } from '@/utils/api'\n\n export default defineComponent({\n name: 'Pagination',\n props: {\n pagination: {\n type: Object as PropType<IPagination>,\n required: true,\n },\n path: {\n type: String,\n required: true,\n },\n query: {\n type: Object as PropType<TPaginationPayload>,\n required: true,\n },\n },\n setup(props) {\n function getQuery(page: number, cursor?: number): TPaginationPayload {\n const newQuery = Object.assign({}, props.query)\n newQuery.page = cursor ? page + cursor : page\n return newQuery\n }\n return { rangePagination, getQuery }\n },\n })\n","import { render } from \"./Pagination.vue?vue&type=template&id=56dc89d4&scoped=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=ts\"\nexport * from \"./Pagination.vue?vue&type=script&lang=ts\"\n\nimport \"./Pagination.vue?vue&type=style&index=0&id=56dc89d4&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-56dc89d4\"\n\nexport default script","<template>\n <div id=\"user-infos\" class=\"description-list\">\n <Modal\n v-if=\"displayModal\"\n :title=\"$t('common.CONFIRMATION')\"\n message=\"admin.CONFIRM_USER_ACCOUNT_DELETION\"\n :strongMessage=\"user.username\"\n @confirmAction=\"deleteUserAccount(user.username)\"\n @cancelAction=\"updateDisplayModal(false)\"\n />\n <dl>\n <dt>{{ $t('user.PROFILE.REGISTRATION_DATE') }}:</dt>\n <dd>{{ registrationDate }}</dd>\n <dt>{{ $t('user.PROFILE.FIRST_NAME') }}:</dt>\n <dd>{{ user.first_name }}</dd>\n <dt>{{ $t('user.PROFILE.LAST_NAME') }}:</dt>\n <dd>{{ user.last_name }}</dd>\n <dt>{{ $t('user.PROFILE.BIRTH_DATE') }}:</dt>\n <dd>{{ birthDate }}</dd>\n <dt>{{ $t('user.PROFILE.LOCATION') }}:</dt>\n <dd>{{ user.location }}</dd>\n <dt>{{ $t('user.PROFILE.BIO') }}:</dt>\n <dd class=\"user-bio\">\n {{ user.bio }}\n </dd>\n </dl>\n <div class=\"profile-buttons\" v-if=\"fromAdmin\">\n <button\n class=\"danger\"\n v-if=\"authUser.username !== user.username\"\n @click.prevent=\"updateDisplayModal(true)\"\n >\n {{ $t('admin.DELETE_USER') }}\n </button>\n <button @click=\"$router.go(-1)\">{{ $t('buttons.BACK') }}</button>\n </div>\n <div class=\"profile-buttons\" v-else>\n <button @click=\"$router.push('/profile/edit')\">\n {{ $t('user.PROFILE.EDIT') }}\n </button>\n <button @click=\"$router.push('/')\">{{ $t('common.HOME') }}</button>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { format } from 'date-fns'\n import {\n ComputedRef,\n PropType,\n Ref,\n computed,\n defineComponent,\n ref,\n } from 'vue'\n\n import { USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'UserInfos',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n fromAdmin: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const store = useStore()\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const registrationDate = computed(() =>\n props.user.created_at\n ? format(new Date(props.user.created_at), 'dd/MM/yyyy HH:mm')\n : ''\n )\n const birthDate = computed(() =>\n props.user.birth_date\n ? format(new Date(props.user.birth_date), 'dd/MM/yyyy')\n : ''\n )\n let displayModal: Ref<boolean> = ref(false)\n\n function updateDisplayModal(value: boolean) {\n displayModal.value = value\n }\n function deleteUserAccount(username: string) {\n store.dispatch(USER_STORE.ACTIONS.DELETE_ACCOUNT, { username })\n }\n\n return {\n authUser,\n birthDate,\n displayModal,\n registrationDate,\n deleteUserAccount,\n updateDisplayModal,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n #user-infos {\n .user-bio {\n white-space: pre-wrap;\n }\n .profile-buttons {\n display: flex;\n gap: $default-padding;\n }\n }\n</style>\n","\n import { format } from 'date-fns'\n import {\n ComputedRef,\n PropType,\n Ref,\n computed,\n defineComponent,\n ref,\n } from 'vue'\n\n import { USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'UserInfos',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n fromAdmin: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const store = useStore()\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const registrationDate = computed(() =>\n props.user.created_at\n ? format(new Date(props.user.created_at), 'dd/MM/yyyy HH:mm')\n : ''\n )\n const birthDate = computed(() =>\n props.user.birth_date\n ? format(new Date(props.user.birth_date), 'dd/MM/yyyy')\n : ''\n )\n let displayModal: Ref<boolean> = ref(false)\n\n function updateDisplayModal(value: boolean) {\n displayModal.value = value\n }\n function deleteUserAccount(username: string) {\n store.dispatch(USER_STORE.ACTIONS.DELETE_ACCOUNT, { username })\n }\n\n return {\n authUser,\n birthDate,\n displayModal,\n registrationDate,\n deleteUserAccount,\n updateDisplayModal,\n }\n },\n })\n","import { render } from \"./UserInfos.vue?vue&type=template&id=1267fe4f&scoped=true\"\nimport script from \"./UserInfos.vue?vue&type=script&lang=ts\"\nexport * from \"./UserInfos.vue?vue&type=script&lang=ts\"\n\nimport \"./UserInfos.vue?vue&type=style&index=0&id=1267fe4f&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-1267fe4f\"\n\nexport default script","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./FilterSelects.vue?vue&type=style&index=0&id=50c78582&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Footer.vue?vue&type=style&index=0&id=e1641806&scoped=true&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./index.vue?vue&type=style&index=0&id=c81580c0&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./StatCard.vue?vue&type=style&index=0&id=32e77e48&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Modal.vue?vue&type=style&index=0&id=21b6cb61&lang=scss&scoped=true\"","<template>\n <div class=\"table-selects\">\n <label>\n {{ $t('common.SELECTS.ORDER_BY.LABEL') }}:\n <select\n name=\"order_by\"\n id=\"order_by\"\n :value=\"query.order_by\"\n @change=\"onSelectUpdate\"\n >\n <option v-for=\"order in order_by\" :value=\"order\" :key=\"order\">\n {{ $t(`${message}.${order.toUpperCase()}`) }}\n </option>\n </select>\n </label>\n <label>\n {{ $t('common.SELECTS.ORDER.LABEL') }}:\n <select\n name=\"order\"\n id=\"order\"\n :value=\"query.order\"\n @change=\"onSelectUpdate\"\n >\n <option v-for=\"order in sort\" :value=\"order\" :key=\"order\">\n {{ $t(`common.SELECTS.ORDER.${order.toUpperCase()}`) }}\n </option>\n </select>\n </label>\n <label>\n {{ $t('common.SELECTS.PER_PAGE.LABEL') }}:\n <select\n name=\"per_page\"\n id=\"per_page\"\n :value=\"query.per_page\"\n @change=\"onSelectUpdate\"\n >\n <option v-for=\"nb in per_page\" :value=\"nb\" :key=\"nb\">\n {{ nb }}\n </option>\n </select>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent } from 'vue'\n\n import { TPaginationPayload } from '@/types/api'\n\n export default defineComponent({\n name: 'FilterSelects',\n props: {\n order_by: {\n type: Object as PropType<string[]>,\n required: true,\n },\n query: {\n type: Object as PropType<TPaginationPayload>,\n required: true,\n },\n sort: {\n type: Object as PropType<string[]>,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n },\n emits: ['updateSelect'],\n setup(props, { emit }) {\n function onSelectUpdate(event: Event & { target: HTMLInputElement }) {\n emit('updateSelect', event.target.id, event.target.value)\n }\n\n return {\n per_page: [10, 25, 50, 100],\n onSelectUpdate,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n .table-selects {\n display: flex;\n justify-content: space-between;\n margin: $default-margin 0;\n\n label {\n select {\n margin-left: $default-margin;\n padding: $default-padding * 0.5;\n }\n }\n\n @media screen and (max-width: $small-limit) {\n flex-wrap: wrap;\n label {\n margin-bottom: $default-margin;\n select {\n margin-left: 0;\n }\n }\n }\n }\n</style>\n","\n import { PropType, defineComponent } from 'vue'\n\n import { TPaginationPayload } from '@/types/api'\n\n export default defineComponent({\n name: 'FilterSelects',\n props: {\n order_by: {\n type: Object as PropType<string[]>,\n required: true,\n },\n query: {\n type: Object as PropType<TPaginationPayload>,\n required: true,\n },\n sort: {\n type: Object as PropType<string[]>,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n },\n emits: ['updateSelect'],\n setup(props, { emit }) {\n function onSelectUpdate(event: Event & { target: HTMLInputElement }) {\n emit('updateSelect', event.target.id, event.target.value)\n }\n\n return {\n per_page: [10, 25, 50, 100],\n onSelectUpdate,\n }\n },\n })\n","import { render } from \"./FilterSelects.vue?vue&type=template&id=50c78582&scoped=true\"\nimport script from \"./FilterSelects.vue?vue&type=script&lang=ts\"\nexport * from \"./FilterSelects.vue?vue&type=script&lang=ts\"\n\nimport \"./FilterSelects.vue?vue&type=style&index=0&id=50c78582&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-50c78582\"\n\nexport default script","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Dropdown.vue?vue&type=style&index=0&id=5ef2ddef&scoped=true&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserInfos.vue?vue&type=style&index=0&id=1267fe4f&lang=scss&scoped=true\"","import { LocationQuery } from 'vue-router'\n\nimport { IQueryOptions, TPaginationPayload } from '@/types/api'\n\nexport const sortList: string[] = ['asc', 'desc']\nexport const defaultPage = 1\nexport const defaultPerPage = 10\n\nexport const getNumberQueryValue = (\n queryValue: string | (string | null)[] | null,\n defaultValue: number\n): number => {\n return queryValue && typeof queryValue === 'string' && +queryValue > 0\n ? +queryValue\n : defaultValue\n}\n\nexport const getStringQueryValue = (\n queryValue: string | (string | null)[] | null,\n availableValues: string[],\n defaultValue: string\n): string => {\n return queryValue &&\n typeof queryValue === 'string' &&\n availableValues.includes(queryValue)\n ? queryValue\n : defaultValue\n}\n\nexport const getQuery = (\n locationQuery: LocationQuery,\n orderByList: string[],\n defaultOrderBy: string,\n options?: IQueryOptions\n): TPaginationPayload => {\n const queryOptions = options || {}\n const defaultSort = queryOptions.defaultSort || 'asc'\n const query = queryOptions.query || <TPaginationPayload>{}\n\n query.page = getNumberQueryValue(locationQuery.page, defaultPage)\n query.per_page = getNumberQueryValue(locationQuery.per_page, defaultPerPage)\n query.order = getStringQueryValue(locationQuery.order, sortList, defaultSort)\n query.order_by = getStringQueryValue(\n locationQuery.order_by,\n orderByList,\n defaultOrderBy\n )\n\n return query\n}\n\nexport const workoutsPayloadKeys = [\n 'from',\n 'to',\n 'ave_speed_from',\n 'ave_speed_to',\n 'max_speed_from',\n 'max_speed_to',\n 'distance_from',\n 'distance_to',\n 'duration_from',\n 'duration_to',\n 'sport_id',\n]\n\nconst getRange = (stop: number, start = 1): number[] => {\n return Array.from({ length: stop - start + 1 }, (_, i) => start + i)\n}\n\nexport const rangePagination = (\n pages: number,\n currentPage: number\n): (string | number)[] => {\n if (pages < 0) {\n return []\n }\n\n if (pages < 9) {\n return getRange(pages)\n }\n\n let pagination: (string | number)[] = [1, 2]\n if (currentPage < 4) {\n pagination = pagination.concat([3, 4, 5])\n } else if (currentPage < 6) {\n pagination = pagination.concat(getRange(currentPage + 2, 3))\n } else {\n pagination = pagination.concat(['...'])\n if (currentPage < pages - 2) {\n pagination = pagination.concat(getRange(currentPage + 2, currentPage - 2))\n }\n }\n if (currentPage + 2 <= pages - 2) {\n pagination = pagination.concat(['...'])\n pagination = pagination.concat(getRange(pages, pages - 1))\n } else {\n if (\n pagination[pagination.length - 1] !== '...' &&\n pagination[pagination.length - 1] >= pages - 2 &&\n pagination[pagination.length - 1] < pages\n ) {\n pagination = pagination.concat(\n getRange(pages, +pagination[pagination.length - 1] + 1)\n )\n } else {\n pagination = pagination.concat(\n getRange(\n pages,\n currentPage < pages - 3 ? currentPage + 3 : currentPage - 5\n )\n )\n }\n }\n\n return pagination\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AppStatsCards.vue?vue&type=style&index=0&id=cd52bcc2&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./CustomTextArea.vue?vue&type=style&index=0&id=ad3739fc&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Loader.vue?vue&type=style&index=0&id=8bf75da8&scoped=true&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserPictureEdition.vue?vue&type=style&index=0&id=500d4a7a&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AdminUsers.vue?vue&type=style&index=0&id=4711ecf8&lang=scss&scoped=true\"","{\n \"ACTION\": \"Action\",\n \"ADMIN_RIGHTS_DELETE_USER_ACCOUNT\": \"Add/remove admin rights, delete user account.\",\n \"ADMIN\": \"Admin\",\n \"ADMINISTRATION\": \"Administration\",\n \"APPLICATION\": \"Application\",\n \"APP_CONFIG\": {\n \"MAX_USERS_LABEL\": \"Max. number of active users\",\n \"MAX_USERS_HELP\": \"If 0, no limitation on registration.\",\n \"MAX_FILES_IN_ZIP_LABEL\": \"Max. files of zip archive\",\n \"SINGLE_UPLOAD_MAX_SIZE_LABEL\": \"Max. size of uploaded files (in Mb)\",\n \"TITLE\": \"Application configuration\",\n \"ZIP_UPLOAD_MAX_SIZE_LABEL\": \"Max. size of zip archive (in Mb)\"\n },\n \"BACK_TO_ADMIN\": \"Back to admin\",\n \"CONFIRM_USER_ACCOUNT_DELETION\": \"Are you sure you want to delete {0} account? All data will be deleted, this cannot be undone.\",\n \"DELETE_USER\": \"Delete user\",\n \"ENABLE_DISABLE_SPORTS\": \"Enable/disable sports.\",\n \"REGISTRATION_DISABLED\": \"Registration is currently disabled.\",\n \"REGISTRATION_ENABLED\": \"Registration is currently enabled.\",\n \"SPORTS\": {\n \"TABLE\": {\n \"ACTIVE\": \"Active\",\n \"HAS_WORKOUTS\": \"workouts exist\",\n \"IMAGE\": \"Image\",\n \"LABEL\": \"Label\"\n },\n \"TITLE\": \"Sports administration\"\n },\n \"UPDATE_APPLICATION_DESCRIPTION\": \"Update application configuration (maximum number of registered users, maximum files size).\",\n \"USER\": \"user | users\",\n \"USERS\": {\n \"TABLE\": {\n \"ADD_ADMIN_RIGHTS\": \"Add admin rights\",\n \"REMOVE_ADMIN_RIGHTS\": \"Remove admin rights\"\n },\n \"SELECTS\": {\n \"ORDER_BY\": {\n \"ADMIN\": \"admin status\",\n \"CREATED_AT\": \"registration date\",\n \"USERNAME\": \"username\",\n \"WORKOUTS_COUNT\": \"workout count\"\n }\n }\n }\n}\n","{\n \"ERROR\": {\n \"UNKNOWN\": \"Error. Please try again or contact the administrator.\",\n \"email: valid email must be provided\": \"Email: valid email must be provided.\",\n \"error on getting configuration\": \"Error on getting configuration.\",\n \"error when updating configuration\": \"Error when updating configuration\",\n \"error, please try again or contact the administrator\": \"Error, please try again or contact the administrator.\",\n \"error, registration is disabled\": \"Error, registration is disabled.\",\n \"file extension not allowed\": \"File extension not allowed.\",\n \"file size is greater than the allowed size\": \"File size is greater than the allowed size.\",\n \"invalid credentials\": \"Invalid credentials.\",\n \"invalid payload\": \"Provided data are invalid.\",\n \"invalid token, please log in again\": \"Invalid token, please log in again.\",\n \"invalid token, please request a new token\": \"Invalid token, please log in again.\",\n \"Network Error\": \"Network Error.\",\n \"no file part\": \"No file provided.\",\n \"no selected file\": \"No selected file.\",\n \"password: password and password confirmation do not match\": \"Password: password and password confirmation don't match.\",\n \"provide a valid auth token\": \"Provide a valid auth token.\",\n \"password: 8 characters required\": \"Password: 8 characters required.\",\n \"sorry, that user already exists\": \"Sorry, that user already exists.\",\n \"sport does not exist\": \"Sport does not exist.\",\n \"signature expired, please log in again\": \"Signature expired. Please log in again.\",\n \"successfully registered\": \"Successfully registered.\",\n \"user does not exist\": \"User does not exist.\",\n \"username: 3 to 12 characters required\": \"Username: 3 to 12 characters required.\",\n \"you do not have permissions\": \"You do not have permissions.\"\n },\n \"PAGINATION\": {\n \"PREVIOUS\": \"previous\",\n \"NEXT\": \"next\"\n }\n}","{\n \"BACK\": \"Back\",\n \"CANCEL\": \"Cancel\",\n \"DELETE_MY_ACCOUNT\": \"Delete my account\",\n \"DISABLE\": \"Disable\",\n \"EDIT\": \"Edit\",\n \"ENABLE\": \"Enable\",\n \"FILTER\": \"Filter\",\n \"LOGIN\": \"Log in\",\n \"NO\": \"No\",\n \"REGISTER\": \"Register\",\n \"SUBMIT\": \"Submit\",\n \"YES\": \"Yes\"\n}","{\n \"CONFIRMATION\": \"Confirmation\",\n \"DAY\": \"day | days\",\n \"HOME\": \"Home\",\n \"HERE\": \"here\",\n \"SELECTS\": {\n \"ORDER_BY\": {\n \"LABEL\": \"order by\"\n },\n \"ORDER\": {\n \"LABEL\": \"sort\",\n \"ASC\": \"ascending\",\n \"DESC\": \"descending\"\n },\n \"PER_PAGE\": {\n \"LABEL\": \"par page\"\n }\n },\n \"TOTAL\": \"Total\"\n}","{\n \"DASHBOARD\": \"Dashboard\",\n \"THIS_MONTH\": \"This month\"\n}\n","{\n \"UNKNOWN\": \"Error. Please try again or contact the administrator.\",\n \"APP_ERROR\": \"The application seems encounter some issues.<br />Please try later or contact the administrator.\",\n \"NOT_FOUND\": {\n \"PAGE\": \"Page not found\",\n \"WORKOUT\": \"Workout not found\"\n }\n}","{\n \"Cycling (Sport)\": {\n \"LABEL\": \"Cycling (Sport)\"\n },\n \"Cycling (Transport)\": {\n \"LABEL\": \"Cycling (Transport)\"\n },\n \"Hiking\": {\n \"LABEL\": \"Hiking\"\n },\n \"Mountain Biking\": {\n \"LABEL\": \"Mountain Biking\"\n },\n \"Running\": {\n \"LABEL\": \"Running\"\n },\n \"Walking\": {\n \"LABEL\": \"Walking\"\n }\n}","{\n \"STATISTICS\": \"Statistics\",\n \"TIME_FRAMES\": {\n \"week\": \"week\",\n \"month\": \"month\",\n \"year\": \"year\"\n }\n}\n","{\n \"ADMIN\": \"Admin\",\n \"CONFIRM_ACCOUNT_DELETION\": \"Are you sure you want to delete your account? All data will be deleted, this cannot be undone\",\n \"EMAIL\": \"Email\",\n \"ENTER_EMAIL\": \"Enter an email address\",\n \"ENTER_PASSWORD\": \"Enter a password\",\n \"ENTER_PASSWORD_CONFIRMATION\": \"Confirm the password\",\n \"INVALID_TOKEN\": \"Invalid token, please request a new password reset.\",\n \"LANGUAGE\": \"Language\",\n \"LOGIN\": \"Login\",\n \"LOGOUT\": \"Logout\",\n \"PASSWORD\": \"Password\",\n \"PASSWORD_CONFIRM\": \"Confirm Password\",\n \"PASSWORD_CONFIRMATION\": \"Password confirmation\",\n \"PASSWORD_FORGOTTEN\": \"Forgot password?\",\n \"PASSWORD_RESET\": \"Password reset\",\n \"PASSWORD_SENT_EMAIL_TEXT\": \"Check your email. If your address is in our database, you'll received an email with a link to reset your password.\",\n \"PASSWORD_UPDATED\": \"Your password have been updated. Click {0} to log in.\",\n \"PROFILE\": {\n \"BACK_TO_PROFILE\": \"Back to profile\",\n \"BIO\": \"Bio\",\n \"BIRTH_DATE\": \"Birth date\",\n \"EDIT\": \"Edit profile\",\n \"EDIT_PREFERENCES\": \"Edit preferences\",\n \"FIRST_NAME\": \"First name\",\n \"FIRST_DAY_OF_WEEK\": \"First day of week\",\n \"LANGUAGE\": \"Language\",\n \"LAST_NAME\": \"Last name\",\n \"LOCATION\": \"Location\",\n \"MONDAY\": \"Monday\",\n \"PICTURE\": \"Picture\",\n \"PICTURE_EDITION\": \"Picture edition\",\n \"PICTURE_UPDATE\": \"Update picture\",\n \"PICTURE_REMOVE\": \"Remove picture\",\n \"PREFERENCES_EDITION\": \"Preferences edition\",\n \"PROFILE_EDITION\": \"Profile edition\",\n \"REGISTRATION_DATE\": \"Registration date\",\n \"SUNDAY\": \"Sunday\",\n \"TABS\": {\n \"PICTURE\": \"picture\",\n \"PREFERENCES\": \"preferences\",\n \"PROFILE\": \"profile\"\n },\n \"TIMEZONE\": \"Timezone\"\n },\n \"REGISTER\": \"Register\",\n \"REGISTER_DISABLED\": \"Sorry, registration is disabled.\",\n \"RESET_PASSWORD\": \"Reset your password\",\n \"USER_PICTURE\": \"user picture\",\n \"USERNAME\": \"Username\"\n}\n","{\n \"ADD_WORKOUT\": \"Add a workout\",\n \"ANALYSIS\": \"analysis\",\n \"ASCENT\": \"ascent\",\n \"AVE_SPEED\": \"ave. speed\",\n \"AVERAGE_SPEED\": \"average speed\",\n \"BACK_TO_WORKOUT\": \"back to workout\",\n \"DATE\": \"date\",\n \"DESCENT\": \"descent\",\n \"DISPLAY_FILTERS\": \"display filters\",\n \"DISTANCE\": \"distance\",\n \"DURATION\": \"duration\",\n \"EDIT_WORKOUT\": \"Edit the workout\",\n \"ELEVATION\": \"elevation\",\n \"END\": \"end\",\n \"FROM\": \"from\",\n \"GPX_FILE\": \".gpx file\",\n \"HIDE_FILTERS\": \"hide filters\",\n \"KM\": \"km\",\n \"LATEST_WORKOUTS\": \"Latest workouts\",\n \"LOAD_MORE_WORKOUT\": \"Load more workouts\",\n \"MAX_ALTITUDE\": \"max. altitude\",\n \"MAX_FILES\": \"max files\",\n \"MAX_SIZE\": \"max size\",\n \"MAX_SPEED\": \"max. speed\",\n \"MIN_ALTITUDE\": \"min. altitude\",\n \"NEXT_SEGMENT\": \"No next segment\",\n \"NEXT_WORKOUT\": \"Next workout\",\n \"NO_DATA_CLEANING\": \"data from gpx, without any cleaning\",\n \"NO_FILE_PROVIDED\": \"No file provided\",\n \"NO_FOLDER\": \"no folder inside\",\n \"NO_MAP\": \"No map\",\n \"NO_NEXT_SEGMENT\": \"No next segment\",\n \"NO_NEXT_WORKOUT\": \"No next workout\",\n \"NO_NOTES\": \"No notes\",\n \"NO_PREVIOUS_SEGMENT\": \"No previous segment\",\n \"NO_PREVIOUS_WORKOUT\": \"No previous workout\",\n \"NO_RECORDS\": \"No records.\",\n \"NO_WORKOUTS\": \"No workouts.\",\n \"NOTES\": \"notes\",\n \"PAUSES\": \"pauses\",\n \"PREVIOUS_SEGMENT\": \"Previous segment\",\n \"PREVIOUS_WORKOUT\": \"Previous workout\",\n \"RECORD\": \"record | records\",\n \"RECORD_AS\": \"Ave. speed\",\n \"RECORD_FD\": \"Farest distance\",\n \"RECORD_LD\": \"Longest duration\",\n \"RECORD_MS\": \"Max. speed\",\n \"REMAINING_CHARS\": \"remaining characters\",\n \"SEGMENT\": \"segment | segments\",\n \"SPEED\": \"speed\",\n \"SPORT\": \"sport | sports\",\n \"START\": \"start\",\n \"TITLE\": \"title\",\n \"TO\": \"to\",\n \"TOTAL_DURATION\": \"total duration\",\n \"UPLOAD_FIRST_WORKOUT\": \"Upload one!\",\n \"WEATHER\": {\n \"HUMIDITY\": \"humidity\",\n \"TEMPERATURE\": \"temperature\",\n \"WIND\": \"wind\",\n \"DARK_SKY\": {\n \"clear-day\": \"clear day\",\n \"clear-night\": \"clear night\",\n \"cloudy\": \"cloudy\",\n \"fog\": \"fog\",\n \"partly-cloudy-day\": \"partly cloudy day\",\n \"partly-cloudy-night\": \"partly cloudy night\",\n \"rain\": \"rain\",\n \"sleet\": \"sleet\",\n \"snow\": \"snow\",\n \"wind\": \"wind\"\n }\n },\n \"WITH_GPX\": \"with .gpx file\",\n \"WITHOUT_GPX\": \"without .gpx file\",\n \"WORKOUT\": \"workout | workouts\",\n \"WORKOUT_DATE\": \"workout date\",\n \"WORKOUT_DELETION_CONFIRMATION\": \"Are you sure you want to delete this workout?\",\n \"ZIP_ARCHIVE\": \".zip file\",\n \"ZIP_ARCHIVE_DESCRIPTION\": \"or .zip file containing .gpx files\"\n}\n","import AdministrationTranslations from './administration.json'\nimport ApiTranslations from './api.json'\nimport ButtonsTranslations from './buttons.json'\nimport CommonTranslations from './common.json'\nimport DashboardTranslations from './dashboard.json'\nimport ErrorTranslations from './error.json'\nimport SportsTranslations from './sports.json'\nimport StatisticsTranslations from './statistics.json'\nimport UserTranslations from './user.json'\nimport WorkoutsTranslations from './workouts.json'\n\nexport default {\n admin: AdministrationTranslations,\n api: ApiTranslations,\n buttons: ButtonsTranslations,\n common: CommonTranslations,\n dashboard: DashboardTranslations,\n error: ErrorTranslations,\n sports: SportsTranslations,\n statistics: StatisticsTranslations,\n user: UserTranslations,\n workouts: WorkoutsTranslations,\n}\n","const suffixes = ['bytes', 'KB', 'MB', 'GB', 'TB']\n\nexport const getReadableFileSize = (\n fileSize: number,\n asText = true\n): string | Record<string, string> => {\n const i = Math.floor(Math.log(fileSize) / Math.log(1024))\n if (!fileSize) {\n return asText ? '0 bytes' : { size: '0', suffix: 'bytes' }\n }\n const size = (fileSize / Math.pow(1024, i)).toFixed(1)\n const suffix = suffixes[i]\n return asText ? `${size}${suffix}` : { size, suffix }\n}\n\nexport const getFileSizeInMB = (fileSize: number): number => {\n const value = fileSize / 1048576\n return (!fileSize && 0) || +value.toFixed(2)\n}\n","<template>\n <div class=\"user-picture\">\n <img\n v-if=\"authUserPictureUrl !== ''\"\n class=\"profile-user-img\"\n :alt=\"$t('user.USER_PICTURE')\"\n :src=\"authUserPictureUrl\"\n />\n <div v-else class=\"no-picture\">\n <i class=\"fa fa-user-circle-o\" aria-hidden=\"true\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, computed, defineComponent } from 'vue'\n\n import { IUserProfile } from '@/types/user'\n import { getApiUrl } from '@/utils'\n\n export default defineComponent({\n name: 'UserPicture',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n return {\n authUserPictureUrl: computed(() =>\n props.user.picture\n ? `${getApiUrl()}users/${props.user.username}/picture`\n : ''\n ),\n }\n },\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base.scss';\n\n .user-picture {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 30%;\n img {\n border-radius: 50%;\n height: 90px;\n width: 90px;\n }\n .no-picture {\n color: var(--app-a-color);\n font-size: 5.5em;\n }\n }\n</style>\n","\n import { PropType, computed, defineComponent } from 'vue'\n\n import { IUserProfile } from '@/types/user'\n import { getApiUrl } from '@/utils'\n\n export default defineComponent({\n name: 'UserPicture',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n return {\n authUserPictureUrl: computed(() =>\n props.user.picture\n ? `${getApiUrl()}users/${props.user.username}/picture`\n : ''\n ),\n }\n },\n })\n","import { render } from \"./UserPicture.vue?vue&type=template&id=4aed39f4\"\nimport script from \"./UserPicture.vue?vue&type=script&lang=ts\"\nexport * from \"./UserPicture.vue?vue&type=script&lang=ts\"\n\nimport \"./UserPicture.vue?vue&type=style&index=0&id=4aed39f4&lang=scss\"\nscript.render = render\n\nexport default script","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserPreferences.vue?vue&type=style&index=0&id=39667dbe&lang=scss&scoped=true\"","/* eslint-disable no-console */\n\nimport { register } from 'register-service-worker'\n\nif (process.env.NODE_ENV === 'production') {\n register(`${process.env.BASE_URL}service-worker.js`, {\n ready() {\n console.log(\n 'App is being served from cache by a service worker.\\n' +\n 'For more details, visit https://goo.gl/AFskqB'\n )\n },\n registered() {\n console.log('Service worker has been registered.')\n },\n cached() {\n console.log('Content has been cached for offline use.')\n },\n updatefound() {\n console.log('New content is downloading.')\n },\n updated() {\n console.log('New content is available; please refresh.')\n },\n offline() {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n )\n },\n error(error) {\n console.error('Error during service worker registration:', error)\n },\n })\n}\n","<template>\n <div id=\"top\" />\n <NavBar @menuInteraction=\"updateHideScrollBar\" />\n <div v-if=\"appLoading\" class=\"app-container\">\n <div class=\"app-loading\">\n <Loader />\n </div>\n </div>\n <div v-else class=\"app-container\" :class=\"{ 'hide-scroll': hideScrollBar }\">\n <router-view v-if=\"appConfig\" />\n <NoConfig v-else />\n </div>\n <div class=\"container scroll\">\n <div\n class=\"scroll-button\"\n :class=\"{ 'display-button': displayScrollButton }\"\n @click=\"scrollToTop\"\n >\n <i class=\"fa fa-chevron-up\" aria-hidden=\"true\"></i>\n </div>\n </div>\n <Footer v-if=\"appConfig\" :version=\"appConfig ? appConfig.version : ''\" />\n</template>\n\n<script lang=\"ts\">\n import {\n ComputedRef,\n computed,\n defineComponent,\n ref,\n onBeforeMount,\n onMounted,\n } from 'vue'\n\n import Footer from '@/components/Footer.vue'\n import NavBar from '@/components/NavBar.vue'\n import NoConfig from '@/components/NoConfig.vue'\n import { ROOT_STORE } from '@/store/constants'\n import { TAppConfig } from '@/types/application'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'App',\n components: {\n Footer,\n NavBar,\n NoConfig,\n },\n setup() {\n const store = useStore()\n\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const appLoading: ComputedRef<boolean> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_LOADING]\n )\n const hideScrollBar = ref(false)\n const displayScrollButton = ref(false)\n\n onBeforeMount(() =>\n store.dispatch(ROOT_STORE.ACTIONS.GET_APPLICATION_CONFIG)\n )\n onMounted(() => scroll())\n\n function updateHideScrollBar(isMenuOpen: boolean) {\n hideScrollBar.value = isMenuOpen\n }\n\n function isScrolledToBottom(element: Element): boolean {\n return (\n element.getBoundingClientRect().top < window.innerHeight &&\n element.getBoundingClientRect().bottom >= 0\n )\n }\n function scroll() {\n window.onscroll = () => {\n let bottom = document.querySelector('#bottom')\n displayScrollButton.value =\n bottom !== null && isScrolledToBottom(bottom)\n }\n }\n function scrollToTop() {\n window.scrollTo({\n top: 0,\n behavior: 'smooth',\n })\n setTimeout(() => {\n displayScrollButton.value = false\n }, 300)\n }\n\n return {\n appConfig,\n appLoading,\n hideScrollBar,\n displayScrollButton,\n scrollToTop,\n updateHideScrollBar,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base';\n .app-container {\n height: $app-height;\n\n &.hide-scroll {\n overflow: hidden;\n }\n\n .app-loading {\n display: flex;\n align-items: center;\n height: 100%;\n }\n }\n\n .scroll {\n display: flex;\n justify-content: flex-end;\n position: fixed;\n bottom: 42px;\n right: -15px;\n padding: 0 $default-padding * 2.5;\n\n .scroll-button {\n background-color: var(--scroll-button-bg-color);\n border-radius: $border-radius;\n box-shadow: 1px 1px 3px lightgrey;\n display: none;\n padding: 0 $default-padding;\n\n &.display-button {\n display: block;\n }\n }\n }\n</style>\n","<template>\n <div id=\"footer\">\n <div class=\"footer-items\">\n <div class=\"footer-item\">\n <strong>FitTrackee</strong>\n v{{ version }}\n </div>\n <div class=\"footer-item bullet\">•</div>\n <div class=\"footer-item\">\n <a\n href=\"https://github.com/SamR1/FitTrackee\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n source code\n </a>\n under\n <a\n href=\"https://choosealicense.com/licenses/gpl-3.0/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n GPLv3 </a\n >license\n </div>\n <div class=\"footer-item bullet\">•</div>\n <div class=\"footer-item\">\n <a\n href=\"https://samr1.github.io/FitTrackee/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n documentation\n </a>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'Footer',\n props: {\n version: {\n type: String,\n required: true,\n },\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n\n #footer {\n display: flex;\n\n bottom: 0;\n position: fixed;\n width: 100%;\n\n background: var(--footer-background-color);\n color: var(--footer-color);\n font-size: 0.9em;\n\n a {\n text-decoration: none;\n }\n\n .footer-items {\n display: flex;\n align-content: center;\n justify-content: center;\n\n width: 100%;\n\n .footer-item {\n padding: 10px 10px;\n\n border-top: solid 1px var(--footer-border-color);\n text-align: center;\n }\n }\n\n @media screen and (max-width: $x-small-limit) {\n .footer-items {\n font-size: 0.85em;\n\n .footer-item {\n padding: 5px 5px;\n }\n\n .bullet {\n padding: 5px 0;\n }\n }\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'Footer',\n props: {\n version: {\n type: String,\n required: true,\n },\n },\n })\n","import { render } from \"./Footer.vue?vue&type=template&id=e1641806&scoped=true\"\nimport script from \"./Footer.vue?vue&type=script&lang=ts\"\nexport * from \"./Footer.vue?vue&type=script&lang=ts\"\n\nimport \"./Footer.vue?vue&type=style&index=0&id=e1641806&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-e1641806\"\n\nexport default script","<template>\n <div id=\"nav\">\n <div class=\"nav-container\">\n <div class=\"nav-app-name\">\n <div class=\"nav-item app-name\" @click=\"$router.push('/')\">\n FitTrackee\n </div>\n </div>\n <div class=\"nav-icon-open\" :class=\"{ 'menu-open': isMenuOpen }\">\n <i class=\"fa fa-bars hamburger-icon\" @click=\"openMenu()\"></i>\n </div>\n <div class=\"nav-items\" :class=\"{ 'menu-open': isMenuOpen }\">\n <div class=\"nav-items-close\">\n <div class=\"app-name\">FitTrackee</div>\n <i\n class=\"fa fa-close close-icon nav-item\"\n :class=\"{ 'menu-closed': !isMenuOpen }\"\n @click=\"closeMenu()\"\n />\n </div>\n <div class=\"nav-items-app-menu\" @click=\"closeMenu()\">\n <div class=\"nav-items-group\" v-if=\"isAuthenticated\">\n <router-link class=\"nav-item\" to=\"/\">\n {{ $t('dashboard.DASHBOARD') }}\n </router-link>\n <router-link class=\"nav-item\" to=\"/workouts\">\n {{ capitalize($t('workouts.WORKOUT', 2)) }}\n </router-link>\n <router-link class=\"nav-item\" to=\"/statistics\">\n {{ $t('statistics.STATISTICS') }}\n </router-link>\n <router-link class=\"nav-item\" to=\"/workouts/add\">\n {{ $t('workouts.ADD_WORKOUT') }}\n </router-link>\n <router-link\n class=\"nav-item\"\n v-if=\"isAuthenticated && authUser.admin\"\n to=\"/admin\"\n >\n {{ $t('admin.ADMIN') }}\n </router-link>\n <div class=\"nav-item nav-separator\" />\n </div>\n </div>\n <div class=\"nav-items-user-menu\">\n <div class=\"nav-items-group\" v-if=\"isAuthenticated\">\n <div class=\"nav-item nav-profile-img\">\n <UserPicture :user=\"authUser\" />\n </div>\n <router-link class=\"nav-item\" to=\"/profile\" @click=\"closeMenu\">\n {{ authUser.username }}\n </router-link>\n <div class=\"nav-item nav-link\" @click=\"logout\">\n {{ $t('user.LOGOUT') }}\n </div>\n </div>\n <div class=\"nav-items-group\" v-else>\n <router-link class=\"nav-item\" to=\"/login\" @click=\"closeMenu\">\n {{ $t('user.LOGIN') }}\n </router-link>\n <router-link class=\"nav-item\" to=\"/register\" @click=\"closeMenu\">\n {{ $t('user.REGISTER') }}\n </router-link>\n </div>\n <Dropdown\n v-if=\"availableLanguages && language\"\n class=\"nav-item\"\n :options=\"availableLanguages\"\n :selected=\"language\"\n @selected=\"updateLanguage\"\n >\n <i class=\"fa fa-language\"></i>\n </Dropdown>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { ComputedRef, computed, defineComponent, ref, capitalize } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IDropdownOption } from '@/types/forms'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getApiUrl } from '@/utils'\n import { availableLanguages } from '@/utils/locales'\n\n export default defineComponent({\n name: 'NavBar',\n components: {\n UserPicture,\n },\n emits: ['menuInteraction'],\n setup(props, { emit }) {\n const { locale } = useI18n()\n const store = useStore()\n\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const isAuthenticated: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.IS_AUTHENTICATED]\n )\n const authUserPictureUrl: ComputedRef<string> = computed(() =>\n isAuthenticated.value && authUser.value.picture\n ? `${getApiUrl()}/users/${\n authUser.value.username\n }/picture?${Date.now()}`\n : ''\n )\n const language: ComputedRef<string> = computed(\n () => store.getters[ROOT_STORE.GETTERS.LANGUAGE]\n )\n let isMenuOpen = ref(false)\n\n function openMenu() {\n isMenuOpen.value = true\n emit('menuInteraction', true)\n }\n function closeMenu() {\n isMenuOpen.value = false\n emit('menuInteraction', false)\n }\n function updateLanguage(option: IDropdownOption) {\n locale.value = option.value.toString()\n store.commit(ROOT_STORE.MUTATIONS.UPDATE_LANG, option.value)\n }\n function logout() {\n store.dispatch(USER_STORE.ACTIONS.LOGOUT)\n }\n\n return {\n availableLanguages,\n authUser,\n authUserPictureUrl,\n isAuthenticated,\n isMenuOpen,\n language,\n capitalize,\n openMenu,\n closeMenu,\n updateLanguage,\n logout,\n }\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n\n #nav {\n background: var(--nav-bar-background-color);\n display: flex;\n padding: 15px 10px;\n\n .nav-container {\n display: flex;\n\n margin-left: auto;\n margin-right: auto;\n padding: 0 15px 15px 15px;\n max-width: $container-width;\n width: 100%;\n\n border-bottom: solid 1px var(--nav-border-color);\n }\n\n a {\n &.router-link-exact-active {\n color: var(--nav-bar-link-active);\n font-weight: bold;\n }\n }\n\n .app-name {\n font-size: 1.2em;\n font-weight: bold;\n margin-right: 10px;\n\n &:hover {\n cursor: pointer;\n }\n }\n\n .fa {\n font-size: 1.2em;\n }\n\n .nav-icon-open {\n display: none;\n }\n\n .hamburger-icon,\n .close-icon {\n display: none;\n }\n\n .nav-items {\n display: flex;\n flex: 1;\n justify-content: space-between;\n line-height: 1.8em;\n width: 100%;\n\n .nav-items-close {\n display: none;\n }\n\n .nav-items-app-menu,\n .nav-items-user-menu {\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n .nav-items-group {\n display: flex;\n }\n .nav-item {\n padding: 0 10px;\n\n &.dropdown-wrapper {\n width: 60px;\n }\n\n ::v-deep(.dropdown-list) {\n margin-left: -10px;\n padding-left: 10px;\n width: 75px;\n }\n }\n\n .nav-link {\n color: var(--app-a-color);\n cursor: pointer;\n }\n\n .nav-profile-img {\n margin-bottom: -$default-padding;\n ::v-deep(.user-picture) {\n img {\n height: 32px;\n width: 32px;\n object-fit: cover;\n }\n .no-picture {\n font-size: 1.7em;\n }\n }\n }\n\n .nav-separator {\n display: none;\n }\n }\n\n @media screen and (max-width: $medium-limit) {\n .hamburger-icon {\n display: block;\n }\n .nav-icon-open {\n display: block;\n text-align: right;\n width: 100%;\n }\n .nav-icon-open.menu-open {\n display: none;\n }\n\n .close-icon {\n display: block;\n }\n .close-icon.menu-closed {\n display: none;\n }\n\n .nav-items {\n display: none;\n }\n .nav-items.menu-open {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n z-index: 1001;\n\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background: var(--nav-bar-background-color);\n\n .nav-items-close,\n .nav-items-app-menu,\n .nav-items-user-menu {\n display: flex;\n flex-direction: column;\n }\n\n .nav-items-close {\n align-items: center;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n .app-name {\n padding: 15px 25px;\n }\n }\n\n .nav-items-group {\n display: flex;\n flex-direction: column;\n }\n\n .nav-item {\n padding: 7px 25px;\n }\n\n .nav-profile-img {\n display: none;\n }\n\n .nav-separator {\n display: flex;\n border-top: solid 1px var(--nav-border-color);\n margin: 0 $default-margin * 2;\n padding: 0;\n }\n }\n }\n }\n</style>\n","import { createI18n, LocaleMessages, VueMessageType } from 'vue-i18n'\n\n/**\n * Load locale messages\n *\n * The loaded `JSON` locale messages is pre-compiled by `@intlify/vue-i18n-loader`, which is integrated into `vue-cli-plugin-i18n`.\n * See: https://github.com/intlify/vue-i18n-loader#rocket-i18n-resource-pre-compilation\n */\nfunction loadLocaleMessages(): LocaleMessages<VueMessageType> {\n const locales = require.context('./locales', true, /[A-Za-z0-9-_,\\s]+\\.ts$/i)\n const messages: LocaleMessages<VueMessageType> = {}\n locales.keys().forEach((key) => {\n const matched = key.match(/([A-Za-z0-9-_]+)\\./i)\n if (matched && matched.length > 1) {\n const locale = matched[1]\n messages[locale] = locales(key).default\n }\n })\n return messages\n}\n\nexport default createI18n({\n legacy: false,\n locale: 'en',\n fallbackLocale: 'en',\n globalInjection: true,\n messages: loadLocaleMessages(),\n})\n","/* eslint-disable import/no-duplicates */\nimport { Locale } from 'date-fns'\nimport { enUS, fr } from 'date-fns/locale'\n\nimport createI18n from '@/i18n'\n\nexport const localeFromLanguage: Record<string, Locale> = {\n en: enUS,\n fr: fr,\n}\n\nexport const languageLabels: Record<string, string> = {\n en: 'English',\n fr: 'Français',\n}\n\nconst { availableLocales } = createI18n.global\nexport const availableLanguages = availableLocales.map((l) => {\n return { label: languageLabels[l], value: l }\n})\n","\n import { ComputedRef, computed, defineComponent, ref, capitalize } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IDropdownOption } from '@/types/forms'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getApiUrl } from '@/utils'\n import { availableLanguages } from '@/utils/locales'\n\n export default defineComponent({\n name: 'NavBar',\n components: {\n UserPicture,\n },\n emits: ['menuInteraction'],\n setup(props, { emit }) {\n const { locale } = useI18n()\n const store = useStore()\n\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const isAuthenticated: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.IS_AUTHENTICATED]\n )\n const authUserPictureUrl: ComputedRef<string> = computed(() =>\n isAuthenticated.value && authUser.value.picture\n ? `${getApiUrl()}/users/${\n authUser.value.username\n }/picture?${Date.now()}`\n : ''\n )\n const language: ComputedRef<string> = computed(\n () => store.getters[ROOT_STORE.GETTERS.LANGUAGE]\n )\n let isMenuOpen = ref(false)\n\n function openMenu() {\n isMenuOpen.value = true\n emit('menuInteraction', true)\n }\n function closeMenu() {\n isMenuOpen.value = false\n emit('menuInteraction', false)\n }\n function updateLanguage(option: IDropdownOption) {\n locale.value = option.value.toString()\n store.commit(ROOT_STORE.MUTATIONS.UPDATE_LANG, option.value)\n }\n function logout() {\n store.dispatch(USER_STORE.ACTIONS.LOGOUT)\n }\n\n return {\n availableLanguages,\n authUser,\n authUserPictureUrl,\n isAuthenticated,\n isMenuOpen,\n language,\n capitalize,\n openMenu,\n closeMenu,\n updateLanguage,\n logout,\n }\n },\n })\n","import { render } from \"./NavBar.vue?vue&type=template&id=03a78350&scoped=true\"\nimport script from \"./NavBar.vue?vue&type=script&lang=ts\"\nexport * from \"./NavBar.vue?vue&type=script&lang=ts\"\n\nimport \"./NavBar.vue?vue&type=style&index=0&id=03a78350&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-03a78350\"\n\nexport default script","<template>\n <div id=\"no-config\">\n <div class=\"error-page\">\n <div class=\"error-img\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -51 512 512\">\n <g id=\"error\">\n <path\n class=\"error-page-img\"\n 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 \"\n />\n <path\n class=\"error-page-img\"\n 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 \"\n />\n <path\n class=\"error-page-img\"\n d=\"M 197.089844 180 L 237.089844 180 L 237.089844 220 L 197.089844 220 Z M 197.089844 180 \"\n />\n <path\n class=\"error-page-img\"\n d=\"M 197.089844 261 L 237.089844 261 L 237.089844 301 L 197.089844 301 Z M 197.089844 261 \"\n />\n </g>\n </svg>\n </div>\n <p class=\"error-message\" v-html=\"$t('error.APP_ERROR')\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n export default defineComponent({\n name: 'NoConfig',\n setup() {\n const { t } = useI18n()\n return { t }\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n\n #no-config {\n display: flex;\n align-items: center;\n justify-content: space-around;\n\n padding: $default-padding;\n height: 100%;\n\n .error-page {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 100%;\n\n .error-img {\n width: 150px;\n\n svg {\n .error-page-img {\n stroke: none;\n fill-rule: nonzero;\n fill: var(--app-color);\n filter: var(--svg-filter);\n }\n }\n }\n\n .error-message {\n font-size: 1.2em;\n text-align: center;\n\n @media screen and (max-width: $medium-limit) {\n font-size: 1em;\n }\n }\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n export default defineComponent({\n name: 'NoConfig',\n setup() {\n const { t } = useI18n()\n return { t }\n },\n })\n","import { render } from \"./NoConfig.vue?vue&type=template&id=01d4a985&scoped=true\"\nimport script from \"./NoConfig.vue?vue&type=script&lang=ts\"\nexport * from \"./NoConfig.vue?vue&type=script&lang=ts\"\n\nimport \"./NoConfig.vue?vue&type=style&index=0&id=01d4a985&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-01d4a985\"\n\nexport default script","\n import {\n ComputedRef,\n computed,\n defineComponent,\n ref,\n onBeforeMount,\n onMounted,\n } from 'vue'\n\n import Footer from '@/components/Footer.vue'\n import NavBar from '@/components/NavBar.vue'\n import NoConfig from '@/components/NoConfig.vue'\n import { ROOT_STORE } from '@/store/constants'\n import { TAppConfig } from '@/types/application'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'App',\n components: {\n Footer,\n NavBar,\n NoConfig,\n },\n setup() {\n const store = useStore()\n\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const appLoading: ComputedRef<boolean> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_LOADING]\n )\n const hideScrollBar = ref(false)\n const displayScrollButton = ref(false)\n\n onBeforeMount(() =>\n store.dispatch(ROOT_STORE.ACTIONS.GET_APPLICATION_CONFIG)\n )\n onMounted(() => scroll())\n\n function updateHideScrollBar(isMenuOpen: boolean) {\n hideScrollBar.value = isMenuOpen\n }\n\n function isScrolledToBottom(element: Element): boolean {\n return (\n element.getBoundingClientRect().top < window.innerHeight &&\n element.getBoundingClientRect().bottom >= 0\n )\n }\n function scroll() {\n window.onscroll = () => {\n let bottom = document.querySelector('#bottom')\n displayScrollButton.value =\n bottom !== null && isScrolledToBottom(bottom)\n }\n }\n function scrollToTop() {\n window.scrollTo({\n top: 0,\n behavior: 'smooth',\n })\n setTimeout(() => {\n displayScrollButton.value = false\n }, 300)\n }\n\n return {\n appConfig,\n appLoading,\n hideScrollBar,\n displayScrollButton,\n scrollToTop,\n updateHideScrollBar,\n }\n },\n })\n","import { render } from \"./App.vue?vue&type=template&id=317a6409&scoped=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=317a6409&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-317a6409\"\n\nexport default script","<template>\n <div id=\"admin-app\" class=\"admin-card\">\n <Card>\n <template #title>{{ $t('admin.APP_CONFIG.TITLE') }}</template>\n <template #content>\n <form class=\"admin-form\" @submit.prevent=\"onSubmit\">\n <label for=\"max_users\">\n {{ $t('admin.APP_CONFIG.MAX_USERS_LABEL') }}:\n <input\n id=\"max_users\"\n name=\"max_users\"\n type=\"number\"\n min=\"0\"\n v-model=\"appData.max_users\"\n :disabled=\"!edition\"\n />\n </label>\n <div class=\"user-limit-help\">\n <span class=\"info-box\">\n <i class=\"fa fa-info-circle\" aria-hidden=\"true\" />\n {{ $t('admin.APP_CONFIG.MAX_USERS_HELP') }}\n </span>\n </div>\n <label for=\"max_single_file_size\">\n {{ $t('admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL') }}:\n <input\n id=\"max_single_file_size\"\n name=\"max_single_file_size\"\n type=\"number\"\n step=\"0.1\"\n min=\"0\"\n v-model=\"appData.max_single_file_size\"\n :disabled=\"!edition\"\n />\n </label>\n <label for=\"max_zip_file_size\">\n {{ $t('admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL') }}:\n <input\n id=\"max_zip_file_size\"\n name=\"max_zip_file_size\"\n type=\"number\"\n step=\"0.1\"\n min=\"0\"\n v-model=\"appData.max_zip_file_size\"\n :disabled=\"!edition\"\n />\n </label>\n <label for=\"gpx_limit_import\">\n {{ $t('admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL') }}:\n <input\n id=\"gpx_limit_import\"\n name=\"gpx_limit_import\"\n type=\"number\"\n min=\"0\"\n v-model=\"appData.gpx_limit_import\"\n :disabled=\"!edition\"\n />\n </label>\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <div class=\"form-buttons\" v-if=\"edition\">\n <button class=\"confirm\" type=\"submit\">\n {{ $t('buttons.SUBMIT') }}\n </button>\n <button class=\"cancel\" @click.prevent=\"onCancel\">\n {{ $t('buttons.CANCEL') }}\n </button>\n </div>\n <div class=\"form-buttons\" v-else>\n <button\n class=\"confirm\"\n @click.prevent=\"$router.push('/admin/application/edit')\"\n >\n {{ $t('buttons.EDIT') }}\n </button>\n <button class=\"cancel\" @click.prevent=\"$router.push('/admin')\">\n {{ $t('admin.BACK_TO_ADMIN') }}\n </button>\n </div>\n </form>\n </template>\n </Card>\n </div>\n</template>\n\n<script lang=\"ts\">\n import {\n ComputedRef,\n PropType,\n computed,\n defineComponent,\n reactive,\n onBeforeMount,\n } from 'vue'\n import { useRouter } from 'vue-router'\n\n import { ROOT_STORE } from '@/store/constants'\n import { TAppConfig, TAppConfigForm } from '@/types/application'\n import { useStore } from '@/use/useStore'\n import { getFileSizeInMB } from '@/utils/files'\n\n export default defineComponent({\n name: 'AdminApplication',\n props: {\n appConfig: {\n type: Object as PropType<TAppConfig>,\n required: true,\n },\n edition: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const store = useStore()\n const router = useRouter()\n const appData: TAppConfigForm = reactive({\n max_users: 0,\n max_single_file_size: 0,\n max_zip_file_size: 0,\n gpx_limit_import: 0,\n })\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n onBeforeMount(() => {\n if (props.appConfig) {\n updateForm(props.appConfig)\n }\n })\n\n function updateForm(appConfig: TAppConfig) {\n Object.keys(appData).map((key) => {\n ;['max_single_file_size', 'max_zip_file_size'].includes(key)\n ? // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (appData[key] = getFileSizeInMB(appConfig[key]))\n : // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (appData[key] = appConfig[key])\n })\n }\n\n function onCancel() {\n updateForm(props.appConfig)\n store.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n router.push('/admin/application')\n }\n function onSubmit() {\n const formData: TAppConfigForm = Object.assign({}, appData)\n formData.max_single_file_size *= 1048576\n formData.max_zip_file_size *= 1048576\n store.dispatch(ROOT_STORE.ACTIONS.UPDATE_APPLICATION_CONFIG, formData)\n }\n\n return { appData, errorMessages, onCancel, onSubmit }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n .user-limit-help {\n display: flex;\n span {\n font-style: italic;\n }\n .fa-info-circle {\n margin-right: $default-margin;\n }\n }\n</style>\n","\n import {\n ComputedRef,\n PropType,\n computed,\n defineComponent,\n reactive,\n onBeforeMount,\n } from 'vue'\n import { useRouter } from 'vue-router'\n\n import { ROOT_STORE } from '@/store/constants'\n import { TAppConfig, TAppConfigForm } from '@/types/application'\n import { useStore } from '@/use/useStore'\n import { getFileSizeInMB } from '@/utils/files'\n\n export default defineComponent({\n name: 'AdminApplication',\n props: {\n appConfig: {\n type: Object as PropType<TAppConfig>,\n required: true,\n },\n edition: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const store = useStore()\n const router = useRouter()\n const appData: TAppConfigForm = reactive({\n max_users: 0,\n max_single_file_size: 0,\n max_zip_file_size: 0,\n gpx_limit_import: 0,\n })\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n onBeforeMount(() => {\n if (props.appConfig) {\n updateForm(props.appConfig)\n }\n })\n\n function updateForm(appConfig: TAppConfig) {\n Object.keys(appData).map((key) => {\n ;['max_single_file_size', 'max_zip_file_size'].includes(key)\n ? // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (appData[key] = getFileSizeInMB(appConfig[key]))\n : // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n (appData[key] = appConfig[key])\n })\n }\n\n function onCancel() {\n updateForm(props.appConfig)\n store.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n router.push('/admin/application')\n }\n function onSubmit() {\n const formData: TAppConfigForm = Object.assign({}, appData)\n formData.max_single_file_size *= 1048576\n formData.max_zip_file_size *= 1048576\n store.dispatch(ROOT_STORE.ACTIONS.UPDATE_APPLICATION_CONFIG, formData)\n }\n\n return { appData, errorMessages, onCancel, onSubmit }\n },\n })\n","import { render } from \"./AdminApplication.vue?vue&type=template&id=26175b66&scoped=true\"\nimport script from \"./AdminApplication.vue?vue&type=script&lang=ts\"\nexport * from \"./AdminApplication.vue?vue&type=script&lang=ts\"\n\nimport \"./AdminApplication.vue?vue&type=style&index=0&id=26175b66&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-26175b66\"\n\nexport default script","<template>\n <div id=\"admin-menu\" class=\"center-card\">\n <Card>\n <template #title>{{ $t('admin.ADMINISTRATION') }}</template>\n <template #content>\n <AppStatsCards :app-statistics=\"appStatistics\" />\n <div class=\"admin-menu description-list\">\n <dl>\n <dt>\n <router-link to=\"/admin/application\">\n {{ $t('admin.APPLICATION') }}\n </router-link>\n </dt>\n <dd>\n {{ $t('admin.UPDATE_APPLICATION_DESCRIPTION') }}<br />\n <span class=\"registration-status\">\n {{\n $t(\n `admin.REGISTRATION_${\n appConfig.is_registration_enabled ? 'ENABLED' : 'DISABLED'\n }`\n )\n }}\n </span>\n </dd>\n <dt>\n <router-link to=\"/admin/sports\">\n {{ capitalize($t('workouts.SPORT', 0)) }}\n </router-link>\n </dt>\n <dd>\n {{ $t('admin.ENABLE_DISABLE_SPORTS') }}\n </dd>\n <dt>\n <router-link to=\"/admin/users\">\n {{ capitalize($t('admin.USER', 0)) }}\n </router-link>\n </dt>\n <dd>\n {{ $t('admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT') }}\n </dd>\n </dl>\n </div>\n </template>\n </Card>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, capitalize, defineComponent } from 'vue'\n\n import AppStatsCards from '@/components/Administration/AppStatsCards.vue'\n import Card from '@/components/Common/Card.vue'\n import { IAppStatistics, TAppConfig } from '@/types/application'\n\n export default defineComponent({\n name: 'AdminMenu',\n components: {\n AppStatsCards,\n Card,\n },\n props: {\n appConfig: {\n type: Object as PropType<TAppConfig>,\n required: true,\n },\n appStatistics: {\n type: Object as PropType<IAppStatistics>,\n },\n },\n setup() {\n return { capitalize }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n #admin-menu {\n display: flex;\n &.center-card {\n width: 100%;\n }\n\n ::v-deep(.card) {\n flex-grow: 1;\n\n .admin-menu {\n padding: 0 $default-padding;\n\n dd {\n margin-bottom: $default-margin * 3;\n }\n .registration-status {\n font-weight: bold;\n }\n }\n }\n }\n</style>\n","<template>\n <div id=\"user-stats\">\n <StatCard\n icon=\"users\"\n :value=\"usersCount\"\n :text=\"$t('admin.USER', usersCount)\"\n />\n <StatCard\n icon=\"tags\"\n :value=\"sportsCount\"\n :text=\"$t('workouts.SPORT', sportsCount)\"\n />\n <StatCard\n icon=\"calendar\"\n :value=\"workoutCount\"\n :text=\"$t('workouts.WORKOUT', workoutCount)\"\n />\n <StatCard\n icon=\"folder-open\"\n :value=\"uploadDirSize.size\"\n :text=\"uploadDirSize.suffix\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent, computed } from 'vue'\n\n import StatCard from '@/components/Common/StatCard.vue'\n import { IAppStatistics } from '@/types/application'\n import { getReadableFileSize } from '@/utils/files'\n\n export default defineComponent({\n name: 'UserStatsCards',\n components: {\n StatCard,\n },\n props: {\n appStatistics: {\n type: Object as PropType<IAppStatistics>,\n default: () => {\n return {}\n },\n },\n },\n setup(props) {\n return {\n uploadDirSize: computed(() =>\n props.appStatistics.uploads_dir_size\n ? getReadableFileSize(props.appStatistics.uploads_dir_size, false)\n : { size: 0, suffix: 'bytes' }\n ),\n usersCount: computed(() =>\n props.appStatistics.users ? props.appStatistics.users : 0\n ),\n sportsCount: computed(() =>\n props.appStatistics.sports ? props.appStatistics.sports : 0\n ),\n workoutCount: computed(() =>\n props.appStatistics.workouts ? props.appStatistics.workouts : 0\n ),\n }\n },\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base';\n #user-stats {\n display: flex;\n flex-wrap: wrap;\n }\n</style>\n","\n import { PropType, defineComponent, computed } from 'vue'\n\n import StatCard from '@/components/Common/StatCard.vue'\n import { IAppStatistics } from '@/types/application'\n import { getReadableFileSize } from '@/utils/files'\n\n export default defineComponent({\n name: 'UserStatsCards',\n components: {\n StatCard,\n },\n props: {\n appStatistics: {\n type: Object as PropType<IAppStatistics>,\n default: () => {\n return {}\n },\n },\n },\n setup(props) {\n return {\n uploadDirSize: computed(() =>\n props.appStatistics.uploads_dir_size\n ? getReadableFileSize(props.appStatistics.uploads_dir_size, false)\n : { size: 0, suffix: 'bytes' }\n ),\n usersCount: computed(() =>\n props.appStatistics.users ? props.appStatistics.users : 0\n ),\n sportsCount: computed(() =>\n props.appStatistics.sports ? props.appStatistics.sports : 0\n ),\n workoutCount: computed(() =>\n props.appStatistics.workouts ? props.appStatistics.workouts : 0\n ),\n }\n },\n })\n","import { render } from \"./AppStatsCards.vue?vue&type=template&id=cd52bcc2\"\nimport script from \"./AppStatsCards.vue?vue&type=script&lang=ts\"\nexport * from \"./AppStatsCards.vue?vue&type=script&lang=ts\"\n\nimport \"./AppStatsCards.vue?vue&type=style&index=0&id=cd52bcc2&lang=scss\"\nscript.render = render\n\nexport default script","<template>\n <div class=\"card\">\n <div class=\"card-title\">\n <slot name=\"title\"></slot>\n </div>\n <div class=\"card-content\">\n <slot name=\"content\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n export default defineComponent({\n name: 'Card',\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base';\n\n .card {\n border: solid 1px var(--card-border-color);\n border-radius: $border-radius;\n margin: $default-margin;\n\n .card-title {\n font-weight: bold;\n border-bottom: solid 1px var(--card-border-color);\n padding: $default-padding $default-padding * 2;\n }\n\n .card-content {\n padding: $default-padding $default-padding * 2;\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n export default defineComponent({\n name: 'Card',\n })\n","import { render } from \"./Card.vue?vue&type=template&id=c5956538\"\nimport script from \"./Card.vue?vue&type=script&lang=ts\"\nexport * from \"./Card.vue?vue&type=script&lang=ts\"\n\nimport \"./Card.vue?vue&type=style&index=0&id=c5956538&lang=scss\"\nscript.render = render\n\nexport default script","\n import { PropType, capitalize, defineComponent } from 'vue'\n\n import AppStatsCards from '@/components/Administration/AppStatsCards.vue'\n import Card from '@/components/Common/Card.vue'\n import { IAppStatistics, TAppConfig } from '@/types/application'\n\n export default defineComponent({\n name: 'AdminMenu',\n components: {\n AppStatsCards,\n Card,\n },\n props: {\n appConfig: {\n type: Object as PropType<TAppConfig>,\n required: true,\n },\n appStatistics: {\n type: Object as PropType<IAppStatistics>,\n },\n },\n setup() {\n return { capitalize }\n },\n })\n","import { render } from \"./AdminMenu.vue?vue&type=template&id=4f30aa64&scoped=true\"\nimport script from \"./AdminMenu.vue?vue&type=script&lang=ts\"\nexport * from \"./AdminMenu.vue?vue&type=script&lang=ts\"\n\nimport \"./AdminMenu.vue?vue&type=style&index=0&id=4f30aa64&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-4f30aa64\"\n\nexport default script","<template>\n <div id=\"admin-sports\" class=\"admin-card\">\n <Card>\n <template #title>{{ $t('admin.SPORTS.TITLE') }}</template>\n <template #content>\n <button class=\"top-button\" @click.prevent=\"$router.push('/admin')\">\n {{ $t('admin.BACK_TO_ADMIN') }}\n </button>\n <div class=\"responsive-table\">\n <table>\n <thead>\n <tr>\n <th>#</th>\n <th>{{ $t('admin.SPORTS.TABLE.IMAGE') }}</th>\n <th class=\"text-left\">\n {{ $t('admin.SPORTS.TABLE.LABEL') }}\n </th>\n <th>{{ $t('admin.SPORTS.TABLE.ACTIVE') }}</th>\n <th class=\"text-left sport-action\">\n {{ $t('admin.ACTION') }}\n </th>\n <th />\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"sport in translatedSports\" :key=\"sport.id\">\n <td class=\"center-text\">\n <span class=\"cell-heading\">id</span>\n {{ sport.id }}\n </td>\n <td>\n <span class=\"cell-heading\">\n {{ $t('admin.SPORTS.TABLE.IMAGE') }}\n </span>\n <SportImage\n :title=\"sport.translatedLabel\"\n :sport-label=\"sport.label\"\n />\n </td>\n <td class=\"sport-label\">\n <span class=\"cell-heading\">\n {{ $t('admin.SPORTS.TABLE.LABEL') }}\n </span>\n {{ sport.translatedLabel }}\n </td>\n <td class=\"center-text\">\n <span class=\"cell-heading\">\n {{ $t('admin.SPORTS.TABLE.ACTIVE') }}\n </span>\n <i\n :class=\"`fa fa${sport.is_active ? '-check' : ''}-square-o`\"\n aria-hidden=\"true\"\n />\n </td>\n <td class=\"sport-action\">\n <span class=\"cell-heading\">\n {{ $t('admin.ACTION') }}\n </span>\n <div class=\"action-button\">\n <button\n :class=\"{ danger: sport.is_active }\"\n @click=\"updateSportStatus(sport.id, !sport.is_active)\"\n >\n {{ $t(`buttons.${sport.is_active ? 'DIS' : 'EN'}ABLE`) }}\n </button>\n <span v-if=\"sport.has_workouts\" class=\"has-workouts\">\n <i class=\"fa fa-warning\" aria-hidden=\"true\" />\n {{ $t('admin.SPORTS.TABLE.HAS_WORKOUTS') }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <button @click.prevent=\"$router.push('/admin')\">\n {{ $t('admin.BACK_TO_ADMIN') }}\n </button>\n </div>\n </template>\n </Card>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { ComputedRef, computed, defineComponent } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n import { ROOT_STORE, SPORTS_STORE } from '@/store/constants'\n import { ITranslatedSport } from '@/types/sports'\n import { useStore } from '@/use/useStore'\n import { translateSports } from '@/utils/sports'\n\n export default defineComponent({\n name: 'AdminSports',\n setup() {\n const { t } = useI18n()\n const store = useStore()\n const translatedSports: ComputedRef<ITranslatedSport[]> = computed(() =>\n translateSports(store.getters[SPORTS_STORE.GETTERS.SPORTS], t)\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n function updateSportStatus(id: number, isActive: boolean) {\n store.dispatch(SPORTS_STORE.ACTIONS.UPDATE_SPORTS, {\n id,\n isActive,\n })\n }\n\n return { errorMessages, translatedSports, updateSportStatus }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n #admin-sports {\n table {\n td {\n font-size: 1.1em;\n }\n }\n .sport-img {\n height: 35px;\n width: 35px;\n margin: 0 auto;\n }\n .has-workouts {\n font-size: 0.95em;\n font-style: italic;\n padding: 0 $default-padding;\n }\n .text-left {\n text-align: left;\n }\n .sport-action {\n padding-left: $default-padding * 4;\n }\n .action-button {\n display: block;\n }\n .top-button {\n display: none;\n }\n\n @media screen and (max-width: $small-limit) {\n .sport-action {\n padding-left: $default-padding;\n }\n .has-workouts {\n padding-top: $default-padding * 0.5;\n }\n .action-button {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n flex-direction: column;\n }\n .top-button {\n display: block;\n margin-bottom: $default-margin * 2;\n }\n }\n }\n</style>\n","\n import { ComputedRef, computed, defineComponent } from 'vue'\n import { useI18n } from 'vue-i18n'\n\n import { ROOT_STORE, SPORTS_STORE } from '@/store/constants'\n import { ITranslatedSport } from '@/types/sports'\n import { useStore } from '@/use/useStore'\n import { translateSports } from '@/utils/sports'\n\n export default defineComponent({\n name: 'AdminSports',\n setup() {\n const { t } = useI18n()\n const store = useStore()\n const translatedSports: ComputedRef<ITranslatedSport[]> = computed(() =>\n translateSports(store.getters[SPORTS_STORE.GETTERS.SPORTS], t)\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n function updateSportStatus(id: number, isActive: boolean) {\n store.dispatch(SPORTS_STORE.ACTIONS.UPDATE_SPORTS, {\n id,\n isActive,\n })\n }\n\n return { errorMessages, translatedSports, updateSportStatus }\n },\n })\n","import { render } from \"./AdminSports.vue?vue&type=template&id=6d930723&scoped=true\"\nimport script from \"./AdminSports.vue?vue&type=script&lang=ts\"\nexport * from \"./AdminSports.vue?vue&type=script&lang=ts\"\n\nimport \"./AdminSports.vue?vue&type=style&index=0&id=6d930723&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-6d930723\"\n\nexport default script","<template>\n <div id=\"admin-users\" class=\"admin-card\">\n <Card>\n <template #title>{{ capitalize($t('admin.USER', 0)) }}</template>\n <template #content>\n <button class=\"top-button\" @click.prevent=\"$router.push('/admin')\">\n {{ $t('admin.BACK_TO_ADMIN') }}\n </button>\n <FilterSelects\n :sort=\"sortList\"\n :order_by=\"orderByList\"\n :query=\"query\"\n message=\"admin.USERS.SELECTS.ORDER_BY\"\n @updateSelect=\"reloadUsers\"\n />\n <div class=\"responsive-table\">\n <table>\n <thead>\n <tr>\n <th>#</th>\n <th class=\"left-text\">{{ $t('user.USERNAME') }}</th>\n <th class=\"left-text\">{{ $t('user.EMAIL') }}</th>\n <th class=\"left-text\">\n {{ $t('user.PROFILE.REGISTRATION_DATE') }}\n </th>\n <th>\n {{ capitalize($t('workouts.WORKOUT', 0)) }}\n </th>\n <th>{{ $t('user.ADMIN') }}</th>\n <th>{{ $t('admin.ACTION') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"user in users\" :key=\"user.username\">\n <td>\n <span class=\"cell-heading\">\n {{ $t('user.PROFILE.PICTURE') }}\n </span>\n <UserPicture :user=\"user\" />\n </td>\n <td>\n <span class=\"cell-heading\">\n {{ $t('user.USERNAME') }}\n </span>\n <router-link :to=\"`/users/${user.username}`\">\n {{ user.username }}\n </router-link>\n </td>\n <td>\n <span class=\"cell-heading\">\n {{ $t('user.EMAIL') }}\n </span>\n {{ user.email }}\n </td>\n <td>\n <span class=\"cell-heading\">\n {{ $t('user.PROFILE.REGISTRATION_DATE') }}\n </span>\n {{\n format(\n getDateWithTZ(user.created_at, authUser.timezone),\n 'dd/MM/yyyy HH:mm'\n )\n }}\n </td>\n <td class=\"center-text\">\n <span class=\"cell-heading\">\n {{ capitalize($t('workouts.WORKOUT', 0)) }}\n </span>\n {{ user.nb_workouts }}\n </td>\n <td class=\"center-text\">\n <span class=\"cell-heading\">\n {{ $t('user.ADMIN') }}\n </span>\n <i\n :class=\"`fa fa${user.admin ? '-check' : ''}-square-o`\"\n aria-hidden=\"true\"\n />\n </td>\n <td class=\"center-text\">\n <span class=\"cell-heading\">\n {{ $t('admin.ACTION') }}\n </span>\n <button\n :class=\"{ danger: user.admin }\"\n :disabled=\"user.username === authUser.username\"\n @click=\"updateUser(user.username, !user.admin)\"\n >\n {{\n $t(\n `admin.USERS.TABLE.${\n user.admin ? 'REMOVE' : 'ADD'\n }_ADMIN_RIGHTS`\n )\n }}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <Pagination\n v-if=\"pagination.page\"\n path=\"/admin/users\"\n :pagination=\"pagination\"\n :query=\"query\"\n />\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <button @click.prevent=\"$router.push('/admin')\">\n {{ $t('admin.BACK_TO_ADMIN') }}\n </button>\n </div>\n </template>\n </Card>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { format } from 'date-fns'\n import {\n ComputedRef,\n computed,\n defineComponent,\n reactive,\n watch,\n capitalize,\n onBeforeMount,\n onUnmounted,\n } from 'vue'\n import { LocationQuery, useRoute, useRouter } from 'vue-router'\n\n import FilterSelects from '@/components/Common/FilterSelects.vue'\n import Pagination from '@/components/Common/Pagination.vue'\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE, USERS_STORE } from '@/store/constants'\n import { IPagination, TPaginationPayload } from '@/types/api'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getQuery, sortList } from '@/utils/api'\n import { getDateWithTZ } from '@/utils/dates'\n\n export default defineComponent({\n name: 'AdminUsers',\n components: {\n FilterSelects,\n Pagination,\n UserPicture,\n },\n setup() {\n const store = useStore()\n const route = useRoute()\n const router = useRouter()\n\n const orderByList: string[] = [\n 'admin',\n 'created_at',\n 'username',\n 'workouts_count',\n ]\n const defaultOrderBy = 'created_at'\n let query: TPaginationPayload = reactive(\n getQuery(route.query, orderByList, defaultOrderBy)\n )\n\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const users: ComputedRef<IUserProfile[]> = computed(\n () => store.getters[USERS_STORE.GETTERS.USERS]\n )\n const pagination: ComputedRef<IPagination> = computed(\n () => store.getters[USERS_STORE.GETTERS.USERS_PAGINATION]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n function loadUsers(queryParams: TPaginationPayload) {\n store.dispatch(USERS_STORE.ACTIONS.GET_USERS, queryParams)\n }\n function updateUser(username: string, admin: boolean) {\n store.dispatch(USERS_STORE.ACTIONS.UPDATE_USER, {\n username,\n admin,\n })\n }\n function reloadUsers(queryParam: string, queryValue: string) {\n query[queryParam] = queryValue\n if (queryParam === 'per_page') {\n query.page = 1\n }\n router.push({ path: '/admin/users', query })\n }\n\n onBeforeMount(() => loadUsers(query))\n\n watch(\n () => route.query,\n (newQuery: LocationQuery) => {\n query = getQuery(newQuery, orderByList, defaultOrderBy, { query })\n loadUsers(query)\n }\n )\n\n onUnmounted(() => {\n store.dispatch(USERS_STORE.ACTIONS.EMPTY_USERS)\n })\n\n return {\n authUser,\n errorMessages,\n orderByList,\n pagination,\n query,\n sortList,\n users,\n capitalize,\n format,\n getDateWithTZ,\n reloadUsers,\n updateUser,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n #admin-users {\n .top-button {\n display: none;\n }\n table {\n td {\n font-size: 1.1em;\n }\n }\n .left-text {\n text-align: left;\n }\n ::v-deep(.user-picture) {\n img {\n height: 30px;\n width: 30px;\n }\n .no-picture {\n font-size: 2em;\n }\n }\n\n @media screen and (max-width: $small-limit) {\n .top-button {\n display: block;\n margin-bottom: $default-margin * 2;\n }\n .pagination-center {\n margin-top: -3 * $default-margin;\n }\n }\n }\n</style>\n","\n import { format } from 'date-fns'\n import {\n ComputedRef,\n computed,\n defineComponent,\n reactive,\n watch,\n capitalize,\n onBeforeMount,\n onUnmounted,\n } from 'vue'\n import { LocationQuery, useRoute, useRouter } from 'vue-router'\n\n import FilterSelects from '@/components/Common/FilterSelects.vue'\n import Pagination from '@/components/Common/Pagination.vue'\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE, USERS_STORE } from '@/store/constants'\n import { IPagination, TPaginationPayload } from '@/types/api'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getQuery, sortList } from '@/utils/api'\n import { getDateWithTZ } from '@/utils/dates'\n\n export default defineComponent({\n name: 'AdminUsers',\n components: {\n FilterSelects,\n Pagination,\n UserPicture,\n },\n setup() {\n const store = useStore()\n const route = useRoute()\n const router = useRouter()\n\n const orderByList: string[] = [\n 'admin',\n 'created_at',\n 'username',\n 'workouts_count',\n ]\n const defaultOrderBy = 'created_at'\n let query: TPaginationPayload = reactive(\n getQuery(route.query, orderByList, defaultOrderBy)\n )\n\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n const users: ComputedRef<IUserProfile[]> = computed(\n () => store.getters[USERS_STORE.GETTERS.USERS]\n )\n const pagination: ComputedRef<IPagination> = computed(\n () => store.getters[USERS_STORE.GETTERS.USERS_PAGINATION]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n function loadUsers(queryParams: TPaginationPayload) {\n store.dispatch(USERS_STORE.ACTIONS.GET_USERS, queryParams)\n }\n function updateUser(username: string, admin: boolean) {\n store.dispatch(USERS_STORE.ACTIONS.UPDATE_USER, {\n username,\n admin,\n })\n }\n function reloadUsers(queryParam: string, queryValue: string) {\n query[queryParam] = queryValue\n if (queryParam === 'per_page') {\n query.page = 1\n }\n router.push({ path: '/admin/users', query })\n }\n\n onBeforeMount(() => loadUsers(query))\n\n watch(\n () => route.query,\n (newQuery: LocationQuery) => {\n query = getQuery(newQuery, orderByList, defaultOrderBy, { query })\n loadUsers(query)\n }\n )\n\n onUnmounted(() => {\n store.dispatch(USERS_STORE.ACTIONS.EMPTY_USERS)\n })\n\n return {\n authUser,\n errorMessages,\n orderByList,\n pagination,\n query,\n sortList,\n users,\n capitalize,\n format,\n getDateWithTZ,\n reloadUsers,\n updateUser,\n }\n },\n })\n","import { render } from \"./AdminUsers.vue?vue&type=template&id=4711ecf8&scoped=true\"\nimport script from \"./AdminUsers.vue?vue&type=script&lang=ts\"\nexport * from \"./AdminUsers.vue?vue&type=script&lang=ts\"\n\nimport \"./AdminUsers.vue?vue&type=style&index=0&id=4711ecf8&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-4711ecf8\"\n\nexport default script","<template>\n <div id=\"user-profile\">\n <UserHeader :user=\"user\" />\n <div class=\"box\">\n <UserProfileTabs :tabs=\"tabs\" :selectedTab=\"tab\" :edition=\"false\" />\n <router-view :user=\"user\"></router-view>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent } from 'vue'\n\n import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'\n import UserProfileTabs from '@/components/User/UserProfileTabs.vue'\n import { IUserProfile } from '@/types/user'\n\n export default defineComponent({\n name: 'ProfileDisplay',\n components: {\n UserHeader,\n UserProfileTabs,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n tab: {\n type: String,\n required: true,\n },\n },\n setup() {\n return {\n tabs: ['PROFILE', 'PREFERENCES'],\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n #user-profile {\n margin: auto;\n width: 700px;\n @media screen and (max-width: $medium-limit) {\n width: 100%;\n margin: 0 auto 50px auto;\n }\n }\n</style>\n","<template>\n <div class=\"profile-tabs custom-checkboxes-group\">\n <div class=\"profile-tabs-checkboxes custom-checkboxes\">\n <div v-for=\"tab in tabs\" class=\"profile-tab custom-checkbox\" :key=\"tab\">\n <label>\n <input\n type=\"radio\"\n :id=\"tab\"\n :name=\"tab\"\n :checked=\"selectedTab === tab\"\n :disabled=\"disabled\"\n @input=\"$router.push(getPath(tab))\"\n />\n <span>{{ $t(`user.PROFILE.TABS.${tab}`) }}</span>\n </label>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'UserProfileTabs',\n props: {\n tabs: {\n type: Object as PropType<string[]>,\n required: true,\n },\n selectedTab: {\n type: String,\n required: true,\n },\n edition: {\n type: Boolean,\n required: true,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n function getPath(tab: string) {\n switch (tab) {\n case 'PICTURE':\n return '/profile/edit/picture'\n case 'PREFERENCES':\n return `/profile${props.edition ? '/edit' : ''}/preferences`\n default:\n case 'PROFILE':\n return `/profile${props.edition ? '/edit' : ''}`\n }\n }\n return { getPath }\n },\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base.scss';\n\n .profile-tabs {\n margin: $default-margin 0 $default-margin;\n }\n</style>\n","\n import { PropType, defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'UserProfileTabs',\n props: {\n tabs: {\n type: Object as PropType<string[]>,\n required: true,\n },\n selectedTab: {\n type: String,\n required: true,\n },\n edition: {\n type: Boolean,\n required: true,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n function getPath(tab: string) {\n switch (tab) {\n case 'PICTURE':\n return '/profile/edit/picture'\n case 'PREFERENCES':\n return `/profile${props.edition ? '/edit' : ''}/preferences`\n default:\n case 'PROFILE':\n return `/profile${props.edition ? '/edit' : ''}`\n }\n }\n return { getPath }\n },\n })\n","import { render } from \"./UserProfileTabs.vue?vue&type=template&id=c7276c08\"\nimport script from \"./UserProfileTabs.vue?vue&type=script&lang=ts\"\nexport * from \"./UserProfileTabs.vue?vue&type=script&lang=ts\"\n\nimport \"./UserProfileTabs.vue?vue&type=style&index=0&id=c7276c08&lang=scss\"\nscript.render = render\n\nexport default script","\n import { PropType, defineComponent } from 'vue'\n\n import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'\n import UserProfileTabs from '@/components/User/UserProfileTabs.vue'\n import { IUserProfile } from '@/types/user'\n\n export default defineComponent({\n name: 'ProfileDisplay',\n components: {\n UserHeader,\n UserProfileTabs,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n tab: {\n type: String,\n required: true,\n },\n },\n setup() {\n return {\n tabs: ['PROFILE', 'PREFERENCES'],\n }\n },\n })\n","import { render } from \"./index.vue?vue&type=template&id=c81580c0&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=c81580c0&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-c81580c0\"\n\nexport default script","<template>\n <div id=\"user-preferences\" class=\"description-list\">\n <dl>\n <dt>{{ $t('user.PROFILE.LANGUAGE') }}:</dt>\n <dd>{{ language }}</dd>\n <dt>{{ $t('user.PROFILE.TIMEZONE') }}:</dt>\n <dd>{{ timezone }}</dd>\n <dt>{{ $t('user.PROFILE.FIRST_DAY_OF_WEEK') }}:</dt>\n <dd>{{ $t(`user.PROFILE.${fistDayOfWeek}`) }}</dd>\n </dl>\n <div class=\"profile-buttons\">\n <button @click=\"$router.push('/profile/edit/preferences')\">\n {{ $t('user.PROFILE.EDIT_PREFERENCES') }}\n </button>\n <button @click=\"$router.push('/')\">{{ $t('common.HOME') }}</button>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, computed, defineComponent } from 'vue'\n\n import { IUserProfile } from '@/types/user'\n import { languageLabels } from '@/utils/locales'\n\n export default defineComponent({\n name: 'UserPreferences',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const language = computed(() =>\n props.user.language\n ? languageLabels[props.user.language]\n : languageLabels['en']\n )\n const fistDayOfWeek = computed(() =>\n props.user.weekm ? 'MONDAY' : 'SUNDAY'\n )\n const timezone = computed(() =>\n props.user.timezone ? props.user.timezone : 'Europe/Paris'\n )\n return { fistDayOfWeek, language, timezone }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n #user-preferences {\n .profile-buttons {\n display: flex;\n gap: $default-padding;\n }\n }\n</style>\n","\n import { PropType, computed, defineComponent } from 'vue'\n\n import { IUserProfile } from '@/types/user'\n import { languageLabels } from '@/utils/locales'\n\n export default defineComponent({\n name: 'UserPreferences',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const language = computed(() =>\n props.user.language\n ? languageLabels[props.user.language]\n : languageLabels['en']\n )\n const fistDayOfWeek = computed(() =>\n props.user.weekm ? 'MONDAY' : 'SUNDAY'\n )\n const timezone = computed(() =>\n props.user.timezone ? props.user.timezone : 'Europe/Paris'\n )\n return { fistDayOfWeek, language, timezone }\n },\n })\n","import { render } from \"./UserPreferences.vue?vue&type=template&id=39667dbe&scoped=true\"\nimport script from \"./UserPreferences.vue?vue&type=script&lang=ts\"\nexport * from \"./UserPreferences.vue?vue&type=script&lang=ts\"\n\nimport \"./UserPreferences.vue?vue&type=style&index=0&id=39667dbe&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-39667dbe\"\n\nexport default script","<template>\n <div id=\"user-profile-edition\" class=\"center-card\">\n <Card>\n <template #title>\n {{ $t(`user.PROFILE.${tab}_EDITION`) }}\n </template>\n <template #content>\n <UserProfileTabs\n :tabs=\"tabs\"\n :selectedTab=\"tab\"\n :edition=\"true\"\n :disabled=\"loading\"\n />\n <router-view :user=\"user\"></router-view>\n </template>\n </Card>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue'\n\n import UserProfileTabs from '@/components/User/UserProfileTabs.vue'\n import { USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'ProfileEdition',\n components: {\n UserProfileTabs,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n tab: {\n type: String,\n required: true,\n },\n },\n setup() {\n const store = useStore()\n return {\n loading: computed(() => store.getters[USER_STORE.GETTERS.USER_LOADING]),\n tabs: ['PROFILE', 'PICTURE', 'PREFERENCES'],\n }\n },\n })\n</script>\n","\n import { computed, defineComponent, PropType } from 'vue'\n\n import UserProfileTabs from '@/components/User/UserProfileTabs.vue'\n import { USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'ProfileEdition',\n components: {\n UserProfileTabs,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n tab: {\n type: String,\n required: true,\n },\n },\n setup() {\n const store = useStore()\n return {\n loading: computed(() => store.getters[USER_STORE.GETTERS.USER_LOADING]),\n tabs: ['PROFILE', 'PICTURE', 'PREFERENCES'],\n }\n },\n })\n","import { render } from \"./index.vue?vue&type=template&id=035b0eba\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","<template>\n <div id=\"user-infos-edition\">\n <Modal\n v-if=\"displayModal\"\n :title=\"$t('common.CONFIRMATION')\"\n :message=\"$t('user.CONFIRM_ACCOUNT_DELETION')\"\n @confirmAction=\"deleteAccount(user.username)\"\n @cancelAction=\"updateDisplayModal(false)\"\n />\n <div class=\"profile-form form-box\">\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <form @submit.prevent=\"updateProfile\">\n <label class=\"form-items\" for=\"email\">\n {{ $t('user.EMAIL') }}\n <input id=\"email\" :value=\"user.email\" disabled />\n </label>\n <label class=\"form-items\" for=\"registrationDate\">\n {{ $t('user.PROFILE.REGISTRATION_DATE') }}\n <input id=\"registrationDate\" :value=\"registrationDate\" disabled />\n </label>\n <label class=\"form-items\" for=\"password\">\n {{ $t('user.PASSWORD') }}\n <input\n id=\"password\"\n type=\"password\"\n v-model=\"userForm.password\"\n :disabled=\"loading\"\n />\n </label>\n <label class=\"form-items\" for=\"passwordConfirmation\">\n {{ $t('user.PASSWORD_CONFIRMATION') }}\n <input\n id=\"passwordConfirmation\"\n type=\"password\"\n v-model=\"userForm.password_conf\"\n :disabled=\"loading\"\n />\n </label>\n <hr />\n <label class=\"form-items\" for=\"first_name\">\n {{ $t('user.PROFILE.FIRST_NAME') }}\n <input\n id=\"first_name\"\n v-model=\"userForm.first_name\"\n :disabled=\"loading\"\n />\n </label>\n <label class=\"form-items\" for=\"last_name\">\n {{ $t('user.PROFILE.LAST_NAME') }}\n <input id=\"last_name\" v-model=\"userForm.last_name\" />\n </label>\n <label class=\"form-items\" for=\"birth_date\">\n {{ $t('user.PROFILE.BIRTH_DATE') }}\n <input\n id=\"birth_date\"\n type=\"date\"\n class=\"birth-date\"\n v-model=\"userForm.birth_date\"\n :disabled=\"loading\"\n />\n </label>\n <label class=\"form-items\" for=\"location\">\n {{ $t('user.PROFILE.LOCATION') }}\n <input\n id=\"location\"\n v-model=\"userForm.location\"\n :disabled=\"loading\"\n />\n </label>\n <label class=\"form-items\">\n {{ $t('user.PROFILE.BIO') }}\n <CustomTextArea\n name=\"bio\"\n :charLimit=\"200\"\n :input=\"userForm.bio\"\n :disabled=\"loading\"\n @updateValue=\"updateBio\"\n />\n </label>\n <div class=\"form-buttons\">\n <button class=\"confirm\" type=\"submit\">\n {{ $t('buttons.SUBMIT') }}\n </button>\n <button class=\"cancel\" @click.prevent=\"$router.push('/profile')\">\n {{ $t('buttons.CANCEL') }}\n </button>\n <button class=\"danger\" @click.prevent=\"updateDisplayModal(true)\">\n {{ $t('buttons.DELETE_MY_ACCOUNT') }}\n </button>\n </div>\n </form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { format } from 'date-fns'\n import {\n ComputedRef,\n PropType,\n Ref,\n computed,\n defineComponent,\n reactive,\n ref,\n onMounted,\n } from 'vue'\n\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IUserProfile, IUserPayload } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'UserInfosEdition',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const store = useStore()\n const userForm: IUserPayload = reactive({\n password: '',\n password_conf: '',\n first_name: '',\n last_name: '',\n birth_date: '',\n location: '',\n bio: '',\n })\n const registrationDate = computed(() =>\n props.user.created_at\n ? format(new Date(props.user.created_at), 'dd/MM/yyyy HH:mm')\n : ''\n )\n const loading = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n let displayModal: Ref<boolean> = ref(false)\n\n onMounted(() => {\n if (props.user) {\n updateUserForm(props.user)\n }\n })\n\n function updateUserForm(user: IUserProfile) {\n userForm.first_name = user.first_name ? user.first_name : ''\n userForm.last_name = user.last_name ? user.last_name : ''\n userForm.birth_date = user.birth_date\n ? format(new Date(user.birth_date), 'yyyy-MM-dd')\n : ''\n userForm.location = user.location ? user.location : ''\n userForm.bio = user.bio ? user.bio : ''\n }\n function updateBio(value: string) {\n userForm.bio = value\n }\n function updateProfile() {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PROFILE, userForm)\n }\n function updateDisplayModal(value: boolean) {\n displayModal.value = value\n }\n function deleteAccount(username: string) {\n store.dispatch(USER_STORE.ACTIONS.DELETE_ACCOUNT, { username })\n }\n\n return {\n displayModal,\n errorMessages,\n loading,\n registrationDate,\n userForm,\n deleteAccount,\n updateBio,\n updateDisplayModal,\n updateProfile,\n }\n },\n })\n</script>\n\n<style lang=\"scss\">\n @import '~@/scss/base.scss';\n\n .form-buttons {\n flex-direction: row;\n @media screen and (max-width: $x-small-limit) {\n flex-direction: column;\n }\n }\n</style>\n","\n import { format } from 'date-fns'\n import {\n ComputedRef,\n PropType,\n Ref,\n computed,\n defineComponent,\n reactive,\n ref,\n onMounted,\n } from 'vue'\n\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IUserProfile, IUserPayload } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'UserInfosEdition',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const store = useStore()\n const userForm: IUserPayload = reactive({\n password: '',\n password_conf: '',\n first_name: '',\n last_name: '',\n birth_date: '',\n location: '',\n bio: '',\n })\n const registrationDate = computed(() =>\n props.user.created_at\n ? format(new Date(props.user.created_at), 'dd/MM/yyyy HH:mm')\n : ''\n )\n const loading = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n let displayModal: Ref<boolean> = ref(false)\n\n onMounted(() => {\n if (props.user) {\n updateUserForm(props.user)\n }\n })\n\n function updateUserForm(user: IUserProfile) {\n userForm.first_name = user.first_name ? user.first_name : ''\n userForm.last_name = user.last_name ? user.last_name : ''\n userForm.birth_date = user.birth_date\n ? format(new Date(user.birth_date), 'yyyy-MM-dd')\n : ''\n userForm.location = user.location ? user.location : ''\n userForm.bio = user.bio ? user.bio : ''\n }\n function updateBio(value: string) {\n userForm.bio = value\n }\n function updateProfile() {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PROFILE, userForm)\n }\n function updateDisplayModal(value: boolean) {\n displayModal.value = value\n }\n function deleteAccount(username: string) {\n store.dispatch(USER_STORE.ACTIONS.DELETE_ACCOUNT, { username })\n }\n\n return {\n displayModal,\n errorMessages,\n loading,\n registrationDate,\n userForm,\n deleteAccount,\n updateBio,\n updateDisplayModal,\n updateProfile,\n }\n },\n })\n","import { render } from \"./UserInfosEdition.vue?vue&type=template&id=a2dfdb58\"\nimport script from \"./UserInfosEdition.vue?vue&type=script&lang=ts\"\nexport * from \"./UserInfosEdition.vue?vue&type=script&lang=ts\"\n\nimport \"./UserInfosEdition.vue?vue&type=style&index=0&id=a2dfdb58&lang=scss\"\nscript.render = render\n\nexport default script","<template>\n <div id=\"user-picture-edition\">\n <div class=\"user-picture-form\">\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <UserPicture :user=\"user\" />\n <form @submit.prevent=\"updateUserPicture\">\n <input\n type=\"file\"\n name=\"picture\"\n accept=\".png,.jpg,.gif\"\n @input=\"updatePictureFile\"\n />\n <div class=\"picture-buttons\">\n <button type=\"submit\" :disabled=\"!pictureFile\">\n {{ $t('user.PROFILE.PICTURE_UPDATE') }}\n </button>\n <button class=\"danger\" v-if=\"user.picture\" @click=\"deleteUserPicture\">\n {{ $t('user.PROFILE.PICTURE_REMOVE') }}\n </button>\n <button class=\"cancel\" @click=\"$router.push('/profile')\">\n {{ $t('user.PROFILE.BACK_TO_PROFILE') }}\n </button>\n </div>\n <span>{{ $t('workouts.MAX_SIZE') }}: {{ fileSizeLimit }}</span>\n </form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import {\n ComputedRef,\n PropType,\n Ref,\n defineComponent,\n computed,\n ref,\n } from 'vue'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { TAppConfig } from '@/types/application'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getReadableFileSize } from '@/utils/files'\n\n export default defineComponent({\n name: 'UserPictureEdition',\n components: {\n UserPicture,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup() {\n const store = useStore()\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const fileSizeLimit = appConfig.value.max_single_file_size\n ? getReadableFileSize(appConfig.value.max_single_file_size)\n : ''\n let pictureFile: Ref<File | null> = ref(null)\n\n function deleteUserPicture() {\n store.dispatch(USER_STORE.ACTIONS.DELETE_PICTURE)\n }\n function updatePictureFile(event: Event & { target: HTMLInputElement }) {\n if (event.target.files) {\n pictureFile.value = event.target.files[0]\n }\n }\n function updateUserPicture() {\n if (pictureFile.value) {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PICTURE, {\n picture: pictureFile.value,\n })\n }\n }\n\n return {\n errorMessages,\n fileSizeLimit,\n pictureFile,\n deleteUserPicture,\n updateUserPicture,\n updatePictureFile,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n #user-picture-edition {\n .user-picture-form {\n display: flex;\n flex-direction: column;\n\n form {\n display: flex;\n flex-direction: column;\n gap: $default-padding;\n justify-content: flex-start;\n\n input {\n margin-top: $default-margin;\n padding: $default-padding * 0.5;\n }\n\n span {\n font-style: italic;\n font-size: 0.9em;\n padding-left: $default-padding * 0.5;\n }\n }\n .picture-buttons {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: $default-padding;\n @media screen and (max-width: $x-small-limit) {\n flex-direction: column;\n align-items: stretch;\n }\n }\n }\n }\n</style>\n","\n import {\n ComputedRef,\n PropType,\n Ref,\n defineComponent,\n computed,\n ref,\n } from 'vue'\n\n import UserPicture from '@/components/User/UserPicture.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { TAppConfig } from '@/types/application'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { getReadableFileSize } from '@/utils/files'\n\n export default defineComponent({\n name: 'UserPictureEdition',\n components: {\n UserPicture,\n },\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup() {\n const store = useStore()\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const fileSizeLimit = appConfig.value.max_single_file_size\n ? getReadableFileSize(appConfig.value.max_single_file_size)\n : ''\n let pictureFile: Ref<File | null> = ref(null)\n\n function deleteUserPicture() {\n store.dispatch(USER_STORE.ACTIONS.DELETE_PICTURE)\n }\n function updatePictureFile(event: Event & { target: HTMLInputElement }) {\n if (event.target.files) {\n pictureFile.value = event.target.files[0]\n }\n }\n function updateUserPicture() {\n if (pictureFile.value) {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PICTURE, {\n picture: pictureFile.value,\n })\n }\n }\n\n return {\n errorMessages,\n fileSizeLimit,\n pictureFile,\n deleteUserPicture,\n updateUserPicture,\n updatePictureFile,\n }\n },\n })\n","import { render } from \"./UserPictureEdition.vue?vue&type=template&id=500d4a7a&scoped=true\"\nimport script from \"./UserPictureEdition.vue?vue&type=script&lang=ts\"\nexport * from \"./UserPictureEdition.vue?vue&type=script&lang=ts\"\n\nimport \"./UserPictureEdition.vue?vue&type=style&index=0&id=500d4a7a&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-500d4a7a\"\n\nexport default script","<template>\n <div id=\"user-preferences-edition\">\n <div class=\"profile-form form-box\">\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <form @submit.prevent=\"updateProfile\">\n <label class=\"form-items\">\n {{ $t('user.PROFILE.LANGUAGE') }}\n <select id=\"language\" v-model=\"userForm.language\" :disabled=\"loading\">\n <option\n v-for=\"lang in availableLanguages\"\n :value=\"lang.value\"\n :key=\"lang.value\"\n >\n {{ lang.label }}\n </option>\n </select>\n </label>\n <label class=\"form-items\" for=\"timezone\">\n {{ $t('user.PROFILE.TIMEZONE') }}\n <input\n id=\"timezone\"\n v-model=\"userForm.timezone\"\n :disabled=\"loading\"\n />\n </label>\n <label class=\"form-items\">\n {{ $t('user.PROFILE.FIRST_DAY_OF_WEEK') }}\n <select id=\"weekm\" v-model=\"userForm.weekm\" :disabled=\"loading\">\n <option\n v-for=\"start in weekStart\"\n :value=\"start.value\"\n :key=\"start.value\"\n >\n {{ $t(`user.PROFILE.${start.label}`) }}\n </option>\n </select>\n </label>\n <div class=\"form-buttons\">\n <button class=\"confirm\" type=\"submit\">\n {{ $t('buttons.SUBMIT') }}\n </button>\n <button\n class=\"cancel\"\n @click.prevent=\"$router.push('/profile/preferences')\"\n >\n {{ $t('buttons.CANCEL') }}\n </button>\n </div>\n </form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import {\n ComputedRef,\n PropType,\n computed,\n defineComponent,\n reactive,\n onMounted,\n } from 'vue'\n\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IUserProfile, IUserPreferencesPayload } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { availableLanguages } from '@/utils/locales'\n\n export default defineComponent({\n name: 'UserPreferencesEdition',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const store = useStore()\n const userForm: IUserPreferencesPayload = reactive({\n language: '',\n timezone: 'Europe/Paris',\n weekm: false,\n })\n const weekStart = [\n {\n label: 'MONDAY',\n value: true,\n },\n {\n label: 'SUNDAY',\n value: false,\n },\n ]\n const loading = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n onMounted(() => {\n if (props.user) {\n updateUserForm(props.user)\n }\n })\n\n function updateUserForm(user: IUserProfile) {\n userForm.language = user.language ? user.language : 'en'\n userForm.timezone = user.timezone ? user.timezone : 'Europe/Paris'\n userForm.weekm = user.weekm ? user.weekm : false\n }\n function updateProfile() {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PREFERENCES, userForm)\n }\n\n return {\n availableLanguages,\n errorMessages,\n loading,\n userForm,\n weekStart,\n updateProfile,\n }\n },\n })\n</script>\n","\n import {\n ComputedRef,\n PropType,\n computed,\n defineComponent,\n reactive,\n onMounted,\n } from 'vue'\n\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { IUserProfile, IUserPreferencesPayload } from '@/types/user'\n import { useStore } from '@/use/useStore'\n import { availableLanguages } from '@/utils/locales'\n\n export default defineComponent({\n name: 'UserPreferencesEdition',\n props: {\n user: {\n type: Object as PropType<IUserProfile>,\n required: true,\n },\n },\n setup(props) {\n const store = useStore()\n const userForm: IUserPreferencesPayload = reactive({\n language: '',\n timezone: 'Europe/Paris',\n weekm: false,\n })\n const weekStart = [\n {\n label: 'MONDAY',\n value: true,\n },\n {\n label: 'SUNDAY',\n value: false,\n },\n ]\n const loading = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n\n onMounted(() => {\n if (props.user) {\n updateUserForm(props.user)\n }\n })\n\n function updateUserForm(user: IUserProfile) {\n userForm.language = user.language ? user.language : 'en'\n userForm.timezone = user.timezone ? user.timezone : 'Europe/Paris'\n userForm.weekm = user.weekm ? user.weekm : false\n }\n function updateProfile() {\n store.dispatch(USER_STORE.ACTIONS.UPDATE_USER_PREFERENCES, userForm)\n }\n\n return {\n availableLanguages,\n errorMessages,\n loading,\n userForm,\n weekStart,\n updateProfile,\n }\n },\n })\n","import { render } from \"./UserPreferencesEdition.vue?vue&type=template&id=18513603\"\nimport script from \"./UserPreferencesEdition.vue?vue&type=script&lang=ts\"\nexport * from \"./UserPreferencesEdition.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","import axios from 'axios'\n\nimport store from '@/store'\nimport { USER_STORE } from '@/store/constants'\nimport { getApiUrl } from '@/utils'\n\nconst authApi = axios.create({\n baseURL: getApiUrl(),\n})\n\nauthApi.interceptors.request.use(\n (config) => {\n const authToken = store.getters[USER_STORE.GETTERS.AUTH_TOKEN]\n if (authToken) {\n const auth = `Bearer ${authToken}`\n if (config.headers.Authorization !== auth) {\n config.headers.Authorization = `Bearer ${authToken}`\n }\n }\n return config\n },\n (error) => Promise.reject(error)\n)\n\nexport default authApi\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport router from '@/router'\nimport { ROOT_STORE } from '@/store/constants'\nimport { IRootActions, IRootState } from '@/store/modules/root/types'\nimport { TAppConfigForm } from '@/types/application'\nimport { handleError } from '@/utils'\n\nexport const actions: ActionTree<IRootState, IRootState> & IRootActions = {\n [ROOT_STORE.ACTIONS.GET_APPLICATION_CONFIG](\n context: ActionContext<IRootState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_LOADING, true)\n authApi\n .get('config')\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_CONFIG,\n res.data.data\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_LOADING, false)\n )\n },\n [ROOT_STORE.ACTIONS.GET_APPLICATION_STATS](\n context: ActionContext<IRootState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .get('stats/all')\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_STATS,\n res.data.data\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n [ROOT_STORE.ACTIONS.UPDATE_APPLICATION_CONFIG](\n context: ActionContext<IRootState, IRootState>,\n payload: TAppConfigForm\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .patch('config', payload)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_CONFIG,\n res.data.data\n )\n router.push('/admin/application')\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { ROOT_STORE } from '@/store/constants'\nimport { IRootGetters, IRootState } from '@/store/modules/root/types'\n\nexport const getters: GetterTree<IRootState, IRootState> & IRootGetters = {\n [ROOT_STORE.GETTERS.APP_CONFIG]: (state: IRootState) => {\n return state.application.config\n },\n [ROOT_STORE.GETTERS.APP_LOADING]: (state: IRootState) => {\n return state.appLoading\n },\n [ROOT_STORE.GETTERS.APP_STATS]: (state: IRootState) => {\n return state.application.statistics\n },\n [ROOT_STORE.GETTERS.ERROR_MESSAGES]: (state: IRootState) => {\n return state.errorMessages\n },\n [ROOT_STORE.GETTERS.LANGUAGE]: (state: IRootState) => {\n return state.language\n },\n [ROOT_STORE.GETTERS.LOCALE]: (state: IRootState) => {\n return state.locale\n },\n}\n","import { MutationTree } from 'vuex'\n\nimport { ROOT_STORE } from '@/store/constants'\nimport { IRootState, TRootMutations } from '@/store/modules/root/types'\nimport { TAppConfig, IAppStatistics } from '@/types/application'\nimport { localeFromLanguage } from '@/utils/locales'\n\nexport const mutations: MutationTree<IRootState> & TRootMutations = {\n [ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES](state: IRootState) {\n state.errorMessages = null\n },\n [ROOT_STORE.MUTATIONS.SET_ERROR_MESSAGES](\n state: IRootState,\n errorMessages: string\n ) {\n state.errorMessages = errorMessages\n },\n [ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_CONFIG](\n state: IRootState,\n config: TAppConfig\n ) {\n state.application.config = config\n },\n [ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_LOADING](\n state: IRootState,\n loading: boolean\n ) {\n state.appLoading = loading\n },\n [ROOT_STORE.MUTATIONS.UPDATE_APPLICATION_STATS](\n state: IRootState,\n statistics: IAppStatistics\n ) {\n state.application.statistics = statistics\n },\n [ROOT_STORE.MUTATIONS.UPDATE_LANG](state: IRootState, language: string) {\n state.language = language\n state.locale = localeFromLanguage[language]\n },\n}\n","import { enUS } from 'date-fns/locale'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { IApplication } from '@/types/application'\n\nexport const state: IRootState = {\n root: true,\n language: 'en',\n locale: enUS,\n errorMessages: null,\n application: <IApplication>{},\n appLoading: false,\n}\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport { ROOT_STORE, SPORTS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { ISportsActions, ISportsState } from '@/store/modules/sports/types'\nimport { ISportPayload } from '@/types/sports'\nimport { handleError } from '@/utils'\n\nexport const actions: ActionTree<ISportsState, IRootState> & ISportsActions = {\n [SPORTS_STORE.ACTIONS.GET_SPORTS](\n context: ActionContext<ISportsState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .get('sports')\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n SPORTS_STORE.MUTATIONS.SET_SPORTS,\n res.data.data.sports\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n [SPORTS_STORE.ACTIONS.UPDATE_SPORTS](\n context: ActionContext<ISportsState, IRootState>,\n payload: ISportPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .patch(`sports/${payload.id}`, { is_active: payload.isActive })\n .then((res) => {\n if (res.data.status === 'success') {\n context.dispatch(SPORTS_STORE.ACTIONS.GET_SPORTS)\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { SPORTS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { ISportsGetters, ISportsState } from '@/store/modules/sports/types'\n\nexport const getters: GetterTree<ISportsState, IRootState> & ISportsGetters = {\n [SPORTS_STORE.GETTERS.SPORTS]: (state: ISportsState) => state.sports,\n}\n","import { MutationTree } from 'vuex'\n\nimport { SPORTS_STORE } from '@/store/constants'\nimport { ISportsState, TSportsMutations } from '@/store/modules/sports/types'\nimport { ISport } from '@/types/sports'\n\nexport const mutations: MutationTree<ISportsState> & TSportsMutations = {\n [SPORTS_STORE.MUTATIONS.SET_SPORTS](state: ISportsState, sports: ISport[]) {\n state.sports = sports\n },\n}\n","import { ISportsState } from '@/store/modules/sports/types'\n\nexport const sportsState: ISportsState = {\n sports: [],\n}\n","import { Module } from 'vuex'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { actions } from '@/store/modules/sports/actions'\nimport { getters } from '@/store/modules/sports/getters'\nimport { mutations } from '@/store/modules/sports/mutations'\nimport { sportsState } from '@/store/modules/sports/state'\nimport { ISportsState } from '@/store/modules/sports/types'\n\nconst sports: Module<ISportsState, IRootState> = {\n state: sportsState,\n actions,\n getters,\n mutations,\n}\n\nexport default sports\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport { STATS_STORE, ROOT_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport {\n IStatisticsActions,\n IStatisticsState,\n} from '@/store/modules/statistics/types'\nimport { IUserStatisticsPayload } from '@/types/statistics'\nimport { handleError } from '@/utils'\n\nexport const actions: ActionTree<IStatisticsState, IRootState> &\n IStatisticsActions = {\n [STATS_STORE.ACTIONS.GET_USER_STATS](\n context: ActionContext<IStatisticsState, IRootState>,\n payload: IUserStatisticsPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .get(`stats/${payload.username}/${payload.filterType}`, {\n params: payload.params,\n })\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n STATS_STORE.MUTATIONS.UPDATE_USER_STATS,\n res.data.data.statistics\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { STATS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport {\n IStatisticsGetters,\n IStatisticsState,\n} from '@/store/modules/statistics/types'\n\nexport const getters: GetterTree<IStatisticsState, IRootState> &\n IStatisticsGetters = {\n [STATS_STORE.GETTERS.USER_STATS]: (state: IStatisticsState) => {\n return state.statistics\n },\n}\n","import { MutationTree } from 'vuex'\n\nimport { STATS_STORE } from '@/store/constants'\nimport {\n IStatisticsState,\n TStatisticsMutations,\n} from '@/store/modules/statistics/types'\nimport { TStatisticsFromApi } from '@/types/statistics'\n\nexport const mutations: MutationTree<IStatisticsState> & TStatisticsMutations =\n {\n [STATS_STORE.MUTATIONS.UPDATE_USER_STATS](\n state: IStatisticsState,\n statistics: TStatisticsFromApi\n ) {\n state.statistics = statistics\n },\n [STATS_STORE.MUTATIONS.EMPTY_USER_STATS](state: IStatisticsState) {\n state.statistics = {}\n },\n }\n","import { IStatisticsState } from '@/store/modules/statistics/types'\nimport { TStatisticsFromApi } from '@/types/statistics'\n\nexport const statisticsState: IStatisticsState = {\n statistics: <TStatisticsFromApi>{},\n}\n","import { Module } from 'vuex'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { actions } from '@/store/modules/statistics/actions'\nimport { getters } from '@/store/modules/statistics/getters'\nimport { mutations } from '@/store/modules/statistics/mutations'\nimport { statisticsState } from '@/store/modules/statistics/state'\nimport { IStatisticsState } from '@/store/modules/statistics/types'\n\nconst statistics: Module<IStatisticsState, IRootState> = {\n state: statisticsState,\n actions,\n getters,\n mutations,\n}\n\nexport default statistics\n","import axios from 'axios'\n\nimport { getApiUrl } from '@/utils'\n\nconst api = axios.create({\n baseURL: getApiUrl(),\n})\n\nexport default api\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport api from '@/api/defaultApi'\nimport createI18n from '@/i18n'\nimport router from '@/router'\nimport {\n ROOT_STORE,\n SPORTS_STORE,\n STATS_STORE,\n USER_STORE,\n USERS_STORE,\n WORKOUTS_STORE,\n} from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { IUserActions, IUserState } from '@/store/modules/user/types'\nimport {\n ILoginOrRegisterData,\n IUserDeletionPayload,\n IUserPasswordPayload,\n IUserPasswordResetPayload,\n IUserPayload,\n IUserPicturePayload,\n IUserPreferencesPayload,\n} from '@/types/user'\nimport { handleError } from '@/utils'\n\nconst { locale } = createI18n.global\n\nconst removeUserData = (context: ActionContext<IUserState, IRootState>) => {\n localStorage.removeItem('authToken')\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(STATS_STORE.MUTATIONS.EMPTY_USER_STATS)\n context.commit(USER_STORE.MUTATIONS.CLEAR_AUTH_USER_TOKEN)\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS, [])\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUTS)\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT)\n router.push('/login')\n}\n\nexport const actions: ActionTree<IUserState, IRootState> & IUserActions = {\n [USER_STORE.ACTIONS.CHECK_AUTH_USER](\n context: ActionContext<IUserState, IRootState>\n ): void {\n if (\n window.localStorage.authToken &&\n !context.getters[USER_STORE.GETTERS.IS_AUTHENTICATED]\n ) {\n context.commit(\n USER_STORE.MUTATIONS.UPDATE_AUTH_TOKEN,\n window.localStorage.authToken\n )\n context.dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n }\n },\n [USER_STORE.ACTIONS.GET_USER_PROFILE](\n context: ActionContext<IUserState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .get('auth/profile')\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USER_STORE.MUTATIONS.UPDATE_AUTH_USER_PROFILE,\n res.data.data\n )\n if (res.data.data.language) {\n context.commit(\n ROOT_STORE.MUTATIONS.UPDATE_LANG,\n res.data.data.language\n )\n locale.value = res.data.data.language\n }\n context.dispatch(SPORTS_STORE.ACTIONS.GET_SPORTS)\n } else {\n handleError(context, null)\n removeUserData(context)\n }\n })\n .catch((error) => {\n handleError(context, error)\n removeUserData(context)\n })\n },\n [USER_STORE.ACTIONS.LOGIN_OR_REGISTER](\n context: ActionContext<IUserState, IRootState>,\n data: ILoginOrRegisterData\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n api\n .post(`/auth/${data.actionType}`, data.formData)\n .then((res) => {\n if (res.data.status === 'success') {\n const token = res.data.auth_token\n window.localStorage.setItem('authToken', token)\n context.commit(USER_STORE.MUTATIONS.UPDATE_AUTH_TOKEN, token)\n context\n .dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n .then(() => router.push('/'))\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n [USER_STORE.ACTIONS.LOGOUT](\n context: ActionContext<IUserState, IRootState>\n ): void {\n removeUserData(context)\n },\n [USER_STORE.ACTIONS.UPDATE_USER_PROFILE](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, true)\n authApi\n .post('auth/profile/edit', payload)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USER_STORE.MUTATIONS.UPDATE_AUTH_USER_PROFILE,\n res.data.data\n )\n router.push('/profile')\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, false)\n )\n },\n [USER_STORE.ACTIONS.UPDATE_USER_PREFERENCES](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserPreferencesPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, true)\n authApi\n .post('auth/profile/edit/preferences', payload)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USER_STORE.MUTATIONS.UPDATE_AUTH_USER_PROFILE,\n res.data.data\n )\n context.commit(\n ROOT_STORE.MUTATIONS.UPDATE_LANG,\n res.data.data.language\n )\n locale.value = res.data.data.language\n router.push('/profile/preferences')\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, false)\n )\n },\n [USER_STORE.ACTIONS.UPDATE_USER_PICTURE](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserPicturePayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, true)\n if (!payload.picture) {\n throw new Error('No file part')\n }\n const form = new FormData()\n form.append('file', payload.picture)\n authApi\n .post('auth/picture', form, {\n headers: {\n 'content-type': 'multipart/form-data',\n },\n })\n .then((res) => {\n if (res.data.status === 'success') {\n context\n .dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n .then(() => router.push('/profile'))\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, false)\n )\n },\n [USER_STORE.ACTIONS.DELETE_ACCOUNT](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserDeletionPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .delete(`users/${payload.username}`)\n .then((res) => {\n if (res.status === 204) {\n context\n .dispatch(USER_STORE.ACTIONS.LOGOUT)\n .then(() => router.push('/'))\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n [USER_STORE.ACTIONS.DELETE_PICTURE](\n context: ActionContext<IUserState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, true)\n authApi\n .delete(`auth/picture`)\n .then((res) => {\n if (res.status === 204) {\n context\n .dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n .then(() => router.push('/profile'))\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USER_STORE.MUTATIONS.UPDATE_USER_LOADING, false)\n )\n },\n [USER_STORE.ACTIONS.SEND_PASSWORD_RESET_REQUEST](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserPasswordPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n api\n .post('auth/password/reset-request', payload)\n .then((res) => {\n if (res.data.status === 'success') {\n router.push('/password-reset/sent')\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n [USER_STORE.ACTIONS.RESET_USER_PASSWORD](\n context: ActionContext<IUserState, IRootState>,\n payload: IUserPasswordResetPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n api\n .post('auth/password/update', payload)\n .then((res) => {\n if (res.data.status === 'success') {\n router.push('/password-reset/password-updated')\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { USER_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { IUserGetters, IUserState } from '@/store/modules/user/types'\n\nexport const getters: GetterTree<IUserState, IRootState> & IUserGetters = {\n [USER_STORE.GETTERS.AUTH_TOKEN]: (state: IUserState) => {\n return state.authToken\n },\n [USER_STORE.GETTERS.AUTH_USER_PROFILE]: (state: IUserState) => {\n return state.authUserProfile\n },\n [USER_STORE.GETTERS.IS_AUTHENTICATED]: (state: IUserState) => {\n return state.authToken !== null\n },\n [USER_STORE.GETTERS.IS_ADMIN]: (state: IUserState) => {\n return state.authUserProfile && state.authUserProfile.admin\n },\n [USER_STORE.GETTERS.USER_LOADING]: (state: IUserState) => {\n return state.loading\n },\n}\n","import { MutationTree } from 'vuex'\n\nimport { USER_STORE } from '@/store/constants'\nimport { IUserState, TUserMutations } from '@/store/modules/user/types'\nimport { IUserProfile } from '@/types/user'\n\nexport const mutations: MutationTree<IUserState> & TUserMutations = {\n [USER_STORE.MUTATIONS.CLEAR_AUTH_USER_TOKEN](state: IUserState) {\n state.authToken = null\n state.authUserProfile = <IUserProfile>{}\n },\n [USER_STORE.MUTATIONS.UPDATE_AUTH_TOKEN](\n state: IUserState,\n authToken: string\n ) {\n state.authToken = authToken\n },\n [USER_STORE.MUTATIONS.UPDATE_AUTH_USER_PROFILE](\n state: IUserState,\n authUserProfile: IUserProfile\n ) {\n state.authUserProfile = authUserProfile\n },\n [USER_STORE.MUTATIONS.UPDATE_USER_LOADING](\n state: IUserState,\n loading: boolean\n ) {\n state.loading = loading\n },\n}\n","import { IUserState } from '@/store/modules/user/types'\nimport { IUserProfile } from '@/types/user'\n\nexport const userState: IUserState = {\n authToken: null,\n authUserProfile: <IUserProfile>{},\n loading: false,\n}\n","import { Module } from 'vuex'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { actions } from '@/store/modules/user/actions'\nimport { getters } from '@/store/modules/user/getters'\nimport { mutations } from '@/store/modules/user/mutations'\nimport { userState } from '@/store/modules/user/state.ts'\nimport { IUserState } from '@/store/modules/user/types'\n\nconst user: Module<IUserState, IRootState> = {\n state: userState,\n actions,\n getters,\n mutations,\n}\n\nexport default user\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport { ROOT_STORE, USERS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { IUsersActions, IUsersState } from '@/store/modules/users/types'\nimport { TPaginationPayload } from '@/types/api'\nimport { IAdminUserPayload } from '@/types/user'\nimport { handleError } from '@/utils'\n\nexport const actions: ActionTree<IUsersState, IRootState> & IUsersActions = {\n [USERS_STORE.ACTIONS.EMPTY_USER](\n context: ActionContext<IUsersState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USER, {})\n },\n [USERS_STORE.ACTIONS.EMPTY_USERS](\n context: ActionContext<IUsersState, IRootState>\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS, [])\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_PAGINATION, {})\n },\n [USERS_STORE.ACTIONS.GET_USER](\n context: ActionContext<IUsersState, IRootState>,\n username: string\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING, true)\n authApi\n .get(`users/${username}`)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USERS_STORE.MUTATIONS.UPDATE_USER,\n res.data.data.users[0]\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING, false)\n )\n },\n [USERS_STORE.ACTIONS.GET_USERS](\n context: ActionContext<IUsersState, IRootState>,\n payload: TPaginationPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING, true)\n authApi\n .get('users', { params: payload })\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USERS_STORE.MUTATIONS.UPDATE_USERS,\n res.data.data.users\n )\n context.commit(\n USERS_STORE.MUTATIONS.UPDATE_USERS_PAGINATION,\n res.data.pagination\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING, false)\n )\n },\n [USERS_STORE.ACTIONS.UPDATE_USER](\n context: ActionContext<IUsersState, IRootState>,\n payload: IAdminUserPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .patch(`users/${payload.username}`, { admin: payload.admin })\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n USERS_STORE.MUTATIONS.UPDATE_USER_IN_USERS,\n res.data.data.users[0]\n )\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n .finally(() =>\n context.commit(USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING, false)\n )\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { USERS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { IUsersGetters, IUsersState } from '@/store/modules/users/types'\n\nexport const getters: GetterTree<IUsersState, IRootState> & IUsersGetters = {\n [USERS_STORE.GETTERS.USER]: (state: IUsersState) => {\n return state.user\n },\n [USERS_STORE.GETTERS.USERS]: (state: IUsersState) => {\n return state.users\n },\n [USERS_STORE.GETTERS.USERS_LOADING]: (state: IUsersState) => {\n return state.loading\n },\n [USERS_STORE.GETTERS.USERS_PAGINATION]: (state: IUsersState) => {\n return state.pagination\n },\n}\n","import { MutationTree } from 'vuex'\n\nimport { USERS_STORE } from '@/store/constants'\nimport { IUsersState, TUsersMutations } from '@/store/modules/users/types'\nimport { IPagination } from '@/types/api'\nimport { IUserProfile } from '@/types/user'\n\nexport const mutations: MutationTree<IUsersState> & TUsersMutations = {\n [USERS_STORE.MUTATIONS.UPDATE_USER](state: IUsersState, user: IUserProfile) {\n state.user = user\n },\n [USERS_STORE.MUTATIONS.UPDATE_USER_IN_USERS](\n state: IUsersState,\n updatedUser: IUserProfile\n ) {\n state.users = state.users.map((user) => {\n if (user.username === updatedUser.username) {\n return updatedUser\n }\n return user\n })\n },\n [USERS_STORE.MUTATIONS.UPDATE_USERS](\n state: IUsersState,\n users: IUserProfile[]\n ) {\n state.users = users\n },\n [USERS_STORE.MUTATIONS.UPDATE_USERS_LOADING](\n state: IUsersState,\n loading: boolean\n ) {\n state.loading = loading\n },\n [USERS_STORE.MUTATIONS.UPDATE_USERS_PAGINATION](\n state: IUsersState,\n pagination: IPagination\n ) {\n state.pagination = pagination\n },\n}\n","import { IUsersState } from '@/store/modules/users/types'\nimport { IPagination } from '@/types/api'\nimport { IUserProfile } from '@/types/user'\n\nexport const usersState: IUsersState = {\n user: <IUserProfile>{},\n users: [],\n loading: false,\n pagination: <IPagination>{},\n}\n","import { Module } from 'vuex'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { actions } from '@/store/modules/users/actions'\nimport { getters } from '@/store/modules/users/getters'\nimport { mutations } from '@/store/modules/users/mutations'\nimport { usersState } from '@/store/modules/users/state'\nimport { IUsersState } from '@/store/modules/users/types'\n\nconst users: Module<IUsersState, IRootState> = {\n state: usersState,\n actions,\n getters,\n mutations,\n}\n\nexport default users\n","import { ActionContext, ActionTree } from 'vuex'\n\nimport authApi from '@/api/authApi'\nimport router from '@/router'\nimport { ROOT_STORE, USER_STORE, WORKOUTS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { WorkoutsMutations } from '@/store/modules/workouts/enums'\nimport {\n IWorkoutsActions,\n IWorkoutsState,\n} from '@/store/modules/workouts/types'\nimport {\n IWorkout,\n IWorkoutForm,\n IWorkoutPayload,\n TWorkoutsPayload,\n} from '@/types/workouts'\nimport { handleError } from '@/utils'\n\nconst getWorkouts = (\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: TWorkoutsPayload,\n target: WorkoutsMutations\n): void => {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n authApi\n .get('workouts', {\n params: payload,\n })\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(WORKOUTS_STORE.MUTATIONS[target], res.data.data.workouts)\n if (target === WorkoutsMutations['SET_USER_WORKOUTS']) {\n context.commit(\n WORKOUTS_STORE.MUTATIONS.SET_WORKOUTS_PAGINATION,\n res.data.pagination\n )\n }\n } else {\n handleError(context, null)\n }\n })\n .catch((error) => handleError(context, error))\n}\n\nexport const actions: ActionTree<IWorkoutsState, IRootState> &\n IWorkoutsActions = {\n [WORKOUTS_STORE.ACTIONS.GET_CALENDAR_WORKOUTS](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: TWorkoutsPayload\n ): void {\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_CALENDAR_WORKOUTS)\n getWorkouts(context, payload, WorkoutsMutations['SET_CALENDAR_WORKOUTS'])\n },\n [WORKOUTS_STORE.ACTIONS.GET_USER_WORKOUTS](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: TWorkoutsPayload\n ): void {\n getWorkouts(context, payload, WorkoutsMutations['SET_USER_WORKOUTS'])\n },\n [WORKOUTS_STORE.ACTIONS.GET_TIMELINE_WORKOUTS](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: TWorkoutsPayload\n ): void {\n getWorkouts(context, payload, WorkoutsMutations['SET_TIMELINE_WORKOUTS'])\n },\n [WORKOUTS_STORE.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: TWorkoutsPayload\n ): void {\n getWorkouts(context, payload, WorkoutsMutations['ADD_TIMELINE_WORKOUTS'])\n },\n [WORKOUTS_STORE.ACTIONS.GET_WORKOUT_DATA](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: IWorkoutPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)\n const segmentUrl = payload.segmentId ? `/segment/${payload.segmentId}` : ''\n authApi\n .get(`workouts/${payload.workoutId}`)\n .then((res) => {\n const workout: IWorkout = res.data.data.workouts[0]\n if (res.data.status === 'success') {\n if (\n payload.segmentId &&\n (workout.segments.length === 0 ||\n !workout.segments[+payload.segmentId - 1])\n ) {\n throw new Error('WORKOUT_NOT_FOUND')\n }\n context.commit(\n WORKOUTS_STORE.MUTATIONS.SET_WORKOUT,\n res.data.data.workouts[0]\n )\n if (res.data.data.workouts[0].with_gpx) {\n authApi\n .get(`workouts/${payload.workoutId}/chart_data${segmentUrl}`)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_CHART_DATA,\n res.data.data.chart_data\n )\n }\n })\n authApi\n .get(`workouts/${payload.workoutId}/gpx${segmentUrl}`)\n .then((res) => {\n if (res.data.status === 'success') {\n context.commit(\n WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_GPX,\n res.data.data.gpx\n )\n }\n })\n }\n } else {\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT)\n handleError(context, null)\n }\n })\n .catch((error) => {\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT)\n handleError(context, error)\n })\n .finally(() =>\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, false)\n )\n },\n [WORKOUTS_STORE.ACTIONS.DELETE_WORKOUT](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: IWorkoutPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)\n authApi\n .delete(`workouts/${payload.workoutId}`)\n .then(() => {\n context.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT)\n context.dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n router.push('/')\n })\n .catch((error) => {\n handleError(context, error)\n })\n .finally(() =>\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, false)\n )\n },\n [WORKOUTS_STORE.ACTIONS.EDIT_WORKOUT](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: IWorkoutPayload\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)\n authApi\n .patch(`workouts/${payload.workoutId}`, payload.data)\n .then(() => {\n context.dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n context\n .dispatch(WORKOUTS_STORE.ACTIONS.GET_WORKOUT_DATA, {\n workoutId: payload.workoutId,\n })\n .then(() => {\n router.push({\n name: 'Workout',\n params: { workoutId: payload.workoutId },\n })\n })\n })\n .catch((error) => {\n handleError(context, error)\n })\n .finally(() =>\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, false)\n )\n },\n [WORKOUTS_STORE.ACTIONS.ADD_WORKOUT](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: IWorkoutForm\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)\n if (!payload.file) {\n throw new Error('No file part')\n }\n const form = new FormData()\n form.append('file', payload.file)\n form.append(\n 'data',\n `{\"sport_id\": ${payload.sport_id}, \"notes\": \"${payload.notes}\"}`\n )\n authApi\n .post('workouts', form, {\n headers: {\n 'content-type': 'multipart/form-data',\n },\n })\n .then((res) => {\n if (res.data.status === 'created') {\n context.dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n const workout: IWorkout = res.data.data.workouts[0]\n router.push(\n res.data.data.workouts.length === 1\n ? `/workouts/${workout.id}`\n : '/'\n )\n }\n })\n .catch((error) => {\n handleError(context, error)\n })\n .finally(() =>\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, false)\n )\n },\n [WORKOUTS_STORE.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](\n context: ActionContext<IWorkoutsState, IRootState>,\n payload: IWorkoutForm\n ): void {\n context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, true)\n authApi\n .post('workouts/no_gpx', payload)\n .then((res) => {\n if (res.data.status === 'created') {\n context.dispatch(USER_STORE.ACTIONS.GET_USER_PROFILE)\n const workout: IWorkout = res.data.data.workouts[0]\n router.push(`/workouts/${workout.id}`)\n }\n })\n .catch((error) => {\n handleError(context, error)\n })\n .finally(() =>\n context.commit(WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING, false)\n )\n },\n}\n","import { GetterTree } from 'vuex'\n\nimport { WORKOUTS_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport {\n IWorkoutsGetters,\n IWorkoutsState,\n} from '@/store/modules/workouts/types'\n\nexport const getters: GetterTree<IWorkoutsState, IRootState> &\n IWorkoutsGetters = {\n [WORKOUTS_STORE.GETTERS.CALENDAR_WORKOUTS]: (state: IWorkoutsState) => {\n return state.calendar_workouts\n },\n [WORKOUTS_STORE.GETTERS.TIMELINE_WORKOUTS]: (state: IWorkoutsState) => {\n return state.timeline_workouts\n },\n [WORKOUTS_STORE.GETTERS.USER_WORKOUTS]: (state: IWorkoutsState) => {\n return state.user_workouts\n },\n [WORKOUTS_STORE.GETTERS.WORKOUT_DATA]: (state: IWorkoutsState) => {\n return state.workoutData\n },\n [WORKOUTS_STORE.GETTERS.WORKOUTS_PAGINATION]: (state: IWorkoutsState) => {\n return state.pagination\n },\n}\n","import { MutationTree } from 'vuex'\n\nimport { WORKOUTS_STORE } from '@/store/constants'\nimport {\n IWorkoutsState,\n TWorkoutsMutations,\n} from '@/store/modules/workouts/types'\nimport { IPagination } from '@/types/api'\nimport { IWorkout, IWorkoutApiChartData } from '@/types/workouts'\n\nexport const mutations: MutationTree<IWorkoutsState> & TWorkoutsMutations = {\n [WORKOUTS_STORE.MUTATIONS.ADD_TIMELINE_WORKOUTS](\n state: IWorkoutsState,\n workouts: IWorkout[]\n ) {\n state.timeline_workouts = state.timeline_workouts.concat(workouts)\n },\n [WORKOUTS_STORE.MUTATIONS.SET_CALENDAR_WORKOUTS](\n state: IWorkoutsState,\n workouts: IWorkout[]\n ) {\n state.calendar_workouts = workouts\n },\n [WORKOUTS_STORE.MUTATIONS.SET_TIMELINE_WORKOUTS](\n state: IWorkoutsState,\n workouts: IWorkout[]\n ) {\n state.timeline_workouts = workouts\n },\n [WORKOUTS_STORE.MUTATIONS.SET_USER_WORKOUTS](\n state: IWorkoutsState,\n workouts: IWorkout[]\n ) {\n state.user_workouts = workouts\n },\n [WORKOUTS_STORE.MUTATIONS.SET_WORKOUTS_PAGINATION](\n state: IWorkoutsState,\n pagination: IPagination\n ) {\n state.pagination = pagination\n },\n [WORKOUTS_STORE.MUTATIONS.SET_WORKOUT](\n state: IWorkoutsState,\n workout: IWorkout\n ) {\n state.workoutData.workout = workout\n },\n [WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_CHART_DATA](\n state: IWorkoutsState,\n chartData: IWorkoutApiChartData[]\n ) {\n state.workoutData.chartData = chartData\n },\n [WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_GPX](\n state: IWorkoutsState,\n gpx: string\n ) {\n state.workoutData.gpx = gpx\n },\n [WORKOUTS_STORE.MUTATIONS.SET_WORKOUT_LOADING](\n state: IWorkoutsState,\n loading: boolean\n ) {\n state.workoutData.loading = loading\n },\n [WORKOUTS_STORE.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](state: IWorkoutsState) {\n state.calendar_workouts = []\n },\n [WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUTS](state: IWorkoutsState) {\n state.calendar_workouts = []\n state.user_workouts = []\n state.timeline_workouts = []\n },\n [WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT](state: IWorkoutsState) {\n state.workoutData = {\n gpx: '',\n loading: false,\n workout: <IWorkout>{},\n chartData: [],\n }\n },\n}\n","import { IWorkoutsState } from '@/store/modules/workouts/types'\nimport { IPagination } from '@/types/api'\nimport { IWorkout } from '@/types/workouts'\n\nexport const workoutsState: IWorkoutsState = {\n calendar_workouts: [],\n timeline_workouts: [],\n pagination: <IPagination>{},\n user_workouts: [],\n workoutData: {\n gpx: '',\n loading: false,\n workout: <IWorkout>{},\n chartData: [],\n },\n}\n","import { Module } from 'vuex'\n\nimport { IRootState } from '@/store/modules/root/types'\nimport { actions } from '@/store/modules/workouts/actions'\nimport { getters } from '@/store/modules/workouts/getters'\nimport { mutations } from '@/store/modules/workouts/mutations'\nimport { workoutsState } from '@/store/modules/workouts/state'\nimport { IWorkoutsState } from '@/store/modules/workouts/types'\n\nconst workouts: Module<IWorkoutsState, IRootState> = {\n state: workoutsState,\n actions,\n getters,\n mutations,\n}\n\nexport default workouts\n","import { Module, ModuleTree } from 'vuex'\n\nimport { actions } from '@/store/modules/root/actions'\nimport { getters } from '@/store/modules/root/getters'\nimport { mutations } from '@/store/modules/root/mutations'\nimport { state } from '@/store/modules/root/state.ts'\nimport { IRootState } from '@/store/modules/root/types'\nimport sportsModule from '@/store/modules/sports'\nimport statsModule from '@/store/modules/statistics'\nimport userModule from '@/store/modules/user'\nimport usersModule from '@/store/modules/users'\nimport workoutsModule from '@/store/modules/workouts'\n\nconst modules: ModuleTree<IRootState> = {\n sportsModule,\n statsModule,\n userModule,\n usersModule,\n workoutsModule,\n}\n\nconst root: Module<IRootState, IRootState> = {\n state,\n actions,\n getters,\n mutations,\n modules,\n}\n\nexport default root\n","import { createStore } from 'vuex'\n\nimport root from '@/store/modules/root'\nimport { IRootState } from '@/store/modules/root/types'\n\nconst store = createStore<IRootState>(root)\n\nexport default store\n","import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'\n\nimport AdminApplication from '@/components/Administration/AdminApplication.vue'\nimport AdminMenu from '@/components/Administration/AdminMenu.vue'\nimport AdminSports from '@/components/Administration/AdminSports.vue'\nimport AdminUsers from '@/components/Administration/AdminUsers.vue'\nimport Profile from '@/components/User/ProfileDisplay/index.vue'\nimport UserInfos from '@/components/User/ProfileDisplay/UserInfos.vue'\nimport UserPreferences from '@/components/User/ProfileDisplay/UserPreferences.vue'\nimport ProfileEdition from '@/components/User/ProfileEdition/index.vue'\nimport UserInfosEdition from '@/components/User/ProfileEdition/UserInfosEdition.vue'\nimport UserPictureEdition from '@/components/User/ProfileEdition/UserPictureEdition.vue'\nimport UserPreferencesEdition from '@/components/User/ProfileEdition/UserPreferencesEdition.vue'\nimport store from '@/store'\nimport { USER_STORE } from '@/store/constants'\n\nconst getTabFromPath = (path: string): string => {\n const regex = /(\\/profile)(\\/edit)*(\\/*)/\n const tag = path.replace(regex, '').toUpperCase()\n return tag === '' ? 'PROFILE' : tag.toUpperCase()\n}\n\nconst routes: Array<RouteRecordRaw> = [\n {\n path: '/',\n name: 'Dashboard',\n component: () =>\n import(/* webpackChunkName: 'main' */ '@/views/Dashboard.vue'),\n },\n {\n path: '/login',\n name: 'Login',\n component: () =>\n import(/* webpackChunkName: 'main' */ '@/views/user/LoginOrRegister.vue'),\n props: { action: 'login' },\n },\n {\n path: '/register',\n name: 'Register',\n component: () =>\n import(/* webpackChunkName: 'main' */ '@/views/user/LoginOrRegister.vue'),\n props: { action: 'register' },\n },\n {\n path: '/password-reset/sent',\n name: 'PasswordEmailSent',\n component: () =>\n import(\n /* webpackChunkName: 'reset' */ '@/views/user/PasswordResetView.vue'\n ),\n props: { action: 'request-sent' },\n },\n {\n path: '/password-reset/request',\n name: 'PasswordResetRequest',\n component: () =>\n import(\n /* webpackChunkName: 'reset' */ '@/views/user/PasswordResetView.vue'\n ),\n props: { action: 'reset-request' },\n },\n {\n path: '/password-reset/password-updated',\n name: 'PasswordUpdated',\n component: () =>\n import(\n /* webpackChunkName: 'reset' */ '@/views/user/PasswordResetView.vue'\n ),\n props: { action: 'password-updated' },\n },\n {\n path: '/password-reset',\n name: 'PasswordReset',\n component: () =>\n import(\n /* webpackChunkName: 'reset' */ '@/views/user/PasswordResetView.vue'\n ),\n props: { action: 'reset' },\n },\n {\n path: '/profile',\n name: 'Profile',\n component: () =>\n import(/* webpackChunkName: 'profile' */ '@/views/user/ProfileView.vue'),\n children: [\n {\n path: '',\n name: 'UserProfile',\n component: Profile,\n props: (route) => ({\n tab: getTabFromPath(route.path),\n }),\n children: [\n {\n path: '',\n name: 'UserInfos',\n component: UserInfos,\n },\n {\n path: 'preferences',\n name: 'UserPreferences',\n component: UserPreferences,\n },\n ],\n },\n {\n path: 'edit',\n name: 'UserProfileEdition',\n component: ProfileEdition,\n props: (route) => ({\n tab: getTabFromPath(route.path),\n }),\n children: [\n {\n path: '',\n name: 'UserInfosEdition',\n component: UserInfosEdition,\n },\n {\n path: 'picture',\n name: 'UserPictureEdition',\n component: UserPictureEdition,\n },\n {\n path: 'preferences',\n name: 'UserPreferencesEdition',\n component: UserPreferencesEdition,\n },\n ],\n },\n ],\n },\n {\n path: '/statistics',\n name: 'Statistics',\n component: () =>\n import(/* webpackChunkName: 'main' */ '@/views/StatisticsView.vue'),\n },\n {\n path: '/users/:username',\n name: 'User',\n component: () =>\n import(/* webpackChunkName: 'profile' */ '@/views/user/UserView.vue'),\n },\n {\n path: '/workouts',\n name: 'Workouts',\n component: () =>\n import(\n /* webpackChunkName: 'workouts' */ '@/views/workouts/WorkoutsView.vue'\n ),\n },\n {\n path: '/workouts/:workoutId',\n name: 'Workout',\n component: () =>\n import(/* webpackChunkName: 'workouts' */ '@/views/workouts/Workout.vue'),\n props: { displaySegment: false },\n },\n {\n path: '/workouts/:workoutId/edit',\n name: 'EditWorkout',\n component: () =>\n import(\n /* webpackChunkName: 'workouts' */ '@/views/workouts/EditWorkout.vue'\n ),\n },\n {\n path: '/workouts/:workoutId/segment/:segmentId',\n name: 'WorkoutSegment',\n component: () =>\n import(/* webpackChunkName: 'workouts' */ '@/views/workouts/Workout.vue'),\n props: { displaySegment: true },\n },\n {\n path: '/workouts/add',\n name: 'AddWorkout',\n component: () =>\n import(\n /* webpackChunkName: 'workouts' */ '@/views/workouts/AddWorkout.vue'\n ),\n },\n {\n path: '/admin',\n name: 'Administration',\n component: () =>\n import(/* webpackChunkName: 'admin' */ '@/views/AdminView.vue'),\n children: [\n {\n path: '',\n name: 'AdministrationMenu',\n component: AdminMenu,\n },\n {\n path: 'application',\n name: 'ApplicationAdministration',\n component: AdminApplication,\n },\n {\n path: 'application/edit',\n name: 'ApplicationAdministrationEdition',\n component: AdminApplication,\n props: { edition: true },\n },\n {\n path: 'sports',\n name: 'SportsAdministration',\n component: AdminSports,\n },\n {\n path: 'users',\n name: 'UsersAdministration',\n component: AdminUsers,\n },\n ],\n },\n {\n path: '/:pathMatch(.*)*',\n name: 'not-found',\n component: () =>\n import(/* webpackChunkName: 'main' */ '@/views/NotFoundView.vue'),\n },\n]\n\nconst router = createRouter({\n history: createWebHistory(process.env.BASE_URL),\n routes,\n})\n\nconst pathsWithoutAuthentication = [\n '/login',\n '/password-reset',\n '/password-reset/password-updated',\n '/password-reset/request',\n '/password-reset/sent',\n '/register',\n]\n\nrouter.beforeEach((to, from, next) => {\n store\n .dispatch(USER_STORE.ACTIONS.CHECK_AUTH_USER)\n .then(() => {\n if (\n store.getters[USER_STORE.GETTERS.IS_AUTHENTICATED] &&\n pathsWithoutAuthentication.includes(to.path)\n ) {\n return next('/')\n } else if (\n !store.getters[USER_STORE.GETTERS.IS_AUTHENTICATED] &&\n !pathsWithoutAuthentication.includes(to.path)\n ) {\n const path =\n to.path === '/'\n ? { path: '/login' }\n : { path: '/login', query: { from: to.fullPath } }\n next(path)\n } else {\n next()\n }\n })\n .catch((error) => {\n console.error(error)\n next()\n })\n})\n\nexport default router\n","<template>\n <div class=\"alert-message\">\n <div v-html=\"$t(message)\" />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'AlertMessage',\n props: {\n message: String,\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n .alert-message {\n background: var(--alert-background-color);\n color: var(--alert-color);\n\n border-radius: $border-radius;\n\n margin: $default-margin;\n padding: $default-padding;\n }\n</style>\n","\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'AlertMessage',\n props: {\n message: String,\n },\n })\n","import { render } from \"./AlertMessage.vue?vue&type=template&id=f5e8066a&scoped=true\"\nimport script from \"./AlertMessage.vue?vue&type=script&lang=ts\"\nexport * from \"./AlertMessage.vue?vue&type=script&lang=ts\"\n\nimport \"./AlertMessage.vue?vue&type=style&index=0&id=f5e8066a&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-f5e8066a\"\n\nexport default script","<template>\n <div class=\"custom-textarea\">\n <textarea\n :id=\"name\"\n :name=\"name\"\n :maxLenght=\"charLimit\"\n :disabled=\"disabled\"\n v-model=\"text\"\n @input=\"updateText\"\n />\n <div class=\"remaining-chars\">\n {{ $t('workouts.REMAINING_CHARS') }}: {{ text.length }}/{{ charLimit }}\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, ref, watch } from 'vue'\n\n export default defineComponent({\n name: 'CustomTextArea',\n props: {\n charLimit: {\n type: Number,\n default: 500,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n input: {\n type: String,\n default: '',\n },\n name: {\n type: String,\n required: true,\n },\n },\n emits: ['updateValue'],\n setup(props, { emit }) {\n let text = ref('')\n\n function updateText(event: Event & { target: HTMLInputElement }) {\n emit('updateValue', event.target.value)\n }\n\n watch(\n () => props.input,\n (value) => {\n text.value = value\n }\n )\n\n return { text, updateText }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n .custom-textarea {\n display: flex;\n flex-direction: column;\n .remaining-chars {\n font-size: 0.8em;\n font-style: italic;\n }\n }\n</style>\n","\n import { defineComponent, ref, watch } from 'vue'\n\n export default defineComponent({\n name: 'CustomTextArea',\n props: {\n charLimit: {\n type: Number,\n default: 500,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n input: {\n type: String,\n default: '',\n },\n name: {\n type: String,\n required: true,\n },\n },\n emits: ['updateValue'],\n setup(props, { emit }) {\n let text = ref('')\n\n function updateText(event: Event & { target: HTMLInputElement }) {\n emit('updateValue', event.target.value)\n }\n\n watch(\n () => props.input,\n (value) => {\n text.value = value\n }\n )\n\n return { text, updateText }\n },\n })\n","import { render } from \"./CustomTextArea.vue?vue&type=template&id=ad3739fc&scoped=true\"\nimport script from \"./CustomTextArea.vue?vue&type=script&lang=ts\"\nexport * from \"./CustomTextArea.vue?vue&type=script&lang=ts\"\n\nimport \"./CustomTextArea.vue?vue&type=style&index=0&id=ad3739fc&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-ad3739fc\"\n\nexport default script","<template>\n <div class=\"dropdown-wrapper\">\n <div class=\"dropdown-selected\" @click=\"toggleDropdown\">\n <slot></slot>\n </div>\n <ul class=\"dropdown-list\" v-if=\"isOpen\">\n <li\n class=\"dropdown-item\"\n :class=\"{ selected: option.value === selected }\"\n v-for=\"(option, index) in dropdownOptions\"\n :key=\"index\"\n @click=\"updateSelected(option)\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { PropType, defineComponent, ref, watch } from 'vue'\n import { useRoute } from 'vue-router'\n\n import { IDropdownOption, TDropdownOptions } from '@/types/forms'\n\n export default defineComponent({\n name: 'Dropdown',\n props: {\n options: {\n type: Object as PropType<TDropdownOptions>,\n required: true,\n },\n selected: {\n type: String,\n required: true,\n },\n },\n emits: {\n selected: (option: IDropdownOption) => option,\n },\n setup(props, { emit }) {\n const route = useRoute()\n let isOpen = ref(false)\n let dropdownOptions = props.options.map((option) => option)\n\n function toggleDropdown() {\n isOpen.value = !isOpen.value\n }\n function updateSelected(option: IDropdownOption) {\n emit('selected', option)\n isOpen.value = false\n }\n\n watch(\n () => route.path,\n () => (isOpen.value = false)\n )\n\n return {\n dropdownOptions,\n isOpen,\n toggleDropdown,\n updateSelected,\n }\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n .dropdown-list {\n list-style-type: none;\n background-color: #ffffff;\n padding: 0;\n margin-top: 5px;\n margin-left: -20px !important;\n position: absolute;\n text-align: left;\n border: solid 1px lightgrey;\n box-shadow: 2px 2px 5px lightgrey;\n width: auto !important;\n\n li {\n padding-top: 5px;\n padding-right: 5px;\n }\n li:last-child {\n padding-bottom: 5px;\n }\n }\n\n .dropdown-item {\n cursor: default;\n\n &.selected {\n font-weight: bold;\n }\n\n &.selected::after {\n content: ' ✔';\n }\n }\n</style>\n","\n import { PropType, defineComponent, ref, watch } from 'vue'\n import { useRoute } from 'vue-router'\n\n import { IDropdownOption, TDropdownOptions } from '@/types/forms'\n\n export default defineComponent({\n name: 'Dropdown',\n props: {\n options: {\n type: Object as PropType<TDropdownOptions>,\n required: true,\n },\n selected: {\n type: String,\n required: true,\n },\n },\n emits: {\n selected: (option: IDropdownOption) => option,\n },\n setup(props, { emit }) {\n const route = useRoute()\n let isOpen = ref(false)\n let dropdownOptions = props.options.map((option) => option)\n\n function toggleDropdown() {\n isOpen.value = !isOpen.value\n }\n function updateSelected(option: IDropdownOption) {\n emit('selected', option)\n isOpen.value = false\n }\n\n watch(\n () => route.path,\n () => (isOpen.value = false)\n )\n\n return {\n dropdownOptions,\n isOpen,\n toggleDropdown,\n updateSelected,\n }\n },\n })\n","import { render } from \"./Dropdown.vue?vue&type=template&id=5ef2ddef&scoped=true\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=ts\"\nexport * from \"./Dropdown.vue?vue&type=script&lang=ts\"\n\nimport \"./Dropdown.vue?vue&type=style&index=0&id=5ef2ddef&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-5ef2ddef\"\n\nexport default script","<template>\n <div class=\"error-message\">\n <ul v-if=\"Array.isArray(message)\">\n <li v-for=\"(subMessage, index) in message\" :key=\"index\">\n {{ $t(subMessage) }}\n </li>\n </ul>\n <div v-else>{{ $t(message) }}</div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'ErrorMessage',\n props: {\n message: [String, Array],\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n .error-message {\n background: var(--error-background-color);\n color: var(--error-color);\n\n border-radius: 4px;\n\n margin: $default-margin;\n padding: $default-padding;\n }\n</style>\n","\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'ErrorMessage',\n props: {\n message: [String, Array],\n },\n })\n","import { render } from \"./ErrorMessage.vue?vue&type=template&id=5c177a93&scoped=true\"\nimport script from \"./ErrorMessage.vue?vue&type=script&lang=ts\"\nexport * from \"./ErrorMessage.vue?vue&type=script&lang=ts\"\n\nimport \"./ErrorMessage.vue?vue&type=style&index=0&id=5c177a93&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-5c177a93\"\n\nexport default script","<template>\n <div\n class=\"sport-img\"\n :style=\"{ fill: sportColors[sportLabel] }\"\n :title=\"title ? title : $t(`sports.${sportLabel}.LABEL`)\"\n >\n <CyclingSport v-if=\"sportLabel === 'Cycling (Sport)'\" />\n <CyclingTransport v-if=\"sportLabel === 'Cycling (Transport)'\" />\n <Hiking v-if=\"sportLabel === 'Hiking'\" />\n <MountainBiking v-if=\"sportLabel === 'Mountain Biking'\" />\n <Running v-if=\"sportLabel === 'Running'\" />\n <Walking v-if=\"sportLabel === 'Walking'\" />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, inject } from 'vue'\n\n import CyclingSport from '@/components/Common/Images/SportImage/CyclingSport.vue'\n import CyclingTransport from '@/components/Common/Images/SportImage/CyclingTransport.vue'\n import Hiking from '@/components/Common/Images/SportImage/Hiking.vue'\n import MountainBiking from '@/components/Common/Images/SportImage/MountainBiking.vue'\n import Running from '@/components/Common/Images/SportImage/Running.vue'\n import Walking from '@/components/Common/Images/SportImage/Walking.vue'\n\n export default defineComponent({\n name: 'SportImage',\n components: {\n CyclingSport,\n CyclingTransport,\n Hiking,\n MountainBiking,\n Running,\n Walking,\n },\n props: {\n sportLabel: {\n type: String,\n required: true,\n },\n title: {\n type: String,\n required: false,\n },\n },\n setup() {\n return { sportColors: inject('sportColors') }\n },\n })\n</script>\n","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 491.737 491.737\"\n style=\"enable-background: new 0 0 491.737 491.737\"\n xml:space=\"preserve\"\n >\n <desc id=\"cyclingSportDescription\">\n silhouette of a person riding a bicycle\n </desc>\n <g>\n <path\n 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\"\n />\n <path\n 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\"\n />\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'CyclingSport',\n }\n</script>\n","import { render } from \"./CyclingSport.vue?vue&type=template&id=be8023a2\"\nimport script from \"./CyclingSport.vue?vue&type=script&lang=js\"\nexport * from \"./CyclingSport.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 491.737 491.737\"\n style=\"enable-background: new 0 0 491.737 491.737\"\n xml:space=\"preserve\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\"\n >\n <desc id=\"cyclingTransportDescription\">\n silhouette of a person riding a bicycle (for transportation)\n </desc>\n <g id=\"g147\">\n <path\n 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\"\n id=\"path143\"\n />\n <path\n 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\"\n id=\"path145\"\n />\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'CyclingTransport',\n }\n</script>\n","import { render } from \"./CyclingTransport.vue?vue&type=template&id=97af5148\"\nimport script from \"./CyclingTransport.vue?vue&type=script&lang=js\"\nexport * from \"./CyclingTransport.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 463.507 463.507\"\n style=\"enable-background: new 0 0 463.507 463.507\"\n xml:space=\"preserve\"\n >\n <desc id=\"hikingDescription\">silhouette of a person hiking</desc>\n <g>\n <path\n 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\"\n />\n <path\n 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\"\n />\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'Hiking',\n }\n</script>\n","import { render } from \"./Hiking.vue?vue&type=template&id=40903dc4\"\nimport script from \"./Hiking.vue?vue&type=script&lang=js\"\nexport * from \"./Hiking.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 503.162 503.162\"\n style=\"enable-background: new 0 0 503.162 503.162\"\n xml:space=\"preserve\"\n >\n <desc id=\"mountainBikingDescription\">\n silhouette of a person riding a mountain bike\n </desc>\n <g>\n <g>\n <path\n 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\"\n />\n <path\n 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\"\n />\n <path\n 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\"\n />\n </g>\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'MountainBiking',\n }\n</script>\n","import { render } from \"./MountainBiking.vue?vue&type=template&id=5bdbc6e8\"\nimport script from \"./MountainBiking.vue?vue&type=script&lang=js\"\nexport * from \"./MountainBiking.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 494.49 494.49\"\n style=\"enable-background: new 0 0 494.49 494.49\"\n xml:space=\"preserve\"\n >\n <desc id=\"runningDescription\">silhouette of a running person</desc>\n <g>\n <path\n 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\"\n />\n <path\n 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\"\n />\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'Running',\n }\n</script>\n","import { render } from \"./Running.vue?vue&type=template&id=4d47a4fe\"\nimport script from \"./Running.vue?vue&type=script&lang=js\"\nexport * from \"./Running.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","<template>\n <svg\n version=\"1.1\"\n id=\"Capa_1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 494.49 494.49\"\n style=\"enable-background: new 0 0 494.49 494.49\"\n xml:space=\"preserve\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\"\n >\n <desc id=\"walkingDescription\">silhouette of a walking person</desc>\n <defs id=\"defs797\" />\n <g id=\"g792\">\n <path\n 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\"\n id=\"path788\"\n />\n <path\n 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\"\n id=\"path790\"\n />\n </g>\n </svg>\n</template>\n\n<script>\n export default {\n name: 'Walking',\n }\n</script>\n","import { render } from \"./Walking.vue?vue&type=template&id=2ed4f5f4\"\nimport script from \"./Walking.vue?vue&type=script&lang=js\"\nexport * from \"./Walking.vue?vue&type=script&lang=js\"\nscript.render = render\n\nexport default script","\n import { defineComponent, inject } from 'vue'\n\n import CyclingSport from '@/components/Common/Images/SportImage/CyclingSport.vue'\n import CyclingTransport from '@/components/Common/Images/SportImage/CyclingTransport.vue'\n import Hiking from '@/components/Common/Images/SportImage/Hiking.vue'\n import MountainBiking from '@/components/Common/Images/SportImage/MountainBiking.vue'\n import Running from '@/components/Common/Images/SportImage/Running.vue'\n import Walking from '@/components/Common/Images/SportImage/Walking.vue'\n\n export default defineComponent({\n name: 'SportImage',\n components: {\n CyclingSport,\n CyclingTransport,\n Hiking,\n MountainBiking,\n Running,\n Walking,\n },\n props: {\n sportLabel: {\n type: String,\n required: true,\n },\n title: {\n type: String,\n required: false,\n },\n },\n setup() {\n return { sportColors: inject('sportColors') }\n },\n })\n","import { render } from \"./index.vue?vue&type=template&id=834c586a\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","<template>\n <div class=\"loader\" />\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n export default defineComponent({\n name: 'Loader',\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n .loader {\n animation: spin 2s linear infinite;\n border: 14px solid var(--app-loading-color);\n border-top: 14px solid var(--app-loading-top-color);\n border-radius: 50%;\n height: 60px;\n margin-left: 41%;\n width: 60px;\n }\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n export default defineComponent({\n name: 'Loader',\n })\n","import { render } from \"./Loader.vue?vue&type=template&id=8bf75da8&scoped=true\"\nimport script from \"./Loader.vue?vue&type=script&lang=ts\"\nexport * from \"./Loader.vue?vue&type=script&lang=ts\"\n\nimport \"./Loader.vue?vue&type=style&index=0&id=8bf75da8&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-8bf75da8\"\n\nexport default script","<template>\n <div id=\"modal\">\n <div class=\"custom-modal\">\n <Card>\n <template #title>\n {{ title }}\n </template>\n <template #content>\n <div class=\"modal-message\" v-if=\"strongMessage\">\n <i18n-t :keypath=\"message\">\n <span>{{ strongMessage }}</span>\n </i18n-t>\n </div>\n <div class=\"modal-message\" v-else>{{ message }}</div>\n <ErrorMessage :message=\"errorMessages\" v-if=\"errorMessages\" />\n <div class=\"modal-buttons\">\n <button class=\"confirm\" @click=\"emit('confirmAction')\">\n {{ $t('buttons.YES') }}\n </button>\n <button class=\"cancel\" @click=\"emit('cancelAction')\">\n {{ $t('buttons.NO') }}\n </button>\n </div>\n </template>\n </Card>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { ComputedRef, computed, defineComponent, onUnmounted } from 'vue'\n\n import { ROOT_STORE } from '@/store/constants'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'Modal',\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n strongMessage: {\n type: String || null,\n default: null,\n },\n },\n emits: ['cancelAction', 'confirmAction'],\n setup(props, { emit }) {\n const store = useStore()\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n onUnmounted(() => store.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES))\n return { errorMessages, emit }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base';\n #modal {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: var(--modal-background-color);\n padding: $default-padding;\n z-index: 1240;\n\n .custom-modal {\n background-color: var(--app-background-color);\n border-radius: $border-radius;\n max-width: 500px;\n margin: 25% auto;\n z-index: 1250;\n\n @media screen and (max-width: $medium-limit) {\n margin: 15% auto;\n width: 100%;\n }\n @media screen and (max-width: $small-limit) {\n margin: 50% 0;\n width: 100%;\n }\n\n ::v-deep(.card) {\n border: 0;\n margin: 0;\n\n .card-content {\n display: flex;\n flex-direction: column;\n\n .modal-message {\n padding: $default-padding;\n span {\n font-weight: bold;\n }\n }\n\n .modal-buttons {\n display: flex;\n justify-content: flex-end;\n\n button {\n margin: $default-padding * 0.5;\n }\n }\n }\n }\n }\n }\n</style>\n","\n import { ComputedRef, computed, defineComponent, onUnmounted } from 'vue'\n\n import { ROOT_STORE } from '@/store/constants'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'Modal',\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n strongMessage: {\n type: String || null,\n default: null,\n },\n },\n emits: ['cancelAction', 'confirmAction'],\n setup(props, { emit }) {\n const store = useStore()\n const errorMessages: ComputedRef<string | string[] | null> = computed(\n () => store.getters[ROOT_STORE.GETTERS.ERROR_MESSAGES]\n )\n onUnmounted(() => store.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES))\n return { errorMessages, emit }\n },\n })\n","import { render } from \"./Modal.vue?vue&type=template&id=21b6cb61&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=ts\"\nexport * from \"./Modal.vue?vue&type=script&lang=ts\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=21b6cb61&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-21b6cb61\"\n\nexport default script","import AlertMessage from '@/components/Common/AlertMessage.vue'\nimport Card from '@/components/Common/Card.vue'\nimport CustomTextArea from '@/components/Common/CustomTextArea.vue'\nimport Dropdown from '@/components/Common/Dropdown.vue'\nimport ErrorMessage from '@/components/Common/ErrorMessage.vue'\nimport SportImage from '@/components/Common/Images/SportImage/index.vue'\nimport Loader from '@/components/Common/Loader.vue'\nimport Modal from '@/components/Common/Modal.vue'\n\nexport const customComponents = [\n AlertMessage,\n Card,\n CustomTextArea,\n Dropdown,\n ErrorMessage,\n Loader,\n Modal,\n SportImage,\n]\n","import { Directive, DirectiveBinding } from 'vue'\n\ninterface ClickOutsideHTMLElement extends HTMLElement {\n clickOutsideEvent?: (event: MouseEvent | TouchEvent) => void\n}\n\nexport const clickOutsideDirective: Directive = {\n mounted: (\n element: ClickOutsideHTMLElement,\n binding: DirectiveBinding\n ): void => {\n element.clickOutsideEvent = function (event) {\n if (!(element === event.target || element.contains(<Node>event.target))) {\n binding.value(event)\n }\n }\n document.body.addEventListener('click', element.clickOutsideEvent)\n document.body.addEventListener('touchstart', element.clickOutsideEvent)\n },\n unmounted: function (element: ClickOutsideHTMLElement): void {\n if (element.clickOutsideEvent) {\n document.body.removeEventListener('click', element.clickOutsideEvent)\n document.body.removeEventListener('touchstart', element.clickOutsideEvent)\n element.clickOutsideEvent = undefined\n }\n },\n}\n","import {\n Chart,\n BarElement,\n LineElement,\n PointElement,\n Legend,\n Title,\n Tooltip,\n Filler,\n BarController,\n CategoryScale,\n LineController,\n LinearScale,\n} from 'chart.js'\nimport ChartDataLabels from 'chartjs-plugin-datalabels'\nimport { createApp } from 'vue'\n\nimport './registerServiceWorker'\nimport App from './App.vue'\nimport i18n from './i18n'\nimport router from './router'\nimport store from './store'\n\nimport { customComponents } from '@/custom-components'\nimport { clickOutsideDirective } from '@/directives'\nimport { sportColors } from '@/utils/sports'\n\nChart.register(\n BarElement,\n LineElement,\n PointElement,\n Legend,\n Title,\n Tooltip,\n Filler,\n BarController,\n CategoryScale,\n LineController,\n LinearScale,\n ChartDataLabels\n)\n\nconst app = createApp(App)\n .provide('sportColors', sportColors)\n .use(i18n)\n .use(store)\n .use(router)\n .directive('click-outside', clickOutsideDirective)\n\ncustomComponents.forEach((component) => {\n app.component(component.name, component)\n})\n\napp.mount('#app')\n","import { AxiosError } from 'axios'\nimport { ActionContext } from 'vuex'\n\nimport { ROOT_STORE } from '@/store/constants'\nimport { IRootState } from '@/store/modules/root/types'\nimport { ISportsState } from '@/store/modules/sports/types'\nimport { IStatisticsState } from '@/store/modules/statistics/types'\nimport { IUserState } from '@/store/modules/user/types'\nimport { IUsersState } from '@/store/modules/users/types'\nimport { IWorkoutsState } from '@/store/modules/workouts/types'\n\nexport const getApiUrl = (): string => {\n return process.env.NODE_ENV === 'production'\n ? '/api/'\n : `${process.env.VUE_APP_API_URL}/api/`\n}\n\nexport const handleError = (\n context:\n | ActionContext<IRootState, IRootState>\n | ActionContext<IUserState, IRootState>\n | ActionContext<IStatisticsState, IRootState>\n | ActionContext<ISportsState, IRootState>\n | ActionContext<IUsersState, IRootState>\n | ActionContext<IWorkoutsState, IRootState>,\n error: AxiosError | null,\n msg = 'UNKNOWN'\n): void => {\n const errorMessages = !error\n ? msg\n : error.response\n ? error.response.status === 413\n ? 'file size is greater than the allowed size'\n : error.response.data.message\n ? error.response.data.message\n : msg\n : error.message\n ? error.message\n : msg\n context.commit(\n ROOT_STORE.MUTATIONS.SET_ERROR_MESSAGES,\n errorMessages.includes('\\n')\n ? errorMessages\n .split('\\n')\n .filter((m: string) => m !== '')\n .map((m: string) => `api.ERROR.${m}`)\n : `api.ERROR.${errorMessages}`\n )\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./UserProfileTabs.vue?vue&type=style&index=0&id=c7276c08&lang=scss\"","export enum RootActions {\n GET_APPLICATION_CONFIG = 'GET_APPLICATION_CONFIG',\n GET_APPLICATION_STATS = 'GET_APPLICATION_STATS',\n UPDATE_APPLICATION_CONFIG = 'UPDATE_APPLICATION_CONFIG',\n}\n\nexport enum RootGetters {\n APP_CONFIG = 'APP_CONFIG',\n APP_LOADING = 'APP_LOADING',\n APP_STATS = 'APP_STATS',\n ERROR_MESSAGES = 'ERROR_MESSAGES',\n LANGUAGE = 'LANGUAGE',\n LOCALE = 'LOCALE', // date-fns\n}\n\nexport enum RootMutations {\n EMPTY_ERROR_MESSAGES = 'EMPTY_ERROR_MESSAGES',\n SET_ERROR_MESSAGES = 'SET_ERROR_MESSAGES',\n UPDATE_APPLICATION_CONFIG = 'UPDATE_APPLICATION_CONFIG',\n UPDATE_APPLICATION_LOADING = 'UPDATE_APPLICATION_LOADING',\n UPDATE_APPLICATION_STATS = 'UPDATE_APPLICATION_STATS',\n UPDATE_LANG = 'UPDATE_LANG',\n}\n","export enum SportsActions {\n GET_SPORTS = 'GET_SPORTS',\n UPDATE_SPORTS = 'UPDATE_SPORTS',\n}\n\nexport enum SportsGetters {\n SPORTS = 'SPORTS',\n}\n\nexport enum SportsMutation {\n SET_SPORTS = 'SET_SPORTS',\n}\n","export enum StatisticsActions {\n GET_USER_STATS = 'GET_USER_STATS',\n}\n\nexport enum StatisticsGetters {\n USER_STATS = 'USER_STATS',\n}\n\nexport enum StatisticsMutations {\n EMPTY_USER_STATS = 'EMPTY_USER_STATS',\n UPDATE_USER_STATS = 'UPDATE_USER_STATS',\n}\n","export enum UserActions {\n CHECK_AUTH_USER = 'CHECK_AUTH_USER',\n DELETE_ACCOUNT = 'DELETE_ACCOUNT',\n DELETE_PICTURE = 'DELETE_PICTURE',\n GET_USER_PROFILE = 'GET_USER_PROFILE',\n LOGIN_OR_REGISTER = 'LOGIN_OR_REGISTER',\n LOGOUT = 'LOGOUT',\n SEND_PASSWORD_RESET_REQUEST = 'SEND_PASSWORD_RESET_REQUEST',\n RESET_USER_PASSWORD = 'RESET_USER_PASSWORD',\n UPDATE_USER_PICTURE = 'UPDATE_USER_PICTURE',\n UPDATE_USER_PROFILE = 'UPDATE_USER_PROFILE',\n UPDATE_USER_PREFERENCES = 'UPDATE_USER_PREFERENCES',\n}\n\nexport enum UserGetters {\n AUTH_TOKEN = 'AUTH_TOKEN',\n AUTH_USER_PROFILE = 'AUTH_USER_PROFILE',\n IS_ADMIN = 'IS_ADMIN',\n IS_AUTHENTICATED = 'IS_AUTHENTICATED',\n USER_LOADING = 'USER_LOADING',\n}\n\nexport enum UserMutations {\n CLEAR_AUTH_USER_TOKEN = 'CLEAR_AUTH_USER_TOKEN',\n UPDATE_AUTH_TOKEN = 'UPDATE_AUTH_TOKEN',\n UPDATE_AUTH_USER_PROFILE = 'UPDATE_AUTH_USER_PROFILE',\n UPDATE_USER_LOADING = 'UPDATE_USER_LOADING',\n}\n","export enum UsersActions {\n EMPTY_USER = 'EMPTY_USER',\n EMPTY_USERS = 'EMPTY_USERS',\n GET_USER = 'GET_USER',\n GET_USERS = 'GET_USERS',\n UPDATE_USER = 'UPDATE_USER',\n}\n\nexport enum UsersGetters {\n USER = 'USER',\n USERS = 'USERS',\n USERS_LOADING = 'USERS_LOADING',\n USERS_PAGINATION = 'USERS_PAGINATION',\n}\n\nexport enum UsersMutations {\n UPDATE_USER = 'UPDATE_USER',\n UPDATE_USER_IN_USERS = 'UPDATE_USER_IN_USERS',\n UPDATE_USERS = 'UPDATE_USERS',\n UPDATE_USERS_LOADING = 'UPDATE_USERS_LOADING',\n UPDATE_USERS_PAGINATION = 'UPDATE_USERS_PAGINATION',\n}\n","import {\n RootActions,\n RootGetters,\n RootMutations,\n} from '@/store/modules/root/enums'\nimport {\n SportsActions,\n SportsGetters,\n SportsMutation,\n} from '@/store/modules/sports/enums'\nimport {\n StatisticsActions,\n StatisticsGetters,\n StatisticsMutations,\n} from '@/store/modules/statistics/enums'\nimport {\n UserActions,\n UserGetters,\n UserMutations,\n} from '@/store/modules/user/enums'\nimport {\n UsersActions,\n UsersGetters,\n UsersMutations,\n} from '@/store/modules/users/enums'\nimport {\n WorkoutsActions,\n WorkoutsGetters,\n WorkoutsMutations,\n} from '@/store/modules/workouts/enums'\n\nexport const ROOT_STORE = {\n ACTIONS: RootActions,\n GETTERS: RootGetters,\n MUTATIONS: RootMutations,\n}\n\nexport const SPORTS_STORE = {\n ACTIONS: SportsActions,\n GETTERS: SportsGetters,\n MUTATIONS: SportsMutation,\n}\n\nexport const STATS_STORE = {\n ACTIONS: StatisticsActions,\n GETTERS: StatisticsGetters,\n MUTATIONS: StatisticsMutations,\n}\n\nexport const USER_STORE = {\n ACTIONS: UserActions,\n GETTERS: UserGetters,\n MUTATIONS: UserMutations,\n}\n\nexport const USERS_STORE = {\n ACTIONS: UsersActions,\n GETTERS: UsersGetters,\n MUTATIONS: UsersMutations,\n}\n\nexport const WORKOUTS_STORE = {\n ACTIONS: WorkoutsActions,\n GETTERS: WorkoutsGetters,\n MUTATIONS: WorkoutsMutations,\n}\n","var map = {\n\t\"./en/en.ts\": \"c142\",\n\t\"./fr/fr.ts\": \"663e\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"e7b6\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./NoConfig.vue?vue&type=style&index=0&id=01d4a985&scoped=true&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AlertMessage.vue?vue&type=style&index=0&id=f5e8066a&scoped=true&lang=scss\""],"sourceRoot":""} |