From 619b84ef2ebc2a4ba198775e99674cbd62067be8 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 3 Sep 2023 08:50:32 +0200 Subject: [PATCH 1/8] CI - fix e2e tests with packaged version --- .github/workflows/.tests-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/.tests-python.yml b/.github/workflows/.tests-python.yml index ee33a5eb..40d1b336 100644 --- a/.github/workflows/.tests-python.yml +++ b/.github/workflows/.tests-python.yml @@ -175,7 +175,7 @@ jobs: - name: Run migrations run: ftcli db upgrade - name: Install pytest and selenium - run: python3 -m pip install pytest==7.4.0 pytest-selenium==4.0.1 selenium==4.9.0 + run: python3 -m pip install pytest==7.4.0 pytest-selenium==4.0.1 selenium==4.9.0 pytest-html==3.2.0 - name: Start application and run tests with Selenium run: | setsid nohup fittrackee >> nohup.out 2>&1 & From 4322c94d8c1b97a7ff71959d999eb45405d9dc44 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 3 Sep 2023 08:41:11 +0200 Subject: [PATCH 2/8] remove `darksky` from available weather providers --- .env.docker | 2 +- .env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.docker b/.env.docker index 0214a6ea..7658d08c 100644 --- a/.env.docker +++ b/.env.docker @@ -36,6 +36,6 @@ export WORKERS_PROCESSES=2 # export DEFAULT_STATICMAP=False # Weather -# available weather API providers: darksky, visualcrossing +# available weather API providers: visualcrossing # export WEATHER_API_PROVIDER= # export WEATHER_API_KEY= \ No newline at end of file diff --git a/.env.example b/.env.example index c4615bcb..0f985cb5 100644 --- a/.env.example +++ b/.env.example @@ -35,6 +35,6 @@ export SENDER_EMAIL= # export DEFAULT_STATICMAP=False # Weather -# available weather API providers: darksky, visualcrossing +# available weather API providers: visualcrossing # export WEATHER_API_PROVIDER= # export WEATHER_API_KEY= From 9989a8d54dd6f5082abf0b8d22ab0f7d4fdfe391 Mon Sep 17 00:00:00 2001 From: astridx Date: Tue, 12 Sep 2023 19:19:10 +0200 Subject: [PATCH 3/8] https://github.com/openstreetmap/operations/issues/737 --- docs/en/_sources/installation.rst.txt | 2 +- docs/en/installation.html | 2 +- docs/fr/_sources/installation.rst.txt | 2 +- docs/fr/installation.html | 2 +- docsrc/gettext/docs.pot | 2 +- docsrc/locales/en/LC_MESSAGES/docs.po | 2 +- docsrc/locales/fr/LC_MESSAGES/docs.po | 2 +- docsrc/source/installation.rst | 2 +- fittrackee/config.py | 2 +- fittrackee/tests/workouts/test_utils/test_maps.py | 6 +++--- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/en/_sources/installation.rst.txt b/docs/en/_sources/installation.rst.txt index 8fdefd66..b919e95b 100644 --- a/docs/en/_sources/installation.rst.txt +++ b/docs/en/_sources/installation.rst.txt @@ -190,7 +190,7 @@ deployment method. | Tile server URL (with api key if needed), see `Map tile server `__. | Since **0.4.9**, it's also used to generate static maps (to keep default server, see `DEFAULT_STATICMAP `__) - :default: ``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`` + :default: ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` .. envvar:: STATICMAP_SUBDOMAINS diff --git a/docs/en/installation.html b/docs/en/installation.html index 1568beff..3ad09c4f 100644 --- a/docs/en/installation.html +++ b/docs/en/installation.html @@ -523,7 +523,7 @@ see
Default:
-

https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

+

https://tile.openstreetmap.org/{z}/{x}/{y}.png

diff --git a/docs/fr/_sources/installation.rst.txt b/docs/fr/_sources/installation.rst.txt index 8fdefd66..b919e95b 100644 --- a/docs/fr/_sources/installation.rst.txt +++ b/docs/fr/_sources/installation.rst.txt @@ -190,7 +190,7 @@ deployment method. | Tile server URL (with api key if needed), see `Map tile server `__. | Since **0.4.9**, it's also used to generate static maps (to keep default server, see `DEFAULT_STATICMAP `__) - :default: ``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`` + :default: ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` .. envvar:: STATICMAP_SUBDOMAINS diff --git a/docs/fr/installation.html b/docs/fr/installation.html index 29093f7f..60609fe6 100644 --- a/docs/fr/installation.html +++ b/docs/fr/installation.html @@ -516,7 +516,7 @@
défaut:
-

https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

+

https://tile.openstreetmap.org/{z}/{x}/{y}.png

diff --git a/docsrc/gettext/docs.pot b/docsrc/gettext/docs.pot index 41fb7f26..bf72daaf 100644 --- a/docsrc/gettext/docs.pot +++ b/docsrc/gettext/docs.pot @@ -4413,7 +4413,7 @@ msgid "Since **0.4.9**, it's also used to generate static maps (to keep default msgstr "" #: ../source/installation.rst:193 -msgid "``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png``" +msgid "``https://tile.openstreetmap.org/{z}/{x}/{y}.png``" msgstr "" #: ../source/installation.rst:200 diff --git a/docsrc/locales/en/LC_MESSAGES/docs.po b/docsrc/locales/en/LC_MESSAGES/docs.po index d87b6da8..2d9b9035 100644 --- a/docsrc/locales/en/LC_MESSAGES/docs.po +++ b/docsrc/locales/en/LC_MESSAGES/docs.po @@ -4582,7 +4582,7 @@ msgid "" msgstr "" #: ../source/installation.rst:193 -msgid "``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png``" +msgid "``https://tile.openstreetmap.org/{z}/{x}/{y}.png``" msgstr "" #: ../source/installation.rst:200 diff --git a/docsrc/locales/fr/LC_MESSAGES/docs.po b/docsrc/locales/fr/LC_MESSAGES/docs.po index 203b75b9..a55fd3f7 100644 --- a/docsrc/locales/fr/LC_MESSAGES/docs.po +++ b/docsrc/locales/fr/LC_MESSAGES/docs.po @@ -5017,7 +5017,7 @@ msgstr "" "`DEFAULT_STATICMAP `__)" #: ../source/installation.rst:193 -msgid "``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png``" +msgid "``https://tile.openstreetmap.org/{z}/{x}/{y}.png``" msgstr "" #: ../source/installation.rst:200 diff --git a/docsrc/source/installation.rst b/docsrc/source/installation.rst index 8fdefd66..b919e95b 100644 --- a/docsrc/source/installation.rst +++ b/docsrc/source/installation.rst @@ -190,7 +190,7 @@ deployment method. | Tile server URL (with api key if needed), see `Map tile server `__. | Since **0.4.9**, it's also used to generate static maps (to keep default server, see `DEFAULT_STATICMAP `__) - :default: ``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`` + :default: ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` .. envvar:: STATICMAP_SUBDOMAINS diff --git a/fittrackee/config.py b/fittrackee/config.py index 8520bc49..1f70d123 100644 --- a/fittrackee/config.py +++ b/fittrackee/config.py @@ -41,7 +41,7 @@ class BaseConfig: TILE_SERVER = { 'URL': os.environ.get( 'TILE_SERVER_URL', - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', ), 'ATTRIBUTION': os.environ.get( 'MAP_ATTRIBUTION', diff --git a/fittrackee/tests/workouts/test_utils/test_maps.py b/fittrackee/tests/workouts/test_utils/test_maps.py index 672bd0d2..7dc952f0 100644 --- a/fittrackee/tests/workouts/test_utils/test_maps.py +++ b/fittrackee/tests/workouts/test_utils/test_maps.py @@ -12,12 +12,12 @@ class TestGetStaticMapTileServerUrl: 'expected_tile_server_url', [ ( - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', '', 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', ), ( - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', 'a', 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png', ), @@ -52,7 +52,7 @@ class TestGetStaticMapTileServerUrl: def test_it_returns_tile_server_url_with_random_subdomain(self) -> None: """in case multiple subdomains are provided""" tile_config = { - 'URL': 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'URL': 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', 'STATICMAP_SUBDOMAINS': 'a,b,c', } From abedd03d051cd31201bac2ab46b925ed8684e360 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Sep 2023 09:19:49 +0200 Subject: [PATCH 4/8] API - fix tests --- .../tests/workouts/test_utils/test_maps.py | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/fittrackee/tests/workouts/test_utils/test_maps.py b/fittrackee/tests/workouts/test_utils/test_maps.py index 7dc952f0..6b696f1d 100644 --- a/fittrackee/tests/workouts/test_utils/test_maps.py +++ b/fittrackee/tests/workouts/test_utils/test_maps.py @@ -11,16 +11,7 @@ class TestGetStaticMapTileServerUrl: 'input_tile_server_subdomains,' 'expected_tile_server_url', [ - ( - 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', - '', - 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', - ), - ( - 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', - 'a', - 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png', - ), + # tile server without subdomain ( 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', '', @@ -31,6 +22,21 @@ class TestGetStaticMapTileServerUrl: 'a', 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', ), + # tile server with subdomain + ( + 'https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png', + 'a', + 'https://a.tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png', + ), + ( + 'https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png', + '', + 'https://tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png', + ), ], ) def test_it_returns_tile_server_url( @@ -52,12 +58,15 @@ class TestGetStaticMapTileServerUrl: def test_it_returns_tile_server_url_with_random_subdomain(self) -> None: """in case multiple subdomains are provided""" tile_config = { - 'URL': 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', + 'URL': ( + 'https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png' + ), 'STATICMAP_SUBDOMAINS': 'a,b,c', } with patch('random.choice', return_value='b'): - assert ( - get_static_map_tile_server_url(tile_config) - == 'https://b.tile.openstreetmap.org/{z}/{x}/{y}.png' + assert get_static_map_tile_server_url(tile_config) == ( + 'https://b.tile-cyclosm.openstreetmap.fr/cyclosm/' + '{z}/{x}/{y}.png' ) From 9fcb19a7a0bef89bccf24b2b68a89f7394031060 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Sep 2023 11:11:20 +0200 Subject: [PATCH 5/8] update python deps --- poetry.lock | 260 +++++++++++++++++++++++++------------------------ pyproject.toml | 9 +- 2 files changed, 136 insertions(+), 133 deletions(-) diff --git a/poetry.lock b/poetry.lock index e2efac96..b4b82b4a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,13 +13,13 @@ files = [ [[package]] name = "alembic" -version = "1.11.3" +version = "1.12.0" description = "A database migration tool for SQLAlchemy." optional = false python-versions = ">=3.7" files = [ - {file = "alembic-1.11.3-py3-none-any.whl", hash = "sha256:d6c96c2482740592777c400550a523bc7a9aada4e210cae2e733354ddae6f6f8"}, - {file = "alembic-1.11.3.tar.gz", hash = "sha256:3db4ce81a9072e1b5aa44c2d202add24553182672a12daf21608d6f62a8f9cf9"}, + {file = "alembic-1.12.0-py3-none-any.whl", hash = "sha256:03226222f1cf943deee6c85d9464261a6c710cd19b4fe867a3ad1f25afda610f"}, + {file = "alembic-1.12.0.tar.gz", hash = "sha256:8e7645c32e4f200675e69f0745415335eb59a3663f5feb487abfa0b30c45888b"}, ] [package.dependencies] @@ -166,33 +166,33 @@ lxml = ["lxml"] [[package]] name = "black" -version = "23.7.0" +version = "23.9.1" description = "The uncompromising code formatter." optional = false python-versions = ">=3.8" files = [ - {file = "black-23.7.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:5c4bc552ab52f6c1c506ccae05681fab58c3f72d59ae6e6639e8885e94fe2587"}, - {file = "black-23.7.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:552513d5cd5694590d7ef6f46e1767a4df9af168d449ff767b13b084c020e63f"}, - {file = "black-23.7.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:86cee259349b4448adb4ef9b204bb4467aae74a386bce85d56ba4f5dc0da27be"}, - {file = "black-23.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:501387a9edcb75d7ae8a4412bb8749900386eaef258f1aefab18adddea1936bc"}, - {file = "black-23.7.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb074d8b213749fa1d077d630db0d5f8cc3b2ae63587ad4116e8a436e9bbe995"}, - {file = "black-23.7.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:b5b0ee6d96b345a8b420100b7d71ebfdd19fab5e8301aff48ec270042cd40ac2"}, - {file = "black-23.7.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:893695a76b140881531062d48476ebe4a48f5d1e9388177e175d76234ca247cd"}, - {file = "black-23.7.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:c333286dc3ddca6fdff74670b911cccedacb4ef0a60b34e491b8a67c833b343a"}, - {file = "black-23.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:831d8f54c3a8c8cf55f64d0422ee875eecac26f5f649fb6c1df65316b67c8926"}, - {file = "black-23.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:7f3bf2dec7d541b4619b8ce526bda74a6b0bffc480a163fed32eb8b3c9aed8ad"}, - {file = "black-23.7.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:f9062af71c59c004cd519e2fb8f5d25d39e46d3af011b41ab43b9c74e27e236f"}, - {file = "black-23.7.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:01ede61aac8c154b55f35301fac3e730baf0c9cf8120f65a9cd61a81cfb4a0c3"}, - {file = "black-23.7.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:327a8c2550ddc573b51e2c352adb88143464bb9d92c10416feb86b0f5aee5ff6"}, - {file = "black-23.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1c6022b86f83b632d06f2b02774134def5d4d4f1dac8bef16d90cda18ba28a"}, - {file = "black-23.7.0-cp38-cp38-win_amd64.whl", hash = "sha256:27eb7a0c71604d5de083757fbdb245b1a4fae60e9596514c6ec497eb63f95320"}, - {file = "black-23.7.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:8417dbd2f57b5701492cd46edcecc4f9208dc75529bcf76c514864e48da867d9"}, - {file = "black-23.7.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:47e56d83aad53ca140da0af87678fb38e44fd6bc0af71eebab2d1f59b1acf1d3"}, - {file = "black-23.7.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:25cc308838fe71f7065df53aedd20327969d05671bac95b38fdf37ebe70ac087"}, - {file = "black-23.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:642496b675095d423f9b8448243336f8ec71c9d4d57ec17bf795b67f08132a91"}, - {file = "black-23.7.0-cp39-cp39-win_amd64.whl", hash = "sha256:ad0014efc7acf0bd745792bd0d8857413652979200ab924fbf239062adc12491"}, - {file = "black-23.7.0-py3-none-any.whl", hash = "sha256:9fd59d418c60c0348505f2ddf9609c1e1de8e7493eab96198fc89d9f865e7a96"}, - {file = "black-23.7.0.tar.gz", hash = "sha256:022a582720b0d9480ed82576c920a8c1dde97cc38ff11d8d8859b3bd6ca9eedb"}, + {file = "black-23.9.1-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:d6bc09188020c9ac2555a498949401ab35bb6bf76d4e0f8ee251694664df6301"}, + {file = "black-23.9.1-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:13ef033794029b85dfea8032c9d3b92b42b526f1ff4bf13b2182ce4e917f5100"}, + {file = "black-23.9.1-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:75a2dc41b183d4872d3a500d2b9c9016e67ed95738a3624f4751a0cb4818fe71"}, + {file = "black-23.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13a2e4a93bb8ca74a749b6974925c27219bb3df4d42fc45e948a5d9feb5122b7"}, + {file = "black-23.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:adc3e4442eef57f99b5590b245a328aad19c99552e0bdc7f0b04db6656debd80"}, + {file = "black-23.9.1-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:8431445bf62d2a914b541da7ab3e2b4f3bc052d2ccbf157ebad18ea126efb91f"}, + {file = "black-23.9.1-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:8fc1ddcf83f996247505db6b715294eba56ea9372e107fd54963c7553f2b6dfe"}, + {file = "black-23.9.1-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:7d30ec46de88091e4316b17ae58bbbfc12b2de05e069030f6b747dfc649ad186"}, + {file = "black-23.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:031e8c69f3d3b09e1aa471a926a1eeb0b9071f80b17689a655f7885ac9325a6f"}, + {file = "black-23.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:538efb451cd50f43aba394e9ec7ad55a37598faae3348d723b59ea8e91616300"}, + {file = "black-23.9.1-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:638619a559280de0c2aa4d76f504891c9860bb8fa214267358f0a20f27c12948"}, + {file = "black-23.9.1-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:a732b82747235e0542c03bf352c126052c0fbc458d8a239a94701175b17d4855"}, + {file = "black-23.9.1-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:cf3a4d00e4cdb6734b64bf23cd4341421e8953615cba6b3670453737a72ec204"}, + {file = "black-23.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf99f3de8b3273a8317681d8194ea222f10e0133a24a7548c73ce44ea1679377"}, + {file = "black-23.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:14f04c990259576acd093871e7e9b14918eb28f1866f91968ff5524293f9c573"}, + {file = "black-23.9.1-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:c619f063c2d68f19b2d7270f4cf3192cb81c9ec5bc5ba02df91471d0b88c4c5c"}, + {file = "black-23.9.1-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:6a3b50e4b93f43b34a9d3ef00d9b6728b4a722c997c99ab09102fd5efdb88325"}, + {file = "black-23.9.1-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:c46767e8df1b7beefb0899c4a95fb43058fa8500b6db144f4ff3ca38eb2f6393"}, + {file = "black-23.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50254ebfa56aa46a9fdd5d651f9637485068a1adf42270148cd101cdf56e0ad9"}, + {file = "black-23.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:403397c033adbc45c2bd41747da1f7fc7eaa44efbee256b53842470d4ac5a70f"}, + {file = "black-23.9.1-py3-none-any.whl", hash = "sha256:6ccd59584cc834b6d127628713e4b6b968e5f79572da66284532525a042549f9"}, + {file = "black-23.9.1.tar.gz", hash = "sha256:24b6b3ff5c6d9ea08a8888f6977eae858e1f340d7260cf56d70a49823236b62d"}, ] [package.dependencies] @@ -202,7 +202,7 @@ packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} +typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -433,63 +433,63 @@ test = ["flake8 (==3.7.8)", "hypothesis (==3.55.3)"] [[package]] name = "coverage" -version = "7.3.0" +version = "7.3.1" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.8" files = [ - {file = "coverage-7.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:db76a1bcb51f02b2007adacbed4c88b6dee75342c37b05d1822815eed19edee5"}, - {file = "coverage-7.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c02cfa6c36144ab334d556989406837336c1d05215a9bdf44c0bc1d1ac1cb637"}, - {file = "coverage-7.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:477c9430ad5d1b80b07f3c12f7120eef40bfbf849e9e7859e53b9c93b922d2af"}, - {file = "coverage-7.3.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ce2ee86ca75f9f96072295c5ebb4ef2a43cecf2870b0ca5e7a1cbdd929cf67e1"}, - {file = "coverage-7.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:68d8a0426b49c053013e631c0cdc09b952d857efa8f68121746b339912d27a12"}, - {file = "coverage-7.3.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b3eb0c93e2ea6445b2173da48cb548364f8f65bf68f3d090404080d338e3a689"}, - {file = "coverage-7.3.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:90b6e2f0f66750c5a1178ffa9370dec6c508a8ca5265c42fbad3ccac210a7977"}, - {file = "coverage-7.3.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:96d7d761aea65b291a98c84e1250cd57b5b51726821a6f2f8df65db89363be51"}, - {file = "coverage-7.3.0-cp310-cp310-win32.whl", hash = "sha256:63c5b8ecbc3b3d5eb3a9d873dec60afc0cd5ff9d9f1c75981d8c31cfe4df8527"}, - {file = "coverage-7.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:97c44f4ee13bce914272589b6b41165bbb650e48fdb7bd5493a38bde8de730a1"}, - {file = "coverage-7.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:74c160285f2dfe0acf0f72d425f3e970b21b6de04157fc65adc9fd07ee44177f"}, - {file = "coverage-7.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b543302a3707245d454fc49b8ecd2c2d5982b50eb63f3535244fd79a4be0c99d"}, - {file = "coverage-7.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad0f87826c4ebd3ef484502e79b39614e9c03a5d1510cfb623f4a4a051edc6fd"}, - {file = "coverage-7.3.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:13c6cbbd5f31211d8fdb477f0f7b03438591bdd077054076eec362cf2207b4a7"}, - {file = "coverage-7.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fac440c43e9b479d1241fe9d768645e7ccec3fb65dc3a5f6e90675e75c3f3e3a"}, - {file = "coverage-7.3.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:3c9834d5e3df9d2aba0275c9f67989c590e05732439b3318fa37a725dff51e74"}, - {file = "coverage-7.3.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:4c8e31cf29b60859876474034a83f59a14381af50cbe8a9dbaadbf70adc4b214"}, - {file = "coverage-7.3.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:7a9baf8e230f9621f8e1d00c580394a0aa328fdac0df2b3f8384387c44083c0f"}, - {file = "coverage-7.3.0-cp311-cp311-win32.whl", hash = "sha256:ccc51713b5581e12f93ccb9c5e39e8b5d4b16776d584c0f5e9e4e63381356482"}, - {file = "coverage-7.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:887665f00ea4e488501ba755a0e3c2cfd6278e846ada3185f42d391ef95e7e70"}, - {file = "coverage-7.3.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d000a739f9feed900381605a12a61f7aaced6beae832719ae0d15058a1e81c1b"}, - {file = "coverage-7.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:59777652e245bb1e300e620ce2bef0d341945842e4eb888c23a7f1d9e143c446"}, - {file = "coverage-7.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c9737bc49a9255d78da085fa04f628a310c2332b187cd49b958b0e494c125071"}, - {file = "coverage-7.3.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5247bab12f84a1d608213b96b8af0cbb30d090d705b6663ad794c2f2a5e5b9fe"}, - {file = "coverage-7.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2ac9a1de294773b9fa77447ab7e529cf4fe3910f6a0832816e5f3d538cfea9a"}, - {file = "coverage-7.3.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:85b7335c22455ec12444cec0d600533a238d6439d8d709d545158c1208483873"}, - {file = "coverage-7.3.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:36ce5d43a072a036f287029a55b5c6a0e9bd73db58961a273b6dc11a2c6eb9c2"}, - {file = "coverage-7.3.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:211a4576e984f96d9fce61766ffaed0115d5dab1419e4f63d6992b480c2bd60b"}, - {file = "coverage-7.3.0-cp312-cp312-win32.whl", hash = "sha256:56afbf41fa4a7b27f6635bc4289050ac3ab7951b8a821bca46f5b024500e6321"}, - {file = "coverage-7.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:7f297e0c1ae55300ff688568b04ff26b01c13dfbf4c9d2b7d0cb688ac60df479"}, - {file = "coverage-7.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ac0dec90e7de0087d3d95fa0533e1d2d722dcc008bc7b60e1143402a04c117c1"}, - {file = "coverage-7.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:438856d3f8f1e27f8e79b5410ae56650732a0dcfa94e756df88c7e2d24851fcd"}, - {file = "coverage-7.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1084393c6bda8875c05e04fce5cfe1301a425f758eb012f010eab586f1f3905e"}, - {file = "coverage-7.3.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49ab200acf891e3dde19e5aa4b0f35d12d8b4bd805dc0be8792270c71bd56c54"}, - {file = "coverage-7.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a67e6bbe756ed458646e1ef2b0778591ed4d1fcd4b146fc3ba2feb1a7afd4254"}, - {file = "coverage-7.3.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8f39c49faf5344af36042b293ce05c0d9004270d811c7080610b3e713251c9b0"}, - {file = "coverage-7.3.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:7df91fb24c2edaabec4e0eee512ff3bc6ec20eb8dccac2e77001c1fe516c0c84"}, - {file = "coverage-7.3.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:34f9f0763d5fa3035a315b69b428fe9c34d4fc2f615262d6be3d3bf3882fb985"}, - {file = "coverage-7.3.0-cp38-cp38-win32.whl", hash = "sha256:bac329371d4c0d456e8d5f38a9b0816b446581b5f278474e416ea0c68c47dcd9"}, - {file = "coverage-7.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:b859128a093f135b556b4765658d5d2e758e1fae3e7cc2f8c10f26fe7005e543"}, - {file = "coverage-7.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fc0ed8d310afe013db1eedd37176d0839dc66c96bcfcce8f6607a73ffea2d6ba"}, - {file = "coverage-7.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61260ec93f99f2c2d93d264b564ba912bec502f679793c56f678ba5251f0393"}, - {file = "coverage-7.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:97af9554a799bd7c58c0179cc8dbf14aa7ab50e1fd5fa73f90b9b7215874ba28"}, - {file = "coverage-7.3.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3558e5b574d62f9c46b76120a5c7c16c4612dc2644c3d48a9f4064a705eaee95"}, - {file = "coverage-7.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:37d5576d35fcb765fca05654f66aa71e2808d4237d026e64ac8b397ffa66a56a"}, - {file = "coverage-7.3.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:07ea61bcb179f8f05ffd804d2732b09d23a1238642bf7e51dad62082b5019b34"}, - {file = "coverage-7.3.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:80501d1b2270d7e8daf1b64b895745c3e234289e00d5f0e30923e706f110334e"}, - {file = "coverage-7.3.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4eddd3153d02204f22aef0825409091a91bf2a20bce06fe0f638f5c19a85de54"}, - {file = "coverage-7.3.0-cp39-cp39-win32.whl", hash = "sha256:2d22172f938455c156e9af2612650f26cceea47dc86ca048fa4e0b2d21646ad3"}, - {file = "coverage-7.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:60f64e2007c9144375dd0f480a54d6070f00bb1a28f65c408370544091c9bc9e"}, - {file = "coverage-7.3.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:5492a6ce3bdb15c6ad66cb68a0244854d9917478877a25671d70378bdc8562d0"}, - {file = "coverage-7.3.0.tar.gz", hash = "sha256:49dbb19cdcafc130f597d9e04a29d0a032ceedf729e41b181f51cd170e6ee865"}, + {file = "coverage-7.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cd0f7429ecfd1ff597389907045ff209c8fdb5b013d38cfa7c60728cb484b6e3"}, + {file = "coverage-7.3.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:966f10df9b2b2115da87f50f6a248e313c72a668248be1b9060ce935c871f276"}, + {file = "coverage-7.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0575c37e207bb9b98b6cf72fdaaa18ac909fb3d153083400c2d48e2e6d28bd8e"}, + {file = "coverage-7.3.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:245c5a99254e83875c7fed8b8b2536f040997a9b76ac4c1da5bff398c06e860f"}, + {file = "coverage-7.3.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c96dd7798d83b960afc6c1feb9e5af537fc4908852ef025600374ff1a017392"}, + {file = "coverage-7.3.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:de30c1aa80f30af0f6b2058a91505ea6e36d6535d437520067f525f7df123887"}, + {file = "coverage-7.3.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:50dd1e2dd13dbbd856ffef69196781edff26c800a74f070d3b3e3389cab2600d"}, + {file = "coverage-7.3.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b9c0c19f70d30219113b18fe07e372b244fb2a773d4afde29d5a2f7930765136"}, + {file = "coverage-7.3.1-cp310-cp310-win32.whl", hash = "sha256:770f143980cc16eb601ccfd571846e89a5fe4c03b4193f2e485268f224ab602f"}, + {file = "coverage-7.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:cdd088c00c39a27cfa5329349cc763a48761fdc785879220d54eb785c8a38520"}, + {file = "coverage-7.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:74bb470399dc1989b535cb41f5ca7ab2af561e40def22d7e188e0a445e7639e3"}, + {file = "coverage-7.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:025ded371f1ca280c035d91b43252adbb04d2aea4c7105252d3cbc227f03b375"}, + {file = "coverage-7.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a6191b3a6ad3e09b6cfd75b45c6aeeffe7e3b0ad46b268345d159b8df8d835f9"}, + {file = "coverage-7.3.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7eb0b188f30e41ddd659a529e385470aa6782f3b412f860ce22b2491c89b8593"}, + {file = "coverage-7.3.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75c8f0df9dfd8ff745bccff75867d63ef336e57cc22b2908ee725cc552689ec8"}, + {file = "coverage-7.3.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:7eb3cd48d54b9bd0e73026dedce44773214064be93611deab0b6a43158c3d5a0"}, + {file = "coverage-7.3.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:ac3c5b7e75acac31e490b7851595212ed951889918d398b7afa12736c85e13ce"}, + {file = "coverage-7.3.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:5b4ee7080878077af0afa7238df1b967f00dc10763f6e1b66f5cced4abebb0a3"}, + {file = "coverage-7.3.1-cp311-cp311-win32.whl", hash = "sha256:229c0dd2ccf956bf5aeede7e3131ca48b65beacde2029f0361b54bf93d36f45a"}, + {file = "coverage-7.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:c6f55d38818ca9596dc9019eae19a47410d5322408140d9a0076001a3dcb938c"}, + {file = "coverage-7.3.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5289490dd1c3bb86de4730a92261ae66ea8d44b79ed3cc26464f4c2cde581fbc"}, + {file = "coverage-7.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ca833941ec701fda15414be400c3259479bfde7ae6d806b69e63b3dc423b1832"}, + {file = "coverage-7.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cd694e19c031733e446c8024dedd12a00cda87e1c10bd7b8539a87963685e969"}, + {file = "coverage-7.3.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aab8e9464c00da5cb9c536150b7fbcd8850d376d1151741dd0d16dfe1ba4fd26"}, + {file = "coverage-7.3.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87d38444efffd5b056fcc026c1e8d862191881143c3aa80bb11fcf9dca9ae204"}, + {file = "coverage-7.3.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:8a07b692129b8a14ad7a37941a3029c291254feb7a4237f245cfae2de78de037"}, + {file = "coverage-7.3.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:2829c65c8faaf55b868ed7af3c7477b76b1c6ebeee99a28f59a2cb5907a45760"}, + {file = "coverage-7.3.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:1f111a7d85658ea52ffad7084088277135ec5f368457275fc57f11cebb15607f"}, + {file = "coverage-7.3.1-cp312-cp312-win32.whl", hash = "sha256:c397c70cd20f6df7d2a52283857af622d5f23300c4ca8e5bd8c7a543825baa5a"}, + {file = "coverage-7.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:5ae4c6da8b3d123500f9525b50bf0168023313963e0e2e814badf9000dd6ef92"}, + {file = "coverage-7.3.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ca70466ca3a17460e8fc9cea7123c8cbef5ada4be3140a1ef8f7b63f2f37108f"}, + {file = "coverage-7.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f2781fd3cabc28278dc982a352f50c81c09a1a500cc2086dc4249853ea96b981"}, + {file = "coverage-7.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6407424621f40205bbe6325686417e5e552f6b2dba3535dd1f90afc88a61d465"}, + {file = "coverage-7.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:04312b036580ec505f2b77cbbdfb15137d5efdfade09156961f5277149f5e344"}, + {file = "coverage-7.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac9ad38204887349853d7c313f53a7b1c210ce138c73859e925bc4e5d8fc18e7"}, + {file = "coverage-7.3.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:53669b79f3d599da95a0afbef039ac0fadbb236532feb042c534fbb81b1a4e40"}, + {file = "coverage-7.3.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:614f1f98b84eb256e4f35e726bfe5ca82349f8dfa576faabf8a49ca09e630086"}, + {file = "coverage-7.3.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:f1a317fdf5c122ad642db8a97964733ab7c3cf6009e1a8ae8821089993f175ff"}, + {file = "coverage-7.3.1-cp38-cp38-win32.whl", hash = "sha256:defbbb51121189722420a208957e26e49809feafca6afeef325df66c39c4fdb3"}, + {file = "coverage-7.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:f4f456590eefb6e1b3c9ea6328c1e9fa0f1006e7481179d749b3376fc793478e"}, + {file = "coverage-7.3.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f12d8b11a54f32688b165fd1a788c408f927b0960984b899be7e4c190ae758f1"}, + {file = "coverage-7.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f09195dda68d94a53123883de75bb97b0e35f5f6f9f3aa5bf6e496da718f0cb6"}, + {file = "coverage-7.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c6601a60318f9c3945be6ea0f2a80571f4299b6801716f8a6e4846892737ebe4"}, + {file = "coverage-7.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07d156269718670d00a3b06db2288b48527fc5f36859425ff7cec07c6b367745"}, + {file = "coverage-7.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:636a8ac0b044cfeccae76a36f3b18264edcc810a76a49884b96dd744613ec0b7"}, + {file = "coverage-7.3.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5d991e13ad2ed3aced177f524e4d670f304c8233edad3210e02c465351f785a0"}, + {file = "coverage-7.3.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:586649ada7cf139445da386ab6f8ef00e6172f11a939fc3b2b7e7c9082052fa0"}, + {file = "coverage-7.3.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4aba512a15a3e1e4fdbfed2f5392ec221434a614cc68100ca99dcad7af29f3f8"}, + {file = "coverage-7.3.1-cp39-cp39-win32.whl", hash = "sha256:6bc6f3f4692d806831c136c5acad5ccedd0262aa44c087c46b7101c77e139140"}, + {file = "coverage-7.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:553d7094cb27db58ea91332e8b5681bac107e7242c23f7629ab1316ee73c4981"}, + {file = "coverage-7.3.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:220eb51f5fb38dfdb7e5d54284ca4d0cd70ddac047d750111a68ab1798945194"}, + {file = "coverage-7.3.1.tar.gz", hash = "sha256:6cb7fe1581deb67b782c153136541e20901aa312ceedaf1467dcb35255787952"}, ] [package.dependencies] @@ -641,13 +641,13 @@ pyflakes = ">=3.1.0,<3.2.0" [[package]] name = "flask" -version = "2.3.2" +version = "2.3.3" description = "A simple framework for building complex web applications." optional = false python-versions = ">=3.8" files = [ - {file = "Flask-2.3.2-py3-none-any.whl", hash = "sha256:77fd4e1249d8c9923de34907236b747ced06e5467ecac1a7bb7115ae0e9670b0"}, - {file = "Flask-2.3.2.tar.gz", hash = "sha256:8c2f9abd47a9e8df7f0c3f091ce9497d011dc3b31effcf4c85a6e2b50f4114ef"}, + {file = "flask-2.3.3-py3-none-any.whl", hash = "sha256:f69fcd559dc907ed196ab9df0e48471709175e696d6e698dd4dbe940f96ce66b"}, + {file = "flask-2.3.3.tar.gz", hash = "sha256:09c347a92aa7ff4a8e7f3206795f30d826654baf38b873d0744cd571ca609efc"}, ] [package.dependencies] @@ -656,7 +656,7 @@ click = ">=8.1.3" importlib-metadata = {version = ">=3.6.0", markers = "python_version < \"3.10\""} itsdangerous = ">=2.1.2" Jinja2 = ">=3.1.2" -Werkzeug = ">=2.3.3" +Werkzeug = ">=2.3.7" [package.extras] async = ["asgiref (>=3.2)"] @@ -693,13 +693,13 @@ dramatiq = ">=1.5,<2.0" [[package]] name = "flask-limiter" -version = "3.3.1" +version = "3.5.0" description = "Rate limiting for flask applications" optional = false python-versions = ">=3.7" files = [ - {file = "Flask-Limiter-3.3.1.tar.gz", hash = "sha256:2b99fec0cfc44f490bd729da52bb89c5c4158f38812d0f3854c01d0a83664923"}, - {file = "Flask_Limiter-3.3.1-py3-none-any.whl", hash = "sha256:3451fb8d84f50007753b799831c57c59c1eb3432cc9754cc4b7e41a88d8bdf51"}, + {file = "Flask-Limiter-3.5.0.tar.gz", hash = "sha256:13a3491b994c49f7cb4706587a38ca47e8162b576530472df38be68104f299c0"}, + {file = "Flask_Limiter-3.5.0-py3-none-any.whl", hash = "sha256:dbda4174f44e6cb858c6eb75e7488186f2977dd5d33d7028ba1aabf179de1bee"}, ] [package.dependencies] @@ -719,13 +719,13 @@ redis = ["limits[redis]"] [[package]] name = "flask-migrate" -version = "4.0.4" +version = "4.0.5" description = "SQLAlchemy database migrations for Flask applications using Alembic." optional = false python-versions = ">=3.6" files = [ - {file = "Flask-Migrate-4.0.4.tar.gz", hash = "sha256:73293d40b10ac17736e715b377e7b7bde474cb8105165d77474df4c3619b10b3"}, - {file = "Flask_Migrate-4.0.4-py3-none-any.whl", hash = "sha256:77580f27ab39bc68be4906a43c56d7674b45075bc4f883b1d0b985db5164d58f"}, + {file = "Flask-Migrate-4.0.5.tar.gz", hash = "sha256:d3f437a8b5f3849d1bb1b60e1b818efc564c66e3fefe90b62e5db08db295e1b1"}, + {file = "Flask_Migrate-4.0.5-py3-none-any.whl", hash = "sha256:613a2df703998e78716cace68cd83972960834424457f5b67f56e74fff950aef"}, ] [package.dependencies] @@ -764,13 +764,13 @@ python-dateutil = ">=2.7" [[package]] name = "furo" -version = "2023.8.19" +version = "2023.9.10" description = "A clean customisable Sphinx documentation theme." optional = false python-versions = ">=3.8" files = [ - {file = "furo-2023.8.19-py3-none-any.whl", hash = "sha256:12f99f87a1873b6746228cfde18f77244e6c1ffb85d7fed95e638aae70d80590"}, - {file = "furo-2023.8.19.tar.gz", hash = "sha256:e671ee638ab3f1b472f4033b0167f502ab407830e0db0f843b1c1028119c9cd1"}, + {file = "furo-2023.9.10-py3-none-any.whl", hash = "sha256:513092538537dc5c596691da06e3c370714ec99bc438680edc1debffb73e5bfc"}, + {file = "furo-2023.9.10.tar.gz", hash = "sha256:5707530a476d2a63b8cad83b4f961f3739a69f4b058bcf38a03a39fa537195b2"}, ] [package.dependencies] @@ -795,18 +795,21 @@ smmap = ">=3.0.1,<6" [[package]] name = "gitpython" -version = "3.1.32" +version = "3.1.36" description = "GitPython is a Python library used to interact with Git repositories" optional = false python-versions = ">=3.7" files = [ - {file = "GitPython-3.1.32-py3-none-any.whl", hash = "sha256:e3d59b1c2c6ebb9dfa7a184daf3b6dd4914237e7488a1730a6d8f6f5d0b4187f"}, - {file = "GitPython-3.1.32.tar.gz", hash = "sha256:8d9b8cb1e80b9735e8717c9362079d3ce4c6e5ddeebedd0361b228c3a67a62f6"}, + {file = "GitPython-3.1.36-py3-none-any.whl", hash = "sha256:8d22b5cfefd17c79914226982bb7851d6ade47545b1735a9d010a2a4c26d8388"}, + {file = "GitPython-3.1.36.tar.gz", hash = "sha256:4bb0c2a6995e85064140d31a33289aa5dce80133a23d36fcd372d716c54d3ebf"}, ] [package.dependencies] gitdb = ">=4.0.1,<5" +[package.extras] +test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mypy", "pre-commit", "pytest", "pytest-cov", "pytest-sugar", "virtualenv"] + [[package]] name = "gpxpy" version = "1.5.0" @@ -1052,25 +1055,24 @@ i18n = ["Babel (>=2.7)"] [[package]] name = "limits" -version = "3.5.0" +version = "3.6.0" description = "Rate limiting utilities" optional = false python-versions = ">=3.7" files = [ - {file = "limits-3.5.0-py3-none-any.whl", hash = "sha256:3ad525faeb7e1c63859ca1cae34c9ed22a8f22c9ea9d96e2f412869f6b36beb9"}, - {file = "limits-3.5.0.tar.gz", hash = "sha256:b728c9ab3c6163997b1d11a51d252d951efd13f0d248ea2403383952498f8a22"}, + {file = "limits-3.6.0-py3-none-any.whl", hash = "sha256:32fe29a398352c71bc43d53773117d47e22c5ea4200aef28d3f5fdee10334cd7"}, + {file = "limits-3.6.0.tar.gz", hash = "sha256:57a9c69fd37ad1e4fa3886dff8d035227e1f6af87f47e9118627e72cf1ced3bf"}, ] [package.dependencies] deprecated = ">=1.2" importlib-resources = ">=1.3" packaging = ">=21,<24" -redis = {version = ">3,<4.5.2 || >4.5.2,<4.5.3 || >4.5.3,<5.0.0", optional = true, markers = "extra == \"redis\""} -setuptools = "*" +redis = {version = ">3,<4.5.2 || >4.5.2,<4.5.3 || >4.5.3,<6.0.0", optional = true, markers = "extra == \"redis\""} typing-extensions = "*" [package.extras] -all = ["aetcd", "coredis (>=3.4.0,<5)", "emcache (>=0.6.1)", "emcache (>=1)", "etcd3", "motor (>=3,<4)", "pymemcache (>3,<5.0.0)", "pymongo (>4.1,<5)", "redis (>3,!=4.5.2,!=4.5.3,<5.0.0)", "redis (>=4.2.0,!=4.5.2,!=4.5.3)"] +all = ["aetcd", "coredis (>=3.4.0,<5)", "emcache (>=0.6.1)", "emcache (>=1)", "etcd3", "motor (>=3,<4)", "pymemcache (>3,<5.0.0)", "pymongo (>4.1,<5)", "redis (>3,!=4.5.2,!=4.5.3,<6.0.0)", "redis (>=4.2.0,!=4.5.2,!=4.5.3)"] async-etcd = ["aetcd"] async-memcached = ["emcache (>=0.6.1)", "emcache (>=1)"] async-mongodb = ["motor (>=3,<4)"] @@ -1078,7 +1080,7 @@ async-redis = ["coredis (>=3.4.0,<5)"] etcd = ["etcd3"] memcached = ["pymemcache (>3,<5.0.0)"] mongodb = ["pymongo (>4.1,<5)"] -redis = ["redis (>3,!=4.5.2,!=4.5.3,<5.0.0)"] +redis = ["redis (>3,!=4.5.2,!=4.5.3,<6.0.0)"] rediscluster = ["redis (>=4.2.0,!=4.5.2,!=4.5.3)"] [[package]] @@ -1409,13 +1411,13 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-co [[package]] name = "pluggy" -version = "1.2.0" +version = "1.3.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pluggy-1.2.0-py3-none-any.whl", hash = "sha256:c2fd55a7d7a3863cba1a013e4e2414658b1d07b6bc57b3919e0c63c9abb99849"}, - {file = "pluggy-1.2.0.tar.gz", hash = "sha256:d12f0c4b579b15f5e054301bb226ee85eeeba08ffec228092f8defbaa3a4c4b3"}, + {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, + {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, ] [package.extras] @@ -1638,13 +1640,13 @@ files = [ [[package]] name = "pytest" -version = "7.4.0" +version = "7.4.2" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.7" files = [ - {file = "pytest-7.4.0-py3-none-any.whl", hash = "sha256:78bf16451a2eb8c7a2ea98e32dc119fd2aa758f1d5d66dbf0a59d69a3969df32"}, - {file = "pytest-7.4.0.tar.gz", hash = "sha256:b4bf8c45bd59934ed84001ad51e11b4ee40d40a1229d2c79f9c592b0a3f6bd8a"}, + {file = "pytest-7.4.2-py3-none-any.whl", hash = "sha256:1d881c6124e08ff0a1bb75ba3ec0bfd8b5354a01c194ddd5a0a870a48d99b002"}, + {file = "pytest-7.4.2.tar.gz", hash = "sha256:a766259cfab564a2ad52cb1aae1b881a75c3eb7e34ca3779697c23ed47c47069"}, ] [package.dependencies] @@ -1850,13 +1852,13 @@ six = ">=1.5" [[package]] name = "pytz" -version = "2023.3" +version = "2023.3.post1" description = "World timezone definitions, modern and historical" optional = false python-versions = "*" files = [ - {file = "pytz-2023.3-py2.py3-none-any.whl", hash = "sha256:a151b3abb88eda1d4e34a9814df37de2a80e301e68ba0fd856fb9b46bfbbbffb"}, - {file = "pytz-2023.3.tar.gz", hash = "sha256:1d8ce29db189191fb55338ee6d0387d82ab59f3d00eac103412d64e0ebd0c588"}, + {file = "pytz-2023.3.post1-py2.py3-none-any.whl", hash = "sha256:ce42d816b81b68506614c11e8937d3aa9e41007ceb50bfdcb0749b921bf646c7"}, + {file = "pytz-2023.3.post1.tar.gz", hash = "sha256:7b4fddbeb94a1eba4b557da24f19fdf9db575192544270a9101d8509f9f43d7b"}, ] [[package]] @@ -2001,19 +2003,19 @@ urllib3 = {version = ">=1.26,<2.0", extras = ["socks"]} [[package]] name = "setuptools" -version = "68.1.2" +version = "68.2.2" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "setuptools-68.1.2-py3-none-any.whl", hash = "sha256:3d8083eed2d13afc9426f227b24fd1659489ec107c0e86cec2ffdde5c92e790b"}, - {file = "setuptools-68.1.2.tar.gz", hash = "sha256:3d4dfa6d95f1b101d695a6160a7626e15583af71a5f52176efa5d39a054d475d"}, + {file = "setuptools-68.2.2-py3-none-any.whl", hash = "sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a"}, + {file = "setuptools-68.2.2.tar.gz", hash = "sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"}, ] [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5,<=7.1.2)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (==0.8.3)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] -testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.1)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] [[package]] name = "shortuuid" @@ -2083,13 +2085,13 @@ files = [ [[package]] name = "soupsieve" -version = "2.4.1" +version = "2.5" description = "A modern CSS selector implementation for Beautiful Soup." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "soupsieve-2.4.1-py3-none-any.whl", hash = "sha256:1c1bfee6819544a3447586c889157365a27e10d88cde3ad3da0cf0ddf646feb8"}, - {file = "soupsieve-2.4.1.tar.gz", hash = "sha256:89d12b2d5dfcd2c9e8c22326da9d9aa9cb3dfab0a83a024f05704076ee8d35ea"}, + {file = "soupsieve-2.5-py3-none-any.whl", hash = "sha256:eaa337ff55a1579b6549dc679565eac1e3d000563bcb1c8ab0d0fefbc0c2cdc7"}, + {file = "soupsieve-2.5.tar.gz", hash = "sha256:5663d5a7b3bfaeee0bc4372e7fc48f9cff4940b3eec54a6451cc5299f1097690"}, ] [[package]] @@ -2444,13 +2446,13 @@ sortedcontainers = "*" [[package]] name = "trio-websocket" -version = "0.10.3" +version = "0.10.4" description = "WebSocket library for Trio" optional = false python-versions = ">=3.7" files = [ - {file = "trio-websocket-0.10.3.tar.gz", hash = "sha256:1a748604ad906a7dcab9a43c6eb5681e37de4793ba0847ef0bc9486933ed027b"}, - {file = "trio_websocket-0.10.3-py3-none-any.whl", hash = "sha256:a9937d48e8132ebf833019efde2a52ca82d223a30a7ea3e8d60a7d28f75a4e3a"}, + {file = "trio-websocket-0.10.4.tar.gz", hash = "sha256:e66b3db3e2453017431dfbd352081006654e1241c2a6800dc2f43d7df54d55c5"}, + {file = "trio_websocket-0.10.4-py3-none-any.whl", hash = "sha256:c7a620c4013c34b7e4477d89fe76695da1e455e4510a8d7ae13f81c632bdce1d"}, ] [package.dependencies] @@ -2496,13 +2498,13 @@ files = [ [[package]] name = "types-redis" -version = "4.6.0.4" +version = "4.6.0.6" description = "Typing stubs for redis" optional = false python-versions = "*" files = [ - {file = "types-redis-4.6.0.4.tar.gz", hash = "sha256:c475a9d3cf73dd696c3887d30644323fc56f5e00af96151035b3b5b52875c9b3"}, - {file = "types_redis-4.6.0.4-py3-none-any.whl", hash = "sha256:03a1e1659ae4d8f6543bc2b8b11e94b1ee53937f313b1dc6f67dc7bde7d38fe0"}, + {file = "types-redis-4.6.0.6.tar.gz", hash = "sha256:7865a843802937ab2ddca33579c4e255bfe73f87af85824ead7a6729ba92fc52"}, + {file = "types_redis-4.6.0.6-py3-none-any.whl", hash = "sha256:e0e9dcc530623db3a41ec058ccefdcd5c7582557f02ab5f7aa9a27fe10a78d7e"}, ] [package.dependencies] @@ -2708,4 +2710,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "10dae051440d5e443be4e109e2287fa4fc38da7380b8385157f1850c033add3d" +content-hash = "ddd3af7e6c44d1de854cc0844025684376f0d332a706fe95289de3d8bc4086e3" diff --git a/pyproject.toml b/pyproject.toml index 019514de..09cc5df3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,10 +28,10 @@ authlib = "=1.2.1" babel = "^2.11.0" click = "=8.1.3" dramatiq = {version = "^1.14", extras = ["redis"]} -flask = "^2.2" +flask = "^2.3" flask-bcrypt = "^1.0" flask-dramatiq = "^0.6" -flask-limiter = {version = "^3.3", extras = ["redis"]} +flask-limiter = {version = "^3.5", extras = ["redis"]} flask-migrate = "^4.0" gpxpy = "=1.5.0" gunicorn = "^21.0" @@ -47,14 +47,15 @@ ua-parser = "^0.18.0" [tool.poetry.group.dev.dependencies] bandit = "^1.7.5" -black = "^23.7" +black = "^23.9" flake8 = "^6.1" # requires Python >=3.8.1 freezegun = "^1.2" -furo = "^2023.8" +furo = "^2023.9" mypy = "^1.5" pytest = "^7.4" pytest-black = "^0.3" pytest-cov = "^4.1" +pytest-html = "3.2.0" pytest-isort = "^3.1" pytest-runner = "^6.0" pytest-selenium = "^4.0" From 6a8b3a3393166f8f96af24f9b9044d79beba908e Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Sep 2023 11:17:51 +0200 Subject: [PATCH 6/8] update js deps --- fittrackee_client/package.json | 12 ++-- fittrackee_client/yarn.lock | 114 ++++++++++++++++----------------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/fittrackee_client/package.json b/fittrackee_client/package.json index 1a6b2f52..504a33fa 100644 --- a/fittrackee_client/package.json +++ b/fittrackee_client/package.json @@ -21,8 +21,8 @@ "@zxcvbn-ts/language-fr": "^3.0.1", "@zxcvbn-ts/language-it": "^3.0.1", "@zxcvbn-ts/language-pl": "^3.0.1", - "axios": "^1.4.0", - "chart.js": "^4.3.3", + "axios": "^1.5.0", + "chart.js": "^4.4.0", "chartjs-plugin-datalabels": "^2.2.0", "core-js": "^3.32.1", "date-fns": "2.29.3", @@ -36,13 +36,13 @@ "vue": "3.2.47", "vue-chart-3": "3.1.1", "vue-fullscreen": "^3.1.1", - "vue-i18n": "^9.2.2", + "vue-i18n": "^9.4.0", "vue-router": "^4.2.4", "vuex": "^4.1.0" }, "devDependencies": { "@intlify/vue-i18n-loader": "^4.2.0", - "@types/chai": "^4.3.5", + "@types/chai": "^4.3.6", "@types/mocha": "^10.0.1", "@types/sanitize-html": "^2.9.0", "@typescript-eslint/eslint-plugin": "^5.60.0", @@ -57,7 +57,7 @@ "@vue/cli-service": "~5.0.8", "@vue/eslint-config-typescript": "^11.0.3", "@vue/test-utils": "^2.4.1", - "chai": "^4.3.7", + "chai": "^4.3.8", "eslint": "8.42.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-typescript": "^3.6.0", @@ -65,7 +65,7 @@ "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-vue": "^9.17.0", "prettier": "^2.8.8", - "sass": "^1.66.1", + "sass": "^1.67.0", "sass-loader": "^13.3.2", "typescript": "5.0.4", "vue-cli-plugin-i18n": "~2.3.2" diff --git a/fittrackee_client/yarn.lock b/fittrackee_client/yarn.lock index f795dc5d..4088fc77 100644 --- a/fittrackee_client/yarn.lock +++ b/fittrackee_client/yarn.lock @@ -1057,24 +1057,23 @@ source-map "^0.6.1" yaml-eslint-parser "^0.3.2" -"@intlify/core-base@9.2.2": - version "9.2.2" - resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-9.2.2.tgz#5353369b05cc9fe35cab95fe20afeb8a4481f939" - integrity sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA== +"@intlify/core-base@9.4.0": + version "9.4.0" + resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-9.4.0.tgz#a99a89f1263ab0f4d2889b49629bfbbf4f238d85" + integrity sha512-bIvtuEjLES35l39R0OccYbmr/fatSr4VSRThhouvFc05mnoAZyJGgj3st1iLaHGlFTmvd507uww1427o56r36Q== dependencies: - "@intlify/devtools-if" "9.2.2" - "@intlify/message-compiler" "9.2.2" - "@intlify/shared" "9.2.2" - "@intlify/vue-devtools" "9.2.2" + "@intlify/message-compiler" "9.4.0" + "@intlify/shared" "9.4.0" -"@intlify/devtools-if@9.2.2": - version "9.2.2" - resolved "https://registry.yarnpkg.com/@intlify/devtools-if/-/devtools-if-9.2.2.tgz#b13d9ac4b4e2fe6d2e7daa556517a8061fe8bd39" - integrity sha512-4ttr/FNO29w+kBbU7HZ/U0Lzuh2cRDhP8UlWOtV9ERcjHzuyXVZmjyleESK6eVP60tGC9QtQW9yZE+JeRhDHkg== +"@intlify/message-compiler@9.4.0": + version "9.4.0" + resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-9.4.0.tgz#c11fceb4cc07dfe6a4b3066ca6e9a9e44e897f23" + integrity sha512-EdjqOH3bQqEjZcUOwo90wuW4ZuFr41FDxVni6WNKS0V0myKgwz9EuvLDcnEbjJMIX8vKAWPjWfnSTt5fMwKHLA== dependencies: - "@intlify/shared" "9.2.2" + "@intlify/shared" "9.4.0" + source-map-js "^1.0.2" -"@intlify/message-compiler@9.2.2", "@intlify/message-compiler@^9.1.0": +"@intlify/message-compiler@^9.1.0": version "9.2.2" resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-9.2.2.tgz#e42ab6939b8ae5b3d21faf6a44045667a18bba1c" integrity sha512-IUrQW7byAKN2fMBe8z6sK6riG1pue95e5jfokn8hA5Q3Bqy4MBJ5lJAofUsawQJYHeoPJ7svMDyBaVJ4d0GTtA== @@ -1087,13 +1086,10 @@ resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-9.2.2.tgz#5011be9ca2b4ab86f8660739286e2707f9abb4a5" integrity sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q== -"@intlify/vue-devtools@9.2.2": - version "9.2.2" - resolved "https://registry.yarnpkg.com/@intlify/vue-devtools/-/vue-devtools-9.2.2.tgz#b95701556daf7ebb3a2d45aa3ae9e6415aed8317" - integrity sha512-+dUyqyCHWHb/UcvY1MlIpO87munedm3Gn6E9WWYdWrMuYLcoIoOEVDWSS8xSwtlPU+kA+MEQTP6Q1iI/ocusJg== - dependencies: - "@intlify/core-base" "9.2.2" - "@intlify/shared" "9.2.2" +"@intlify/shared@9.4.0": + version "9.4.0" + resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-9.4.0.tgz#4a78d462fc82433db900981e12eb5b1aae3d6085" + integrity sha512-AFqymip2kToqA0B6KZPg5jSrdcVHoli9t/VhGKE2iiMq9utFuMoGdDC/JOCIZgwxo6aXAk86QyU2XtzEoMuZ6A== "@intlify/vue-i18n-loader@^4.2.0": version "4.2.0" @@ -1308,10 +1304,10 @@ dependencies: "@types/node" "*" -"@types/chai@^4.3.5": - version "4.3.5" - resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.5.tgz#ae69bcbb1bebb68c4ac0b11e9d8ed04526b3562b" - integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng== +"@types/chai@^4.3.6": + version "4.3.6" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.6.tgz#7b489e8baf393d5dd1266fb203ddd4ea941259e6" + integrity sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw== "@types/connect-history-api-fallback@^1.3.5": version "1.3.5" @@ -2045,7 +2041,7 @@ optionalDependencies: prettier "^1.18.2 || ^2.0.0" -"@vue/devtools-api@^6.0.0-beta.11", "@vue/devtools-api@^6.2.1", "@vue/devtools-api@^6.5.0": +"@vue/devtools-api@^6.0.0-beta.11", "@vue/devtools-api@^6.5.0": version "6.5.0" resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz#98b99425edee70b4c992692628fa1ea2c1e57d07" integrity sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q== @@ -2611,10 +2607,10 @@ available-typed-arrays@^1.0.5: resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== -axios@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.4.0.tgz#38a7bf1224cd308de271146038b551d725f0be1f" - integrity sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA== +axios@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.5.0.tgz#f02e4af823e2e46a9768cfc74691fdd0517ea267" + integrity sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ== dependencies: follow-redirects "^1.15.0" form-data "^4.0.0" @@ -2854,10 +2850,10 @@ case-sensitive-paths-webpack-plugin@^2.3.0: resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz#db64066c6422eed2e08cc14b986ca43796dbc6d4" integrity sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw== -chai@^4.3.7: - version "4.3.7" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" - integrity sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A== +chai@^4.3.8: + version "4.3.8" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.8.tgz#40c59718ad6928da6629c70496fe990b2bb5b17c" + integrity sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ== dependencies: assertion-error "^1.1.0" check-error "^1.0.2" @@ -2892,10 +2888,10 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chart.js@^4.3.3: - version "4.3.3" - resolved "https://registry.yarnpkg.com/chart.js/-/chart.js-4.3.3.tgz#dcd98afadf9fcfa5219e72ace5912092ea48fd36" - integrity sha512-aTk7pBw+x6sQYhon/NR3ikfUJuym/LdgpTlgZRe2PaEhjUMKBKyNaFCMVRAyTEWYFNO7qRu7iQVqOw/OqzxZxQ== +chart.js@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/chart.js/-/chart.js-4.4.0.tgz#df843fdd9ec6bd88d7f07e2b95348d221bd2698c" + integrity sha512-vQEj6d+z0dcsKLlQvbKIMYFHd3t8W/7L2vfJIbYcfyPcRx92CsHqECpueN8qVGNlKyDcr5wBrYAYKnfu/9Q1hQ== dependencies: "@kurkle/color" "^0.3.0" @@ -3206,9 +3202,9 @@ core-js@^2.6.12: integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== core-js@^3.32.1: - version "3.32.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.32.1.tgz#a7d8736a3ed9dd05940c3c4ff32c591bb735be77" - integrity sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ== + version "3.32.2" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.32.2.tgz#172fb5949ef468f93b4be7841af6ab1f21992db7" + integrity sha512-pxXSw1mYZPDGvTQqEc5vgIb83jGQKFGYWY76z4a7weZXUolw3G+OvpZqSRcfYOoOVUQJYEPsWeQK8pKEnUtWxQ== core-js@^3.8.3: version "3.30.0" @@ -4492,11 +4488,16 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@~2.3.1, fsevents@~2.3.2: +fsevents@~2.3.1: version "2.3.2" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -4972,9 +4973,9 @@ ignore@^5.1.1, ignore@^5.2.0: integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== immutable@^4.0.0: - version "4.3.2" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.2.tgz#f89d910f8dfb6e15c03b2cae2faaf8c1f66455fe" - integrity sha512-oGXzbEDem9OOpDWZu88jGiYCvIsLHMvGw+8OXlpsvTFvIQplQbjg1B1cvKg8f7Hoch6+NGjpPsH1Fr+Mc2D1aA== + version "4.3.4" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.4.tgz#2e07b33837b4bb7662f288c244d1ced1ef65a78f" + integrity sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA== import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: version "3.3.0" @@ -7162,10 +7163,10 @@ sass-loader@^13.3.2: dependencies: neo-async "^2.6.2" -sass@^1.66.1: - version "1.66.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.66.1.tgz#04b51c4671e4650aa393740e66a4e58b44d055b1" - integrity sha512-50c+zTsZOJVgFfTgwwEzkjA3/QACgdNsKueWPyAR0mRINIvLAStVQBbPg14iuqEQ74NPDbXzJARJ/O4SI1zftA== +sass@^1.67.0: + version "1.67.0" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.67.0.tgz#fed84d74b9cd708db603b1380d6dc1f71bb24f6f" + integrity sha512-SVrO9ZeX/QQyEGtuZYCVxoeAL5vGlYjJ9p4i4HFuekWl8y/LtJ7tJc10Z+ck1c8xOuoBm2MYzcLfTAffD0pl/A== dependencies: chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0" @@ -8184,15 +8185,14 @@ vue-i18n@^8.17.0: resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-8.28.2.tgz#913558066e274395c0a9f40b2f3393d5c2636840" integrity sha512-C5GZjs1tYlAqjwymaaCPDjCyGo10ajUphiwA922jKt9n7KPpqR7oM1PCwYzhB/E7+nT3wfdG3oRre5raIT1rKA== -vue-i18n@^9.2.2: - version "9.2.2" - resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-9.2.2.tgz#aeb49d9424923c77e0d6441e3f21dafcecd0e666" - integrity sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ== +vue-i18n@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-9.4.0.tgz#13dd07102fd00da3809c5886e250cb505f071ac1" + integrity sha512-701V7wv6m/Fesbu58rRJv9Rd3en/9F7Nxyn/NiwcR7bJkEfwflMJg5wVezkeHy1tIqjXME1e1zbHhK1dNaR8mg== dependencies: - "@intlify/core-base" "9.2.2" - "@intlify/shared" "9.2.2" - "@intlify/vue-devtools" "9.2.2" - "@vue/devtools-api" "^6.2.1" + "@intlify/core-base" "9.4.0" + "@intlify/shared" "9.4.0" + "@vue/devtools-api" "^6.5.0" vue-loader@^17.0.0: version "17.0.1" From 9a83c83a0a417d766618fac25fcc91625f93b015 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Sep 2023 11:23:49 +0200 Subject: [PATCH 7/8] build dist files --- fittrackee/dist/index.html | 2 +- fittrackee/dist/service-worker.js | 2 +- fittrackee/dist/service-worker.js.map | 2 +- .../js/{app.e5bcddc4.js => app.93716b36.js} | 4 +- ...pp.e5bcddc4.js.map => app.93716b36.js.map} | 2 +- .../static/js/chunk-vendors.80fc35ab.js.map | 1 - ....80fc35ab.js => chunk-vendors.a53c2257.js} | 64 +++++++++---------- .../static/js/chunk-vendors.a53c2257.js.map | 1 + .../{reset.a3db17a0.js => reset.f26118ce.js} | 2 +- ....a3db17a0.js.map => reset.f26118ce.js.map} | 2 +- ...ics.4725ae9d.js => statistics.67273a41.js} | 4 +- ...ae9d.js.map => statistics.67273a41.js.map} | 2 +- ...kouts.c611e8ca.js => workouts.abaf372c.js} | 4 +- ...11e8ca.js.map => workouts.abaf372c.js.map} | 2 +- 14 files changed, 44 insertions(+), 50 deletions(-) rename fittrackee/dist/static/js/{app.e5bcddc4.js => app.93716b36.js} (99%) rename fittrackee/dist/static/js/{app.e5bcddc4.js.map => app.93716b36.js.map} (99%) delete mode 100644 fittrackee/dist/static/js/chunk-vendors.80fc35ab.js.map rename fittrackee/dist/static/js/{chunk-vendors.80fc35ab.js => chunk-vendors.a53c2257.js} (70%) create mode 100644 fittrackee/dist/static/js/chunk-vendors.a53c2257.js.map rename fittrackee/dist/static/js/{reset.a3db17a0.js => reset.f26118ce.js} (99%) rename fittrackee/dist/static/js/{reset.a3db17a0.js.map => reset.f26118ce.js.map} (99%) rename fittrackee/dist/static/js/{statistics.4725ae9d.js => statistics.67273a41.js} (97%) rename fittrackee/dist/static/js/{statistics.4725ae9d.js.map => statistics.67273a41.js.map} (99%) rename fittrackee/dist/static/js/{workouts.c611e8ca.js => workouts.abaf372c.js} (99%) rename fittrackee/dist/static/js/{workouts.c611e8ca.js.map => workouts.abaf372c.js.map} (99%) diff --git a/fittrackee/dist/index.html b/fittrackee/dist/index.html index fceb5755..cd858a7c 100644 --- a/fittrackee/dist/index.html +++ b/fittrackee/dist/index.html @@ -1 +1 @@ -FitTrackee
\ No newline at end of file +FitTrackee
\ No newline at end of file diff --git a/fittrackee/dist/service-worker.js b/fittrackee/dist/service-worker.js index c61d4c08..c992c283 100644 --- a/fittrackee/dist/service-worker.js +++ b/fittrackee/dist/service-worker.js @@ -1,2 +1,2 @@ -if(!self.define){let s,i={};const e=(e,t)=>(e=new URL(e+".js",t).href,i[e]||new Promise((i=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=i,document.head.appendChild(s)}else s=e,importScripts(e),i()})).then((()=>{let s=i[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s})));self.define=(t,r)=>{const a=s||("document"in self?document.currentScript.src:"")||location.href;if(i[a])return;let l={};const n=s=>e(s,a),c={module:{uri:a},exports:l,require:n};i[a]=Promise.all(t.map((s=>c[s]||n(s)))).then((s=>(r(...s),l)))}}define(["./workbox-db5fc017"],(function(s){"use strict";s.setCacheNameDetails({prefix:"fittrackee_client"}),self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"/img/bike.svg",revision:"ab4faed007625b209af72b9b8dce84db"},{url:"/img/weather/breeze.svg",revision:"428c6ccb838f8e91dc4826c5b650a98b"},{url:"/img/weather/clear-day.svg",revision:"f3e8628de2e5089f508f03944f8be951"},{url:"/img/weather/clear-night.svg",revision:"6a0d6579a93e89fdf1a2a95b398e0935"},{url:"/img/weather/cloudy.svg",revision:"c52fe62c9d9fea2cdf5ae2813b3df366"},{url:"/img/weather/fog.svg",revision:"9f4d74289594eb83f9c175d13167a0eb"},{url:"/img/weather/partly-cloudy-day.svg",revision:"f730c2e4f4c014e8b49c9d4a0a141b90"},{url:"/img/weather/partly-cloudy-night.svg",revision:"0d9270901c4dffbc05f3998d835171c8"},{url:"/img/weather/pour-rain.svg",revision:"91eb3159ba8781d258d8c384a8ef987c"},{url:"/img/weather/rain.svg",revision:"c52ca88ce0ddf4de0fc29167e578b2be"},{url:"/img/weather/sleet.svg",revision:"97d61d89332f912c1ec27bcbe077b7bd"},{url:"/img/weather/snow.svg",revision:"9e88c89c0d6d14174e9665e98932dd80"},{url:"/img/weather/temperature.svg",revision:"d42b62d0b57d5d326506277d87b70435"},{url:"/img/weather/wind.svg",revision:"d75fbe559220d7b2b9577a98a91f38d0"},{url:"/img/workouts/finish.svg",revision:"375196b7ade7c07c3b64ac4cb8b850a8"},{url:"/img/workouts/mountains.svg",revision:"0b94f1d4a050a86ca5ac89ab3ed60f9c"},{url:"/img/workouts/start.svg",revision:"97f6a197b6c2869e0cb2ff0e7697af86"},{url:"/index.html",revision:"2f480a392bfe71e4a06bda0255116592"},{url:"/manifest.json",revision:"c61028ca6e9f81bf958e6b66238e2d7c"},{url:"/robots.txt",revision:"b6216d61c03e6ce0c9aea6ca7808f7ca"},{url:"/static/css/admin.73df498d.css",revision:null},{url:"/static/css/app.a587cef2.css",revision:null},{url:"/static/css/fork-awesome.min.css",revision:"82c1118c918377daaa71a320ab8eea42"},{url:"/static/css/leaflet.css",revision:"5c761a156eea82263d8bacf1718fe04d"},{url:"/static/css/profile.083b26ea.css",revision:null},{url:"/static/css/reset.e2527ec6.css",revision:null},{url:"/static/css/statistics.315506b0.css",revision:null},{url:"/static/css/workouts.6abd9bd9.css",revision:null},{url:"/static/fonts/forkawesome-webfont.eot",revision:"e719f9244c69e28e7d00e725ca1e280e"},{url:"/static/fonts/forkawesome-webfont.svg",revision:"d58987a18774d859d98af95281c1dee5"},{url:"/static/fonts/forkawesome-webfont.ttf",revision:"fe45770c6c277da3921355d971045ea5"},{url:"/static/fonts/forkawesome-webfont.woff",revision:"92cd4d8328b2ae614386a01ff935a9f3"},{url:"/static/fonts/forkawesome-webfont.woff2",revision:"12ee76445f0383c58529169d700b6650"},{url:"/static/fonts/pt-sans-v9-latin-700.01a58da9.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.51b1613b.woff2",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.5ff2a2d7.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.6514157e.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.10011d51.woff2",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.6206408d.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.8293436e.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.fe36f54f.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.b5b74f16.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.c43bc0a2.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.c5a514ae.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.e7867499.woff2",revision:null},{url:"/static/img/map.5b26d82b.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-700.b8a7047e.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-italic.0b285c83.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-regular.59a385b4.svg",revision:null},{url:"/static/js/243.03fdd6a3.js",revision:null},{url:"/static/js/431.e117da19.js",revision:null},{url:"/static/js/633.3c920340.js",revision:null},{url:"/static/js/858.8fd585ad.js",revision:null},{url:"/static/js/93.df2db3a3.js",revision:null},{url:"/static/js/admin.757bc8af.js",revision:null},{url:"/static/js/app.e5bcddc4.js",revision:null},{url:"/static/js/chunk-vendors.80fc35ab.js",revision:null},{url:"/static/js/password.b8efc50f.js",revision:null},{url:"/static/js/password.de.d164c0cb.js",revision:null},{url:"/static/js/password.en.4b788215.js",revision:null},{url:"/static/js/password.es.0fdfd7ae.js",revision:null},{url:"/static/js/password.fr.eca0ec1d.js",revision:null},{url:"/static/js/password.it.9fae932a.js",revision:null},{url:"/static/js/password.pl.d10f76b2.js",revision:null},{url:"/static/js/profile.df2cbb8b.js",revision:null},{url:"/static/js/reset.a3db17a0.js",revision:null},{url:"/static/js/statistics.4725ae9d.js",revision:null},{url:"/static/js/workouts.c611e8ca.js",revision:null}],{})})); +if(!self.define){let s,i={};const e=(e,t)=>(e=new URL(e+".js",t).href,i[e]||new Promise((i=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=i,document.head.appendChild(s)}else s=e,importScripts(e),i()})).then((()=>{let s=i[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s})));self.define=(t,r)=>{const a=s||("document"in self?document.currentScript.src:"")||location.href;if(i[a])return;let l={};const n=s=>e(s,a),c={module:{uri:a},exports:l,require:n};i[a]=Promise.all(t.map((s=>c[s]||n(s)))).then((s=>(r(...s),l)))}}define(["./workbox-db5fc017"],(function(s){"use strict";s.setCacheNameDetails({prefix:"fittrackee_client"}),self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"/img/bike.svg",revision:"ab4faed007625b209af72b9b8dce84db"},{url:"/img/weather/breeze.svg",revision:"428c6ccb838f8e91dc4826c5b650a98b"},{url:"/img/weather/clear-day.svg",revision:"f3e8628de2e5089f508f03944f8be951"},{url:"/img/weather/clear-night.svg",revision:"6a0d6579a93e89fdf1a2a95b398e0935"},{url:"/img/weather/cloudy.svg",revision:"c52fe62c9d9fea2cdf5ae2813b3df366"},{url:"/img/weather/fog.svg",revision:"9f4d74289594eb83f9c175d13167a0eb"},{url:"/img/weather/partly-cloudy-day.svg",revision:"f730c2e4f4c014e8b49c9d4a0a141b90"},{url:"/img/weather/partly-cloudy-night.svg",revision:"0d9270901c4dffbc05f3998d835171c8"},{url:"/img/weather/pour-rain.svg",revision:"91eb3159ba8781d258d8c384a8ef987c"},{url:"/img/weather/rain.svg",revision:"c52ca88ce0ddf4de0fc29167e578b2be"},{url:"/img/weather/sleet.svg",revision:"97d61d89332f912c1ec27bcbe077b7bd"},{url:"/img/weather/snow.svg",revision:"9e88c89c0d6d14174e9665e98932dd80"},{url:"/img/weather/temperature.svg",revision:"d42b62d0b57d5d326506277d87b70435"},{url:"/img/weather/wind.svg",revision:"d75fbe559220d7b2b9577a98a91f38d0"},{url:"/img/workouts/finish.svg",revision:"375196b7ade7c07c3b64ac4cb8b850a8"},{url:"/img/workouts/mountains.svg",revision:"0b94f1d4a050a86ca5ac89ab3ed60f9c"},{url:"/img/workouts/start.svg",revision:"97f6a197b6c2869e0cb2ff0e7697af86"},{url:"/index.html",revision:"097b6582101c1d2b6e3f86073852d1ef"},{url:"/manifest.json",revision:"c61028ca6e9f81bf958e6b66238e2d7c"},{url:"/robots.txt",revision:"b6216d61c03e6ce0c9aea6ca7808f7ca"},{url:"/static/css/admin.73df498d.css",revision:null},{url:"/static/css/app.a587cef2.css",revision:null},{url:"/static/css/fork-awesome.min.css",revision:"82c1118c918377daaa71a320ab8eea42"},{url:"/static/css/leaflet.css",revision:"5c761a156eea82263d8bacf1718fe04d"},{url:"/static/css/profile.083b26ea.css",revision:null},{url:"/static/css/reset.e2527ec6.css",revision:null},{url:"/static/css/statistics.315506b0.css",revision:null},{url:"/static/css/workouts.6abd9bd9.css",revision:null},{url:"/static/fonts/forkawesome-webfont.eot",revision:"e719f9244c69e28e7d00e725ca1e280e"},{url:"/static/fonts/forkawesome-webfont.svg",revision:"d58987a18774d859d98af95281c1dee5"},{url:"/static/fonts/forkawesome-webfont.ttf",revision:"fe45770c6c277da3921355d971045ea5"},{url:"/static/fonts/forkawesome-webfont.woff",revision:"92cd4d8328b2ae614386a01ff935a9f3"},{url:"/static/fonts/forkawesome-webfont.woff2",revision:"12ee76445f0383c58529169d700b6650"},{url:"/static/fonts/pt-sans-v9-latin-700.01a58da9.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.51b1613b.woff2",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.5ff2a2d7.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-700.6514157e.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.10011d51.woff2",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.6206408d.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.8293436e.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-italic.fe36f54f.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.b5b74f16.woff",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.c43bc0a2.ttf",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.c5a514ae.eot",revision:null},{url:"/static/fonts/pt-sans-v9-latin-regular.e7867499.woff2",revision:null},{url:"/static/img/map.5b26d82b.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-700.b8a7047e.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-italic.0b285c83.svg",revision:null},{url:"/static/img/pt-sans-v9-latin-regular.59a385b4.svg",revision:null},{url:"/static/js/243.03fdd6a3.js",revision:null},{url:"/static/js/431.e117da19.js",revision:null},{url:"/static/js/633.3c920340.js",revision:null},{url:"/static/js/858.8fd585ad.js",revision:null},{url:"/static/js/93.df2db3a3.js",revision:null},{url:"/static/js/admin.757bc8af.js",revision:null},{url:"/static/js/app.93716b36.js",revision:null},{url:"/static/js/chunk-vendors.a53c2257.js",revision:null},{url:"/static/js/password.b8efc50f.js",revision:null},{url:"/static/js/password.de.d164c0cb.js",revision:null},{url:"/static/js/password.en.4b788215.js",revision:null},{url:"/static/js/password.es.0fdfd7ae.js",revision:null},{url:"/static/js/password.fr.eca0ec1d.js",revision:null},{url:"/static/js/password.it.9fae932a.js",revision:null},{url:"/static/js/password.pl.d10f76b2.js",revision:null},{url:"/static/js/profile.df2cbb8b.js",revision:null},{url:"/static/js/reset.f26118ce.js",revision:null},{url:"/static/js/statistics.67273a41.js",revision:null},{url:"/static/js/workouts.abaf372c.js",revision:null}],{})})); //# sourceMappingURL=service-worker.js.map diff --git a/fittrackee/dist/service-worker.js.map b/fittrackee/dist/service-worker.js.map index 8fee6db9..2c68205e 100644 --- a/fittrackee/dist/service-worker.js.map +++ b/fittrackee/dist/service-worker.js.map @@ -1 +1 @@ -{"version":3,"file":"service-worker.js","sources":["../../../../../../tmp/8dfc728396eada28c6f42d1084e96339/service-worker.js"],"sourcesContent":["import {setCacheNameDetails as workbox_core_setCacheNameDetails} from '/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/workbox-core/setCacheNameDetails.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\nworkbox_core_setCacheNameDetails({prefix: \"fittrackee_client\"});\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"/img/bike.svg\",\n \"revision\": \"ab4faed007625b209af72b9b8dce84db\"\n },\n {\n \"url\": \"/img/weather/breeze.svg\",\n \"revision\": \"428c6ccb838f8e91dc4826c5b650a98b\"\n },\n {\n \"url\": \"/img/weather/clear-day.svg\",\n \"revision\": \"f3e8628de2e5089f508f03944f8be951\"\n },\n {\n \"url\": \"/img/weather/clear-night.svg\",\n \"revision\": \"6a0d6579a93e89fdf1a2a95b398e0935\"\n },\n {\n \"url\": \"/img/weather/cloudy.svg\",\n \"revision\": \"c52fe62c9d9fea2cdf5ae2813b3df366\"\n },\n {\n \"url\": \"/img/weather/fog.svg\",\n \"revision\": \"9f4d74289594eb83f9c175d13167a0eb\"\n },\n {\n \"url\": \"/img/weather/partly-cloudy-day.svg\",\n \"revision\": \"f730c2e4f4c014e8b49c9d4a0a141b90\"\n },\n {\n \"url\": \"/img/weather/partly-cloudy-night.svg\",\n \"revision\": \"0d9270901c4dffbc05f3998d835171c8\"\n },\n {\n \"url\": \"/img/weather/pour-rain.svg\",\n \"revision\": \"91eb3159ba8781d258d8c384a8ef987c\"\n },\n {\n \"url\": \"/img/weather/rain.svg\",\n \"revision\": \"c52ca88ce0ddf4de0fc29167e578b2be\"\n },\n {\n \"url\": \"/img/weather/sleet.svg\",\n \"revision\": \"97d61d89332f912c1ec27bcbe077b7bd\"\n },\n {\n \"url\": \"/img/weather/snow.svg\",\n \"revision\": \"9e88c89c0d6d14174e9665e98932dd80\"\n },\n {\n \"url\": \"/img/weather/temperature.svg\",\n \"revision\": \"d42b62d0b57d5d326506277d87b70435\"\n },\n {\n \"url\": \"/img/weather/wind.svg\",\n \"revision\": \"d75fbe559220d7b2b9577a98a91f38d0\"\n },\n {\n \"url\": \"/img/workouts/finish.svg\",\n \"revision\": \"375196b7ade7c07c3b64ac4cb8b850a8\"\n },\n {\n \"url\": \"/img/workouts/mountains.svg\",\n \"revision\": \"0b94f1d4a050a86ca5ac89ab3ed60f9c\"\n },\n {\n \"url\": \"/img/workouts/start.svg\",\n \"revision\": \"97f6a197b6c2869e0cb2ff0e7697af86\"\n },\n {\n \"url\": \"/index.html\",\n \"revision\": \"2f480a392bfe71e4a06bda0255116592\"\n },\n {\n \"url\": \"/manifest.json\",\n \"revision\": \"c61028ca6e9f81bf958e6b66238e2d7c\"\n },\n {\n \"url\": \"/robots.txt\",\n \"revision\": \"b6216d61c03e6ce0c9aea6ca7808f7ca\"\n },\n {\n \"url\": \"/static/css/admin.73df498d.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/app.a587cef2.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/fork-awesome.min.css\",\n \"revision\": \"82c1118c918377daaa71a320ab8eea42\"\n },\n {\n \"url\": \"/static/css/leaflet.css\",\n \"revision\": \"5c761a156eea82263d8bacf1718fe04d\"\n },\n {\n \"url\": \"/static/css/profile.083b26ea.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/reset.e2527ec6.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/statistics.315506b0.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/workouts.6abd9bd9.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.eot\",\n \"revision\": \"e719f9244c69e28e7d00e725ca1e280e\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.svg\",\n \"revision\": \"d58987a18774d859d98af95281c1dee5\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.ttf\",\n \"revision\": \"fe45770c6c277da3921355d971045ea5\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.woff\",\n \"revision\": \"92cd4d8328b2ae614386a01ff935a9f3\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.woff2\",\n \"revision\": \"12ee76445f0383c58529169d700b6650\"\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.01a58da9.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.51b1613b.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.5ff2a2d7.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.6514157e.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.10011d51.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.6206408d.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.8293436e.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.fe36f54f.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.b5b74f16.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.c43bc0a2.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.c5a514ae.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.e7867499.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/map.5b26d82b.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-700.b8a7047e.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-italic.0b285c83.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-regular.59a385b4.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/243.03fdd6a3.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/431.e117da19.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/633.3c920340.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/858.8fd585ad.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/93.df2db3a3.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/admin.757bc8af.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/app.e5bcddc4.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/chunk-vendors.80fc35ab.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.b8efc50f.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.de.d164c0cb.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.en.4b788215.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.es.0fdfd7ae.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.fr.eca0ec1d.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.it.9fae932a.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.pl.d10f76b2.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/profile.df2cbb8b.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/reset.a3db17a0.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/statistics.4725ae9d.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/workouts.c611e8ca.js\",\n \"revision\": null\n }\n], {});\n\n\n\n\n\n\n\n\n"],"names":["workbox_core_setCacheNameDetails","prefix","self","addEventListener","event","data","type","skipWaiting","workbox_precaching_precacheAndRoute","url","revision"],"mappings":"0nBAiBAA,EAAAA,oBAAiC,CAACC,OAAQ,sBAG1CC,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,aACP,IAWFC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,uCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,iBACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,mCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,mCACPC,SAAY,MAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,sCACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,kDACPC,SAAY,MAEd,CACED,IAAO,oDACPC,SAAY,MAEd,CACED,IAAO,mDACPC,SAAY,MAEd,CACED,IAAO,kDACPC,SAAY,MAEd,CACED,IAAO,uDACPC,SAAY,MAEd,CACED,IAAO,qDACPC,SAAY,MAEd,CACED,IAAO,qDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,uDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,wDACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,gDACPC,SAAY,MAEd,CACED,IAAO,mDACPC,SAAY,MAEd,CACED,IAAO,oDACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,4BACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,uCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,OAEb,CAAA"} \ No newline at end of file +{"version":3,"file":"service-worker.js","sources":["../../../../../../tmp/68fb6ccd746ec4f0d9dd3290c3a21a1f/service-worker.js"],"sourcesContent":["import {setCacheNameDetails as workbox_core_setCacheNameDetails} from '/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/workbox-core/setCacheNameDetails.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\nworkbox_core_setCacheNameDetails({prefix: \"fittrackee_client\"});\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"/img/bike.svg\",\n \"revision\": \"ab4faed007625b209af72b9b8dce84db\"\n },\n {\n \"url\": \"/img/weather/breeze.svg\",\n \"revision\": \"428c6ccb838f8e91dc4826c5b650a98b\"\n },\n {\n \"url\": \"/img/weather/clear-day.svg\",\n \"revision\": \"f3e8628de2e5089f508f03944f8be951\"\n },\n {\n \"url\": \"/img/weather/clear-night.svg\",\n \"revision\": \"6a0d6579a93e89fdf1a2a95b398e0935\"\n },\n {\n \"url\": \"/img/weather/cloudy.svg\",\n \"revision\": \"c52fe62c9d9fea2cdf5ae2813b3df366\"\n },\n {\n \"url\": \"/img/weather/fog.svg\",\n \"revision\": \"9f4d74289594eb83f9c175d13167a0eb\"\n },\n {\n \"url\": \"/img/weather/partly-cloudy-day.svg\",\n \"revision\": \"f730c2e4f4c014e8b49c9d4a0a141b90\"\n },\n {\n \"url\": \"/img/weather/partly-cloudy-night.svg\",\n \"revision\": \"0d9270901c4dffbc05f3998d835171c8\"\n },\n {\n \"url\": \"/img/weather/pour-rain.svg\",\n \"revision\": \"91eb3159ba8781d258d8c384a8ef987c\"\n },\n {\n \"url\": \"/img/weather/rain.svg\",\n \"revision\": \"c52ca88ce0ddf4de0fc29167e578b2be\"\n },\n {\n \"url\": \"/img/weather/sleet.svg\",\n \"revision\": \"97d61d89332f912c1ec27bcbe077b7bd\"\n },\n {\n \"url\": \"/img/weather/snow.svg\",\n \"revision\": \"9e88c89c0d6d14174e9665e98932dd80\"\n },\n {\n \"url\": \"/img/weather/temperature.svg\",\n \"revision\": \"d42b62d0b57d5d326506277d87b70435\"\n },\n {\n \"url\": \"/img/weather/wind.svg\",\n \"revision\": \"d75fbe559220d7b2b9577a98a91f38d0\"\n },\n {\n \"url\": \"/img/workouts/finish.svg\",\n \"revision\": \"375196b7ade7c07c3b64ac4cb8b850a8\"\n },\n {\n \"url\": \"/img/workouts/mountains.svg\",\n \"revision\": \"0b94f1d4a050a86ca5ac89ab3ed60f9c\"\n },\n {\n \"url\": \"/img/workouts/start.svg\",\n \"revision\": \"97f6a197b6c2869e0cb2ff0e7697af86\"\n },\n {\n \"url\": \"/index.html\",\n \"revision\": \"097b6582101c1d2b6e3f86073852d1ef\"\n },\n {\n \"url\": \"/manifest.json\",\n \"revision\": \"c61028ca6e9f81bf958e6b66238e2d7c\"\n },\n {\n \"url\": \"/robots.txt\",\n \"revision\": \"b6216d61c03e6ce0c9aea6ca7808f7ca\"\n },\n {\n \"url\": \"/static/css/admin.73df498d.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/app.a587cef2.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/fork-awesome.min.css\",\n \"revision\": \"82c1118c918377daaa71a320ab8eea42\"\n },\n {\n \"url\": \"/static/css/leaflet.css\",\n \"revision\": \"5c761a156eea82263d8bacf1718fe04d\"\n },\n {\n \"url\": \"/static/css/profile.083b26ea.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/reset.e2527ec6.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/statistics.315506b0.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/css/workouts.6abd9bd9.css\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.eot\",\n \"revision\": \"e719f9244c69e28e7d00e725ca1e280e\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.svg\",\n \"revision\": \"d58987a18774d859d98af95281c1dee5\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.ttf\",\n \"revision\": \"fe45770c6c277da3921355d971045ea5\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.woff\",\n \"revision\": \"92cd4d8328b2ae614386a01ff935a9f3\"\n },\n {\n \"url\": \"/static/fonts/forkawesome-webfont.woff2\",\n \"revision\": \"12ee76445f0383c58529169d700b6650\"\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.01a58da9.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.51b1613b.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.5ff2a2d7.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-700.6514157e.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.10011d51.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.6206408d.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.8293436e.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-italic.fe36f54f.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.b5b74f16.woff\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.c43bc0a2.ttf\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.c5a514ae.eot\",\n \"revision\": null\n },\n {\n \"url\": \"/static/fonts/pt-sans-v9-latin-regular.e7867499.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/map.5b26d82b.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-700.b8a7047e.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-italic.0b285c83.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/img/pt-sans-v9-latin-regular.59a385b4.svg\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/243.03fdd6a3.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/431.e117da19.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/633.3c920340.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/858.8fd585ad.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/93.df2db3a3.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/admin.757bc8af.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/app.93716b36.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/chunk-vendors.a53c2257.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.b8efc50f.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.de.d164c0cb.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.en.4b788215.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.es.0fdfd7ae.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.fr.eca0ec1d.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.it.9fae932a.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/password.pl.d10f76b2.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/profile.df2cbb8b.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/reset.f26118ce.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/statistics.67273a41.js\",\n \"revision\": null\n },\n {\n \"url\": \"/static/js/workouts.abaf372c.js\",\n \"revision\": null\n }\n], {});\n\n\n\n\n\n\n\n\n"],"names":["workbox_core_setCacheNameDetails","prefix","self","addEventListener","event","data","type","skipWaiting","workbox_precaching_precacheAndRoute","url","revision"],"mappings":"0nBAiBAA,EAAAA,oBAAiC,CAACC,OAAQ,sBAG1CC,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,aACP,IAWFC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,uCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,iBACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,mCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,mCACPC,SAAY,MAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,sCACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,kDACPC,SAAY,MAEd,CACED,IAAO,oDACPC,SAAY,MAEd,CACED,IAAO,mDACPC,SAAY,MAEd,CACED,IAAO,kDACPC,SAAY,MAEd,CACED,IAAO,uDACPC,SAAY,MAEd,CACED,IAAO,qDACPC,SAAY,MAEd,CACED,IAAO,qDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,uDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,sDACPC,SAAY,MAEd,CACED,IAAO,wDACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,gDACPC,SAAY,MAEd,CACED,IAAO,mDACPC,SAAY,MAEd,CACED,IAAO,oDACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,4BACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,uCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,OAEb,CAAA"} \ No newline at end of file diff --git a/fittrackee/dist/static/js/app.e5bcddc4.js b/fittrackee/dist/static/js/app.93716b36.js similarity index 99% rename from fittrackee/dist/static/js/app.e5bcddc4.js rename to fittrackee/dist/static/js/app.93716b36.js index d52d9439..4ceea197 100644 --- a/fittrackee/dist/static/js/app.e5bcddc4.js +++ b/fittrackee/dist/static/js/app.93716b36.js @@ -1,2 +1,2 @@ -(function(){var e={5167:function(e,n,r){"use strict";var t=r(6154),o=r(8566),a=r(2894),i=r(5801),s=r(2024);const l=t.Z.create({baseURL:(0,s.k)()});l.interceptors.request.use((e=>{const n=new AbortController;e.signal=n.signal;const r=(0,o.a)(e);o.j.set(r,n);const t=a.Z.getters[i.YN.GETTERS.AUTH_TOKEN];if(t){const n=`Bearer ${t}`;e.headers&&e.headers.Authorization!==n&&(e.headers.Authorization=`Bearer ${t}`)}return e}),(e=>Promise.reject(e))),l.interceptors.response.use((e=>((0,o.a)(e.config),e)),(e=>("canceled"!==e.message&&e.response&&(0,o.a)(e.response.config),Promise.reject(e)))),n["Z"]=l},8566:function(e,n,r){"use strict";r.d(n,{a:function(){return a},j:function(){return t}});const t=new Map,o=e=>{const{method:n,url:r,params:t={},data:o={}}=e;return[n,r,JSON.stringify(t),JSON.stringify(o)].join("")},a=e=>{const n=o(e);if(t.has(n)){const e=t.get(n)||{};e?.abort(),t.delete(n)}return n}},2540:function(e,n,r){"use strict";var t=r(9150);function o(){const e=r(4612),n={};return e.keys().forEach((r=>{const t=r.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){const o=t[1];n[o]=e(r).default}})),n}n["Z"]=(0,t.o)({legacy:!1,locale:"en",fallbackLocale:"en",globalInjection:!0,messages:o()})},3010:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return S}});var t={ABOUT_THIS_INSTANCE:e=>{const{normalize:n}=e;return n(["Über diese Instanz"])},CONTACT_ADMIN:e=>{const{normalize:n}=e;return n(["Kontaktiere den Administrator"])},FITTRACKEE_DESCRIPTION:e=>{const{normalize:n}=e;return n(["FitTrackee ist ein selbst-gehosteter Outdoor-Aktivitäts-Tracker."])},FITTRACKEE_LICENSE:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["unter ",r(t(0))," Lizenz "])},SOURCE_CODE:e=>{const{normalize:n}=e;return n(["Quellcode"])},WEATHER_DATA_FROM:e=>{const{normalize:n}=e;return n(["Wetterdaten von:"])}},o={ABOUT:{DESCRIPTION:e=>{const{normalize:n}=e;return n(["Zusätzliche Informationen, die für deine Nutzer nützlich sein könnten. Markdown-Syntax wird unterstützt."])},TEXT:e=>{const{normalize:n}=e;return n(["Detaillierte Instanz-Informationen"])}},ACTION:e=>{const{normalize:n}=e;return n(["Aktion"])},ACTIVATE_USER_ACCOUNT:e=>{const{normalize:n}=e;return n(["Aktiviere Konto"])},ACTIVE:e=>{const{normalize:n}=e;return n(["Aktiv"])},ADMIN:e=>{const{normalize:n}=e;return n(["Admin"])},ADMINISTRATION:e=>{const{normalize:n}=e;return n(["Administration"])},ADMIN_RIGHTS_DELETE_USER_ACCOUNT:e=>{const{normalize:n}=e;return n(["Hinzufügen/Entfernen von Administratorrechten, Lösche Nutzerkonto."])},APPLICATION:e=>{const{normalize:n}=e;return n(["Anwendung"])},APP_CONFIG:{ADMIN_CONTACT:e=>{const{normalize:n}=e;return n(["Kontakt-E-Mail des Administrators"])},MAX_FILES_IN_ZIP_LABEL:e=>{const{normalize:n}=e;return n(["Max. Dateianzahl im zip Archiv"])},MAX_USERS_HELP:e=>{const{normalize:n}=e;return n(["Wenn 0, gibt es keine Registrierungslimitierung.."])},MAX_USERS_LABEL:e=>{const{normalize:n}=e;return n(["Max. Anzahl aktiver Nutzer"])},NO_CONTACT_EMAIL:e=>{const{normalize:n}=e;return n(["keine Kontakt-E-Mail"])},SINGLE_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:n}=e;return n(["Max. Größe der hochgeladenen Dateien (in Mb)"])},TITLE:e=>{const{normalize:n}=e;return n(["Anwendungskonfiguration"])},ZIP_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:n}=e;return n(["Max. Größe des zip Archives (in Mb)"])}},BACK_TO_ADMIN:e=>{const{normalize:n}=e;return n(["Zurück zu Admin"])},CONFIRM_USER_ACCOUNT_DELETION:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["Möchtest du wirklich das ",r(t(0))," Konto löschen? Alle Daten werden gelöscht. Dieser Vorgang kann nicht rückgängig gemacht werden."])},CONFIRM_USER_PASSWORD_RESET:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["Möchtest du wirklich das ",r(t(0))," Passwort zurücksetzen?"])},CURRENT_EMAIL:e=>{const{normalize:n}=e;return n(["Aktuelle E-Mail"])},DELETE_USER:e=>{const{normalize:n}=e;return n(["Lösche Nutzer"])},EMAIL_SENDING_DISABLED:e=>{const{normalize:n}=e;return n(["E-Mail-Versand ist deaktiviert."])},ENABLE_DISABLE_SPORTS:e=>{const{normalize:n}=e;return n(["Aktivieren/Deaktivieren von Sportarten."])},NEW_EMAIL:e=>{const{normalize:n}=e;return n(["Neue E-Mail"])},NO_TEXT_ENTERED:e=>{const{normalize:n}=e;return n(["Kein Text eingegeben"])},PASSWORD_RESET_SUCCESSFUL:e=>{const{normalize:n}=e;return n(["Das wasswort wurde zurückgesetzt."])},PRIVACY_POLICY_DESCRIPTION:e=>{const{normalize:n}=e;return n(["Füge deine eigene Datenschutzrichtlinie hinzu oder leer lassen, um die standardmäßige zu verwenden. Markdown-Syntax wird unterstützt."])},REGISTRATION_DISABLED:e=>{const{normalize:n}=e;return n(["Registrierung ist derzeit deaktiviert."])},REGISTRATION_ENABLED:e=>{const{normalize:n}=e;return n(["Registrierung ist derzeit aktiviert."])},RESET_USER_PASSWORD:e=>{const{normalize:n}=e;return n(["Passwort zurücksetzen"])},SPORTS:{TABLE:{ACTIVE:e=>{const{normalize:n}=e;return n(["Aktiv"])},HAS_WORKOUTS:e=>{const{normalize:n}=e;return n(["Trainings existieren"])},IMAGE:e=>{const{normalize:n}=e;return n(["Bild"])},LABEL:e=>{const{normalize:n}=e;return n(["Titel"])}},TITLE:e=>{const{normalize:n}=e;return n(["Sportarten Administration"])}},UPDATE_APPLICATION_DESCRIPTION:e=>{const{normalize:n}=e;return n(["Aktualisiere Anwemdungskonfiguration."])},UPDATE_USER_EMAIL:e=>{const{normalize:n}=e;return n(["Aktualisiere E-Mail"])},USER:e=>{const{normalize:n}=e;return n(["Nutzer"])},USERS:{SELECTS:{ORDER_BY:{ADMIN:e=>{const{normalize:n}=e;return n(["Adminstatus"])},CREATED_AT:e=>{const{normalize:n}=e;return n(["Registrierungsdatum"])},IS_ACTIVE:e=>{const{normalize:n}=e;return n(["Accountstatus"])},USERNAME:e=>{const{normalize:n}=e;return n(["Nutzername"])},WORKOUTS_COUNT:e=>{const{normalize:n}=e;return n(["Trainingsanzahl"])}}},TABLE:{ADD_ADMIN_RIGHTS:e=>{const{normalize:n}=e;return n(["Administratorrechte hinzufügen"])},REMOVE_ADMIN_RIGHTS:e=>{const{normalize:n}=e;return n(["Administratorrechte entfernen"])}},TITLE:e=>{const{normalize:n}=e;return n(["Administration - Benutzer"])}},USER_EMAIL_UPDATE_SUCCESSFUL:e=>{const{normalize:n}=e;return n(["Die E-Mail Adresse wurde aktualisiert."])}},a={ERROR:{"
',6),xr=[Br];function Yr(e,n,r,t,o,a){return(0,l.wg)(),(0,l.iD)("svg",Fr,xr)}var Kr={name:"Snowshoes"};const Hr=(0,g.Z)(Kr,[["render",Yr]]);var jr=Hr;const Vr={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 535.876 535.876",style:{"enable-background":"new 0 0 535.876 535.876"},"xml:space":"preserve"},Zr=(0,l._)("desc",{id:"trailDescription"},"silhouette of a person running (trail)",-1),$r=(0,l._)("g",null,[(0,l._)("g",null,[(0,l._)("path",{d:"M505.204,326.949c-5.805-10.892-15.176-10.862-20.923,0.067l-7.114,13.512c-5.757,10.92-20.416,19.775-32.752,19.775\n\t\t\th-16.753c-12.346,0-29.645,6.847-38.643,15.29l-32.35,30.342l-1.233-105.388c0.822-18.446-10.596-24.634-10.596-24.634\n\t\t\tl-56.543-25.972l33.67-67.645l38.527,22.912c0,0,15.472,9.715,26.727-9.324l37.026-63.093c1.625-3.519,2.094-7.564,1.052-11.609\n\t\t\tc-2.381-9.256-11.81-14.86-21.095-12.479c-4.083,1.042-7.459,3.49-9.754,6.713l-30.772,51.962l-62.777-37.102\n\t\t\tc-4.733-2.716-10.519-3.691-16.257-2.209l-78.345,20.12c-5.03,1.291-8.96,4.762-11.017,9.142l-38.097,76.165\n\t\t\tc-2.591,3.854-3.624,8.73-2.371,13.607c2.285,8.941,11.456,14.363,20.435,12.059c5.04-1.291,8.951-4.743,10.997-9.161\n\t\t\tl35.314-70.858l28.936-7.296l-76.203,149.921l-65.981,16.734c-1.759,0.393-3.48,1.023-5.163,1.836\n\t\t\tc-10.596,5.412-14.679,18.179-9.267,28.803c4.733,9.266,15.252,13.636,24.901,10.978l78.067-20.187\n\t\t\tc18.6-4.093,23.313-14.449,23.313-14.449l30.581-58.79l62.28,35.678l0.593,86.216c0.01,1.08,0.259,2.161,0.421,3.241l-11.6-4.188\n\t\t\tc-11.608-4.188-30.57-4.608-42.361-0.956l-26.135,8.128c-11.79,3.663-30.791,3.338-42.447-0.717l-19.221-6.694\n\t\t\tc-11.657-4.054-28.831-0.984-38.374,6.838L109.9,433.954c-9.544,7.822-26.67,10.72-38.25,6.483L40.84,429.135\n\t\t\tc-11.58-4.256-25.608,1.157-31.336,12.097l-7.21,13.789c-5.728,10.93-0.354,19.794,11.982,19.794H500.27\n\t\t\tc12.336,0,24.309-9.802,26.728-21.907l8.004-39.981c2.409-12.097-0.325-30.733-6.14-41.616L505.204,326.949z"}),(0,l._)("path",{d:"M326.395,126.625c17.806-4.562,28.563-22.721,23.983-40.526c-4.581-17.844-22.74-28.554-40.555-23.983\n\t\t\tc-17.796,4.581-28.535,22.711-23.964,40.535C290.439,120.476,308.599,131.205,326.395,126.625z"})])],-1),qr=[Zr,$r];function Xr(e,n,r,t,o,a){return(0,l.wg)(),(0,l.iD)("svg",Vr,qr)}var Qr={name:"Trail"};const Jr=(0,g.Z)(Qr,[["render",Xr]]);var et=Jr;const nt={version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 494.49 494.49",style:{"enable-background":"new 0 0 494.49 494.49"},"xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},rt=(0,l.uE)('silhouette of a walking person',3),tt=[rt];function ot(e,n,r,t,o,a){return(0,l.wg)(),(0,l.iD)("svg",nt,tt)}var at={name:"Walking"};const it=(0,g.Z)(at,[["render",ot]]);var st=it;const lt=["title"];var ct=(0,l.aZ)({__name:"index",props:{sportLabel:null,color:null,title:{default:""}},setup(e){const n=e,{color:r,sportLabel:t,title:o}=(0,c.BK)(n),a=(0,l.f3)("sportColors");return(e,n)=>((0,l.wg)(),(0,l.iD)("div",{class:"sport-img",style:(0,u.j5)({fill:(0,c.SU)(r)?(0,c.SU)(r):(0,c.SU)(a)[(0,c.SU)(t)]}),title:(0,c.SU)(o)?(0,c.SU)(o):e.$t(`sports.${(0,c.SU)(t)}.LABEL`)},["Cycling (Sport)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(nn,{key:0})):(0,l.kq)("",!0),"Cycling (Transport)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(un,{key:1})):(0,l.kq)("",!0),"Cycling (Virtual)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(pn,{key:2})):(0,l.kq)("",!0),"Hiking"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Un,{key:3})):(0,l.kq)("",!0),"Mountain Biking"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(fn,{key:4})):(0,l.kq)("",!0),"Mountain Biking (Electric)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Fn,{key:5})):(0,l.kq)("",!0),"Mountaineering"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Vn,{key:6})):(0,l.kq)("",!0),"Paragliding"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(sr,{key:7})):(0,l.kq)("",!0),"Open Water Swimming"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(er,{key:8})):(0,l.kq)("",!0),"Rowing"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Tr,{key:9})):(0,l.kq)("",!0),"Running"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Nr,{key:10})):(0,l.kq)("",!0),"Skiing (Alpine)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(vr,{key:11})):(0,l.kq)("",!0),"Skiing (Cross Country)"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(Wr,{key:12})):(0,l.kq)("",!0),"Snowshoes"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(jr,{key:13})):(0,l.kq)("",!0),"Trail"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(et,{key:14})):(0,l.kq)("",!0),"Walking"===(0,c.SU)(t)?((0,l.wg)(),(0,l.j4)(st,{key:15})):(0,l.kq)("",!0)],12,lt))}});const ut=ct;var mt=ut;const dt={class:"loader"};function Et(e,n){return(0,l.wg)(),(0,l.iD)("div",dt)}const _t={},Tt=(0,g.Z)(_t,[["render",Et],["__scopeId","data-v-4c9921ee"]]);var St=Tt;const pt={class:"custom-modal"},At={key:0,class:"modal-message"},zt={key:1,class:"modal-message"},Ot={class:"modal-buttons"};var It=(0,l.aZ)({__name:"Modal",props:{title:null,message:null,strongMessage:{default:()=>null}},emits:["cancelAction","confirmAction"],setup(e,{emit:n}){const r=e,t=(0,w.o)(),{title:o,message:i,strongMessage:s}=(0,c.BK)(r),m=(0,l.Fl)((()=>t.getters[h.SY.GETTERS.ERROR_MESSAGES]));let d=null,E=null,_=null;function T(e){"Tab"!==e.key&&9!==e.keyCode||(e.preventDefault(),"cancel-button"===document.activeElement?.id?d?.focus():E?.focus())}return(0,l.bv)((()=>{_=document.activeElement,E=document.getElementById("cancel-button"),d=document.getElementById("confirm-button"),E&&E.focus(),document.addEventListener("keydown",T)})),(0,l.Ah)((()=>{t.commit(h.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),document.removeEventListener("keydown",T),_?.focus()})),(e,r)=>{const t=(0,l.up)("i18n-t"),d=(0,l.up)("ErrorMessage"),E=(0,l.up)("Card");return(0,l.wg)(),(0,l.iD)("div",{id:"modal",role:"dialog",onClick:r[2]||(r[2]=(0,a.iM)((e=>n("cancelAction")),["self"]))},[(0,l._)("div",pt,[(0,l.Wm)(E,null,{title:(0,l.w5)((()=>[(0,l.Uk)((0,u.zw)((0,c.SU)(o)),1)])),content:(0,l.w5)((()=>[(0,c.SU)(s)?((0,l.wg)(),(0,l.iD)("div",At,[(0,l.Wm)(t,{keypath:(0,c.SU)(i)},{default:(0,l.w5)((()=>[(0,l._)("span",null,(0,u.zw)((0,c.SU)(s)),1)])),_:1},8,["keypath"])])):((0,l.wg)(),(0,l.iD)("div",zt,(0,u.zw)((0,c.SU)(i)),1)),(0,c.SU)(m)?((0,l.wg)(),(0,l.j4)(d,{key:2,message:(0,c.SU)(m)},null,8,["message"])):(0,l.kq)("",!0),(0,l._)("div",Ot,[(0,c.SU)(m)?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("button",{key:0,class:"confirm",id:"confirm-button",onClick:r[0]||(r[0]=e=>n("confirmAction"))},(0,u.zw)(e.$t("buttons.YES")),1)),(0,l._)("button",{tabindex:"0",id:"cancel-button",class:"cancel",onClick:r[1]||(r[1]=e=>n("cancelAction"))},(0,u.zw)(e.$t("buttons."+((0,c.SU)(m)?"CANCEL":"NO"))),1)])])),_:1})])])}}});const Rt=(0,g.Z)(It,[["__scopeId","data-v-00e23586"]]);var Nt=Rt;const gt=[{target:Re,name:"AlertMessage"},{target:Ne.Z,name:"Card"},{target:we,name:"CustomTextArea"},{target:fe,name:"Distance"},{target:Be,name:"Dropdown"},{target:Ve,name:"ErrorMessage"},{target:St,name:"Loader"},{target:Nt,name:"Modal"},{target:mt,name:"SportImage"}],Ut={mounted:(e,n)=>{e.clickOutsideEvent=function(r){e===r.target||e.contains(r.target)||n.value(r)},document.body.addEventListener("click",e.clickOutsideEvent),document.body.addEventListener("touchstart",e.clickOutsideEvent)},unmounted:function(e){e.clickOutsideEvent&&(document.body.removeEventListener("click",e.clickOutsideEvent),document.body.removeEventListener("touchstart",e.clickOutsideEvent),e.clickOutsideEvent=void 0)}};var Ct=r(631);t.kL.register(t.ZL,t.jn,t.od,t.De,t.Dx,t.u,t.Gu,t.vn,t.uw,t.ST,t.f$,o.Z);const Dt=(0,a.ri)(_e).provide("sportColors",Ct.Zo).use(Te.Z).use(pe.Z).use(Se.Z).use(i.ZP,{name:"VFullscreen"}).directive("click-outside",Ut);gt.forEach((e=>{Dt.component(e.name,e.target)})),Dt.mount("#app")},5369:function(e,n,r){"use strict";r.d(n,{Z:function(){return Yc}});var t=r(3577),o=r(2201),a=(r(7658),r(6252)),i=r(9963),s=r(2262),l=r(9252),c=r(5801),u=r(9917),m=r(8966),d=r(2335);const E=e=>((0,a.dD)("data-v-80b4a9e6"),e=e(),(0,a.Cn)(),e),_={id:"admin-app",class:"admin-card"},T=["onSubmit"],S={for:"admin_contact"},p=["value"],A=["disabled"],z={for:"max_users"},O=["disabled"],I={class:"user-limit-help"},R={class:"info-box"},N=E((()=>(0,a._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),g={for:"max_single_file_size"},U=["disabled"],C={for:"max_zip_file_size"},D=["disabled"],h={for:"gpx_limit_import"},w=["disabled"],P={class:"about-label",for:"about"},v={class:"textarea-description"},L=["innerHTML"],f={class:"privacy-policy-label",for:"privacy_policy"},k={class:"textarea-description"},y=["innerHTML"],b={key:5,class:"form-buttons"},M={class:"confirm",type:"submit"},G=["onClick"],W={key:6,class:"form-buttons"};var F=(0,a.aZ)({__name:"AdminApplication",props:{appConfig:null,edition:{type:Boolean,default:!1}},setup(e){const n=e,{edition:r}=(0,s.BK)(n),E=(0,u.o)(),F=(0,o.tv)(),B=(0,s.qj)({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:""}),x=(0,a.Fl)((()=>E.getters[c.SY.GETTERS.ERROR_MESSAGES]));function Y(e){Object.keys(B).map((n=>{["max_single_file_size","max_zip_file_size"].includes(n)?B[n]=(0,m.j)(e[n]):["about","privacy_policy"].includes(n)?B[n]=null!==e[n]?e[n]:"":B[n]=e[n]}))}function K(){Y(n.appConfig),E.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),F.push("/admin/application")}function H(){const e=Object.assign({},B);e.max_single_file_size*=1048576,e.max_zip_file_size*=1048576,E.dispatch(c.SY.ACTIONS.UPDATE_APPLICATION_CONFIG,e)}return(0,a.wF)((()=>{n.appConfig&&Y(n.appConfig)})),(e,n)=>{const o=(0,a.up)("ErrorMessage"),c=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",_,[(0,a.Wm)(c,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.TITLE")),1)])),content:(0,a.w5)((()=>[(0,a._)("form",{class:"admin-form",onSubmit:(0,i.iM)(H,["prevent"])},[(0,a._)("label",S,[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),(0,s.SU)(r)||B.admin_contact?(0,a.wy)(((0,a.wg)(),(0,a.iD)("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":n[0]||(n[0]=e=>B.admin_contact=e),disabled:!(0,s.SU)(r)},null,8,A)),[[i.nr,B.admin_contact]]):((0,a.wg)(),(0,a.iD)("input",{key:0,class:"no-contact",value:e.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,p))]),(0,a._)("label",z,[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),(0,a.wy)((0,a._)("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":n[1]||(n[1]=e=>B.max_users=e),disabled:!(0,s.SU)(r)},null,8,O),[[i.nr,B.max_users]])]),(0,a._)("div",I,[(0,a._)("span",R,[N,(0,a.Uk)(" "+(0,t.zw)(e.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),(0,a._)("label",g,[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),(0,a.wy)((0,a._)("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":n[2]||(n[2]=e=>B.max_single_file_size=e),disabled:!(0,s.SU)(r)},null,8,U),[[i.nr,B.max_single_file_size]])]),(0,a._)("label",C,[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),(0,a.wy)((0,a._)("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":n[3]||(n[3]=e=>B.max_zip_file_size=e),disabled:!(0,s.SU)(r)},null,8,D),[[i.nr,B.max_zip_file_size]])]),(0,a._)("label",h,[(0,a.Uk)((0,t.zw)(e.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),(0,a.wy)((0,a._)("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":n[4]||(n[4]=e=>B.gpx_limit_import=e),disabled:!(0,s.SU)(r)},null,8,w),[[i.nr,B.gpx_limit_import]])]),(0,a._)("label",P,(0,t.zw)(e.$t("admin.ABOUT.TEXT"))+": ",1),(0,a._)("span",v,(0,t.zw)(e.$t("admin.ABOUT.DESCRIPTION")),1),(0,s.SU)(r)?(0,a.wy)(((0,a.wg)(),(0,a.iD)("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":n[5]||(n[5]=e=>B.about=e)},null,512)),[[i.nr,B.about]]):((0,a.wg)(),(0,a.iD)("div",{key:1,innerHTML:(0,s.SU)(l.Z)((0,s.SU)(d.O)(B.about?B.about:e.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,L)),(0,a._)("label",f,(0,t.zw)((0,t.kC)(e.$t("privacy_policy.TITLE")))+": ",1),(0,a._)("span",k,(0,t.zw)(e.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),(0,s.SU)(r)?(0,a.wy)(((0,a.wg)(),(0,a.iD)("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":n[6]||(n[6]=e=>B.privacy_policy=e)},null,512)),[[i.nr,B.privacy_policy]]):((0,a.wg)(),(0,a.iD)("div",{key:3,innerHTML:(0,s.SU)(l.Z)((0,s.SU)(d.O)(B.privacy_policy?B.privacy_policy:e.$t("admin.NO_TEXT_ENTERED"))),class:"textarea-content"},null,8,y)),(0,s.SU)(x)?((0,a.wg)(),(0,a.j4)(o,{key:4,message:(0,s.SU)(x)},null,8,["message"])):(0,a.kq)("",!0),(0,s.SU)(r)?((0,a.wg)(),(0,a.iD)("div",b,[(0,a._)("button",M,(0,t.zw)(e.$t("buttons.SUBMIT")),1),(0,a._)("button",{class:"cancel",onClick:(0,i.iM)(K,["prevent"])},(0,t.zw)(e.$t("buttons.CANCEL")),9,G)])):((0,a.wg)(),(0,a.iD)("div",W,[(0,a._)("button",{class:"confirm",onClick:n[7]||(n[7]=(0,i.iM)((n=>e.$router.push("/admin/application/edit")),["prevent"]))},(0,t.zw)(e.$t("buttons.EDIT")),1),(0,a._)("button",{class:"cancel",onClick:n[8]||(n[8]=(0,i.iM)((n=>e.$router.push("/admin")),["prevent"]))},(0,t.zw)(e.$t("admin.BACK_TO_ADMIN")),1)]))],40,T)])),_:1})])}}}),B=r(3744);const x=(0,B.Z)(F,[["__scopeId","data-v-80b4a9e6"]]);var Y=x;const K={class:"stat-card"},H={class:"stat-content box"},j={class:"stat-icon"},V={class:"stat-details"},Z={class:"stat-huge"},$={class:"stat"};var q=(0,a.aZ)({__name:"StatCard",props:{icon:null,text:null,value:null},setup(e){const n=e,{icon:r,text:o,value:i}=(0,s.BK)(n);return(e,n)=>((0,a.wg)(),(0,a.iD)("div",K,[(0,a._)("div",H,[(0,a._)("div",j,[(0,a._)("i",{class:(0,t.C_)(["fa",`fa-${(0,s.SU)(r)}`])},null,2)]),(0,a._)("div",V,[(0,a._)("div",Z,(0,t.zw)((0,s.SU)(i)),1),(0,a._)("div",$,(0,t.zw)((0,s.SU)(o)),1)])])]))}});const X=q;var Q=X;const J={id:"user-stats"};var ee=(0,a.aZ)({__name:"AppStatsCards",props:{appStatistics:null},setup(e){const n=e,{appStatistics:r}=(0,s.BK)(n),t=(0,a.Fl)((()=>(0,m.Z)(r.value.uploads_dir_size,!1)));return(e,n)=>((0,a.wg)(),(0,a.iD)("div",J,[(0,a.Wm)(Q,{icon:"users",value:(0,s.SU)(r).users,text:e.$t("admin.USER",(0,s.SU)(r).users)},null,8,["value","text"]),(0,a.Wm)(Q,{icon:"tags",value:(0,s.SU)(r).sports,text:e.$t("workouts.SPORT",(0,s.SU)(r).sports)},null,8,["value","text"]),(0,a.Wm)(Q,{icon:"calendar",value:(0,s.SU)(r).workouts,text:e.$t("workouts.WORKOUT",(0,s.SU)(r).workouts)},null,8,["value","text"]),(0,a.Wm)(Q,{icon:"folder-open",value:(0,s.SU)(t).size,text:(0,s.SU)(t).suffix},null,8,["value","text"])]))}});const ne=ee;var re=ne,te=r(2531);const oe=e=>((0,a.dD)("data-v-55702546"),e=e(),(0,a.Cn)(),e),ae={id:"admin-menu",class:"center-card"},ie={class:"admin-menu description-list"},se={class:"application-config-details"},le=oe((()=>(0,a._)("br",null,null,-1))),ce={class:"registration-status"},ue={key:0,class:"email-sending-status"},me=oe((()=>(0,a._)("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)));var de=(0,a.aZ)({__name:"AdminMenu",props:{appConfig:null,appStatistics:{default:()=>({})}},setup(e){const n=e,{appConfig:r,appStatistics:o}=(0,s.BK)(n);return(0,a.bv)((()=>{const e=document.getElementById("adminLink");e&&e.focus()})),(e,n)=>{const i=(0,a.up)("router-link");return(0,a.wg)(),(0,a.iD)("div",ae,[(0,a.Wm)(te.Z,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("admin.ADMINISTRATION")),1)])),content:(0,a.w5)((()=>[(0,a.Wm)(re,{appStatistics:(0,s.SU)(o)},null,8,["appStatistics"]),(0,a._)("div",ie,[(0,a._)("dl",null,[(0,a._)("dt",null,[(0,a.Wm)(i,{id:"adminLink",to:"/admin/application"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("admin.APPLICATION")),1)])),_:1})]),(0,a._)("dd",se,[(0,a.Uk)((0,t.zw)(e.$t("admin.UPDATE_APPLICATION_DESCRIPTION")),1),le,(0,a._)("span",ce,(0,t.zw)(e.$t("admin.REGISTRATION_"+((0,s.SU)(r).is_registration_enabled?"ENABLED":"DISABLED"))),1),(0,s.SU)(r).is_email_sending_enabled?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",ue,[me,(0,a.Uk)(" "+(0,t.zw)(e.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),(0,a._)("dt",null,[(0,a.Wm)(i,{to:"/admin/sports"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,t.kC)(e.$t("workouts.SPORT",0))),1)])),_:1})]),(0,a._)("dd",null,(0,t.zw)(e.$t("admin.ENABLE_DISABLE_SPORTS")),1),(0,a._)("dt",null,[(0,a.Wm)(i,{to:"/admin/users"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,t.kC)(e.$t("admin.USER",0))),1)])),_:1})]),(0,a._)("dd",null,(0,t.zw)(e.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)])])])),_:1})])}}});const Ee=(0,B.Z)(de,[["__scopeId","data-v-55702546"]]);var _e=Ee,Te=r(9150),Se=r(631);const pe=e=>((0,a.dD)("data-v-6d62af67"),e=e(),(0,a.Cn)(),e),Ae={id:"admin-sports",class:"admin-card"},ze={class:"responsive-table"},Oe=pe((()=>(0,a._)("th",null,"#",-1))),Ie={class:"text-left"},Re={class:"text-left sport-action"},Ne=pe((()=>(0,a._)("th",null,null,-1))),ge={class:"text-center"},Ue=pe((()=>(0,a._)("span",{class:"cell-heading"},"id",-1))),Ce={class:"cell-heading"},De={class:"sport-label"},he={class:"cell-heading"},we={class:"text-center"},Pe={class:"cell-heading"},ve={class:"sport-action"},Le={class:"cell-heading"},fe={class:"action-button"},ke=["onClick"],ye={key:0,class:"has-workouts"},be=pe((()=>(0,a._)("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)));var Me=(0,a.aZ)({__name:"AdminSports",setup(e){const{t:n}=(0,Te.QT)(),r=(0,u.o)(),o=(0,a.Fl)((()=>(0,Se.xH)(r.getters[c.O8.GETTERS.SPORTS],n))),l=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES]));function m(e,n){r.dispatch(c.O8.ACTIONS.UPDATE_SPORTS,{id:e,isActive:n})}return(e,n)=>{const r=(0,a.up)("SportImage"),c=(0,a.up)("ErrorMessage"),u=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Ae,[(0,a.Wm)(u,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("admin.SPORTS.TITLE")),1)])),content:(0,a.w5)((()=>[(0,a._)("button",{class:"top-button",onClick:n[0]||(n[0]=(0,i.iM)((n=>e.$router.push("/admin")),["prevent"]))},(0,t.zw)(e.$t("admin.BACK_TO_ADMIN")),1),(0,a._)("div",ze,[(0,a._)("table",null,[(0,a._)("thead",null,[(0,a._)("tr",null,[Oe,(0,a._)("th",null,(0,t.zw)(e.$t("admin.SPORTS.TABLE.IMAGE")),1),(0,a._)("th",Ie,(0,t.zw)(e.$t("admin.SPORTS.TABLE.LABEL")),1),(0,a._)("th",null,(0,t.zw)(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),(0,a._)("th",Re,(0,t.zw)(e.$t("admin.ACTION")),1),Ne])]),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(o),(n=>((0,a.wg)(),(0,a.iD)("tr",{key:n.id},[(0,a._)("td",ge,[Ue,(0,a.Uk)(" "+(0,t.zw)(n.id),1)]),(0,a._)("td",null,[(0,a._)("span",Ce,(0,t.zw)(e.$t("admin.SPORTS.TABLE.IMAGE")),1),(0,a.Wm)(r,{title:n.translatedLabel,"sport-label":n.label,color:n.color},null,8,["title","sport-label","color"])]),(0,a._)("td",De,[(0,a._)("span",he,(0,t.zw)(e.$t("admin.SPORTS.TABLE.LABEL")),1),(0,a.Uk)(" "+(0,t.zw)(n.translatedLabel),1)]),(0,a._)("td",we,[(0,a._)("span",Pe,(0,t.zw)(e.$t("admin.SPORTS.TABLE.ACTIVE")),1),(0,a._)("i",{class:(0,t.C_)("fa fa"+(n.is_active?"-check":"")),"aria-hidden":"true"},null,2)]),(0,a._)("td",ve,[(0,a._)("span",Le,(0,t.zw)(e.$t("admin.ACTION")),1),(0,a._)("div",fe,[(0,a._)("button",{class:(0,t.C_)({danger:n.is_active}),onClick:e=>m(n.id,!n.is_active)},(0,t.zw)(e.$t(`buttons.${n.is_active?"DIS":"EN"}ABLE`)),11,ke),n.has_workouts?((0,a.wg)(),(0,a.iD)("span",ye,[be,(0,a.Uk)(" "+(0,t.zw)(e.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):(0,a.kq)("",!0)])])])))),128))])]),(0,s.SU)(l)?((0,a.wg)(),(0,a.j4)(c,{key:0,message:(0,s.SU)(l)},null,8,["message"])):(0,a.kq)("",!0),(0,a._)("button",{onClick:n[1]||(n[1]=(0,i.iM)((n=>e.$router.push("/admin")),["prevent"]))},(0,t.zw)(e.$t("admin.BACK_TO_ADMIN")),1)])])),_:1})])}}});const Ge=(0,B.Z)(Me,[["__scopeId","data-v-6d62af67"]]);var We=Ge,Fe=r(8626),Be=r(115),xe=r(6595);const Ye={class:"users-filters"},Ke={class:"search-username"},He=["onKeyup","placeholder"];var je=(0,a.aZ)({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:n}){const r=(0,o.yj)(),l=(0,s.iH)(r.query.q?r.query.q:"");function c(){""!==l.value&&n("filterOnUsername",l)}function u(){l.value="",n("filterOnUsername",l.value)}return(e,n)=>((0,a.wg)(),(0,a.iD)("div",Ye,[(0,a._)("div",Ke,[(0,a.wy)((0,a._)("input",{id:"username",name:"username","onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),onKeyup:(0,i.D2)(c,["enter"]),placeholder:e.$t("user.FILTER_ON_USERNAME")},null,40,He),[[i.nr,l.value,void 0,{trim:!0}]]),""!==l.value?((0,a.wg)(),(0,a.iD)("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:u})):(0,a.kq)("",!0)]),(0,a._)("i",{class:(0,t.C_)(["fa fa-search",{"fa-disabled":""===l.value}]),"aria-hidden":"true",onClick:c},null,2)]))}});const Ve=(0,B.Z)(je,[["__scopeId","data-v-627a8e91"]]);var Ze=Ve,$e=r(2766),qe=r(6558);const Xe=e=>((0,a.dD)("data-v-22b27d82"),e=e(),(0,a.Cn)(),e),Qe={id:"admin-users",class:"admin-card"},Je={key:0,class:"no-users"},en={key:1,class:"responsive-table"},nn=Xe((()=>(0,a._)("th",null,"#",-1))),rn={class:"left-text"},tn={class:"left-text"},on={class:"left-text"},an={class:"cell-heading"},sn={class:"cell-heading"},ln={class:"cell-heading"},cn={class:"cell-heading"},un={class:"text-center"},mn={class:"cell-heading"},dn={class:"text-center"},En={class:"cell-heading"},_n={class:"text-center"},Tn={class:"cell-heading"},Sn={class:"text-center"},pn={class:"cell-heading"},An=["disabled","onClick"];var zn=(0,a.aZ)({__name:"AdminUsers",setup(e){const n=(0,u.o)(),r=(0,o.yj)(),l=(0,o.tv)(),m=["is_active","admin","created_at","username","workouts_count"],d="created_at";let E=(0,s.qj)((0,$e.pm)(r.query,m,d));const _=(0,a.Fl)((()=>n.getters[c.YN.GETTERS.AUTH_USER_PROFILE])),T=(0,a.Fl)((()=>n.getters[c.RT.GETTERS.USERS])),S=(0,a.Fl)((()=>n.getters[c.RT.GETTERS.USERS_PAGINATION])),p=(0,a.Fl)((()=>n.getters[c.SY.GETTERS.ERROR_MESSAGES]));function A(e){n.dispatch(c.RT.ACTIONS.GET_USERS,e)}function z(e){I("q",e.value)}function O(e,r){n.dispatch(c.RT.ACTIONS.UPDATE_USER,{username:e,admin:r})}function I(e,n){E[e]=n,"per_page"===e&&(E.page=1),l.push({path:"/admin/users",query:E})}return(0,a.wF)((()=>A(E))),(0,a.Ah)((()=>{n.dispatch(c.RT.ACTIONS.EMPTY_USERS)})),(0,a.YP)((()=>r.query),(e=>{E=(0,$e.pm)(e,m,d,{query:E}),A(E)})),(e,n)=>{const r=(0,a.up)("router-link"),o=(0,a.up)("ErrorMessage"),l=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Qe,[(0,a.Wm)(l,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,t.kC)(e.$t("admin.USER",0))),1)])),content:(0,a.w5)((()=>[(0,a._)("button",{class:"top-button",onClick:n[0]||(n[0]=(0,i.iM)((n=>e.$router.push("/admin")),["prevent"]))},(0,t.zw)(e.$t("admin.BACK_TO_ADMIN")),1),(0,a.Wm)(Ze,{onFilterOnUsername:z}),(0,a.Wm)(Fe.Z,{sort:(0,s.SU)($e.fS),order_by:m,query:(0,s.SU)(E),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:I},null,8,["sort","query"]),0===(0,s.SU)(T).length?((0,a.wg)(),(0,a.iD)("div",Je,(0,t.zw)(e.$t("user.NO_USERS_FOUND")),1)):((0,a.wg)(),(0,a.iD)("div",en,[(0,a._)("table",null,[(0,a._)("thead",null,[(0,a._)("tr",null,[nn,(0,a._)("th",rn,(0,t.zw)(e.$t("user.USERNAME")),1),(0,a._)("th",tn,(0,t.zw)(e.$t("user.EMAIL")),1),(0,a._)("th",on,(0,t.zw)(e.$t("user.PROFILE.REGISTRATION_DATE")),1),(0,a._)("th",null,(0,t.zw)((0,t.kC)(e.$t("workouts.WORKOUT",0))),1),(0,a._)("th",null,(0,t.zw)(e.$t("admin.ACTIVE")),1),(0,a._)("th",null,(0,t.zw)(e.$t("user.ADMIN")),1),(0,a._)("th",null,(0,t.zw)(e.$t("admin.ACTION")),1)])]),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(T),(n=>((0,a.wg)(),(0,a.iD)("tr",{key:n.username},[(0,a._)("td",null,[(0,a._)("span",an,(0,t.zw)(e.$t("user.PROFILE.PICTURE")),1),(0,a.Wm)(xe.Z,{user:n},null,8,["user"])]),(0,a._)("td",null,[(0,a._)("span",sn,(0,t.zw)(e.$t("user.USERNAME")),1),(0,a.Wm)(r,{to:`/admin/users/${n.username}`},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(n.username),1)])),_:2},1032,["to"])]),(0,a._)("td",null,[(0,a._)("span",ln,(0,t.zw)(e.$t("user.EMAIL")),1),(0,a.Uk)(" "+(0,t.zw)(n.email),1)]),(0,a._)("td",null,[(0,a._)("span",cn,(0,t.zw)(e.$t("user.PROFILE.REGISTRATION_DATE")),1),(0,a._)("time",null,(0,t.zw)((0,s.SU)(qe.p6)(n.created_at,(0,s.SU)(_).timezone,(0,s.SU)(_).date_format)),1)]),(0,a._)("td",un,[(0,a._)("span",mn,(0,t.zw)((0,t.kC)(e.$t("workouts.WORKOUT",0))),1),(0,a.Uk)(" "+(0,t.zw)(n.nb_workouts),1)]),(0,a._)("td",dn,[(0,a._)("span",En,(0,t.zw)(e.$t("admin.ACTIVE")),1),(0,a._)("i",{class:(0,t.C_)(`fa fa${n.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),(0,a._)("td",_n,[(0,a._)("span",Tn,(0,t.zw)(e.$t("user.ADMIN")),1),(0,a._)("i",{class:(0,t.C_)(`fa fa${n.admin?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),(0,a._)("td",Sn,[(0,a._)("span",pn,(0,t.zw)(e.$t("admin.ACTION")),1),(0,a._)("button",{class:(0,t.C_)({danger:n.admin}),disabled:n.username===(0,s.SU)(_).username,onClick:e=>O(n.username,!n.admin)},(0,t.zw)(e.$t(`admin.USERS.TABLE.${n.admin?"REMOVE":"ADD"}_ADMIN_RIGHTS`)),11,An)])])))),128))])]),(0,s.SU)(S).page?((0,a.wg)(),(0,a.j4)(Be.Z,{key:0,path:"/admin/users",pagination:(0,s.SU)(S),query:(0,s.SU)(E)},null,8,["pagination","query"])):(0,a.kq)("",!0),(0,s.SU)(p)?((0,a.wg)(),(0,a.j4)(o,{key:1,message:(0,s.SU)(p)},null,8,["message"])):(0,a.kq)("",!0),(0,a._)("button",{onClick:n[1]||(n[1]=(0,i.iM)((n=>e.$router.push("/admin")),["prevent"]))},(0,t.zw)(e.$t("admin.BACK_TO_ADMIN")),1)]))])),_:1})])}}});const On=(0,B.Z)(zn,[["__scopeId","data-v-22b27d82"]]);var In=On,Rn=r(2179);const Nn={class:"profile-tabs custom-checkboxes-group"},gn={class:"profile-tabs-checkboxes custom-checkboxes"},Un=["id","name","checked","disabled","onInput"],Cn=["id","onKeydown"];var Dn=(0,a.aZ)({__name:"UserProfileTabs",props:{tabs:null,selectedTab:null,edition:{type:Boolean},disabled:{type:Boolean,default:!1}},setup(e){const n=e,{tabs:r,selectedTab:o,disabled:l}=(0,s.BK)(n);function c(e){switch(e){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${e.toLocaleLowerCase()}`;case"APPS":case"PREFERENCES":case"SPORTS":return`/profile${n.edition?"/edit":""}/${e.toLocaleLowerCase()}`;default:case"PROFILE":return"/profile"+(n.edition?"/edit":"")}}return(0,a.bv)((()=>{const e=document.getElementById(`tab-${r.value[0]}`);e&&e.focus()})),(e,n)=>((0,a.wg)(),(0,a.iD)("div",Nn,[(0,a._)("div",gn,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(r),(n=>((0,a.wg)(),(0,a.iD)("div",{class:"profile-tab custom-checkbox",key:n},[(0,a._)("label",null,[(0,a._)("input",{type:"radio",id:n,name:n,checked:(0,s.SU)(o).split("/")[0]===n,disabled:(0,s.SU)(l),onInput:r=>e.$router.push(c(n))},null,40,Un),(0,a._)("span",{id:`tab-${n}`,tabindex:0,role:"button",onKeydown:(0,i.D2)((r=>e.$router.push(c(n))),["enter"])},(0,t.zw)(e.$t(`user.PROFILE.TABS.${n}`)),41,Cn)])])))),128))])]))}});const hn=Dn;var wn=hn;const Pn={id:"user-profile"},vn={class:"box"};var Ln=(0,a.aZ)({__name:"index",props:{user:null,tab:null},setup(e){const n=e,{user:r,tab:t}=(0,s.BK)(n),o=["PROFILE","PREFERENCES","SPORTS","APPS"];return(e,n)=>{const i=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",Pn,[(0,a.Wm)(Rn.Z,{user:(0,s.SU)(r)},null,8,["user"]),(0,a._)("div",vn,[(0,a.Wm)(wn,{tabs:o,selectedTab:(0,s.SU)(t),edition:!1},null,8,["selectedTab"]),(0,a.Wm)(i,{user:(0,s.SU)(r)},null,8,["user"])])])}}});const fn=(0,B.Z)(Ln,[["__scopeId","data-v-9729cba4"]]);var kn=fn,yn=r(9977),bn=r(6287);const Mn={id:"user-preferences",class:"description-list"},Gn={class:"info-box raw-speed-help"},Wn=(0,a._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1),Fn={class:"profile-buttons"};var Bn=(0,a.aZ)({__name:"UserPreferences",props:{user:null},setup(e){const n=e,r=(0,u.o)(),o=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.LANGUAGE])),i=(0,a.Fl)((()=>n.user.language?bn.zK[n.user.language]:bn.zK.en)),l=(0,a.Fl)((()=>n.user.weekm?"MONDAY":"SUNDAY")),m=(0,a.Fl)((()=>n.user.timezone?n.user.timezone:"Europe/Paris")),d=(0,a.Fl)((()=>n.user.date_format?n.user.date_format:"MM/dd/yyyy")),E=(0,a.Fl)((()=>n.user.display_ascent?"DISPLAYED":"HIDDEN"));return(n,r)=>((0,a.wg)(),(0,a.iD)("div",Mn,[(0,a._)("dl",null,[(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.LANGUAGE"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(i)),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.TIMEZONE"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(m)),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.DATE_FORMAT"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(qe.mh)((0,s.SU)(d),(0,s.SU)(o))),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),(0,a._)("dd",null,(0,t.zw)(n.$t(`user.PROFILE.${(0,s.SU)(l)}`)),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.UNITS.LABEL"))+":",1),(0,a._)("dd",null,(0,t.zw)(n.$t("user.PROFILE.UNITS."+(e.user.imperial_units?"IMPERIAL":"METRIC"))),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.ASCENT_DATA"))+":",1),(0,a._)("dd",null,(0,t.zw)(n.$t(`common.${(0,s.SU)(E)}`)),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),(0,a._)("dd",null,(0,t.zw)(n.$t("user.PROFILE.ELEVATION_CHART_START."+(e.user.start_elevation_at_zero?"ZERO":"MIN_ALT"))),1),(0,a._)("dt",null,(0,t.zw)(n.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),(0,a._)("dd",null,(0,t.zw)(n.$t("user.PROFILE.USE_RAW_GPX_SPEED."+(e.user.use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"))),1),(0,a._)("div",Gn,[(0,a._)("span",null,[Wn,(0,a.Uk)(" "+(0,t.zw)(n.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),(0,a._)("div",Fn,[(0,a._)("button",{onClick:r[0]||(r[0]=e=>n.$router.push("/profile/edit/preferences"))},(0,t.zw)(n.$t("user.PROFILE.EDIT_PREFERENCES")),1),(0,a._)("button",{onClick:r[1]||(r[1]=e=>n.$router.push("/"))},(0,t.zw)(n.$t("common.HOME")),1)])]))}});const xn=Bn;var Yn=xn;const Kn={id:"user-profile-edition",class:"center-card"};var Hn=(0,a.aZ)({__name:"index",props:{user:null,tab:null},setup(e){const n=e,r=(0,u.o)(),{user:o,tab:i}=(0,s.BK)(n),l=["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","PRIVACY-POLICY"],m=(0,a.Fl)((()=>r.getters[c.YN.GETTERS.USER_LOADING]));return(e,n)=>{const r=(0,a.up)("router-view"),c=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Kn,[(0,a.Wm)(c,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t(`user.PROFILE.${(0,s.SU)(i)}_EDITION`)),1)])),content:(0,a.w5)((()=>[(0,a.Wm)(wn,{tabs:l,selectedTab:(0,s.SU)(i),edition:!0,disabled:(0,s.SU)(m)},null,8,["selectedTab","disabled"]),(0,a.Wm)(r,{user:(0,s.SU)(o)},null,8,["user"])])),_:1})])}}});const jn=Hn;var Vn=jn,Zn=r(313),$n=r(7069),qn=r(5167),Xn=r(7374);const Qn=e=>((0,a.dD)("data-v-795c1501"),e=e(),(0,a.Cn)(),e),Jn={id:"user-infos-edition"},er={class:"profile-form form-box"},nr={key:1,class:"info-box success-message"},rr=["onSubmit"],tr={class:"form-items",for:"email"},or=["disabled"],ar={class:"form-items",for:"password-field"},ir={class:"form-items",for:"new-password-field"},sr={class:"form-buttons"},lr={class:"confirm",type:"submit"},cr=["onClick"],ur={class:"data-export"},mr={class:"info-box"},dr=Qn((()=>(0,a._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),Er={key:0,class:"data-export-archive"},_r=Qn((()=>(0,a._)("i",{class:"fa fa-download","aria-hidden":"true"},null,-1))),Tr={key:1},Sr={key:2},pr=Qn((()=>(0,a._)("i",{class:"fa fa-spinner fa-pulse","aria-hidden":"true"},null,-1)));var Ar=(0,a.aZ)({__name:"UserAccountEdition",props:{user:null},setup(e){const n=e,{user:r}=(0,s.BK)(n),o=(0,u.o)(),l=(0,s.qj)({email:"",password:"",new_password:""}),d=(0,a.Fl)((()=>o.getters[c.YN.GETTERS.USER_LOADING])),E=(0,a.Fl)((()=>o.getters[c.SY.GETTERS.APP_CONFIG])),_=(0,a.Fl)((()=>o.getters[c.YN.GETTERS.IS_SUCCESS])),T=(0,s.iH)(!1),S=(0,a.Fl)((()=>o.getters[c.SY.GETTERS.ERROR_MESSAGES])),p=(0,s.iH)(!1),A=(0,s.iH)(!1),z=(0,a.Fl)((()=>o.getters[c.YN.GETTERS.EXPORT_REQUEST])),O=(0,a.Fl)((()=>C())),I=(0,s.iH)(!1);function R(){p.value=!0}function N(e){l.email=e.email}function g(e){l.password=e}function U(e){l.new_password=e}function C(){return z.value?(0,qe.p6)(z.value.created_at,r.value.timezone,r.value.date_format,!0,null,!0):null}function D(){return!O.value||(0,Zn.Z)(new Date(O.value),(0,$n.Z)(new Date,1))}function h(){const e={email:l.email,password:l.password};l.new_password&&(e.new_password=l.new_password),T.value=l.email!==r.value.email,o.dispatch(c.YN.ACTIONS.UPDATE_USER_ACCOUNT,e)}function w(e){A.value=e}function P(e){o.dispatch(c.YN.ACTIONS.DELETE_ACCOUNT,{username:e})}function v(){o.dispatch(c.YN.ACTIONS.REQUEST_DATA_EXPORT)}async function L(e){I.value=!0,await qn.Z.get(`/auth/account/export/${e}`,{responseType:"blob"}).then((n=>{const r=window.URL.createObjectURL(new Blob([n.data],{type:"application/zip"})),t=document.createElement("a");t.href=r,t.setAttribute("download",e),document.body.appendChild(t),t.click()})).finally((()=>I.value=!1))}return(0,a.bv)((()=>{n.user&&(o.dispatch(c.YN.ACTIONS.GET_REQUEST_DATA_EXPORT),N(n.user))})),(0,a.Ah)((()=>{o.commit(c.YN.MUTATIONS.UPDATE_IS_SUCCESS,!1),o.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)})),(0,a.YP)((()=>_.value),(async e=>{e&&(g(""),U(""),N(r.value),p.value=!1)})),(0,a.YP)((()=>r.value.email),(async()=>{N(r.value)})),(e,n)=>{const o=(0,a.up)("Modal"),c=(0,a.up)("ErrorMessage");return(0,a.wg)(),(0,a.iD)("div",Jn,[A.value?((0,a.wg)(),(0,a.j4)(o,{key:0,title:e.$t("common.CONFIRMATION"),message:e.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:n[0]||(n[0]=e=>P((0,s.SU)(r).username)),onCancelAction:n[1]||(n[1]=e=>w(!1)),onKeydown:n[2]||(n[2]=(0,i.D2)((e=>w(!1)),["esc"]))},null,8,["title","message"])):(0,a.kq)("",!0),(0,a._)("div",er,[(0,s.SU)(S)?((0,a.wg)(),(0,a.j4)(c,{key:0,message:(0,s.SU)(S)},null,8,["message"])):(0,a.kq)("",!0),(0,s.SU)(_)?((0,a.wg)(),(0,a.iD)("div",nr,(0,t.zw)(e.$t(`user.PROFILE.SUCCESSFUL_${T.value&&(0,s.SU)(E).is_email_sending_enabled?"EMAIL_":""}UPDATE`)),1)):(0,a.kq)("",!0),(0,a._)("form",{class:(0,t.C_)({errors:p.value}),onSubmit:(0,i.iM)(h,["prevent"])},[(0,a._)("label",tr,[(0,a.Uk)((0,t.zw)(e.$t("user.EMAIL"))+"* ",1),(0,a.wy)((0,a._)("input",{id:"email","onUpdate:modelValue":n[3]||(n[3]=e=>l.email=e),disabled:(0,s.SU)(d),required:!0,onInvalid:R},null,40,or),[[i.nr,l.email]])]),(0,a._)("label",ar,[(0,a.Uk)((0,t.zw)(e.$t("user.CURRENT_PASSWORD"))+"* ",1),(0,a.Wm)(Xn.Z,{id:"password-field",disabled:(0,s.SU)(d),password:l.password,required:!0,onUpdatePassword:g,onPasswordError:R},null,8,["disabled","password"])]),(0,a._)("label",ir,[(0,a.Uk)((0,t.zw)(e.$t("user.NEW_PASSWORD"))+" ",1),(0,a.Wm)(Xn.Z,{id:"new-password-field",disabled:(0,s.SU)(d),checkStrength:!0,password:l.new_password,isSuccess:!1,onUpdatePassword:U,onPasswordError:R},null,8,["disabled","password"])]),(0,a._)("div",sr,[(0,a._)("button",lr,(0,t.zw)(e.$t("buttons.SUBMIT")),1),(0,a._)("button",{class:"cancel",onClick:n[4]||(n[4]=(0,i.iM)((n=>e.$router.push("/profile")),["prevent"]))},(0,t.zw)(e.$t("buttons.CANCEL")),1),(0,a._)("button",{class:"danger",onClick:n[5]||(n[5]=(0,i.iM)((e=>w(!0)),["prevent"]))},(0,t.zw)(e.$t("buttons.DELETE_MY_ACCOUNT")),1),D()?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"confirm",onClick:(0,i.iM)(v,["prevent"])},(0,t.zw)(e.$t("buttons.REQUEST_DATA_EXPORT")),9,cr)):(0,a.kq)("",!0)])],42,rr),(0,a._)("div",ur,[(0,a._)("span",mr,[dr,(0,a.Uk)(" "+(0,t.zw)(e.$t("user.EXPORT_REQUEST.ONLY_ONE_EXPORT_PER_DAY")),1)]),(0,s.SU)(z)?((0,a.wg)(),(0,a.iD)("div",Er,[(0,a.Uk)((0,t.zw)(e.$t("user.EXPORT_REQUEST.DATA_EXPORT"))+" ("+(0,t.zw)((0,s.SU)(O))+"): ",1),"successful"===(0,s.SU)(z).status?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"archive-link",onClick:n[6]||(n[6]=(0,i.iM)((e=>L((0,s.SU)(z).file_name)),["prevent"]))},[_r,(0,a.Uk)(" "+(0,t.zw)(e.$t("user.EXPORT_REQUEST.DOWNLOAD_ARCHIVE"))+" ("+(0,t.zw)((0,s.SU)(m.Z)((0,s.SU)(z).file_size))+") ",1)])):((0,a.wg)(),(0,a.iD)("span",Tr,(0,t.zw)(e.$t(`user.EXPORT_REQUEST.STATUS.${(0,s.SU)(z).status}`)),1)),I.value?((0,a.wg)(),(0,a.iD)("span",Sr,[(0,a.Uk)((0,t.zw)(e.$t("user.EXPORT_REQUEST.GENERATING_LINK"))+" ",1),pr])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])])])}}});const zr=(0,B.Z)(Ar,[["__scopeId","data-v-795c1501"]]);var Or=zr,Ir=r(6761);const Rr={id:"user-infos-edition"},Nr={class:"profile-form form-box"},gr=["onSubmit"],Ur={class:"form-items",for:"registrationDate"},Cr=["value"],Dr={class:"form-items",for:"first_name"},hr=["disabled"],wr={class:"form-items",for:"last_name"},Pr={class:"form-items",for:"birth_date"},vr=["disabled"],Lr={class:"form-items",for:"location"},fr=["disabled"],kr={class:"form-items"},yr={class:"form-buttons"},br={class:"confirm",type:"submit"};var Mr=(0,a.aZ)({__name:"UserInfosEdition",props:{user:null},setup(e){const n=e,r=(0,u.o)(),o=(0,s.qj)({first_name:"",last_name:"",birth_date:"",location:"",bio:""}),l=(0,a.Fl)((()=>n.user.created_at?(0,qe.p6)(n.user.created_at,n.user.timezone,n.user.date_format):"")),m=(0,a.Fl)((()=>r.getters[c.YN.GETTERS.USER_LOADING])),d=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES]));function E(e){o.first_name=e.first_name?e.first_name:"",o.last_name=e.last_name?e.last_name:"",o.birth_date=e.birth_date?(0,Ir.Z)(new Date(e.birth_date),"yyyy-MM-dd"):"",o.location=e.location?e.location:"",o.bio=e.bio?e.bio:""}function _(e){o.bio=e}function T(){r.dispatch(c.YN.ACTIONS.UPDATE_USER_PROFILE,o)}return(0,a.bv)((()=>{n.user&&E(n.user)})),(0,a.Ah)((()=>{r.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)})),(e,n)=>{const r=(0,a.up)("ErrorMessage"),c=(0,a.up)("CustomTextArea");return(0,a.wg)(),(0,a.iD)("div",Rr,[(0,a._)("div",Nr,[(0,s.SU)(d)?((0,a.wg)(),(0,a.j4)(r,{key:0,message:(0,s.SU)(d)},null,8,["message"])):(0,a.kq)("",!0),(0,a._)("form",{onSubmit:(0,i.iM)(T,["prevent"])},[(0,a._)("label",Ur,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),(0,a._)("input",{id:"registrationDate",value:(0,s.SU)(l),disabled:""},null,8,Cr)]),(0,a._)("label",Dr,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.FIRST_NAME"))+" ",1),(0,a.wy)((0,a._)("input",{id:"first_name","onUpdate:modelValue":n[0]||(n[0]=e=>o.first_name=e),disabled:(0,s.SU)(m)},null,8,hr),[[i.nr,o.first_name]])]),(0,a._)("label",wr,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.LAST_NAME"))+" ",1),(0,a.wy)((0,a._)("input",{id:"last_name","onUpdate:modelValue":n[1]||(n[1]=e=>o.last_name=e)},null,512),[[i.nr,o.last_name]])]),(0,a._)("label",Pr,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.BIRTH_DATE"))+" ",1),(0,a.wy)((0,a._)("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":n[2]||(n[2]=e=>o.birth_date=e),disabled:(0,s.SU)(m)},null,8,vr),[[i.nr,o.birth_date]])]),(0,a._)("label",Lr,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.LOCATION"))+" ",1),(0,a.wy)((0,a._)("input",{id:"location","onUpdate:modelValue":n[3]||(n[3]=e=>o.location=e),disabled:(0,s.SU)(m)},null,8,fr),[[i.nr,o.location]])]),(0,a._)("label",kr,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.BIO"))+" ",1),(0,a.Wm)(c,{name:"bio",charLimit:200,input:o.bio,disabled:(0,s.SU)(m),onUpdateValue:_},null,8,["input","disabled"])]),(0,a._)("div",yr,[(0,a._)("button",br,(0,t.zw)(e.$t("buttons.SUBMIT")),1),(0,a._)("button",{class:"cancel",onClick:n[4]||(n[4]=(0,i.iM)((n=>e.$router.push("/profile")),["prevent"]))},(0,t.zw)(e.$t("buttons.CANCEL")),1)])],40,gr)])])}}});const Gr=(0,B.Z)(Mr,[["__scopeId","data-v-5e5a4552"]]);var Wr=Gr;const Fr=e=>((0,a.dD)("data-v-687e9604"),e=e(),(0,a.Cn)(),e),Br={id:"user-picture-edition"},xr={class:"user-picture-form"},Yr=["onSubmit"],Kr={class:"picture-help"},Hr={class:"info-box"},jr=Fr((()=>(0,a._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),Vr={class:"picture-buttons"},Zr=["disabled"];var $r=(0,a.aZ)({__name:"UserPictureEdition",props:{user:null},setup(e){const n=e,r=(0,u.o)(),{user:o}=(0,s.BK)(n),l=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES])),d=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.APP_CONFIG])),E=d.value.max_single_file_size?(0,m.Z)(d.value.max_single_file_size):"",_=(0,s.iH)(null);function T(){r.dispatch(c.YN.ACTIONS.DELETE_PICTURE)}function S(e){e.target.files&&(_.value=e.target.files[0])}function p(){_.value&&r.dispatch(c.YN.ACTIONS.UPDATE_USER_PICTURE,{picture:_.value})}return(0,a.Ah)((()=>{r.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)})),(e,n)=>{const r=(0,a.up)("ErrorMessage");return(0,a.wg)(),(0,a.iD)("div",Br,[(0,a._)("div",xr,[(0,s.SU)(l)?((0,a.wg)(),(0,a.j4)(r,{key:0,message:(0,s.SU)(l)},null,8,["message"])):(0,a.kq)("",!0),(0,a.Wm)(xe.Z,{user:(0,s.SU)(o)},null,8,["user"]),(0,a._)("form",{onSubmit:(0,i.iM)(p,["prevent"])},[(0,a._)("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:S},null,32),(0,a._)("div",Kr,[(0,a._)("span",Hr,[jr,(0,a.Uk)(" "+(0,t.zw)(e.$t("workouts.MAX_SIZE"))+": "+(0,t.zw)((0,s.SU)(E)),1)])]),(0,a._)("div",Vr,[(0,a._)("button",{type:"submit",disabled:!_.value},(0,t.zw)(e.$t("user.PROFILE.PICTURE_UPDATE")),9,Zr),(0,s.SU)(o).picture?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"danger",onClick:T},(0,t.zw)(e.$t("user.PROFILE.PICTURE_REMOVE")),1)):(0,a.kq)("",!0),(0,a._)("button",{class:"cancel",onClick:n[0]||(n[0]=n=>e.$router.push("/profile"))},(0,t.zw)(e.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],40,Yr)])])}}});const qr=(0,B.Z)($r,[["__scopeId","data-v-687e9604"]]);var Xr=qr;const Qr=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Fort_Nelson","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"],Jr={id:"tz-dropdown"},et=["value","disabled","onKeydown"],nt=["onClick","onMouseover","autofocus"];var rt=(0,a.aZ)({__name:"TimezoneDropdown",props:{input:null,disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup(e,{emit:n}){const r=e,{input:o,disabled:l}=(0,s.BK)(r),c=(0,s.iH)(o.value),u=(0,s.iH)(!1),m=(0,s.iH)(null),d=(0,s.iH)(0);function E(e){return e.toLowerCase().match(c.value.toLowerCase())}function _(e){d.value=e}function T(e){c.value=e,u.value=!1,n("updateTimezone",e)}function S(e){e.preventDefault(),m.value?.firstElementChild?.innerHTML&&T(m.value?.firstElementChild?.innerHTML)}function p(e){e.preventDefault(),u.value=!0,c.value=e.target.value.trim()}return(0,a.YP)((()=>r.input),(e=>{c.value=e})),(e,n)=>((0,a.wg)(),(0,a.iD)("div",Jr,[(0,a._)("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:c.value,disabled:(0,s.SU)(l),required:"",onKeydown:[n[0]||(n[0]=(0,i.D2)((e=>T((0,s.SU)(o))),["esc"])),(0,i.D2)(S,["enter"])],onInput:p},null,40,et),u.value?((0,a.wg)(),(0,a.iD)("ul",{key:0,class:"tz-dropdown-list",ref_key:"tzList",ref:m},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(Qr).filter((e=>E(e))),((e,n)=>((0,a.wg)(),(0,a.iD)("li",{key:e,class:(0,t.C_)(["tz-dropdown-item",{focus:n===d.value}]),onClick:n=>T(e),onMouseover:e=>_(n),autofocus:n===d.value},(0,t.zw)(e),43,nt)))),128))],512)):(0,a.kq)("",!0)]))}});const tt=(0,B.Z)(rt,[["__scopeId","data-v-2afb03a2"]]);var ot=tt;const at=e=>((0,a.dD)("data-v-7d35cb46"),e=e(),(0,a.Cn)(),e),it={id:"user-preferences-edition"},st={class:"profile-form form-box"},lt=["onSubmit"],ct={class:"form-items"},ut=["disabled"],mt=["value"],dt={class:"form-items"},Et={class:"form-items"},_t=["disabled"],Tt=["value"],St={class:"form-items form-checkboxes"},pt={class:"checkboxes-label"},At={class:"checkboxes"},zt=["id","name","checked","disabled","onInput"],Ot={class:"checkbox-label"},It={class:"form-items form-checkboxes"},Rt={class:"checkboxes-label"},Nt={class:"checkboxes"},gt=["id","name","checked","disabled","onInput"],Ut={class:"checkbox-label"},Ct={class:"form-items form-checkboxes"},Dt={class:"checkboxes-label"},ht={class:"checkboxes"},wt=["id","name","checked","disabled","onInput"],Pt={class:"checkbox-label"},vt={class:"form-items form-checkboxes"},Lt={class:"checkboxes-label"},ft={class:"checkboxes"},kt=["id","name","checked","disabled","onInput"],yt={class:"checkbox-label"},bt={class:"form-items form-checkboxes"},Mt={class:"checkboxes-label"},Gt={class:"checkboxes"},Wt=["id","name","checked","disabled","onInput"],Ft={class:"checkbox-label"},Bt={class:"info-box raw-speed-help"},xt=at((()=>(0,a._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),Yt={class:"form-buttons"},Kt={class:"confirm",type:"submit"};var Ht=(0,a.aZ)({__name:"UserPreferencesEdition",props:{user:null},setup(e){const n=e,r=(0,u.o)(),o=(0,s.qj)({display_ascent:!0,imperial_units:!1,language:"",timezone:"Europe/Paris",date_format:"dd/MM/yyyy",weekm:!1}),l=[{label:"SUNDAY",value:!1},{label:"MONDAY",value:!0}],m=[{label:"METRIC",value:!1},{label:"IMPERIAL",value:!0}],d=[{label:"DISPLAYED",value:!0},{label:"HIDDEN",value:!1}],E=[{label:"ZERO",value:!0},{label:"MIN_ALT",value:!1}],_=[{label:"FILTERED_SPEED",value:!1},{label:"RAW_SPEED",value:!0}],T=(0,a.Fl)((()=>r.getters[c.YN.GETTERS.USER_LOADING])),S=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES])),p=(0,a.Fl)((()=>(0,qe.d2)((new Date).toUTCString(),n.user.timezone,o.language)));function A(e){o.display_ascent=e.display_ascent,o.start_elevation_at_zero=!!e.start_elevation_at_zero&&e.start_elevation_at_zero,o.use_raw_gpx_speed=!!e.use_raw_gpx_speed&&e.use_raw_gpx_speed,o.imperial_units=!!e.imperial_units&&e.imperial_units,o.language=e.language?e.language:"en",o.timezone=e.timezone?e.timezone:"Europe/Paris",o.date_format=e.date_format?e.date_format:"dd/MM/yyyy",o.weekm=!!e.weekm&&e.weekm}function z(){r.dispatch(c.YN.ACTIONS.UPDATE_USER_PREFERENCES,o)}function O(e){o.timezone=e}function I(e){o.start_elevation_at_zero=e}function R(e){o.use_raw_gpx_speed=e}function N(e){o.display_ascent=e}function g(e){o.imperial_units=e}function U(e){o.weekm=e}return(0,a.bv)((()=>{n.user&&A(n.user)})),(0,a.Ah)((()=>{r.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)})),(e,n)=>{const r=(0,a.up)("ErrorMessage");return(0,a.wg)(),(0,a.iD)("div",it,[(0,a._)("div",st,[(0,s.SU)(S)?((0,a.wg)(),(0,a.j4)(r,{key:0,message:(0,s.SU)(S)},null,8,["message"])):(0,a.kq)("",!0),(0,a._)("form",{onSubmit:(0,i.iM)(z,["prevent"])},[(0,a._)("label",ct,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.LANGUAGE"))+" ",1),(0,a.wy)((0,a._)("select",{id:"language","onUpdate:modelValue":n[0]||(n[0]=e=>o.language=e),disabled:(0,s.SU)(T)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(bn.mT),(e=>((0,a.wg)(),(0,a.iD)("option",{value:e.value,key:e.value},(0,t.zw)(e.label),9,mt)))),128))],8,ut),[[i.bM,o.language]])]),(0,a._)("label",dt,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.TIMEZONE"))+" ",1),(0,a.Wm)(ot,{input:o.timezone,disabled:(0,s.SU)(T),onUpdateTimezone:O},null,8,["input","disabled"])]),(0,a._)("label",Et,[(0,a.Uk)((0,t.zw)(e.$t("user.PROFILE.DATE_FORMAT"))+" ",1),(0,a.wy)((0,a._)("select",{id:"date_format","onUpdate:modelValue":n[1]||(n[1]=e=>o.date_format=e),disabled:(0,s.SU)(T)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(p),(e=>((0,a.wg)(),(0,a.iD)("option",{value:e.value,key:e.value},(0,t.zw)(e.label),9,Tt)))),128))],8,_t),[[i.bM,o.date_format]])]),(0,a._)("div",St,[(0,a._)("span",pt,(0,t.zw)(e.$t("user.PROFILE.FIRST_DAY_OF_WEEK")),1),(0,a._)("div",At,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(l,(n=>(0,a._)("label",{key:n.label},[(0,a._)("input",{type:"radio",id:n.label,name:n.label,checked:n.value===o.weekm,disabled:(0,s.SU)(T),onInput:e=>U(n.value)},null,40,zt),(0,a._)("span",Ot,(0,t.zw)(e.$t(`user.PROFILE.${n.label}`)),1)]))),64))])]),(0,a._)("div",It,[(0,a._)("span",Rt,(0,t.zw)(e.$t("user.PROFILE.UNITS.LABEL")),1),(0,a._)("div",Nt,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(m,(n=>(0,a._)("label",{key:n.label},[(0,a._)("input",{type:"radio",id:n.label,name:n.label,checked:n.value===o.imperial_units,disabled:(0,s.SU)(T),onInput:e=>g(n.value)},null,40,gt),(0,a._)("span",Ut,(0,t.zw)(e.$t(`user.PROFILE.UNITS.${n.label}`)),1)]))),64))])]),(0,a._)("div",Ct,[(0,a._)("span",Dt,(0,t.zw)(e.$t("user.PROFILE.ASCENT_DATA")),1),(0,a._)("div",ht,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(d,(n=>(0,a._)("label",{key:n.label},[(0,a._)("input",{type:"radio",id:n.label,name:n.label,checked:n.value===o.display_ascent,disabled:(0,s.SU)(T),onInput:e=>N(n.value)},null,40,wt),(0,a._)("span",Pt,(0,t.zw)(e.$t(`common.${n.label}`)),1)]))),64))])]),(0,a._)("div",vt,[(0,a._)("span",Lt,(0,t.zw)(e.$t("user.PROFILE.ELEVATION_CHART_START.LABEL")),1),(0,a._)("div",ft,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(E,(n=>(0,a._)("label",{key:n.label},[(0,a._)("input",{type:"radio",id:n.label,name:n.label,checked:n.value===o.start_elevation_at_zero,disabled:(0,s.SU)(T),onInput:e=>I(n.value)},null,40,kt),(0,a._)("span",yt,(0,t.zw)(e.$t(`user.PROFILE.ELEVATION_CHART_START.${n.label}`)),1)]))),64))])]),(0,a._)("div",bt,[(0,a._)("span",Mt,(0,t.zw)(e.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL")),1),(0,a._)("div",Gt,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(_,(n=>(0,a._)("label",{key:n.label},[(0,a._)("input",{type:"radio",id:n.label,name:n.label,checked:n.value===o.use_raw_gpx_speed,disabled:(0,s.SU)(T),onInput:e=>R(n.value)},null,40,Wt),(0,a._)("span",Ft,(0,t.zw)(e.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${n.label}`)),1)]))),64))]),(0,a._)("div",Bt,[(0,a._)("span",null,[xt,(0,a.Uk)(" "+(0,t.zw)(e.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),(0,a._)("div",Yt,[(0,a._)("button",Kt,(0,t.zw)(e.$t("buttons.SUBMIT")),1),(0,a._)("button",{class:"cancel",onClick:n[2]||(n[2]=(0,i.iM)((n=>e.$router.push("/profile/preferences")),["prevent"]))},(0,t.zw)(e.$t("buttons.CANCEL")),1)])],40,lt)])])}}});const jt=(0,B.Z)(Ht,[["__scopeId","data-v-7d35cb46"]]);var Vt=jt;const Zt={class:"privacy-policy-text"},$t={class:"last-update"},qt=["innerHTML"],Xt=["innerHTML"];var Qt=(0,a.aZ)({__name:"PrivacyPolicy",setup(e){const n=(0,u.o)(),r="Sun, 26 Feb 2023 17:00:00 GMT",o=(0,a.Fl)((()=>n.getters[c.SY.GETTERS.APP_CONFIG])),i=(0,a.Fl)((()=>n.getters[c.SY.GETTERS.LANGUAGE])),m=(0,a.Fl)((()=>n.getters[c.YN.GETTERS.AUTH_USER_PROFILE])),E=(0,a.Fl)((()=>A())),_=(0,a.Fl)((()=>p())),T=(0,a.Fl)((()=>z())),S=["DATA_COLLECTED","INFORMATION_USAGE","INFORMATION_PROTECTION","INFORMATION_DISCLOSURE","SITE_USAGE_BY_CHILDREN","YOUR_CONSENT","ACCOUNT_DELETION","CHANGES_TO_OUR_PRIVACY_POLICY"];function p(){return m.value.timezone?m.value.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris"}function A(){return qe.KD[i.value]}function z(){return(0,qe.p6)(o.value.privacy_policy&&o.value.privacy_policy_date?`${o.value.privacy_policy_date}`:r,_.value,E.value,!1)}return(e,n)=>((0,a.wg)(),(0,a.iD)("div",Zt,[(0,a._)("h1",null,(0,t.zw)((0,t.kC)(e.$t("privacy_policy.TITLE"))),1),(0,a._)("p",$t,[(0,a.Uk)((0,t.zw)(e.$t("privacy_policy.LAST_UPDATE"))+": ",1),(0,a._)("time",null,(0,t.zw)((0,s.SU)(T)),1)]),(0,s.SU)(o).privacy_policy?((0,a.wg)(),(0,a.iD)("div",{key:0,innerHTML:(0,s.SU)(l.Z)((0,s.SU)(d.O)((0,s.SU)(o).privacy_policy))},null,8,qt)):((0,a.wg)(),(0,a.iD)(a.HY,{key:1},(0,a.Ko)(S,(n=>((0,a.wg)(),(0,a.iD)(a.HY,{key:n},[(0,a._)("h2",null,(0,t.zw)(e.$t(`privacy_policy.CONTENT.${n}.TITLE`)),1),(0,a._)("p",{innerHTML:(0,s.SU)(l.Z)(e.$t(`privacy_policy.CONTENT.${n}.CONTENT`))},null,8,Xt)],64)))),64))]))}});const Jt=(0,B.Z)(Qt,[["__scopeId","data-v-7e94dd3a"]]);var eo=Jt;const no={id:"user-privacy-policy"},ro={key:1},to={class:"policy-content"},oo={for:"accepted_policy",class:"accepted_policy"},ao={class:"form-buttons"},io={class:"confirm",type:"submit"};var so=(0,a.aZ)({__name:"UserPrivacyPolicyValidation",props:{user:null},setup(e){const n=e,{user:r}=(0,s.BK)(n),o=(0,u.o)(),l=(0,a.Fl)((()=>o.getters[c.SY.GETTERS.ERROR_MESSAGES])),m=(0,s.iH)(!1);function d(){o.dispatch(c.YN.ACTIONS.ACCEPT_PRIVACY_POLICY,m.value)}return(0,a.Ah)((()=>{o.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)})),(e,n)=>{const o=(0,a.up)("ErrorMessage"),c=(0,a.up)("router-link"),u=(0,a.up)("i18n-t");return(0,a.wg)(),(0,a.iD)("div",no,[(0,s.SU)(l)?((0,a.wg)(),(0,a.j4)(o,{key:0,message:(0,s.SU)(l)},null,8,["message"])):(0,a.kq)("",!0),(0,s.SU)(r).accepted_privacy_policy?((0,a.wg)(),(0,a.iD)("div",ro,[(0,a._)("p",null,[(0,a.Wm)(u,{keypath:"user.YOU_HAVE_ACCEPTED_PRIVACY_POLICY"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{to:"/privacy-policy"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("privacy_policy.TITLE")),1)])),_:1})])),_:1})]),(0,a._)("button",{class:"cancel",onClick:n[0]||(n[0]=n=>e.$router.push("/profile"))},(0,t.zw)(e.$t("user.PROFILE.BACK_TO_PROFILE")),1)])):((0,a.wg)(),(0,a.iD)("form",{key:2,onSubmit:n[3]||(n[3]=(0,i.iM)((e=>d()),["prevent"]))},[(0,a._)("div",to,[(0,a.Wm)(eo)]),(0,a._)("label",oo,[(0,a.wy)((0,a._)("input",{type:"checkbox",id:"accepted_policy",required:"","onUpdate:modelValue":n[1]||(n[1]=e=>m.value=e)},null,512),[[i.e8,m.value]]),(0,a._)("span",null,[(0,a.Wm)(u,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("privacy_policy.TITLE")),1)])),_:1})])]),(0,a.Wm)(c,{to:"/profile/edit/account"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("user.I_WANT_TO_DELETE_MY_ACCOUNT")),1)])),_:1}),(0,a._)("div",ao,[(0,a._)("button",io,(0,t.zw)(e.$t("buttons.SUBMIT")),1),(0,a._)("button",{class:"cancel",onClick:n[2]||(n[2]=n=>e.$router.push("/profile"))},(0,t.zw)(e.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32))])}}});const lo=(0,B.Z)(so,[["__scopeId","data-v-c77e04be"]]);var co=lo;const uo=["profile:read","profile:write","users:read","users:write","workouts:read","workouts:write"],mo=["application:write"],Eo={id:"new-oauth2-app"},_o={id:"new-oauth2-title"},To={id:"apps-form"},So=["onSubmit"],po={class:"form-items"},Ao={class:"form-item"},zo={for:"app-name"},Oo={class:"form-item"},Io={for:"app-description"},Ro={class:"form-item"},No={for:"app-url"},go={class:"form-item"},Uo={for:"app-redirect-uri"},Co={class:"form-item-scope"},Do={class:"form-item-scope-label"},ho={class:"scope-label"},wo=["name","checked","onChange"],Po=["innerHTML"],vo={class:"form-buttons"},Lo=["disabled"];var fo=(0,a.aZ)({__name:"AddUserApp",props:{authUser:null},setup(e){const n=e,r=(0,u.o)(),o=(0,s.qj)({client_name:"",client_uri:"",client_description:"",redirect_uri:""}),l=(0,s.qj)([]),m=(0,a.Fl)((()=>T(n.authUser,mo,uo)));function d(){const e={client_name:o.client_name,client_description:o.client_description,client_uri:o.client_uri,redirect_uris:[o.redirect_uri],scope:l.sort().join(" ")};r.dispatch(c.Km.ACTIONS.CREATE_CLIENT,e)}function E(e){o.client_description=e}function _(e){const n=l.indexOf(e);n>-1?l.splice(n,1):l.push(e)}function T(e,n,r){const t=[...r];return e.admin&&t.push(...n),t.sort()}return(e,n)=>{const r=(0,a.up)("CustomTextArea");return(0,a.wg)(),(0,a.iD)("div",Eo,[(0,a._)("h1",_o,(0,t.zw)(e.$t("oauth2.ADD_A_NEW_APP")),1),(0,a._)("div",To,[(0,a._)("form",{onSubmit:(0,i.iM)(d,["prevent"])},[(0,a._)("div",po,[(0,a._)("div",Ao,[(0,a._)("label",zo,(0,t.zw)(e.$t("oauth2.APP.NAME"))+"*",1),(0,a.wy)((0,a._)("input",{id:"app-name",type:"text",required:"","onUpdate:modelValue":n[0]||(n[0]=e=>o.client_name=e)},null,512),[[i.nr,o.client_name]])]),(0,a._)("div",Oo,[(0,a._)("label",Io,(0,t.zw)(e.$t("oauth2.APP.DESCRIPTION")),1),(0,a.Wm)(r,{name:"app-description",charLimit:200,input:o.description,onUpdateValue:E},null,8,["input"])]),(0,a._)("div",Ro,[(0,a._)("label",No,(0,t.zw)(e.$t("oauth2.APP.URL"))+"*",1),(0,a.wy)((0,a._)("input",{id:"app-url",type:"text",required:"","onUpdate:modelValue":n[1]||(n[1]=e=>o.client_uri=e)},null,512),[[i.nr,o.client_uri]])]),(0,a._)("div",go,[(0,a._)("label",Uo,(0,t.zw)(e.$t("oauth2.APP.REDIRECT_URL"))+"* ",1),(0,a.wy)((0,a._)("input",{id:"app-redirect-uri",type:"text",required:"","onUpdate:modelValue":n[2]||(n[2]=e=>o.redirect_uri=e)},null,512),[[i.nr,o.redirect_uri]])]),(0,a._)("div",Co,[(0,a._)("div",Do,(0,t.zw)(e.$t("oauth2.APP.SCOPE.LABEL"))+"* ",1),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(m),(n=>((0,a.wg)(),(0,a.iD)("div",{class:"form-item-scope-checkboxes",key:n},[(0,a._)("label",ho,[(0,a._)("input",{type:"checkbox",name:n,checked:l.includes(n),onChange:e=>_(n)},null,40,wo),(0,a._)("code",null,(0,t.zw)(n),1)]),(0,a._)("p",{class:"scope-description",innerHTML:e.$t(`oauth2.APP.SCOPE.${n}_DESCRIPTION`)},null,8,Po)])))),128))])]),(0,a._)("div",vo,[(0,a._)("button",{class:"confirm",type:"submit",disabled:0===l.length},(0,t.zw)(e.$t("buttons.SUBMIT")),9,Lo),(0,a._)("button",{class:"cancel",onClick:n[3]||(n[3]=(0,i.iM)((()=>e.$router.push("/profile/apps")),["prevent"]))},(0,t.zw)(e.$t("buttons.CANCEL")),1)])],40,So)])])}}});const ko=(0,B.Z)(fo,[["__scopeId","data-v-0657ee77"]]);var yo=ko;const bo={id:"authorize-oauth2-app"},Mo={key:0},Go={id:"authorize-oauth2-title"},Wo={class:"oauth2-access description-list"},Fo={class:"client-scope"},Bo=["innerHTML"],xo={class:"authorize-oauth2-buttons"},Yo={key:1},Ko={class:"no-app"};var Ho=(0,a.aZ)({__name:"AuthorizeUserApp",setup(e){const n=(0,o.yj)(),r=(0,u.o)(),i=(0,a.Fl)((()=>r.getters[c.Km.GETTERS.CLIENT])),l=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES]));function m(){n.query.client_id&&"string"===typeof n.query.client_id&&r.dispatch(c.Km.ACTIONS.GET_CLIENT_BY_CLIENT_ID,n.query.client_id)}function d(){r.dispatch(c.Km.ACTIONS.AUTHORIZE_CLIENT,{client_id:`${n.query.client_id}`,redirect_uri:`${n.query.redirect_uri}`,response_type:`${n.query.response_type}`,scope:`${n.query.scope}`,state:`${n.query.state?n.query.state:""}`,code_challenge:`${n.query.code_challenge?n.query.code_challenge:""}`,code_challenge_method:`${n.query.code_challenge_method?n.query.code_challenge_method:""}`})}return(0,a.wF)((()=>m())),(e,n)=>{const r=(0,a.up)("router-link"),o=(0,a.up)("i18n-t"),c=(0,a.up)("ErrorMessage");return(0,a.wg)(),(0,a.iD)("div",bo,[(0,s.SU)(i).client_id?((0,a.wg)(),(0,a.iD)("div",Mo,[(0,a._)("h1",Go,[(0,a.Wm)(o,{keypath:"oauth2.AUTHORIZE_APP"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{to:{name:"UserApp",params:{id:(0,s.SU)(i).id}}},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,s.SU)(i).name),1)])),_:1},8,["to"])])),_:1})]),(0,s.SU)(l)?((0,a.wg)(),(0,a.j4)(c,{key:0,message:(0,s.SU)(l)},null,8,["message"])):(0,a.kq)("",!0),(0,a._)("div",Wo,[(0,a._)("p",null,(0,t.zw)(e.$t("oauth2.APP_REQUESTING_ACCESS")),1),(0,a._)("dl",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(i).scope.split(" "),(n=>((0,a.wg)(),(0,a.iD)(a.HY,{key:n},[(0,a._)("dt",Fo,[(0,a._)("code",null,(0,t.zw)(n),1)]),(0,a._)("dd",{innerHTML:e.$t(`oauth2.APP.SCOPE.${n}_DESCRIPTION`)},null,8,Bo)],64)))),128))]),(0,a._)("div",xo,[(0,a._)("button",{class:"danger",onClick:d},(0,t.zw)(e.$t("buttons.AUTHORIZE")),1),(0,a._)("button",{class:"cancel",onClick:n[0]||(n[0]=n=>e.$router.push("/profile/apps"))},(0,t.zw)(e.$t("buttons.CANCEL")),1)])])])):((0,a.wg)(),(0,a.iD)("div",Yo,[(0,a._)("p",Ko,(0,t.zw)(e.$t("oauth2.NO_APP")),1),(0,a._)("button",{onClick:n[1]||(n[1]=n=>e.$router.push("/profile/apps"))},(0,t.zw)(e.$t("buttons.BACK")),1)]))])}}});const jo=(0,B.Z)(Ho,[["__scopeId","data-v-3b2fe9ed"]]);var Vo=jo;const Zo={id:"oauth2-apps"};var $o=(0,a.aZ)({__name:"index",props:{user:null},setup(e){const n=e,r=(0,u.o)(),{user:t}=(0,s.BK)(n);return(0,a.Ah)((()=>{r.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(c.Km.MUTATIONS.SET_CLIENTS,[])})),(e,n)=>{const r=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",Zo,[(0,a.Wm)(r,{authUser:(0,s.SU)(t)},null,8,["authUser"])])}}});const qo=$o;var Xo=qo;const Qo={id:"oauth2-app",class:"description-list"},Jo={key:1},ea={key:0,class:"info-box success-message"},na=["title"],ra={key:0},ta={key:1,class:"app-secret"},oa=["title"],aa={class:"client-scopes"},ia={class:"app-buttons"},sa={key:2},la={class:"no-app"};var ca=(0,a.aZ)({__name:"UserApp",props:{authUser:null,afterCreation:{type:Boolean,default:!1}},setup(e){const n=e,r=(0,o.yj)(),l=(0,u.o)(),{afterCreation:m,authUser:d}=(0,s.BK)(n),E=(0,a.Fl)((()=>l.getters[c.Km.GETTERS.CLIENT])),_=(0,a.Fl)((()=>l.getters[c.Km.GETTERS.REVOCATION_SUCCESSFUL])),T=(0,s.iH)(!1),S=(0,s.iH)(null),p=(0,s.iH)(!1),A=(0,s.iH)(!1),z=(0,s.iH)(!1);function O(){!m.value&&r.params.id&&"string"===typeof r.params.id&&l.dispatch(c.Km.ACTIONS.GET_CLIENT_BY_ID,+r.params.id)}function I(e){S.value=e?"oauth2.APP_DELETION_CONFIRMATION":"oauth2.TOKENS_REVOCATION_CONFIRMATION",R(!0)}function R(e){T.value=e,e||(S.value=null)}function N(e){"oauth2.APP_DELETION_CONFIRMATION"===S.value?l.dispatch(c.Km.ACTIONS.DELETE_CLIENT,e):l.dispatch(c.Km.ACTIONS.REVOKE_ALL_TOKENS,e)}function g(){navigator.clipboard.writeText(E.value.client_id),p.value=!0,A.value=!1,setTimeout((()=>{p.value=!1}),3e3)}function U(){E.value.client_secret&&(navigator.clipboard.writeText(E.value.client_secret),A.value=!0,p.value=!1,setTimeout((()=>{A.value=!1}),3e3))}return(0,a.wF)((()=>{O(),navigator.clipboard&&(z.value=!0)})),(0,a.Ah)((()=>{l.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),l.commit(c.Km.MUTATIONS.EMPTY_CLIENT),l.commit(c.Km.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1)})),(0,a.YP)((()=>_.value),(e=>{e&&R(!1)})),(e,n)=>{const r=(0,a.up)("Modal");return(0,a.wg)(),(0,a.iD)("div",Qo,[T.value?((0,a.wg)(),(0,a.j4)(r,{key:0,title:e.$t("common.CONFIRMATION"),message:e.$t(S.value),onConfirmAction:n[0]||(n[0]=e=>N((0,s.SU)(E).id)),onCancelAction:n[1]||(n[1]=e=>R(!1)),onKeydown:n[2]||(n[2]=(0,i.D2)((e=>R(!1)),["esc"]))},null,8,["title","message"])):(0,a.kq)("",!0),(0,s.SU)(E)&&(0,s.SU)(E).client_id?((0,a.wg)(),(0,a.iD)("div",Jo,[(0,s.SU)(m)||(0,s.SU)(_)?((0,a.wg)(),(0,a.iD)("div",ea,(0,t.zw)(e.$t((0,s.SU)(m)?"oauth2.APP_CREATED_SUCCESSFULLY":"oauth2.TOKENS_REVOKED")),1)):(0,a.kq)("",!0),(0,a._)("dl",null,[(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.CLIENT_ID"))+":",1),(0,a._)("dd",null,[(0,a.Uk)((0,t.zw)((0,s.SU)(E).client_id)+" ",1),(0,s.SU)(m)&&z.value?((0,a.wg)(),(0,a.iD)("i",{key:0,class:(0,t.C_)("fa fa-"+(p.value?"check":"copy")),"aria-hidden":"true",title:e.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:g},null,10,na)):(0,a.kq)("",!0)]),(0,s.SU)(m)&&(0,s.SU)(E).client_secret?((0,a.wg)(),(0,a.iD)("dt",ra,(0,t.zw)(e.$t("oauth2.APP.CLIENT_SECRET"))+": ",1)):(0,a.kq)("",!0),(0,s.SU)(m)&&(0,s.SU)(E).client_secret?((0,a.wg)(),(0,a.iD)("dd",ta,[(0,a.Uk)((0,t.zw)((0,s.SU)(E).client_secret)+" ",1),z.value?((0,a.wg)(),(0,a.iD)("i",{key:0,class:(0,t.C_)("fa fa-"+(A.value?"check":"copy")),"aria-hidden":"true",title:e.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:U},null,10,oa)):(0,a.kq)("",!0)])):(0,a.kq)("",!0),(0,a._)("dt",null,(0,t.zw)((0,t.kC)(e.$t("oauth2.APP.ISSUE_AT")))+":",1),(0,a._)("dd",null,[(0,a._)("time",null,(0,t.zw)((0,s.SU)(qe.p6)((0,s.SU)(E).issued_at,(0,s.SU)(d).timezone,(0,s.SU)(d).date_format)),1)]),(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.NAME"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(E).name),1),(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.DESCRIPTION"))+":",1),(0,a._)("dd",{class:(0,t.C_)({"no-description":!(0,s.SU)(E).client_description})},(0,t.zw)((0,s.SU)(E).client_description?(0,s.SU)(E).client_description:e.$t("oauth2.NO_DESCRIPTION")),3),(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.URL"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(E).website),1),(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.REDIRECT_URL"))+":",1),(0,a._)("dd",null,(0,t.zw)((0,s.SU)(E).redirect_uris.length>0?(0,s.SU)(E).redirect_uris[0]:""),1),(0,a._)("dt",null,(0,t.zw)(e.$t("oauth2.APP.SCOPE.LABEL"))+":",1),(0,a._)("dd",aa,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(E).scope.split(" "),(e=>((0,a.wg)(),(0,a.iD)("span",{class:"client-scope",key:e},[(0,a._)("code",null,(0,t.zw)(e),1)])))),128))])]),(0,a._)("div",ia,[(0,a._)("button",{class:"danger",onClick:n[3]||(n[3]=e=>I(!1))},(0,t.zw)(e.$t("oauth2.REVOKE_ALL_TOKENS")),1),(0,a._)("button",{class:"danger",onClick:n[4]||(n[4]=e=>I(!0))},(0,t.zw)(e.$t("oauth2.DELETE_APP")),1),(0,a._)("button",{onClick:n[5]||(n[5]=n=>e.$router.push("/profile/apps"))},(0,t.zw)(e.$t("buttons.BACK")),1)])])):((0,a.wg)(),(0,a.iD)("div",sa,[(0,a._)("p",la,(0,t.zw)(e.$t("oauth2.NO_APP")),1),(0,a._)("button",{onClick:n[6]||(n[6]=n=>e.$router.push("/profile/apps"))},(0,t.zw)(e.$t("buttons.BACK")),1)]))])}}});const ua=(0,B.Z)(ca,[["__scopeId","data-v-586ca144"]]);var ma=ua;const da={id:"oauth2-apps-list"},Ea={class:"apps-list"},_a={key:0},Ta={class:"app-issued-at"},Sa={key:1,class:"no-apps"},pa={class:"app-list-buttons"};var Aa=(0,a.aZ)({__name:"UserAppsList",props:{authUser:null},setup(e){const n=e,r=(0,u.o)(),i=(0,o.yj)(),{authUser:l}=(0,s.BK)(n),m=(0,a.Fl)((()=>r.getters[c.Km.GETTERS.CLIENTS])),d=(0,a.Fl)((()=>r.getters[c.Km.GETTERS.CLIENTS_PAGINATION]));let E=_(i.query);function _(e){const n={};return e.page&&(n.page=(0,$e.z_)(e.page,$e.Hf)),n}function T(e){r.dispatch(c.Km.ACTIONS.GET_CLIENTS,e)}return(0,a.wF)((()=>{T(E)})),(0,a.YP)((()=>i.query),(async e=>{E=_(e),T(E)})),(e,n)=>{const r=(0,a.up)("router-link");return(0,a.wg)(),(0,a.iD)("div",da,[(0,a._)("p",Ea,(0,t.zw)(e.$t("oauth2.APPS_LIST")),1),(0,s.SU)(m).length>0?((0,a.wg)(),(0,a.iD)("ul",_a,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(m),(n=>((0,a.wg)(),(0,a.iD)("li",{key:n.client_id},[(0,a.Wm)(r,{to:{name:"UserApp",params:{id:n.id}}},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(n.name),1)])),_:2},1032,["to"]),(0,a._)("span",Ta,[(0,a.Uk)((0,t.zw)(e.$t("oauth2.APP.ISSUE_AT"))+" ",1),(0,a._)("time",null,(0,t.zw)((0,s.SU)(qe.p6)(n.issued_at,(0,s.SU)(l).timezone,(0,s.SU)(l).date_format)),1)])])))),128))])):((0,a.wg)(),(0,a.iD)("div",Sa,(0,t.zw)(e.$t("oauth2.NO_APPS")),1)),(0,s.SU)(m).length>0?((0,a.wg)(),(0,a.j4)(Be.Z,{key:2,pagination:(0,s.SU)(d),path:"/profile/apps",query:(0,s.SU)(E)},null,8,["pagination","query"])):(0,a.kq)("",!0),(0,a._)("div",pa,[(0,a._)("button",{onClick:n[0]||(n[0]=n=>e.$router.push("/profile/apps/new"))},(0,t.zw)(e.$t("oauth2.NEW_APP")),1),(0,a._)("button",{onClick:n[1]||(n[1]=n=>e.$router.push("/"))},(0,t.zw)(e.$t("common.HOME")),1)])])}}});const za=(0,B.Z)(Aa,[["__scopeId","data-v-e8309af2"]]);var Oa=za;const Ia={id:"user-sport-preferences"},Ra={key:0,class:"responsive-table"},Na={class:"mobile-display"},ga={key:0,class:"profile-buttons mobile-display"},Ua={key:1,class:"profile-buttons"},Ca={class:"text-left"},Da={key:0},ha={class:"cell-heading"},wa=["value"],Pa={class:"cell-heading"},va={key:0,class:"disabled-message"},La={key:1,class:"fa fa-refresh fa-spin fa-fw"},fa={class:"cell-heading"},ka={class:"cell-heading"},ya=["checked"],ba={class:"cell-heading"},Ma=["value"],Ga={key:1},Wa={key:0,class:"action-buttons"},Fa={class:"cell-heading"},Ba=["onClick"],xa={key:1,class:"edition-buttons"},Ya=["disabled"],Ka=["disabled","onClick"],Ha=["disabled"],ja={key:0,class:"profile-buttons"},Va={key:1,class:"profile-buttons"};var Za=(0,a.aZ)({__name:"UserSportPreferences",props:{user:null,isEdition:{type:Boolean}},setup(e){const n=e,r=(0,u.o)(),{t:o}=(0,Te.QT)(),{isEdition:l,user:m}=(0,s.BK)(n),d="#838383",E=(0,a.f3)("sportColors"),_=(0,a.Fl)((()=>r.getters[c.O8.GETTERS.SPORTS])),T=(0,a.Fl)((()=>(0,Se.xH)(_.value,o,"is_active",m.value.sports_list))),S=(0,a.Fl)((()=>r.getters[c.YN.GETTERS.USER_LOADING])),p=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.ERROR_MESSAGES])),A=(0,s.qj)({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1});function z(e){null!==e?(A.sport_id=e.id,A.color=e.color?e.color:E?E[e.label]:d,A.is_active=e.is_active_for_user,A.stopped_speed_threshold=e.stopped_speed_threshold):g()}function O(e){return A.sport_id===e}function I(e){A.color=e.target.value}function R(e){A.stopped_speed_threshold=parseFloat(e.target.value)}function N(e){A.is_active=e.target.checked}function g(){A.sport_id=0,A.color=null,A.is_active=!0,A.stopped_speed_threshold=1,r.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES)}function U(e){e.preventDefault(),r.dispatch(c.YN.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,A)}function C(e,n){e.preventDefault(),r.dispatch(c.YN.ACTIONS.RESET_USER_SPORT_PREFERENCES,n)}return(0,a.YP)((()=>S.value),(e=>{e||p.value||g()})),(e,n)=>{const r=(0,a.up)("SportImage"),o=(0,a.up)("ErrorMessage");return(0,a.wg)(),(0,a.iD)("div",Ia,[(0,s.SU)(_).length>0?((0,a.wg)(),(0,a.iD)("div",Ra,[(0,a._)("div",Na,[(0,s.SU)(l)?((0,a.wg)(),(0,a.iD)("div",ga,[(0,a._)("button",{class:"cancel",onClick:n[0]||(n[0]=(0,i.iM)((n=>e.$router.push("/profile/sports")),["prevent"]))},(0,t.zw)(e.$t("buttons.BACK")),1)])):((0,a.wg)(),(0,a.iD)("div",Ua,[(0,a._)("button",{onClick:n[1]||(n[1]=n=>e.$router.push("/profile/edit/sports"))},(0,t.zw)(e.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),(0,a._)("button",{onClick:n[2]||(n[2]=n=>e.$router.push("/"))},(0,t.zw)(e.$t("common.HOME")),1)]))]),(0,a._)("table",null,[(0,a._)("thead",null,[(0,a._)("tr",null,[(0,a._)("th",null,(0,t.zw)(e.$t("user.PROFILE.SPORT.COLOR")),1),(0,a._)("th",Ca,(0,t.zw)(e.$t("workouts.SPORT",0)),1),(0,a._)("th",null,(0,t.zw)(e.$t("workouts.WORKOUT",0)),1),(0,a._)("th",null,(0,t.zw)(e.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),(0,a._)("th",null,(0,t.zw)(e.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),(0,s.SU)(l)?((0,a.wg)(),(0,a.iD)("th",Da,(0,t.zw)(e.$t("user.PROFILE.SPORT.ACTION")),1)):(0,a.kq)("",!0)])]),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(T),(i=>((0,a.wg)(),(0,a.iD)("tr",{key:i.id},[(0,a._)("td",null,[(0,a._)("span",ha,(0,t.zw)(e.$t("user.PROFILE.SPORT.COLOR")),1),O(i.id)?((0,a.wg)(),(0,a.iD)("input",{key:0,class:"sport-color",type:"color",value:A.color,onInput:I},null,40,wa)):((0,a.wg)(),(0,a.j4)(r,{key:1,title:i.translatedLabel,"sport-label":i.label,color:i.color?i.color:(0,s.SU)(E)[i.label]},null,8,["title","sport-label","color"]))]),(0,a._)("td",{class:(0,t.C_)(["sport-label",{"disabled-sport":!i.is_active}])},[(0,a._)("span",Pa,(0,t.zw)(e.$t("user.PROFILE.SPORT.LABEL")),1),(0,a.Uk)(" "+(0,t.zw)(i.translatedLabel)+" ",1),i.is_active?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("span",va," ("+(0,t.zw)(e.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),(0,s.SU)(S)&&O(i.id)?((0,a.wg)(),(0,a.iD)("i",La)):(0,a.kq)("",!0),(0,s.SU)(p)&&A.sport_id===i.id?((0,a.wg)(),(0,a.j4)(o,{key:2,message:(0,s.SU)(p)},null,8,["message"])):(0,a.kq)("",!0)],2),(0,a._)("td",{class:(0,t.C_)(["text-center",{"disabled-sport":!i.is_active}])},[(0,a._)("span",fa,(0,t.zw)(e.$t("workouts.WORKOUT",0)),1),(0,a._)("i",{class:(0,t.C_)("fa fa"+((0,s.SU)(m).sports_list.includes(i.id)?"-check":"")),"aria-hidden":"true"},null,2)],2),(0,a._)("td",{class:(0,t.C_)(["text-center",{"disabled-sport":!i.is_active}])},[(0,a._)("span",ka,(0,t.zw)(e.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),O(i.id)&&i.is_active?((0,a.wg)(),(0,a.iD)("input",{key:0,type:"checkbox",checked:i.is_active_for_user,onChange:N},null,40,ya)):((0,a.wg)(),(0,a.iD)("i",{key:1,class:(0,t.C_)("fa fa"+(i.is_active_for_user?"-check":"")),"aria-hidden":"true"},null,2))],2),(0,a._)("td",{class:(0,t.C_)(["text-center",{"disabled-sport":!i.is_active}])},[(0,a._)("span",ba,(0,t.zw)(e.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),O(i.id)&&i.is_active?((0,a.wg)(),(0,a.iD)("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1",value:A.stopped_speed_threshold,onInput:R},null,40,Ma)):((0,a.wg)(),(0,a.iD)("span",Ga,(0,t.zw)(i.stopped_speed_threshold),1))],2),(0,s.SU)(l)?((0,a.wg)(),(0,a.iD)("td",Wa,[(0,a._)("span",Fa,(0,t.zw)(e.$t("user.PROFILE.SPORT.ACTION")),1),0===A.sport_id?((0,a.wg)(),(0,a.iD)("button",{key:0,onClick:e=>z(i)},(0,t.zw)(e.$t("buttons.EDIT")),9,Ba)):(0,a.kq)("",!0),O(i.id)?((0,a.wg)(),(0,a.iD)("div",xa,[(0,a._)("button",{disabled:(0,s.SU)(S),onClick:U},(0,t.zw)(e.$t("buttons.SUBMIT")),9,Ya),(0,a._)("button",{disabled:(0,s.SU)(S),onClick:e=>C(e,i.id)},(0,t.zw)(e.$t("buttons.RESET")),9,Ka),(0,a._)("button",{disabled:(0,s.SU)(S),onClick:n[3]||(n[3]=e=>z(null))},(0,t.zw)(e.$t("buttons.CANCEL")),9,Ha)])):(0,a.kq)("",!0)])):(0,a.kq)("",!0)])))),128))])]),(0,s.SU)(l)?((0,a.wg)(),(0,a.iD)("div",ja,[(0,a._)("button",{class:"cancel",onClick:n[4]||(n[4]=(0,i.iM)((n=>e.$router.push("/profile/sports")),["prevent"]))},(0,t.zw)(e.$t("buttons.BACK")),1)])):((0,a.wg)(),(0,a.iD)("div",Va,[(0,a._)("button",{onClick:n[5]||(n[5]=n=>e.$router.push("/profile/edit/sports"))},(0,t.zw)(e.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),(0,a._)("button",{onClick:n[6]||(n[6]=n=>e.$router.push("/"))},(0,t.zw)(e.$t("common.HOME")),1)]))])):(0,a.kq)("",!0)])}}});const $a=(0,B.Z)(Za,[["__scopeId","data-v-74e52489"]]);var qa=$a,Xa=r(2540),Qa=r(2894);const Ja=e=>((0,a.dD)("data-v-f6c2b27c"),e=e(),(0,a.Cn)(),e),ei={class:"about-text"},ni=["innerHTML"],ri=Ja((()=>(0,a._)("i",{class:"fa fa-book fa-padding","aria-hidden":"true"},null,-1))),ti=["href"],oi=Ja((()=>(0,a._)("i",{class:"fa fa-github fa-padding","aria-hidden":"true"},null,-1))),ai={href:"https://github.com/SamR1/FitTrackee",target:"_blank",rel:"noopener noreferrer"},ii=Ja((()=>(0,a._)("i",{class:"fa fa-balance-scale fa-padding","aria-hidden":"true"},null,-1))),si=Ja((()=>(0,a._)("a",{href:"https://choosealicense.com/licenses/agpl-3.0/",target:"_blank",rel:"noopener noreferrer"}," AGPLv3 ",-1))),li={key:0},ci=Ja((()=>(0,a._)("i",{class:"fa fa-envelope-o fa-padding","aria-hidden":"true"},null,-1))),ui=["href"],mi={key:1},di=["href"],Ei={class:"about-instance"},_i=["innerHTML"];var Ti=(0,a.aZ)({__name:"About",setup(e){const n=(0,u.o)(),r=(0,a.Fl)((()=>n.getters[c.SY.GETTERS.APP_CONFIG])),o=(0,a.Fl)((()=>E())),i=(0,a.Fl)((()=>n.getters[c.SY.GETTERS.LANGUAGE])),m=(0,a.Fl)((()=>_()));function E(){const e={};return"visualcrossing"===r.value.weather_provider&&(e["name"]="Visual Crossing",e["url"]="https://www.visualcrossing.com"),e}function _(){let e="https://samr1.github.io/FitTrackee/";return"fr"===i.value&&(e+="fr/"),e}return(e,n)=>{const i=(0,a.up)("i18n-t");return(0,a.wg)(),(0,a.iD)("div",ei,[(0,a._)("div",null,[(0,a._)("p",{class:"error-message",innerHTML:e.$t("about.FITTRACKEE_DESCRIPTION")},null,8,ni),(0,a._)("p",null,[ri,(0,a._)("a",{class:"documentation-link",href:(0,s.SU)(m),target:"_blank",rel:"noopener noreferrer"},(0,t.zw)((0,t.kC)(e.$t("common.DOCUMENTATION"))),9,ti)]),(0,a._)("p",null,[oi,(0,a._)("a",ai,(0,t.zw)(e.$t("about.SOURCE_CODE")),1)]),(0,a._)("p",null,[ii,(0,a.Wm)(i,{keypath:"about.FITTRACKEE_LICENSE"},{default:(0,a.w5)((()=>[si])),_:1})]),(0,s.SU)(r).admin_contact?((0,a.wg)(),(0,a.iD)("div",li,[ci,(0,a._)("a",{href:`mailto:${(0,s.SU)(r).admin_contact}`},(0,t.zw)(e.$t("about.CONTACT_ADMIN")),9,ui)])):(0,a.kq)("",!0),(0,s.SU)(o)&&(0,s.SU)(o).name?((0,a.wg)(),(0,a.iD)("div",mi,[(0,a.Uk)((0,t.zw)(e.$t("about.WEATHER_DATA_FROM"))+" ",1),(0,a._)("a",{href:(0,s.SU)(o).url,target:"_blank",rel:"nofollow noopener"},(0,t.zw)((0,s.SU)(o).name),9,di)])):(0,a.kq)("",!0),(0,s.SU)(r).about?((0,a.wg)(),(0,a.iD)(a.HY,{key:2},[(0,a._)("p",Ei,(0,t.zw)(e.$t("about.ABOUT_THIS_INSTANCE")),1),(0,a._)("div",{innerHTML:(0,s.SU)(l.Z)((0,s.SU)(d.O)((0,s.SU)(r).about))},null,8,_i)],64)):(0,a.kq)("",!0)])])}}});const Si=(0,B.Z)(Ti,[["__scopeId","data-v-f6c2b27c"]]);var pi=Si;const Ai={id:"bike"},zi=["src"];function Oi(e,n){return(0,a.wg)(),(0,a.iD)("div",Ai,[(0,a._)("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,8,zi)])}const Ii={},Ri=(0,B.Z)(Ii,[["render",Oi],["__scopeId","data-v-795f7f5f"]]);var Ni=Ri;const gi={id:"about",class:"view"},Ui={class:"container"},Ci={class:"container-sub"},Di={class:"container-sub about-details"};var hi=(0,a.aZ)({__name:"AboutView",setup(e){return(e,n)=>((0,a.wg)(),(0,a.iD)("div",gi,[(0,a._)("div",Ui,[(0,a._)("div",Ci,[(0,a.Wm)(Ni)]),(0,a._)("div",Di,[(0,a.Wm)(pi)])])]))}});const wi=(0,B.Z)(hi,[["__scopeId","data-v-bffb50d0"]]);var Pi=wi,vi=r(1818),Li=r(2056);const fi=e=>((0,a.dD)("data-v-54b971cb"),e=e(),(0,a.Cn)(),e),ki={class:"timeline-workout"},yi={class:"box"},bi={class:"workout-user-date"},Mi={class:"workout-user"},Gi=["title"],Wi={key:0},Fi={key:1,class:"no-map"},Bi={class:"img"},xi={class:"data"},Yi=fi((()=>(0,a._)("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1))),Ki={key:0},Hi={class:"data"},ji=fi((()=>(0,a._)("i",{class:"fa fa-road","aria-hidden":"true"},null,-1))),Vi={key:0,class:"data elevation"},Zi=["alt"],$i={class:"data-values"},qi={key:1,class:"data altitude"},Xi=fi((()=>(0,a._)("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1))),Qi={class:"data-values"};var Ji=(0,a.aZ)({__name:"WorkoutCard",props:{user:null,useImperialUnits:{type:Boolean},workout:{default:()=>({})},sport:{default:()=>({})}},setup(e){const n=e,r=(0,u.o)(),{user:o,workout:i,sport:l,useImperialUnits:m}=(0,s.BK)(n),d=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.LOCALE]));function E(e){return e.with_gpx&&null!==e.min_alt&&null!==e.max_alt}function _(e){return E(e)&&null!==e.ascent&&null!==e.descent}return(e,n)=>{const r=(0,a.up)("router-link"),c=(0,a.up)("SportImage"),u=(0,a.up)("Distance");return(0,a.wg)(),(0,a.iD)("div",ki,[(0,a._)("div",yi,[(0,a._)("div",bi,[(0,a._)("div",Mi,[(0,a.Wm)(xe.Z,{user:(0,s.SU)(o)},null,8,["user"]),(0,s.SU)(o).username?((0,a.wg)(),(0,a.j4)(r,{key:0,class:"workout-user-name",to:{name:"User",params:{username:(0,s.SU)(o).username}}},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,s.SU)(o).username),1)])),_:1},8,["to"])):(0,a.kq)("",!0)]),(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(r,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:(0,s.SU)(i).id}}},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)((0,s.SU)(i).title),1)])),_:1},8,["to"])):(0,a.kq)("",!0),(0,s.SU)(i).workout_date&&(0,s.SU)(o)?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"workout-date",title:(0,s.SU)(qe.p6)((0,s.SU)(i).workout_date,(0,s.SU)(o).timezone,(0,s.SU)(o).date_format)},(0,t.zw)((0,s.SU)(vi.Z)(new Date((0,s.SU)(i).workout_date),new Date,{addSuffix:!0,locale:(0,s.SU)(d)})),9,Gi)):(0,a.kq)("",!0)]),(0,a._)("div",{class:(0,t.C_)(["workout-map",{"no-cursor":!(0,s.SU)(i)}]),onClick:n[0]||(n[0]=n=>(0,s.SU)(i).id?e.$router.push({name:"Workout",params:{workoutId:(0,s.SU)(i).id}}):null)},[(0,s.SU)(i)?((0,a.wg)(),(0,a.iD)("div",Wi,[(0,s.SU)(i).with_gpx?((0,a.wg)(),(0,a.j4)(Li.Z,{key:0,workout:(0,s.SU)(i)},null,8,["workout"])):((0,a.wg)(),(0,a.iD)("div",Fi,(0,t.zw)(e.$t("workouts.NO_MAP")),1))])):(0,a.kq)("",!0)],2),(0,a._)("div",{class:(0,t.C_)(["workout-data",{"without-elevation":!E((0,s.SU)(i))}]),onClick:n[1]||(n[1]=n=>(0,s.SU)(i).id?e.$router.push({name:"Workout",params:{workoutId:(0,s.SU)(i).id}}):null)},[(0,a._)("div",Bi,[(0,s.SU)(l).label?((0,a.wg)(),(0,a.j4)(c,{key:0,"sport-label":(0,s.SU)(l).label,color:(0,s.SU)(l).color},null,8,["sport-label","color"])):(0,a.kq)("",!0)]),(0,a._)("div",xi,[Yi,(0,s.SU)(i)?((0,a.wg)(),(0,a.iD)("span",Ki,(0,t.zw)((0,s.SU)(i).moving),1)):(0,a.kq)("",!0)]),(0,a._)("div",Hi,[ji,(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(u,{key:0,distance:(0,s.SU)(i).distance,digits:3,unitFrom:"km",useImperialUnits:(0,s.SU)(m)},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)]),E((0,s.SU)(i))?((0,a.wg)(),(0,a.iD)("div",Vi,[(0,a._)("img",{class:"mountains",src:"/img/workouts/mountains.svg",alt:e.$t("workouts.ELEVATION")},null,8,Zi),(0,a._)("div",$i,[(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(u,{key:0,distance:(0,s.SU)(i).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:(0,s.SU)(m)},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0),(0,a.Uk)("/ "),(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(u,{key:1,distance:(0,s.SU)(i).max_alt,unitFrom:"m",useImperialUnits:(0,s.SU)(m)},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)])])):(0,a.kq)("",!0),_((0,s.SU)(i))?((0,a.wg)(),(0,a.iD)("div",qi,[Xi,(0,a._)("div",Qi,[(0,a.Uk)(" +"),(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(u,{key:0,distance:(0,s.SU)(i).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:(0,s.SU)(m)},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0),(0,a.Uk)("/- "),(0,s.SU)(i).id?((0,a.wg)(),(0,a.j4)(u,{key:1,distance:(0,s.SU)(i).descent,unitFrom:"m",useImperialUnits:(0,s.SU)(m)},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)])])):(0,a.kq)("",!0)],2)])])}}});const es=(0,B.Z)(Ji,[["__scopeId","data-v-54b971cb"]]);var ns=es,rs=r(5630),ts=r(3768);const os={id:"timeline"},as={class:"section-title"},is={key:0},ss={key:1},ls={key:1,class:"more-workouts"};var cs=(0,a.aZ)({__name:"Timeline",props:{sports:null,user:null},setup(e){const n=e,r=(0,u.o)(),{sports:o,user:i}=(0,s.BK)(n),l=(0,s.iH)(1),m=5,d=n.user.nb_workouts>=m?m:n.user.nb_workouts;(0,a.wF)((()=>T()));const E=(0,a.Fl)((()=>r.getters[c.aX.GETTERS.TIMELINE_WORKOUTS])),_=(0,a.Fl)((()=>E.value.length>0&&null!==E.value[E.value.length-1].previous_workout));function T(){r.dispatch(c.aX.ACTIONS.GET_TIMELINE_WORKOUTS,{page:l.value,per_page:m,...ts.eR})}function S(){l.value+=1,r.dispatch(c.aX.ACTIONS.GET_MORE_TIMELINE_WORKOUTS,{page:l.value,per_page:m,...ts.eR})}return(e,n)=>((0,a.wg)(),(0,a.iD)("div",os,[(0,a._)("div",as,(0,t.zw)(e.$t("workouts.LATEST_WORKOUTS")),1),(0,s.SU)(i).nb_workouts>0&&0===(0,s.SU)(E).length?((0,a.wg)(),(0,a.iD)("div",is,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)([...Array((0,s.SU)(d)).keys()],(e=>((0,a.wg)(),(0,a.j4)(ns,{user:(0,s.SU)(i),useImperialUnits:(0,s.SU)(i).imperial_units,key:e},null,8,["user","useImperialUnits"])))),128))])):((0,a.wg)(),(0,a.iD)("div",ss,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(E),(e=>((0,a.wg)(),(0,a.j4)(ns,{workout:e,sport:(0,s.SU)(E).length>0?(0,s.SU)(o).filter((n=>n.id===e.sport_id))[0]:null,user:(0,s.SU)(i),useImperialUnits:(0,s.SU)(i).imperial_units,key:e.id},null,8,["workout","sport","user","useImperialUnits"])))),128)),0===(0,s.SU)(E).length?((0,a.wg)(),(0,a.j4)(rs.Z,{key:0})):(0,a.kq)("",!0),(0,s.SU)(_)?((0,a.wg)(),(0,a.iD)("div",ls,[(0,a._)("button",{onClick:S},(0,t.zw)(e.$t("workouts.LOAD_MORE_WORKOUT")),1)])):(0,a.kq)("",!0)]))]))}});const us=(0,B.Z)(cs,[["__scopeId","data-v-35567bf2"]]);var ms=us,ds=r(1640),Es=r(4559),_s=r(7349),Ts=r(1743),Ss=r(9160),ps=r(1085);const As=["title"];var zs=(0,a.aZ)({__name:"CalendarWorkout",props:{displayHARecord:{type:Boolean},workout:null,sportLabel:null,sportColor:null},setup(e){const n=e,{displayHARecord:r,workout:t,sportLabel:o,sportColor:i}=(0,s.BK)(n);return(e,n)=>{const l=(0,a.up)("SportImage");return(0,a.wg)(),(0,a.iD)("div",{class:"calendar-workout",onClick:n[0]||(n[0]=n=>e.$router.push({name:"Workout",params:{workoutId:(0,s.SU)(t).id}}))},[(0,a.Wm)(l,{"sport-label":(0,s.SU)(o),title:(0,s.SU)(t).title,color:(0,s.SU)(i)},null,8,["sport-label","title","color"]),(0,a._)("sup",null,[(0,s.SU)(t).records.length>0?((0,a.wg)(),(0,a.iD)("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:(0,s.SU)(t).records.filter((e=>!!(0,s.SU)(r)||"HA"!==e.record_type)).map((n=>` ${e.$t(`workouts.RECORD_${n.record_type}`)}`))},null,8,As)):(0,a.kq)("",!0)])])}}});const Os=zs;var Is=Os;const Rs={class:"donut-chart"},Ns={height:"34",width:"34",viewBox:"0 0 34 34"},gs=["stroke","stroke-dashoffset","transform"];var Us=(0,a.aZ)({__name:"DonutChart",props:{colors:null,datasets:null},setup(e){const n=e,{colors:r,datasets:t}=(0,s.BK)(n);let o=-90;const i=16,l=16,c=14,u=2*Math.PI*c;function m(e,n){return n-e*n}function d(e,n){const r=`rotate(${o}, ${i}, ${l})`;return o=360*n+o,r}return(e,n)=>((0,a.wg)(),(0,a.iD)("div",Rs,[((0,a.wg)(),(0,a.iD)("svg",Ns,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.entries((0,s.SU)(t)),((e,n)=>((0,a.wg)(),(0,a.iD)("g",{key:n},[(0,a._)("circle",{cx:i,cy:l,r:c,fill:"transparent",stroke:(0,s.SU)(r)[+e[0]],"stroke-dashoffset":m(e[1].percentage,u),"stroke-dasharray":u,"stroke-width":"3","stroke-opacity":"0.8",transform:d(n,e[1].percentage)},null,8,gs)])))),128))]))]))}});const Cs=Us;var Ds=Cs;const hs={class:"calendar-workouts-chart"},ws={class:"workouts-count"},Ps={key:0,class:"workouts-pane"},vs={class:"more-workouts"};var Ls=(0,a.aZ)({__name:"CalendarWorkoutsChart",props:{colors:null,datasets:null,sports:null,workouts:null},setup(e){const n=e,{colors:r,datasets:o,sports:i,workouts:l}=(0,s.BK)(n),c=(0,s.iH)(!0);function u(e){e.stopPropagation(),c.value=!c.value}return(e,n)=>{const m=(0,a.Q2)("click-outside");return(0,a.wg)(),(0,a.iD)("div",hs,[(0,a._)("div",{class:"workouts-chart",onClick:u},[(0,a._)("div",ws,(0,t.zw)((0,s.SU)(l).length),1),(0,a.Wm)(Ds,{datasets:(0,s.SU)(o),colors:(0,s.SU)(r)},null,8,["datasets","colors"])]),c.value?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",Ps,[(0,a.wy)(((0,a.wg)(),(0,a.iD)("div",vs,[(0,a._)("i",{class:"fa fa-times calendar-more","aria-hidden":"true",onClick:u}),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(l),((e,n)=>((0,a.wg)(),(0,a.j4)(Is,{key:n,workout:e,sportLabel:(0,s.SU)(Se.PA)(e,(0,s.SU)(i)),sportColor:(0,s.SU)(Se.CM)(e,(0,s.SU)(i))},null,8,["workout","sportLabel","sportColor"])))),128))])),[[m,u]])]))])}}});const fs=(0,B.Z)(Ls,[["__scopeId","data-v-52d4310a"]]);var ks=fs;const ys={class:"calendar-workouts"},bs={class:"desktop-display"},Ms={key:0,class:"workouts-display"},Gs={key:1,class:"donut-display"},Ws={class:"mobile-display"},Fs={key:0,class:"donut-display"};var Bs=(0,a.aZ)({__name:"CalendarWorkouts",props:{displayHARecord:{type:Boolean},workouts:null,sports:null},setup(e){const n=e,{displayHARecord:r,workouts:t,sports:o}=(0,s.BK)(n),i=(0,a.Fl)((()=>(0,ts.BN)(n.workouts))),l=(0,a.Fl)((()=>(0,Se.Yx)(n.sports))),c=6;return(e,n)=>((0,a.wg)(),(0,a.iD)("div",ys,[(0,a._)("div",bs,[(0,s.SU)(t).length<=c?((0,a.wg)(),(0,a.iD)("div",Ms,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,s.SU)(t).slice(0,c),((e,n)=>((0,a.wg)(),(0,a.j4)(Is,{key:n,displayHARecord:(0,s.SU)(r),workout:e,sportLabel:(0,s.SU)(Se.PA)(e,(0,s.SU)(o)),sportColor:(0,s.SU)(Se.CM)(e,(0,s.SU)(o))},null,8,["displayHARecord","workout","sportLabel","sportColor"])))),128))])):((0,a.wg)(),(0,a.iD)("div",Gs,[(0,a.Wm)(ks,{workouts:(0,s.SU)(t),sports:(0,s.SU)(o),datasets:(0,s.SU)(i),colors:(0,s.SU)(l)},null,8,["workouts","sports","datasets","colors"])]))]),(0,a._)("div",Ws,[(0,s.SU)(t).length>0?((0,a.wg)(),(0,a.iD)("div",Fs,[(0,a.Wm)(ks,{workouts:(0,s.SU)(t),sports:(0,s.SU)(o),datasets:(0,s.SU)(i),colors:(0,s.SU)(l)},null,8,["workouts","sports","datasets","colors"])])):(0,a.kq)("",!0)])]))}});const xs=Bs;var Ys=xs;const Ks={class:"calendar-cells"},Hs={class:"calendar-cell-day"};var js=(0,a.aZ)({__name:"CalendarCells",props:{currentDay:null,displayHARecord:{type:Boolean},endDate:null,sports:null,startDate:null,timezone:null,weekStartingMonday:{type:Boolean},workouts:null},setup(e){const n=e,{currentDay:r,displayHARecord:o,endDate:i,sports:l,startDate:c,timezone:u,weekStartingMonday:m,workouts:d}=(0,s.BK)(n),E=(0,s.iH)([]);function _(){E.value=[];let e=c.value;while(e<=i.value){const n=[];for(let r=0;r<7;r++)n.push(e),e=(0,_s.Z)(e,1);E.value.push(n)}}function T(e){return m.value?[5,6].includes(e):[0,6].includes(e)}function S(e,n){return n?n.filter((n=>(0,Ts.Z)((0,qe.eB)(n.workout_date,u.value),e))).reverse():[]}return(0,a.bv)((()=>_())),(0,a.YP)((()=>n.currentDay),(()=>_())),(e,n)=>((0,a.wg)(),(0,a.iD)("div",Ks,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(E.value,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"calendar-row",key:n},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e,((e,n)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,t.C_)(["calendar-cell",{"disabled-cell":!(0,s.SU)(Ss.Z)(e,(0,s.SU)(r)),"week-end":T(n),today:(0,s.SU)(ps.Z)(e)}]),key:n},[(0,a.Wm)(Ys,{workouts:S(e,(0,s.SU)(d)),sports:(0,s.SU)(l),displayHARecord:(0,s.SU)(o)},null,8,["workouts","sports","displayHARecord"]),(0,a._)("div",Hs,(0,t.zw)((0,s.SU)(Ir.Z)(e,"d")),1)],2)))),128))])))),128))]))}});const Vs=js;var Zs=Vs;const $s={class:"calendar-days"};var qs=(0,a.aZ)({__name:"CalendarDays",props:{startDate:null,localeOptions:null},setup(e){const n=e,r=[];for(let t=0;t<7;t++)r.push((0,_s.Z)(n.startDate,t));return(n,o)=>((0,a.wg)(),(0,a.iD)("div",$s,[((0,a.wg)(),(0,a.iD)(a.HY,null,(0,a.Ko)(r,((n,r)=>(0,a._)("div",{class:"calendar-day",key:r},(0,t.zw)((0,s.SU)(Ir.Z)(n,"EEE",{locale:e.localeOptions})),1))),64))]))}});const Xs=qs;var Qs=Xs;const Js={class:"calendar-header"},el=(0,a._)("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1),nl=[el],rl={class:"calendar-month"},tl=(0,a._)("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1),ol=[tl];var al=(0,a.aZ)({__name:"CalendarHeader",props:{day:null,localeOptions:null},emits:["displayNextMonth","displayPreviousMonth"],setup(e,{emit:n}){const r=e,{day:o,localeOptions:i}=(0,s.BK)(r);return(e,r)=>((0,a.wg)(),(0,a.iD)("div",Js,[(0,a._)("div",{class:"calendar-arrow calendar-arrow-left",onClick:r[0]||(r[0]=e=>n("displayPreviousMonth"))},nl),(0,a._)("div",rl,[(0,a._)("span",null,(0,t.zw)((0,s.SU)(Ir.Z)((0,s.SU)(o),"MMM yyyy",{locale:(0,s.SU)(i)})),1)]),(0,a._)("div",{class:"calendar-arrow calendar-arrow-right",onClick:r[1]||(r[1]=e=>n("displayNextMonth"))},ol)]))}});const il=al;var sl=il;const ll={id:"user-calendar"},cl={class:"calendar-card box"};var ul=(0,a.aZ)({__name:"index",props:{sports:null,user:null},setup(e){const n=e,r=(0,u.o)(),{sports:t,user:o}=(0,s.BK)(n),i="yyyy-MM-dd",l=(0,s.iH)(new Date),m=(0,s.iH)((0,qe.yx)(l.value,o.value.weekm)),d=(0,a.Fl)((()=>r.getters[c.aX.GETTERS.CALENDAR_WORKOUTS])),E=(0,a.Fl)((()=>r.getters[c.SY.GETTERS.LOCALE]));function _(){m.value=(0,qe.yx)(l.value,n.user.weekm);const e={from:(0,Ir.Z)(m.value.start,i),to:(0,Ir.Z)(m.value.end,i),page:1,per_page:100,...ts.eR};r.dispatch(c.aX.ACTIONS.GET_CALENDAR_WORKOUTS,e)}function T(){l.value=(0,ds.Z)(l.value,1),_()}function S(){l.value=(0,Es.Z)(l.value,1),_()}return(0,a.wF)((()=>_())),(e,n)=>((0,a.wg)(),(0,a.iD)("div",ll,[(0,a._)("div",cl,[(0,a.Wm)(sl,{day:l.value,"locale-options":(0,s.SU)(E),onDisplayNextMonth:T,onDisplayPreviousMonth:S},null,8,["day","locale-options"]),(0,a.Wm)(Qs,{"start-date":m.value.start,"locale-options":(0,s.SU)(E)},null,8,["start-date","locale-options"]),(0,a.Wm)(Zs,{currentDay:l.value,displayHARecord:(0,s.SU)(o).display_ascent,"end-date":m.value.end,sports:(0,s.SU)(t),"start-date":m.value.start,timezone:(0,s.SU)(o).timezone,workouts:(0,s.SU)(d),weekStartingMonday:(0,s.SU)(o).weekm},null,8,["currentDay","displayHARecord","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])]))}});const ml=ul;var dl=ml,El=r(3703),_l=r(4135),Tl=r(454);const Sl={class:"user-month-stats"};var pl=(0,a.aZ)({__name:"UserMonthStats",props:{sports:null,user:null},setup(e){const n=e,{sports:r,user:o}=(0,s.BK)(n),i=new Date,l={duration:"week",start:(0,El.Z)(i),end:(0,_l.Z)(i)},c=r.value.map((e=>e.id));return(e,n)=>{const i=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Sl,[(0,a.Wm)(i,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("dashboard.THIS_MONTH")),1)])),content:(0,a.w5)((()=>[(0,a.Wm)(Tl.Z,{sports:(0,s.SU)(r),user:(0,s.SU)(o),"chart-params":l,"displayed-sport-ids":(0,s.SU)(c),"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])])),_:1})])}}});const Al=(0,B.Z)(pl,[["__scopeId","data-v-1aba097c"]]);var zl=Al,Ol=r(3649);const{locale:Il}=Xa.Z.global,Rl=(e,n,r,t)=>{const o="km",a=r?Ol.Dl[o].defaultTarget:o,i="m",s=r?Ol.Dl[i].defaultTarget:i;let l;switch(e.record_type){case"AS":case"MS":l=`${(0,Ol.sC)(+e.value,o,a,2)} ${a}/h`;break;case"FD":l=`${(0,Ol.sC)(+e.value,o,a,3)} ${a}`;break;case"HA":l=`${(0,Ol.sC)(+e.value,i,s,2)} ${s}`;break;case"LD":l=e.value;break;default:throw new Error(`Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "${e.record_type}"`)}return{workout_date:(0,qe.p6)(e.workout_date,n,t,!1),workout_id:e.workout_id,id:e.id,record_type:e.record_type,value:l}},Nl=(e,n)=>{const r=e.label.toLowerCase(),t=n.label.toLowerCase();return r>t?1:r(a=(0,qe.mh)(a,Il.value),e.filter((e=>!!o||"HA"!==e.record_type)).reduce(((e,o)=>{const i=n.find((e=>e.id===o.sport_id));return i&&i.label&&(void 0===e[i.translatedLabel]&&(e[i.translatedLabel]={label:i.label,color:i.color,records:[]}),e[i.translatedLabel].records.push(Rl(o,r,t,a))),e}),{})),Ul={class:"records-card"},Cl={class:"record-type"},Dl={class:"record-value"},hl={class:"record-date"};var wl=(0,a.aZ)({__name:"RecordsCard",props:{records:null,sportTranslatedLabel:null},setup(e){const n=e,{records:r,sportTranslatedLabel:o}=(0,s.BK)(n),{t:i}=(0,Te.QT)();function l(e){const n=[];return e.map((e=>{n.push({...e,label:i(`workouts.RECORD_${e.record_type}`)})})),n.sort(Nl)}return(e,n)=>{const i=(0,a.up)("SportImage"),c=(0,a.up)("router-link"),u=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Ul,[(0,a.Wm)(u,null,{title:(0,a.w5)((()=>[(0,a.Wm)(i,{"sport-label":(0,s.SU)(r).label,color:(0,s.SU)(r).color},null,8,["sport-label","color"]),(0,a.Uk)(" "+(0,t.zw)((0,s.SU)(o)),1)])),content:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(l((0,s.SU)(r).records),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"record",key:e.id},[(0,a._)("span",Cl,(0,t.zw)(e.label),1),(0,a._)("span",Dl,(0,t.zw)(e.value),1),(0,a._)("span",hl,[(0,a.Wm)(c,{to:{name:"Workout",params:{workoutId:e.workout_id}}},{default:(0,a.w5)((()=>[(0,a._)("time",null,(0,t.zw)(e.workout_date),1)])),_:2},1032,["to"])])])))),128))])),_:1})])}}});const Pl=(0,B.Z)(wl,[["__scopeId","data-v-2602d606"]]);var vl=Pl;const Ll=e=>((0,a.dD)("data-v-f0c85cb8"),e=e(),(0,a.Cn)(),e),fl={class:"user-records-section"},kl={class:"section-title"},yl=Ll((()=>(0,a._)("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1))),bl={class:"user-records"},Ml={key:0,class:"no-records"};var Gl=(0,a.aZ)({__name:"index",props:{sports:null,user:null},setup(e){const n=e,{t:r}=(0,Te.QT)(),o=(0,a.Fl)((()=>gl(n.user.records,(0,Se.xH)(n.sports,r),n.user.timezone,n.user.imperial_units,n.user.display_ascent,n.user.date_format)));return(n,r)=>((0,a.wg)(),(0,a.iD)("div",fl,[(0,a._)("div",kl,[yl,(0,a.Uk)(" "+(0,t.zw)(n.$t("workouts.RECORD",2)),1)]),(0,a._)("div",bl,[0===Object.keys((0,s.SU)(o)).length?((0,a.wg)(),(0,a.iD)("div",Ml,(0,t.zw)(n.$t("workouts.NO_RECORDS")),1)):(0,a.kq)("",!0),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.keys((0,s.SU)(o)).sort(),(n=>((0,a.wg)(),(0,a.j4)(vl,{sportTranslatedLabel:n,records:(0,s.SU)(o)[n],key:n,useImperialUnits:e.user.imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"])))),128))])]))}});const Wl=(0,B.Z)(Gl,[["__scopeId","data-v-f0c85cb8"]]);var Fl=Wl;const Bl={id:"user-stats"};var xl=(0,a.aZ)({__name:"index",props:{user:null},setup(e){const n=e,{t:r}=(0,Te.QT)(),{user:t}=(0,s.BK)(n),o=(0,a.Fl)((()=>n.user.total_duration)),i=(0,a.Fl)((()=>_(o))),l="km",c=t.value.imperial_units?Ol.Dl[l].defaultTarget:l,u=(0,a.Fl)((()=>t.value.imperial_units?(0,Ol.sC)(t.value.total_distance,l,c,2):parseFloat(t.value.total_distance.toFixed(2)))),m="m",d=t.value.imperial_units?Ol.Dl[m].defaultTarget:m,E=(0,a.Fl)((()=>t.value.imperial_units?(0,Ol.sC)(t.value.total_ascent,m,d,2):parseFloat(t.value.total_ascent.toFixed(2))));function _(e){const n=e.value.match(/day/g)?e.value.split(", ")[1]:e.value;return{days:e.value.match(/day/g)?`${e.value.split(" ")[0]} ${e.value.match(/days/g)?r("common.DAY",2):r("common.DAY",1)}`:`0 ${r("common.DAY",2)},`,duration:`${n.split(":")[0]}h ${n.split(":")[1]}min`}}return(e,n)=>((0,a.wg)(),(0,a.iD)("div",Bl,[(0,a.Wm)(Q,{icon:"calendar",value:(0,s.SU)(t).nb_workouts,text:e.$t("workouts.WORKOUT",(0,s.SU)(t).nb_workouts)},null,8,["value","text"]),(0,a.Wm)(Q,{icon:"road",value:(0,s.SU)(u),text:"mi"===(0,s.SU)(c)?"miles":(0,s.SU)(c)},null,8,["value","text"]),(0,s.SU)(t).display_ascent?((0,a.wg)(),(0,a.j4)(Q,{key:0,icon:"location-arrow",value:(0,s.SU)(E),text:"ft"===(0,s.SU)(d)?"feet":(0,s.SU)(d)},null,8,["value","text"])):(0,a.kq)("",!0),(0,a.Wm)(Q,{icon:"clock-o",value:(0,s.SU)(i).days,text:(0,s.SU)(i).duration},null,8,["value","text"]),(0,s.SU)(t).display_ascent?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(Q,{key:1,icon:"tags",value:(0,s.SU)(t).nb_sports,text:e.$t("workouts.SPORT",(0,s.SU)(t).nb_sports)},null,8,["value","text"]))]))}});const Yl=xl;var Kl=Yl;const Hl={class:"privacy-policy-message"};function jl(e,n){const r=(0,a.up)("router-link"),o=(0,a.up)("i18n-t");return(0,a.wg)(),(0,a.iD)("div",Hl,[(0,a._)("span",null,[(0,a.Wm)(o,{keypath:"user.LAST_PRIVACY_POLICY_TO_VALIDATE"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{to:"/profile/edit/privacy-policy"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,t.zw)(e.$t("user.REVIEW")),1)])),_:1})])),_:1})])])}const Vl={},Zl=(0,B.Z)(Vl,[["render",jl],["__scopeId","data-v-05532ad6"]]);var $l=Zl;const ql=e=>((0,a.dD)("data-v-40886688"),e=e(),(0,a.Cn)(),e),Xl={key:0,id:"dashboard",class:"view"},Ql={class:"container mobile-menu"},Jl={class:"box"},ec=ql((()=>(0,a._)("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1))),nc=[ec],rc=ql((()=>(0,a._)("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1))),tc=[rc],oc=ql((()=>(0,a._)("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1))),ac=[oc],ic=ql((()=>(0,a._)("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1))),sc=[ic],lc={key:0,class:"container privacy-policy-message"},cc={class:"container"},uc={class:"container dashboard-container"},mc={class:"left-container dashboard-sub-container"},dc={class:"right-container dashboard-sub-container"},Ec=ql((()=>(0,a._)("div",{id:"bottom"},null,-1))),_c={key:1,class:"app-loading"};var Tc=(0,a.aZ)({__name:"Dashboard",setup(e){const n=(0,u.o)(),r=(0,a.Fl)((()=>n.getters[c.YN.GETTERS.AUTH_USER_PROFILE])),o=(0,a.Fl)((()=>n.getters[c.O8.GETTERS.SPORTS])),i=(0,s.iH)("calendar");function l(e){i.value=e}return(0,a.wF)((()=>n.dispatch(c.YN.ACTIONS.GET_USER_PROFILE))),(e,n)=>{const c=(0,a.up)("Loader");return(0,s.SU)(r).username&&(0,s.SU)(o).length>0?((0,a.wg)(),(0,a.iD)("div",Xl,[(0,a._)("div",Ql,[(0,a._)("div",Jl,[(0,a._)("div",{class:(0,t.C_)(["mobile-menu-item",{"is-selected":"calendar"===i.value}]),onClick:n[0]||(n[0]=e=>l("calendar"))},nc,2),(0,a._)("div",{class:(0,t.C_)(["mobile-menu-item",{"is-selected":"chart"===i.value}]),onClick:n[1]||(n[1]=e=>l("chart"))},tc,2),(0,a._)("div",{class:(0,t.C_)(["mobile-menu-item",{"is-selected":"timeline"===i.value}]),onClick:n[2]||(n[2]=e=>l("timeline"))},ac,2),(0,a._)("div",{class:(0,t.C_)(["mobile-menu-item",{"is-selected":"records"===i.value}]),onClick:n[3]||(n[3]=e=>l("records"))},sc,2)])]),(0,s.SU)(r).accepted_privacy_policy?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",lc,[(0,a.Wm)($l)])),(0,a._)("div",cc,[(0,a.Wm)(Kl,{user:(0,s.SU)(r)},null,8,["user"])]),(0,a._)("div",uc,[(0,a._)("div",mc,[(0,a.Wm)(zl,{sports:(0,s.SU)(o),user:(0,s.SU)(r),class:(0,t.C_)({"is-hidden":!("chart"===i.value)})},null,8,["sports","user","class"]),(0,a.Wm)(Fl,{sports:(0,s.SU)(o),user:(0,s.SU)(r),class:(0,t.C_)({"is-hidden":!("records"===i.value)})},null,8,["sports","user","class"])]),(0,a._)("div",dc,[(0,a.Wm)(dl,{sports:(0,s.SU)(o),user:(0,s.SU)(r),class:(0,t.C_)({"is-hidden":!("calendar"===i.value)})},null,8,["sports","user","class"]),(0,a.Wm)(ms,{sports:(0,s.SU)(o),user:(0,s.SU)(r),class:(0,t.C_)({"is-hidden":!("timeline"===i.value)})},null,8,["sports","user","class"])])]),Ec])):((0,a.wg)(),(0,a.iD)("div",_c,[(0,a.Wm)(c)]))}}});const Sc=(0,B.Z)(Tc,[["__scopeId","data-v-40886688"]]);var pc=Sc,Ac=r(8273);const zc={class:"not-found view"};var Oc=(0,a.aZ)({__name:"NotFoundView",setup(e){return(e,n)=>((0,a.wg)(),(0,a.iD)("div",zc,[(0,a.Wm)(Ac.Z)]))}});const Ic=Oc;var Rc=Ic;const Nc={id:"privacy-policy",class:"view"},gc={class:"container"},Uc=(0,a._)("div",{id:"bottom"},null,-1);var Cc=(0,a.aZ)({__name:"PrivacyPolicyView",setup(e){const n=(0,u.o)();return(0,a.wF)((()=>{n.dispatch(c.SY.ACTIONS.GET_APPLICATION_PRIVACY_POLICY)})),(e,n)=>((0,a.wg)(),(0,a.iD)("div",Nc,[(0,a._)("div",gc,[(0,a.Wm)(eo)]),Uc]))}});const Dc=Cc;var hc=Dc,wc=r(776);const Pc={id:"loginOrRegister",class:"view"},vc={class:"container"},Lc={class:"container-sub"},fc={class:"container-sub"};var kc=(0,a.aZ)({__name:"LoginOrRegister",props:{action:null},setup(e){const n=e,{action:r}=(0,s.BK)(n);return(e,n)=>((0,a.wg)(),(0,a.iD)("div",Pc,[(0,a._)("div",vc,[(0,a._)("div",Lc,[(0,a.Wm)(Ni)]),(0,a._)("div",fc,[(0,a.Wm)(wc.Z,{action:(0,s.SU)(r)},null,8,["action"])])])]))}});const yc=(0,B.Z)(kc,[["__scopeId","data-v-58043acb"]]);var bc=yc;const{t:Mc}=Xa.Z.global,Gc=e=>{const n=/(\/profile)(\/edit)*(\/*)/,r=e.replace(n,"").toUpperCase();return""===r?"PROFILE":r.toUpperCase()},Wc=[{path:"/",name:"Dashboard",component:pc,meta:{title:"dashboard.DASHBOARD"}},{path:"/login",name:"Login",component:bc,props:{action:"login"},meta:{title:"user.LOGIN"}},{path:"/register",name:"Register",component:bc,props:{action:"register"},meta:{title:"user.REGISTER"}},{path:"/account-confirmation",name:"AccountConfirmation",component:()=>r.e(845).then(r.bind(r,4264)),meta:{title:"user.ACCOUNT_CONFIRMATION"}},{path:"/account-confirmation/resend",name:"AccountConfirmationResend",component:()=>r.e(24).then(r.bind(r,5639)),props:{action:"account-confirmation-resend"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND"}},{path:"/account-confirmation/email-sent",name:"AccountConfirmationEmailSend",component:()=>r.e(24).then(r.bind(r,5639)),props:{action:"email-sent"},meta:{title:"buttons.ACCOUNT-CONFIRMATION-RESEND"}},{path:"/password-reset/sent",name:"PasswordEmailSent",component:()=>r.e(24).then(r.bind(r,1627)),props:{action:"request-sent"},meta:{title:"user.PASSWORD_RESET"}},{path:"/password-reset/request",name:"PasswordResetRequest",component:()=>r.e(24).then(r.bind(r,1627)),props:{action:"reset-request"},meta:{title:"user.PASSWORD_RESET"}},{path:"/password-reset/password-updated",name:"PasswordUpdated",component:()=>r.e(24).then(r.bind(r,1627)),props:{action:"password-updated"},meta:{title:"user.PASSWORD_RESET"}},{path:"/password-reset",name:"PasswordReset",component:()=>r.e(24).then(r.bind(r,1627)),props:{action:"reset"},meta:{title:"user.PASSWORD_RESET"}},{path:"/email-update",name:"EmailUpdate",component:()=>r.e(845).then(r.bind(r,8160)),meta:{title:"user.EMAIL_UPDATE"}},{path:"/profile",name:"Profile",component:()=>r.e(845).then(r.bind(r,4669)),children:[{path:"",name:"UserProfile",component:kn,props:e=>({tab:Gc(e.path)}),children:[{path:"",name:"UserInfos",component:yn.Z,meta:{title:"user.PROFILE.TABS.PROFILE"}},{path:"preferences",name:"UserPreferences",component:Yn,meta:{title:"user.PROFILE.TABS.PREFERENCES"}},{path:"sports",name:"UserSportPreferences",component:qa,props:{isEdition:!1},meta:{title:"user.PROFILE.TABS.SPORTS"}},{path:"apps",name:"UserApps",component:Xo,children:[{path:"",name:"UserAppsList",component:Oa,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id",name:"UserApp",component:ma,meta:{title:"user.PROFILE.TABS.APPS"}},{path:":id/created",name:"CreatedUserApp",component:ma,props:{afterCreation:!0},meta:{title:"user.PROFILE.TABS.APPS"}},{path:"new",name:"AddUserApp",component:yo,meta:{title:"user.PROFILE.TABS.APPS"}},{path:"authorize",name:"AuthorizeUserApp",component:Vo,meta:{title:"user.PROFILE.TABS.APPS"}}]}]},{path:"edit",name:"UserProfileEdition",component:Vn,props:e=>({tab:Gc(e.path)}),children:[{path:"",name:"UserInfosEdition",component:Wr,meta:{title:"user.PROFILE.EDIT"}},{path:"account",name:"UserAccountEdition",component:Or,meta:{title:"user.PROFILE.ACCOUNT_EDITION"}},{path:"picture",name:"UserPictureEdition",component:Xr,meta:{title:"user.PROFILE.PICTURE_EDITION"}},{path:"preferences",name:"UserPreferencesEdition",component:Vt,meta:{title:"user.PROFILE.EDIT_PREFERENCES"}},{path:"sports",name:"UserSportPreferencesEdition",component:qa,props:{isEdition:!0},meta:{title:"user.PROFILE.EDIT_SPORTS_PREFERENCES"}},{path:"privacy-policy",name:"UserPrivacyPolicy",component:co,meta:{title:"user.PROFILE.PRIVACY-POLICY_EDITION"}}]}]},{path:"/statistics",name:"Statistics",component:()=>r.e(193).then(r.bind(r,1546)),meta:{title:"statistics.STATISTICS"}},{path:"/users/:username",name:"User",component:()=>r.e(845).then(r.bind(r,9453)),meta:{title:"administration.USER"}},{path:"/workouts",name:"Workouts",component:()=>r.e(401).then(r.bind(r,4923)),meta:{title:"workouts.WORKOUT",count:0}},{path:"/workouts/:workoutId",name:"Workout",component:()=>r.e(401).then(r.bind(r,2393)),props:{displaySegment:!1},meta:{title:"workouts.WORKOUT"}},{path:"/workouts/:workoutId/edit",name:"EditWorkout",component:()=>r.e(401).then(r.bind(r,8237)),meta:{title:"workouts.EDIT_WORKOUT"}},{path:"/workouts/:workoutId/segment/:segmentId",name:"WorkoutSegment",component:()=>r.e(401).then(r.bind(r,2393)),props:{displaySegment:!0},meta:{title:"workouts.SEGMENT",count:0}},{path:"/workouts/add",name:"AddWorkout",component:()=>r.e(401).then(r.bind(r,4189)),meta:{title:"workouts.ADD_WORKOUT"}},{path:"/admin",name:"Administration",component:()=>r.e(328).then(r.bind(r,6e3)),children:[{path:"",name:"AdministrationMenu",component:_e,meta:{title:"admin.ADMINISTRATION"}},{path:"application",name:"ApplicationAdministration",component:Y,meta:{title:"admin.APP_CONFIG.TITLE"}},{path:"application/edit",name:"ApplicationAdministrationEdition",component:Y,props:{edition:!0},meta:{title:"admin.APPLICATION"}},{path:"sports",name:"SportsAdministration",component:We,meta:{title:"admin.SPORTS.TITLE"}},{path:"users/:username",name:"UserFromAdmin",component:()=>r.e(845).then(r.bind(r,9453)),props:{fromAdmin:!0},meta:{title:"admin.USER",count:1}},{path:"users",name:"UsersAdministration",component:In,meta:{title:"admin.USERS.TITLE"}}]},{path:"/about",name:"About",component:Pi,meta:{title:"common.ABOUT"}},{path:"/privacy-policy",name:"PrivacyPolicy",component:hc,meta:{title:"privacy_policy.TITLE"}},{path:"/:pathMatch(.*)*",name:"not-found",component:Rc,meta:{title:"error.NOT_FOUND.PAGE"}}],Fc=(0,o.p7)({history:(0,o.PO)("/"),routes:Wc}),Bc=["/login","/password-reset","/password-reset/password-updated","/password-reset/request","/password-reset/sent","/register","/account-confirmation","/account-confirmation/resend","/account-confirmation/email-sent"],xc=["/email-update","/about","/privacy-policy"];Fc.beforeEach(((e,n,r)=>{if("title"in e.meta){const n="string"===typeof e.meta.title?e.meta.title:"",r=n?"number"===typeof e.meta.count?Mc(n,+e.meta.count):Mc(n):"";window.document.title="FitTrackee"+(n?` - ${(0,t.kC)(r)}`:"")}Qa.Z.dispatch(c.YN.ACTIONS.CHECK_AUTH_USER).then((()=>{if(xc.includes(e.path))return r();if(Qa.Z.getters[c.YN.GETTERS.IS_AUTHENTICATED]&&Bc.includes(e.path))return r("/");if(Qa.Z.getters[c.YN.GETTERS.IS_AUTHENTICATED]||Bc.includes(e.path))r();else{const n="/"===e.path?{path:"/login"}:{path:"/login",query:{from:e.fullPath}};r(n)}})).catch((e=>{console.error(e),r()}))}));var Yc=Fc},5801:function(e,n,r){"use strict";var t,o,a,i,s,l,c,u,m,d,E,_,T,S,p,A,z,O;r.d(n,{YN:function(){return U},Km:function(){return C},SY:function(){return R},O8:function(){return N},gu:function(){return g},RT:function(){return D},aX:function(){return h}}),function(e){e["ACCEPT_PRIVACY_POLICY"]="ACCEPT_PRIVACY_POLICY",e["CHECK_AUTH_USER"]="CHECK_AUTH_USER",e["CONFIRM_ACCOUNT"]="CONFIRM_ACCOUNT",e["CONFIRM_EMAIL"]="CONFIRM_EMAIL",e["DELETE_ACCOUNT"]="DELETE_ACCOUNT",e["DELETE_PICTURE"]="DELETE_PICTURE",e["GET_REQUEST_DATA_EXPORT"]="GET_REQUEST_DATA_EXPORT",e["GET_USER_PROFILE"]="GET_USER_PROFILE",e["LOGIN_OR_REGISTER"]="LOGIN_OR_REGISTER",e["LOGOUT"]="LOGOUT",e["REQUEST_DATA_EXPORT"]="REQUEST_DATA_EXPORT",e["RESEND_ACCOUNT_CONFIRMATION_EMAIL"]="RESEND_ACCOUNT_CONFIRMATION_EMAIL",e["RESET_USER_PASSWORD"]="RESET_USER_PASSWORD",e["RESET_USER_SPORT_PREFERENCES"]="RESET_USER_SPORT_PREFERENCES",e["SEND_PASSWORD_RESET_REQUEST"]="SEND_PASSWORD_RESET_REQUEST",e["UPDATE_USER_ACCOUNT"]="UPDATE_USER_ACCOUNT",e["UPDATE_USER_PICTURE"]="UPDATE_USER_PICTURE",e["UPDATE_USER_PROFILE"]="UPDATE_USER_PROFILE",e["UPDATE_USER_PREFERENCES"]="UPDATE_USER_PREFERENCES",e["UPDATE_USER_SPORT_PREFERENCES"]="UPDATE_USER_SPORT_PREFERENCES"}(t||(t={})),function(e){e["AUTH_TOKEN"]="AUTH_TOKEN",e["AUTH_USER_PROFILE"]="AUTH_USER_PROFILE",e["IS_ADMIN"]="IS_ADMIN",e["IS_AUTHENTICATED"]="IS_AUTHENTICATED",e["IS_SUCCESS"]="IS_SUCCESS",e["IS_REGISTRATION_SUCCESS"]="IS_REGISTRATION_SUCCESS",e["USER_LOADING"]="USER_LOADING",e["EXPORT_REQUEST"]="EXPORT_REQUEST"}(o||(o={})),function(e){e["CLEAR_AUTH_USER_TOKEN"]="CLEAR_AUTH_USER_TOKEN",e["UPDATE_AUTH_TOKEN"]="UPDATE_AUTH_TOKEN",e["UPDATE_AUTH_USER_PROFILE"]="UPDATE_AUTH_USER_PROFILE",e["UPDATE_IS_SUCCESS"]="UPDATE_USER_IS_SUCCESS",e["UPDATE_IS_REGISTRATION_SUCCESS"]="UPDATE_IS_REGISTRATION_SUCCESS",e["UPDATE_USER_LOADING"]="UPDATE_USER_LOADING",e["SET_EXPORT_REQUEST"]="SET_EXPORT_REQUEST"}(a||(a={})),function(e){e["AUTHORIZE_CLIENT"]="AUTHORIZE_CLIENT",e["CREATE_CLIENT"]="CREATE_CLIENT",e["DELETE_CLIENT"]="DELETE_CLIENT",e["GET_CLIENTS"]="GET_CLIENTS",e["GET_CLIENT_BY_CLIENT_ID"]="GET_CLIENT_BY_CLIENT_ID",e["GET_CLIENT_BY_ID"]="GET_CLIENT_BY_ID",e["REVOKE_ALL_TOKENS"]="REVOKE_ALL_TOKENS"}(i||(i={})),function(e){e["CLIENT"]="CLIENT",e["CLIENTS"]="CLIENTS",e["CLIENTS_PAGINATION"]="CLIENTS_PAGINATION",e["REVOCATION_SUCCESSFUL"]="REVOCATION_SUCCESSFUL"}(s||(s={})),function(e){e["EMPTY_CLIENT"]="EMPTY_CLIENT",e["SET_CLIENT"]="SET_CLIENT",e["SET_CLIENTS"]="SET_CLIENTS",e["SET_CLIENTS_PAGINATION"]="SET_CLIENTS_PAGINATION",e["SET_REVOCATION_SUCCESSFUL"]="SET_REVOCATION_SUCCESSFUL"}(l||(l={})),function(e){e["GET_APPLICATION_CONFIG"]="GET_APPLICATION_CONFIG",e["GET_APPLICATION_PRIVACY_POLICY"]="GET_APPLICATION_PRIVACY_POLICY",e["GET_APPLICATION_STATS"]="GET_APPLICATION_STATS",e["UPDATE_APPLICATION_CONFIG"]="UPDATE_APPLICATION_CONFIG",e["UPDATE_APPLICATION_LANGUAGE"]="UPDATE_APPLICATION_LANGUAGE"}(c||(c={})),function(e){e["APP_CONFIG"]="APP_CONFIG",e["APP_LOADING"]="APP_LOADING",e["APP_STATS"]="APP_STATS",e["ERROR_MESSAGES"]="ERROR_MESSAGES",e["LANGUAGE"]="LANGUAGE",e["LOCALE"]="LOCALE"}(u||(u={})),function(e){e["EMPTY_ERROR_MESSAGES"]="EMPTY_ERROR_MESSAGES",e["SET_ERROR_MESSAGES"]="SET_ERROR_MESSAGES",e["UPDATE_APPLICATION_CONFIG"]="UPDATE_APPLICATION_CONFIG",e["UPDATE_APPLICATION_LOADING"]="UPDATE_APPLICATION_LOADING",e["UPDATE_APPLICATION_PRIVACY_POLICY"]="UPDATE_APPLICATION_PRIVACY_POLICY",e["UPDATE_APPLICATION_STATS"]="UPDATE_APPLICATION_STATS",e["UPDATE_LANG"]="UPDATE_LANG"}(m||(m={})),function(e){e["GET_SPORTS"]="GET_SPORTS",e["UPDATE_SPORTS"]="UPDATE_SPORTS"}(d||(d={})),function(e){e["SPORTS"]="SPORTS"}(E||(E={})),function(e){e["SET_SPORTS"]="SET_SPORTS"}(_||(_={})),function(e){e["GET_USER_STATS"]="GET_USER_STATS"}(T||(T={})),function(e){e["USER_STATS"]="USER_STATS"}(S||(S={})),function(e){e["EMPTY_USER_STATS"]="EMPTY_USER_STATS",e["UPDATE_USER_STATS"]="UPDATE_USER_STATS"}(p||(p={})),function(e){e["EMPTY_USER"]="EMPTY_USER",e["EMPTY_USERS"]="EMPTY_USERS",e["GET_USER"]="GET_USER",e["GET_USERS"]="GET_USERS",e["UPDATE_USER"]="UPDATE_USER",e["DELETE_USER_ACCOUNT"]="DELETE_USER_ACCOUNT"}(A||(A={})),function(e){e["USER"]="USER",e["USERS"]="USERS",e["USERS_IS_SUCCESS"]="USERS_IS_SUCCESS",e["USERS_LOADING"]="USERS_LOADING",e["USERS_PAGINATION"]="USERS_PAGINATION"}(z||(z={})),function(e){e["UPDATE_USER"]="UPDATE_USER",e["UPDATE_USER_IN_USERS"]="UPDATE_USER_IN_USERS",e["UPDATE_USERS"]="UPDATE_USERS",e["UPDATE_USERS_LOADING"]="UPDATE_USERS_LOADING",e["UPDATE_USERS_PAGINATION"]="UPDATE_USERS_PAGINATION",e["UPDATE_IS_SUCCESS"]="UPDATE_IS_SUCCESS"}(O||(O={}));var I=r(52);const R={ACTIONS:c,GETTERS:u,MUTATIONS:m},N={ACTIONS:d,GETTERS:E,MUTATIONS:_},g={ACTIONS:T,GETTERS:S,MUTATIONS:p},U={ACTIONS:t,GETTERS:o,MUTATIONS:a},C={ACTIONS:i,GETTERS:s,MUTATIONS:l},D={ACTIONS:A,GETTERS:z,MUTATIONS:O},h={ACTIONS:I.tW,GETTERS:I.JP,MUTATIONS:I.CW}},2894:function(e,n,r){"use strict";r.d(n,{Z:function(){return me}});var t=r(3907),o=(r(7658),r(5167)),a=r(6154),i=r(8566),s=r(2024);const l=a.Z.create({baseURL:(0,s.k)()});l.interceptors.request.use((e=>{const n=new AbortController;e.signal=n.signal;const r=(0,i.a)(e);return i.j.set(r,n),e}),(e=>Promise.reject(e))),l.interceptors.response.use((e=>((0,i.a)(e.config),e)),(e=>("canceled"!==e.message&&e.response&&(0,i.a)(e.response.config),Promise.reject(e))));var c=l,u=r(5369),m=r(5801);const d=(e,n)=>{e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z["delete"](`users/${n.username}`).then((r=>{204===r.status?n.fromAdmin?u.Z.push("/admin/users"):e.dispatch(m.YN.ACTIONS.LOGOUT).then((()=>u.Z.push("/"))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},E={[m.RT.ACTIONS.EMPTY_USER](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.RT.MUTATIONS.UPDATE_USER,{})},[m.RT.ACTIONS.EMPTY_USERS](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.RT.MUTATIONS.UPDATE_USERS,[]),e.commit(m.RT.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[m.RT.ACTIONS.GET_USER](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.RT.MUTATIONS.UPDATE_USERS_LOADING,!0),o.Z.get(`users/${n}`).then((n=>{"success"===n.data.status?e.commit(m.RT.MUTATIONS.UPDATE_USER,n.data.data.users[0]):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.RT.MUTATIONS.UPDATE_USERS_LOADING,!1)))},[m.RT.ACTIONS.GET_USERS](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.RT.MUTATIONS.UPDATE_USERS_LOADING,!0),o.Z.get("users",{params:n}).then((n=>{"success"===n.data.status?(e.commit(m.RT.MUTATIONS.UPDATE_USERS,n.data.data.users),e.commit(m.RT.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.RT.MUTATIONS.UPDATE_USERS_LOADING,!1)))},[m.RT.ACTIONS.UPDATE_USER](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.RT.MUTATIONS.UPDATE_IS_SUCCESS,!1);const r={};void 0!==n.admin&&(r.admin=n.admin),n.resetPassword&&(r.reset_password=n.resetPassword),n.activate&&(r.activate=n.activate),void 0!==n.new_email&&(r.new_email=n.new_email),o.Z.patch(`users/${n.username}`,r).then((r=>{"success"===r.data.status?(e.commit(m.RT.MUTATIONS.UPDATE_USER_IN_USERS,r.data.data.users[0]),(n.resetPassword||n.new_email)&&e.commit(m.RT.MUTATIONS.UPDATE_IS_SUCCESS,!0),(n.activate||n.new_email)&&e.commit(m.RT.MUTATIONS.UPDATE_USER,r.data.data.users[0])):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.RT.MUTATIONS.UPDATE_USERS_LOADING,!1)))},[m.RT.ACTIONS.DELETE_USER_ACCOUNT](e,n){d(e,{username:n.username,fromAdmin:!0})}},_=e=>{localStorage.removeItem("authToken"),e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.gu.MUTATIONS.EMPTY_USER_STATS),e.commit(m.YN.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(m.RT.MUTATIONS.UPDATE_USERS,[]),e.commit(m.aX.MUTATIONS.EMPTY_WORKOUTS),e.commit(m.aX.MUTATIONS.EMPTY_WORKOUT),u.Z.push("/login")},T={[m.YN.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[m.YN.GETTERS.IS_AUTHENTICATED]&&(e.commit(m.YN.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE)),!window.localStorage.authToken&&e.getters[m.YN.GETTERS.IS_AUTHENTICATED]&&_(e)},[m.YN.ACTIONS.CONFIRM_ACCOUNT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),c.post("auth/account/confirm",{token:n.token}).then((n=>{if("success"===n.data.status){const r=n.data.auth_token;window.localStorage.setItem("authToken",r),e.commit(m.YN.MUTATIONS.UPDATE_AUTH_TOKEN,r),e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("/")))}else(0,s.S)(e,null)})).catch((n=>{(0,s.S)(e,n)}))},[m.YN.ACTIONS.CONFIRM_EMAIL](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_IS_SUCCESS,!1),c.post("/auth/email/update",{token:n.token}).then((r=>{"success"===r.data.status?(e.commit(m.YN.MUTATIONS.UPDATE_IS_SUCCESS,!0),n.refreshUser&&e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("/profile/edit/account"))),u.Z.push("/profile/edit/account")):(0,s.S)(e,null)})).catch((n=>{(0,s.S)(e,n)}))},[m.YN.ACTIONS.GET_USER_PROFILE](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("auth/profile").then((n=>{"success"===n.data.status?(e.commit(m.YN.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),n.data.data.accepted_privacy_policy||e.dispatch(m.SY.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),n.data.data.language&&e.dispatch(m.SY.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language),e.dispatch(m.O8.ACTIONS.GET_SPORTS)):((0,s.S)(e,null),_(e))})).catch((n=>{"canceled"!==n.message&&((0,s.S)(e,n),_(e))}))},[m.YN.ACTIONS.LOGIN_OR_REGISTER](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),c.post(`/auth/${n.actionType}`,n.formData).then((r=>{if("success"===r.data.status)if("login"===n.actionType){const t=r.data.auth_token;window.localStorage.setItem("authToken",t),e.commit(m.YN.MUTATIONS.UPDATE_AUTH_TOKEN,t),e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("string"===typeof n.redirectUrl?n.redirectUrl:"/")))}else u.Z.push("/login").then((()=>e.commit(m.YN.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0)));else(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.LOGOUT](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.post("auth/logout").then((n=>{"success"===n.data.status?_(e):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.UPDATE_USER_PROFILE](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),o.Z.post("auth/profile/edit",n).then((n=>{"success"===n.data.status?(e.commit(m.YN.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),u.Z.push("/profile")):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)))},[m.YN.ACTIONS.UPDATE_USER_ACCOUNT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(m.YN.MUTATIONS.UPDATE_IS_SUCCESS,!1),o.Z.patch("auth/profile/edit/account",n).then((n=>{"success"===n.data.status?(e.commit(m.YN.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(m.YN.MUTATIONS.UPDATE_IS_SUCCESS,!0)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)))},[m.YN.ACTIONS.UPDATE_USER_PREFERENCES](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),o.Z.post("auth/profile/edit/preferences",n).then((n=>{"success"===n.data.status?(e.commit(m.YN.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.dispatch(m.SY.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then((()=>u.Z.push("/profile/preferences")))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)))},[m.YN.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),o.Z["delete"](`auth/profile/reset/sports/${n}`).then((n=>{204===n.status?e.dispatch(m.O8.ACTIONS.GET_SPORTS):(0,s.S)(e,null)})).catch((n=>{(0,s.S)(e,n),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)}))},[m.YN.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),o.Z.post("auth/profile/edit/sports",n).then((n=>{"success"===n.data.status?e.dispatch(m.O8.ACTIONS.GET_SPORTS):(0,s.S)(e,null)})).catch((n=>{(0,s.S)(e,n),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)}))},[m.YN.ACTIONS.UPDATE_USER_PICTURE](e,n){if(e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),!n.picture)throw new Error("No file part");const r=new FormData;r.append("file",n.picture),o.Z.post("auth/picture",r,{headers:{"content-type":"multipart/form-data"}}).then((n=>{"success"===n.data.status?e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("/profile"))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)))},[m.YN.ACTIONS.DELETE_ACCOUNT](e,n){d(e,n)},[m.YN.ACTIONS.DELETE_PICTURE](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!0),o.Z["delete"]("auth/picture").then((n=>{204===n.status?e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("/profile"))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)))},[m.YN.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),c.post("auth/password/reset-request",n).then((n=>{"success"===n.data.status?u.Z.push("/password-reset/sent"):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),c.post("auth/account/resend-confirmation",n).then((n=>{"success"===n.data.status?u.Z.push("/account-confirmation/email-sent"):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.RESET_USER_PASSWORD](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),c.post("auth/password/update",n).then((n=>{"success"===n.data.status?u.Z.push("/password-reset/password-updated"):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.ACCEPT_PRIVACY_POLICY](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.post("auth/account/privacy-policy",{accepted_policy:n}).then((n=>{"success"===n.data.status?e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE).then((()=>u.Z.push("/profile"))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.post("auth/account/export/request").then((n=>{"success"===n.data.status?e.commit(m.YN.MUTATIONS.SET_EXPORT_REQUEST,n.data.request):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.YN.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("auth/account/export").then((n=>{"success"===n.data.status?e.commit(m.YN.MUTATIONS.SET_EXPORT_REQUEST,n.data.request):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))}},S={[m.YN.GETTERS.AUTH_TOKEN]:e=>e.authToken,[m.YN.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[m.YN.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[m.YN.GETTERS.IS_AUTHENTICATED]:e=>null!==e.authToken,[m.YN.GETTERS.IS_ADMIN]:e=>e.authUserProfile&&e.authUserProfile.admin,[m.YN.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[m.YN.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[m.YN.GETTERS.USER_LOADING]:e=>e.loading},p={[m.YN.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[m.YN.MUTATIONS.UPDATE_AUTH_TOKEN](e,n){e.authToken=n},[m.YN.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,n){e.authUserProfile=n},[m.YN.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,n){e.isRegistrationSuccess=n},[m.YN.MUTATIONS.UPDATE_IS_SUCCESS](e,n){e.isSuccess=n},[m.YN.MUTATIONS.UPDATE_USER_LOADING](e,n){e.loading=n},[m.YN.MUTATIONS.SET_EXPORT_REQUEST](e,n){e.exportRequest=n}},A={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null},z={state:A,actions:T,getters:S,mutations:p};var O=z;const I=(e,n)=>{e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get(n).then((n=>{"success"===n.data.status?e.commit(m.Km.MUTATIONS.SET_CLIENT,n.data.data.client):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},R={[m.Km.ACTIONS.AUTHORIZE_CLIENT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES);const r=new FormData;r.set("client_id",n.client_id),r.set("response_type",n.response_type),r.set("scope",n.scope),r.set("confirm","true"),n.state&&r.set("state",n.state),n.code_challenge&&r.set("code_challenge",n.code_challenge),n.code_challenge_method&&r.set("code_challenge_method",n.code_challenge_method),o.Z.post("oauth/authorize",r,{headers:{"Content-Type":"multipart/form-data"}}).then((n=>{200==n.status&&n.data.redirect_url?window.location.href=n.data.redirect_url:(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.Km.ACTIONS.CREATE_CLIENT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.post("oauth/apps",n).then((n=>{"created"===n.data.status?(e.commit(m.Km.MUTATIONS.SET_CLIENT,n.data.data.client),u.Z.push(`/profile/apps/${n.data.data.client.id}/created`)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.Km.ACTIONS.DELETE_CLIENT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z["delete"](`oauth/apps/${n}`).then((n=>{204===n.status?e.dispatch(m.Km.ACTIONS.GET_CLIENTS).then((()=>u.Z.push("/profile/apps"))):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.Km.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,n){I(e,`oauth/apps/${n}`)},[m.Km.ACTIONS.GET_CLIENT_BY_ID](e,n){I(e,`oauth/apps/${n}/by_id`)},[m.Km.ACTIONS.GET_CLIENTS](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("oauth/apps",{params:n}).then((n=>{"success"===n.data.status?(e.commit(m.Km.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(m.Km.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.Km.ACTIONS.REVOKE_ALL_TOKENS](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.Km.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),o.Z.post(`oauth/apps/${n}/revoke`).then((n=>{"success"===n.data.status?e.commit(m.Km.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))}},N={[m.Km.GETTERS.CLIENT]:e=>e.client,[m.Km.GETTERS.CLIENTS]:e=>e.clients,[m.Km.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[m.Km.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},g={[m.Km.MUTATIONS.SET_CLIENT](e,n){e.client=n},[m.Km.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[m.Km.MUTATIONS.SET_CLIENTS](e,n){e.clients=n},[m.Km.MUTATIONS.SET_CLIENTS_PAGINATION](e,n){e.pagination=n},[m.Km.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,n){e.revocationSuccessful=n}},U={client:{},clients:[],pagination:{},revocationSuccessful:!1},C={state:U,actions:R,getters:N,mutations:g};var D=C,h=r(2540);const{locale:w}=h.Z.global,P={[m.SY.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),o.Z.get("config").then((n=>{"success"===n.data.status?e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n))).finally((()=>e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_LOADING,!1)))},[m.SY.ACTIONS.GET_APPLICATION_STATS](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("stats/all").then((n=>{"success"===n.data.status?e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_STATS,n.data.data):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.SY.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("config").then((n=>{"success"===n.data.status?e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,n.data.data):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.SY.ACTIONS.UPDATE_APPLICATION_CONFIG](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.patch("config",n).then((n=>{"success"===n.data.status?(e.commit(m.SY.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),u.Z.push("/admin/application")):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.SY.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,n){document.querySelector("html")?.setAttribute("lang",n),e.commit(m.SY.MUTATIONS.UPDATE_LANG,n),w.value=n}},v={[m.SY.GETTERS.APP_CONFIG]:e=>e.application.config,[m.SY.GETTERS.APP_LOADING]:e=>e.appLoading,[m.SY.GETTERS.APP_STATS]:e=>e.application.statistics,[m.SY.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[m.SY.GETTERS.LANGUAGE]:e=>e.language,[m.SY.GETTERS.LOCALE]:e=>e.locale};var L=r(6287);const f={[m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[m.SY.MUTATIONS.SET_ERROR_MESSAGES](e,n){e.errorMessages=n},[m.SY.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,n){e.application.config=n},[m.SY.MUTATIONS.UPDATE_APPLICATION_LOADING](e,n){e.appLoading=n},[m.SY.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY](e,n){e.application.config.privacy_policy=n.privacy_policy,e.application.config.privacy_policy_date=n.privacy_policy_date},[m.SY.MUTATIONS.UPDATE_APPLICATION_STATS](e,n){e.application.statistics=n},[m.SY.MUTATIONS.UPDATE_LANG](e,n){e.language=n,e.locale=L.v1[n]}};var k=r(5826);const y={root:!0,language:"en",locale:k.Z,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0}},appLoading:!1},b={[m.O8.ACTIONS.GET_SPORTS](e){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("sports").then((n=>{"success"===n.data.status?(e.commit(m.O8.MUTATIONS.SET_SPORTS,n.data.data.sports),e.commit(m.YN.MUTATIONS.UPDATE_USER_LOADING,!1)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},[m.O8.ACTIONS.UPDATE_SPORTS](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.patch(`sports/${n.id}`,{is_active:n.isActive}).then((n=>{"success"===n.data.status?e.dispatch(m.O8.ACTIONS.GET_SPORTS):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))}},M={[m.O8.GETTERS.SPORTS]:e=>e.sports},G={[m.O8.MUTATIONS.SET_SPORTS](e,n){e.sports=n}},W={sports:[]},F={state:W,actions:b,getters:M,mutations:G};var B=F;const x={[m.gu.ACTIONS.GET_USER_STATS](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get(`stats/${n.username}/${n.filterType}`,{params:n.params}).then((n=>{"success"===n.data.status?e.commit(m.gu.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))}},Y={[m.gu.GETTERS.USER_STATS]:e=>e.statistics},K={[m.gu.MUTATIONS.UPDATE_USER_STATS](e,n){e.statistics=n},[m.gu.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}}},H={statistics:{}},j={state:H,actions:x,getters:Y,mutations:K};var V=j;const Z={[m.RT.GETTERS.USER]:e=>e.user,[m.RT.GETTERS.USERS]:e=>e.users,[m.RT.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[m.RT.GETTERS.USERS_LOADING]:e=>e.loading,[m.RT.GETTERS.USERS_PAGINATION]:e=>e.pagination},$={[m.RT.MUTATIONS.UPDATE_USER](e,n){e.user=n},[m.RT.MUTATIONS.UPDATE_USER_IN_USERS](e,n){e.users=e.users.map((e=>e.username===n.username?n:e))},[m.RT.MUTATIONS.UPDATE_USERS](e,n){e.users=n},[m.RT.MUTATIONS.UPDATE_USERS_LOADING](e,n){e.loading=n},[m.RT.MUTATIONS.UPDATE_USERS_PAGINATION](e,n){e.pagination=n},[m.RT.MUTATIONS.UPDATE_IS_SUCCESS](e,n){e.isSuccess=n}},q={user:{},users:[],loading:!1,isSuccess:!1,pagination:{}},X={state:q,actions:E,getters:Z,mutations:$};var Q=X,J=r(52);const ee=(e,n,r)=>{e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),o.Z.get("workouts",{params:n}).then((n=>{"success"===n.data.status?(e.commit(m.aX.MUTATIONS[r],n.data.data.workouts),r===J.CW.SET_USER_WORKOUTS&&e.commit(m.aX.MUTATIONS.SET_WORKOUTS_PAGINATION,n.data.pagination)):(0,s.S)(e,null)})).catch((n=>(0,s.S)(e,n)))},ne={[m.aX.ACTIONS.GET_CALENDAR_WORKOUTS](e,n){e.commit(m.aX.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),ee(e,n,J.CW.SET_CALENDAR_WORKOUTS)},[m.aX.ACTIONS.GET_USER_WORKOUTS](e,n){ee(e,n,J.CW.SET_USER_WORKOUTS)},[m.aX.ACTIONS.GET_TIMELINE_WORKOUTS](e,n){ee(e,n,J.CW.SET_TIMELINE_WORKOUTS)},[m.aX.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,n){ee(e,n,J.CW.ADD_TIMELINE_WORKOUTS)},[m.aX.ACTIONS.GET_WORKOUT_DATA](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!0);const r=n.segmentId?`/segment/${n.segmentId}`:"";o.Z.get(`workouts/${n.workoutId}`).then((t=>{const a=t.data.data.workouts[0];if("success"===t.data.status){if(n.segmentId&&(0===a.segments.length||!a.segments[+n.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(m.aX.MUTATIONS.SET_WORKOUT,t.data.data.workouts[0]),t.data.data.workouts[0].with_gpx&&(o.Z.get(`workouts/${n.workoutId}/chart_data${r}`).then((n=>{"success"===n.data.status&&e.commit(m.aX.MUTATIONS.SET_WORKOUT_CHART_DATA,n.data.data.chart_data)})),o.Z.get(`workouts/${n.workoutId}/gpx${r}`).then((n=>{"success"===n.data.status&&e.commit(m.aX.MUTATIONS.SET_WORKOUT_GPX,n.data.data.gpx)})))}else e.commit(m.aX.MUTATIONS.EMPTY_WORKOUT),(0,s.S)(e,null)})).catch((n=>{e.commit(m.aX.MUTATIONS.EMPTY_WORKOUT),(0,s.S)(e,n)})).finally((()=>e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!1)))},[m.aX.ACTIONS.DELETE_WORKOUT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!0),o.Z["delete"](`workouts/${n.workoutId}`).then((()=>{e.commit(m.aX.MUTATIONS.EMPTY_WORKOUT),e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE),u.Z.push("/")})).catch((n=>{(0,s.S)(e,n)})).finally((()=>e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!1)))},[m.aX.ACTIONS.EDIT_WORKOUT](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!0),o.Z.patch(`workouts/${n.workoutId}`,n.data).then((()=>{e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE),e.dispatch(m.aX.ACTIONS.GET_WORKOUT_DATA,{workoutId:n.workoutId}).then((()=>{u.Z.push({name:"Workout",params:{workoutId:n.workoutId}})}))})).catch((n=>{(0,s.S)(e,n)})).finally((()=>e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!1)))},[m.aX.ACTIONS.ADD_WORKOUT](e,n){if(e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!0),!n.file)throw new Error("No file part");const r=n.notes.replace(/"/g,'\\"'),t=new FormData;t.append("file",n.file),t.append("data",`{"sport_id": ${n.sport_id}, "notes": "${r}"}`),o.Z.post("workouts",t,{headers:{"content-type":"multipart/form-data"}}).then((n=>{if("created"===n.data.status){e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE);const r=n.data.data.workouts[0];u.Z.push(1===n.data.data.workouts.length?`/workouts/${r.id}`:"/")}})).catch((n=>{(0,s.S)(e,n)})).finally((()=>e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!1)))},[m.aX.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,n){e.commit(m.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!0),o.Z.post("workouts/no_gpx",n).then((n=>{if("created"===n.data.status){e.dispatch(m.YN.ACTIONS.GET_USER_PROFILE);const r=n.data.data.workouts[0];u.Z.push(`/workouts/${r.id}`)}})).catch((n=>{(0,s.S)(e,n)})).finally((()=>e.commit(m.aX.MUTATIONS.SET_WORKOUT_LOADING,!1)))}},re={[m.aX.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[m.aX.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[m.aX.GETTERS.USER_WORKOUTS]:e=>e.user_workouts,[m.aX.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[m.aX.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},te={[m.aX.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,n){e.timeline_workouts=e.timeline_workouts.concat(n)},[m.aX.MUTATIONS.SET_CALENDAR_WORKOUTS](e,n){e.calendar_workouts=n},[m.aX.MUTATIONS.SET_TIMELINE_WORKOUTS](e,n){e.timeline_workouts=n},[m.aX.MUTATIONS.SET_USER_WORKOUTS](e,n){e.user_workouts=n},[m.aX.MUTATIONS.SET_WORKOUTS_PAGINATION](e,n){e.pagination=n},[m.aX.MUTATIONS.SET_WORKOUT](e,n){e.workoutData.workout=n},[m.aX.MUTATIONS.SET_WORKOUT_CHART_DATA](e,n){e.workoutData.chartData=n},[m.aX.MUTATIONS.SET_WORKOUT_GPX](e,n){e.workoutData.gpx=n},[m.aX.MUTATIONS.SET_WORKOUT_LOADING](e,n){e.workoutData.loading=n},[m.aX.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[m.aX.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[m.aX.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[]}}},oe={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[]}},ae={state:oe,actions:ne,getters:re,mutations:te};var ie=ae;const se={authUserModule:O,oAuthModule:D,sportsModule:B,statsModule:V,usersModule:Q,workoutsModule:ie},le={state:y,actions:P,getters:v,mutations:f,modules:se};var ce=le;const ue=(0,t.MT)(ce);var me=ue},52:function(e,n,r){"use strict";var t,o,a;r.d(n,{CW:function(){return a},JP:function(){return o},tW:function(){return t}}),function(e){e["ADD_WORKOUT"]="ADD_WORKOUT",e["ADD_WORKOUT_WITHOUT_GPX"]="ADD_WORKOUT_WITHOUT_GPX",e["DELETE_WORKOUT"]="DELETE_WORKOUT",e["EDIT_WORKOUT"]="EDIT_WORKOUT",e["GET_CALENDAR_WORKOUTS"]="GET_CALENDAR_WORKOUTS",e["GET_USER_WORKOUTS"]="GET_USER_WORKOUTS",e["GET_TIMELINE_WORKOUTS"]="GET_TIMELINE_WORKOUTS",e["GET_MORE_TIMELINE_WORKOUTS"]="GET_MORE_TIMELINE_WORKOUTS",e["GET_WORKOUT_DATA"]="GET_WORKOUT_DATA"}(t||(t={})),function(e){e["CALENDAR_WORKOUTS"]="CALENDAR_WORKOUTS",e["TIMELINE_WORKOUTS"]="TIMELINE_WORKOUTS",e["USER_WORKOUTS"]="USER_WORKOUTS",e["WORKOUT_DATA"]="WORKOUT_DATA",e["WORKOUTS_PAGINATION"]="WORKOUTS_PAGINATION"}(o||(o={})),function(e){e["ADD_TIMELINE_WORKOUTS"]="ADD_TIMELINE_WORKOUTS",e["EMPTY_WORKOUTS"]="EMPTY_WORKOUTS",e["EMPTY_CALENDAR_WORKOUTS"]="EMPTY_CALENDAR_WORKOUTS",e["EMPTY_WORKOUT"]="EMPTY_WORKOUT",e["SET_CALENDAR_WORKOUTS"]="SET_CALENDAR_WORKOUTS",e["SET_TIMELINE_WORKOUTS"]="SET_TIMELINE_WORKOUTS",e["SET_USER_WORKOUTS"]="SET_USER_WORKOUTS",e["SET_WORKOUT"]="SET_WORKOUT",e["SET_WORKOUT_GPX"]="SET_WORKOUT_GPX",e["SET_WORKOUT_CHART_DATA"]="SET_WORKOUT_CHART_DATA",e["SET_WORKOUT_LOADING"]="SET_WORKOUT_LOADING",e["SET_WORKOUTS_PAGINATION"]="SET_WORKOUTS_PAGINATION"}(a||(a={}))},9917:function(e,n,r){"use strict";r.d(n,{o:function(){return o}});var t=r(3907);function o(){return(0,t.oR)()}},2766:function(e,n,r){"use strict";r.d(n,{Hf:function(){return o},Ne:function(){return c},fS:function(){return t},lM:function(){return m},pm:function(){return l},z_:function(){return i}});const t=["asc","desc"],o=1,a=10,i=(e,n)=>e&&"string"===typeof e&&+e>0?+e:n,s=(e,n,r)=>e&&"string"===typeof e&&n.includes(e)?e:r,l=(e,n,r,l)=>{const c=l||{},u=c.defaultSort||"asc",m={};return m.page=i(e.page,o),m.per_page=i(e.per_page,a),m.order=s(e.order,t,u),m.order_by=s(e.order_by,n,r),"string"===typeof e.q?m.q=e.q:delete m.q,m},c=["from","to","ave_speed_from","ave_speed_to","max_speed_from","max_speed_to","distance_from","distance_to","duration_from","duration_to","sport_id","title"],u=(e,n=1)=>Array.from({length:e-n+1},((e,r)=>n+r)),m=(e,n)=>{if(e<0)return[];if(e<9)return u(e);let r=[1,2];return n<4?r=r.concat([3,4,5]):n<6?r=r.concat(u(n+2,3)):(r=r.concat(["..."]),n=e-2&&+r[r.length-1]{switch(e){case"week":return(0,t.Z)(n,{weekStartsOn:r?1:0});case"year":return(0,o.Z)(n);case"month":return(0,a.Z)(n);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},p=(e,n)=>{switch(e){case"week":return(0,i.Z)(n,7);case"year":return(0,s.Z)(n,1);case"month":return(0,l.Z)(n,1);default:throw new Error(`Invalid duration, expected: "week", "month", "year", got: "${e}"`)}},A=(e,n)=>(0,d.Z)(new Date(e),n),z=(e,n)=>{const r=(0,a.Z)(e),o=(0,c.Z)(e),i=n?1:0;return{start:(0,t.Z)(r,{weekStartsOn:i}),end:(0,u.Z)(o,{weekStartsOn:i})}},O=(e,n=null,r=null)=>(n||(n="yyyy/MM/dd"),n=N(n,T.value),r||(r="HH:mm"),{workout_date:(0,m.Z)(e,n,{locale:_.v1[T.value]}),workout_time:(0,m.Z)(e,r)}),I=["MM/dd/yyyy","dd/MM/yyyy","yyyy-MM-dd","date_string"],R={de:"do MMM yyyy",en:"MMM. do, yyyy",es:"d MMM yyyy",fr:"d MMM yyyy",gl:"d MMM yyyy",it:"d MMM yyyy",pl:"d MMM yyyy",nb:"do MMM yyyy",nl:"d MMM yyyy"},N=(e,n)=>"date_string"===e?R[n]:e,g=(e,n,r,t=!0,o=null,a=!1)=>{o||(o=T.value);const i=t?a?" HH:mm:ss":" HH:mm":"";return(0,m.Z)(A(e,n),`${N(r,o)}${i}`,{locale:_.v1[o]})},U=(e,n,r=null)=>{const t=r||T.value,o=[];return I.map((r=>{const a=N(r,t);o.push({label:`${a} - ${g(e,n,a,!1,t)}`,value:r})})),o}},8966:function(e,n,r){"use strict";r.d(n,{Z:function(){return o},j:function(){return a}});const t=["bytes","KB","MB","GB","TB"],o=(e,n=!0)=>{const r=Math.floor(Math.log(e)/Math.log(1024));if(!e)return n?"0 bytes":{size:"0",suffix:"bytes"};const o=(e/Math.pow(1024,r)).toFixed(1),a=t[r];return n?`${o}${a}`:{size:o,suffix:a}},a=e=>{const n=e/1048576;return+n.toFixed(2)}},2024:function(e,n,r){"use strict";r.d(n,{S:function(){return a},k:function(){return o}});var t=r(5801);const o=()=>"/api/",a=(e,n,r="UNKNOWN")=>{if(n&&"canceled"===n.message)return;const o=n?.response&&n.response.data?n.response.data:null;if(401===n?.response?.status&&"invalid_token"===o?.error)return localStorage.removeItem("authToken"),void e.dispatch(t.YN.ACTIONS.CHECK_AUTH_USER);const a=n?n.response?413===n.response.status?"file size is greater than the allowed size":o?.message?o.message:r:n.message?n.message:r:r;e.commit(t.SY.MUTATIONS.SET_ERROR_MESSAGES,a.includes("\n")?a.split("\n").filter((e=>""!==e)).map((e=>`api.ERROR.${e}`)):`api.ERROR.${a}`)}},2335:function(e,n,r){"use strict";r.d(n,{O:function(){return i}});var t=r(9597),o=r(1036),a=r.n(o);const i=e=>a()((0,t.Z)(e,{target:"_blank"}),{allowedTags:["a"],disallowedTagsMode:"escape"})},6287:function(e,n,r){"use strict";r.d(n,{mT:function(){return S},v1:function(){return E},zK:function(){return _}});var t=r(879),o=r(5826),a=r(3345),i=r(5830),s=r(1229),l=r(4962),c=r(3020),u=r(3304),m=r(4638),d=r(2540);const E={de:t.Z,en:o.Z,es:a.Z,fr:i.Z,gl:s.Z,it:l.Z,pl:c.Z,nb:u.Z,nl:m.Z},_={de:"Deutsch",en:"English",es:"Español",fr:"Français",gl:"Galego",it:"Italiano (85%)",nb:"Norsk bokmål (35%)",nl:"Nederlands",pl:"Polski"},{availableLocales:T}=d.Z.global,S=T.map((e=>({label:_[e],value:e})))},631:function(e,n,r){"use strict";r.d(n,{CM:function(){return l},PA:function(){return s},Yx:function(){return o},Zo:function(){return t},xH:function(){return i}});const t={"Cycling (Sport)":"#4c9792","Cycling (Transport)":"#88af98","Cycling (Virtual)":"#64a360",Hiking:"#bb757c","Mountain Biking":"#d4b371","Mountain Biking (Electric)":"#fc9d6f",Mountaineering:"#48b3b7","Open Water Swimming":"#4058a4",Paragliding:"#c23c50",Rowing:"#fcce72",Running:"#835b83","Skiing (Alpine)":"#67a4bd","Skiing (Cross Country)":"#9498d0",Snowshoes:"#5780a8",Trail:"#09a98a",Walking:"#838383"},o=e=>{const n={};return e.map((e=>n[e.id]=e.color?e.color:t[e.label])),n},a=(e,n)=>{const r=e.translatedLabel.toLowerCase(),t=n.translatedLabel.toLowerCase();return r>t?1:re.filter((e=>"all"===r||(t.includes(e.id)||e[r]))).map((e=>({...e,translatedLabel:n(`sports.${e.label}.LABEL`)}))).sort(a),s=(e,n)=>n.filter((n=>n.id===e.sport_id)).map((e=>e.label))[0],l=(e,n)=>n.filter((n=>n.id===e.sport_id)).map((e=>e.color))[0]},9318:function(e,n,r){"use strict";r.d(n,{FN:function(){return P},aZ:function(){return w},v1:function(){return h}});r(7658);var t=r(6761),o=r(8148),a=r(9319),i=r(584),s=r(4559),l=r(3703),c=r(876),u=r(7090),m=r(4135),d=r(1593),E=r(7982),_=r(3500),T=r(1640),S=r(2540),p=r(6558),A=r(6287),z=r(631),O=r(3649);const{locale:I}=S.Z.global,R={week:{api:"yyyy-MM-dd",chart:"MM/dd/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},N=["average_speed","nb_workouts","total_duration","total_distance","total_ascent","total_descent"],g=(e,n)=>{const r=[];for(let t=(0,p.Nh)(e.duration,e.start,n);t<=e.end;t=(0,p.xA)(e.duration,t))r.push(t);return r},U=(e,n,r=!1)=>{const t={label:e,backgroundColor:[n],data:[]};return r&&(t.type="line",t.borderColor=[n],t.spanGaps=!0),t},C=e=>{const n={average_speed:[],nb_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map((e=>{const r=e.color?e.color:z.Zo[e.label];n.average_speed.push(U(e.label,r,!0)),n.nb_workouts.push(U(e.label,r)),n.total_distance.push(U(e.label,r)),n.total_duration.push(U(e.label,r)),n.total_ascent.push(U(e.label,r)),n.total_descent.push(U(e.label,r))})),n},D=(e,n,r)=>{switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":return(0,O.f3)(["average_speed","total_distance"].includes(e)?"km":"m",n,r);default:case"nb_workouts":case"total_duration":return n}},h=(e,n,r,o,a,i,s)=>{const l=g(e,n),c=R[e.duration],u=r.filter((e=>o.includes(e.id))),m=[],d=C(u),E={};return u.map((e=>E[e.label]=e.id)),l.map((n=>{const r=(0,t.Z)(n,c.api),o=(0,t.Z)(n,"week"===e.duration?(0,p.mh)(s,I.value):c.chart,{locale:A.v1[I.value]});m.push(o),N.map((e=>{d[e].map((n=>{n.data.push(r in a&&E[n.label]in a[r]?D(e,a[r][E[n.label]][e],i):"average_speed"===e?null:0)}))}))})),{labels:m,datasets:d}},w=(e,n,r)=>{const t=r?1:0,d="year"===n?(0,o.Z)((0,a.Z)(e,9)):"week"===n?(0,i.Z)((0,s.Z)(e,2),{weekStartsOn:t}):(0,l.Z)((0,s.Z)(e,11)),E="year"===n?(0,c.Z)(e):"week"===n?(0,u.Z)(e,{weekStartsOn:t}):(0,m.Z)(e);return{duration:n,end:E,start:d}},P=(e,n,r)=>{const{duration:t,start:S,end:p}=e,A=r?1:0;return{duration:t,end:"year"===t?(0,c.Z)(n?(0,a.Z)(p,1):(0,d.Z)(p,1)):"week"===t?(0,u.Z)(n?(0,E.Z)(p,1):(0,_.Z)(p,1),{weekStartsOn:A}):(0,m.Z)(n?(0,s.Z)(p,1):(0,T.Z)(p,1)),start:"year"===t?(0,o.Z)(n?(0,a.Z)(S,1):(0,d.Z)(S,1)):"week"===t?(0,i.Z)(n?(0,E.Z)(S,1):(0,_.Z)(S,1),{weekStartsOn:A}):(0,l.Z)(n?(0,s.Z)(S,1):(0,T.Z)(S,1))}}},3649:function(e,n,r){"use strict";r.d(n,{Dl:function(){return t},Y2:function(){return l},f3:function(){return i},sC:function(){return a},x$:function(){return s}});const t={ft:{unit:"ft",system:"imperial",multiplier:1,defaultTarget:"m"},mi:{unit:"mi",system:"imperial",multiplier:5280,defaultTarget:"km"},m:{unit:"m",system:"metric",multiplier:1,defaultTarget:"ft"},km:{unit:"m",system:"metric",multiplier:1e3,defaultTarget:"mi"}},o={metric:{imperial:3.280839895,metric:1},imperial:{metric:1/3.280839895,imperial:1}},a=(e,n,r,a=3)=>{const i=t[n],s=t[r],l=e*i.multiplier*o[i.system][s.system]/s.multiplier;return null!==a?parseFloat(l.toFixed(a)):l},i=(e,n,r)=>{const o=r?t[e].defaultTarget:e;return r?a(n,e,o,2):n},s=(e,n)=>{const r=n?1.8*e+32:e,t=n?" °F":"°C";return`${0===r?0:Number(r).toFixed(1)}${t}`},l=(e,n)=>{const r=n?2.2369363*e:e,t=n?" mph":"m/s";return`${0===r?0:Number(r).toFixed(1)}${t}`}},3768:function(e,n,r){"use strict";r.d(n,{BN:function(){return a},EX:function(){return o},eR:function(){return i}});r(7658);var t=r(3649);const o=(e,n,r)=>{const o={speed:{label:n("workouts.SPEED"),backgroundColor:["#FFFFFF"],borderColor:["#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:n("workouts.ELEVATION"),backgroundColor:["#e5e5e5"],borderColor:["#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},a=[],i=[],s=[];return e.map((e=>{a.push((0,t.f3)("km",e.distance,r)),i.push(e.duration),o.speed.data.push((0,t.f3)("km",e.speed,r)),void 0!==e.elevation&&o.elevation.data.push((0,t.f3)("m",e.elevation,r)),s.push({latitude:e.latitude,longitude:e.longitude})})),{distance_labels:a,duration_labels:i,datasets:o,coordinates:s}},a=e=>{const n=e.length;if(0===n)return{};const r={};return e.map((e=>{r[e.sport_id]||(r[e.sport_id]={count:0,percentage:0}),r[e.sport_id].count+=1,r[e.sport_id].percentage=r[e.sport_id].count/n})),r},i={order:"desc",order_by:"workout_date"}},2531:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});var t=r(6252);const o={class:"card"},a={class:"card-title"},i={class:"card-content"};function s(e,n){return(0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",a,[(0,t.WI)(e.$slots,"title")]),(0,t._)("div",i,[(0,t.WI)(e.$slots,"content")])])}var l=r(3744);const c={},u=(0,l.Z)(c,[["render",s]]);var m=u},8626:function(e,n,r){"use strict";r.d(n,{Z:function(){return S}});var t=r(6252),o=r(3577),a=r(2262);const i={class:"table-selects"},s=["value"],l=["value"],c=["value"],u=["value"],m=["value"],d=["value"];var E=(0,t.aZ)({__name:"FilterSelects",props:{order_by:null,query:null,sort:null,message:null},emits:["updateSelect"],setup(e,{emit:n}){const r=e,{order_by:E,query:_,sort:T,message:S}=(0,a.BK)(r),p=[10,25,50,100];function A(e){n("updateSelect",e.target.id,e.target.value)}return(e,n)=>((0,t.wg)(),(0,t.iD)("div",i,[(0,t._)("label",null,[(0,t.Uk)((0,o.zw)(e.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),(0,t._)("select",{name:"order_by",id:"order_by",value:(0,a.SU)(_).order_by,onChange:A},[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)((0,a.SU)(E),(n=>((0,t.wg)(),(0,t.iD)("option",{value:n,key:n},(0,o.zw)(e.$t(`${(0,a.SU)(S)}.${n.toUpperCase()}`)),9,l)))),128))],40,s)]),(0,t._)("label",null,[(0,t.Uk)((0,o.zw)(e.$t("common.SELECTS.ORDER.LABEL"))+": ",1),(0,t._)("select",{name:"order",id:"order",value:(0,a.SU)(_).order,onChange:A},[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)((0,a.SU)(T),(n=>((0,t.wg)(),(0,t.iD)("option",{value:n,key:n},(0,o.zw)(e.$t(`common.SELECTS.ORDER.${n.toUpperCase()}`)),9,u)))),128))],40,c)]),(0,t._)("label",null,[(0,t.Uk)((0,o.zw)(e.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),(0,t._)("select",{name:"per_page",id:"per_page",value:(0,a.SU)(_).per_page,onChange:A},[((0,t.wg)(),(0,t.iD)(t.HY,null,(0,t.Ko)(p,(e=>(0,t._)("option",{value:e,key:e},(0,o.zw)(e),9,d))),64))],40,m)])]))}}),_=r(3744);const T=(0,_.Z)(E,[["__scopeId","data-v-72463173"]]);var S=T},7167:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});var t=r(6252);const o={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -51 512 512"},a=(0,t.uE)('',1),i=[a];function s(e,n,r,a,s,l){return(0,t.wg)(),(0,t.iD)("svg",o,i)}var l={name:"ErrorImg"},c=r(3744);const u=(0,c.Z)(l,[["render",s]]);var m=u},8273:function(e,n,r){"use strict";r.d(n,{Z:function(){return _}});var t=r(6252),o=r(2262),a=(r(7658),r(3577));const i={id:"error"},s={class:"error-content"};var l=(0,t.aZ)({__name:"Error",props:{title:null,message:null,buttonText:null,path:{default:"/"}},setup(e){const n=e,{buttonText:r,title:l,message:c,path:u}=(0,o.BK)(n);return(e,n)=>((0,t.wg)(),(0,t.iD)("div",i,[(0,t._)("div",s,[(0,t._)("h1",null,(0,a.zw)((0,o.SU)(l)),1),(0,t._)("p",null,(0,a.zw)((0,o.SU)(c)),1),(0,o.SU)(r)?((0,t.wg)(),(0,t.iD)("button",{key:0,onClick:n[0]||(n[0]=n=>e.$router.push((0,o.SU)(u))),class:"upper"},(0,a.zw)((0,o.SU)(r)),1)):(0,t.kq)("",!0)])]))}}),c=r(3744);const u=(0,c.Z)(l,[["__scopeId","data-v-b60bfa80"]]);var m=u,d=(0,t.aZ)({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const n=e,{target:r}=(0,o.BK)(n),a=(0,o.iH)(),i=(0,o.iH)(!1);function s(){a.value=setTimeout((()=>{i.value=!0}),500)}return(0,t.bv)((()=>s())),(0,t.Ah)((()=>{a.value&&clearTimeout(a.value)})),(e,n)=>i.value?((0,t.wg)(),(0,t.j4)(m,{key:0,title:"404",message:e.$t(`error.NOT_FOUND.${(0,o.SU)(r)}`),"button-text":e.$t("common.HOME")},null,8,["message","button-text"])):(0,t.kq)("",!0)}});const E=d;var _=E},115:function(e,n,r){"use strict";r.d(n,{Z:function(){return S}});var t=r(6252),o=r(3577),a=r(2262),i=r(2766);const s=e=>((0,t.dD)("data-v-1be124e9"),e=e(),(0,t.Cn)(),e),l={class:"pagination-center","aria-label":"navigation"},c={class:"pagination"},u=s((()=>(0,t._)("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1))),m={key:0},d=s((()=>(0,t._)("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)));var E=(0,t.aZ)({__name:"Pagination",props:{pagination:null,path:null,query:null},setup(e){const n=e,{pagination:r,path:s,query:E}=(0,a.BK)(n);function _(e,n){const r=Object.assign({},E.value);return r.page=n?e+n:e,r}return(e,n)=>{const E=(0,t.up)("router-link");return(0,t.wg)(),(0,t.iD)("nav",l,[(0,t._)("ul",c,[(0,t._)("li",{class:(0,o.C_)(["page-prev",{disabled:!(0,a.SU)(r).has_prev}])},[(0,t.Wm)(E,{class:"page-link",to:{path:(0,a.SU)(s),query:_((0,a.SU)(r).page,-1)},disabled:!(0,a.SU)(r).has_prev,tabindex:(0,a.SU)(r).has_prev?0:-1},{default:(0,t.w5)((({navigate:n})=>[(0,t.WI)(e.$slots,"default",{onClick:e=>(0,a.SU)(r).has_next?n:null},(()=>[(0,t.Uk)((0,o.zw)(e.$t("api.PAGINATION.PREVIOUS"))+" ",1),u]))])),_:3},8,["to","disabled","tabindex"])],2),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)((0,a.SU)(i.lM)((0,a.SU)(r).pages,(0,a.SU)(r).page),(e=>((0,t.wg)(),(0,t.iD)("li",{key:e,class:(0,o.C_)(["page",{active:e===(0,a.SU)(r).page}])},["..."===e?((0,t.wg)(),(0,t.iD)("span",m," ... ")):((0,t.wg)(),(0,t.j4)(E,{key:1,class:"page-link",to:{path:(0,a.SU)(s),query:_(+e)}},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e),1)])),_:2},1032,["to"]))],2)))),128)),(0,t._)("li",{class:(0,o.C_)(["page-next",{disabled:!(0,a.SU)(r).has_next}])},[(0,t.Wm)(E,{class:"page-link",to:{path:(0,a.SU)(s),query:_((0,a.SU)(r).page,1)},disabled:!(0,a.SU)(r).has_next,tabindex:(0,a.SU)(r).has_next?0:-1},{default:(0,t.w5)((({navigate:n})=>[(0,t.WI)(e.$slots,"default",{onClick:e=>(0,a.SU)(r).has_next?n:null},(()=>[(0,t.Uk)((0,o.zw)(e.$t("api.PAGINATION.NEXT"))+" ",1),d]))])),_:3},8,["to","disabled","tabindex"])],2)])])}}}),_=r(3744);const T=(0,_.Z)(E,[["__scopeId","data-v-1be124e9"]]);var S=T},7374:function(e,n,r){"use strict";r.d(n,{Z:function(){return L}});var t=r(6252),o=r(2262),a=r(9963),i=r(3577),s=r(3256),l=r(5801),c=r(9917);const u=async e=>{switch(e){case"fr":return await r.e(222).then(r.bind(r,6886));case"de":return await r.e(940).then(r.bind(r,5767));case"it":return await r.e(802).then(r.bind(r,8060));case"es":return await r.e(394).then(r.bind(r,9975));case"pl":return await r.e(946).then(r.bind(r,6515));default:return await r.e(261).then(r.bind(r,8638))}},m=async e=>{const n=await r.e(881).then(r.bind(r,268)),t=await u(e),o={graphs:n.adjacencyGraphs,dictionary:{...n.dictionary,...t.dictionary}};s.Mu.setOptions(o)},d=e=>{switch(e){case 2:return"AVERAGE";case 3:return"GOOD";case 4:return"STRONG";default:return"WEAK"}},E={class:"password-strength"},_=["value"],T={key:0,class:"password-strength-details"},S={class:"password-strength-value"},p={key:0,class:"info-box"},A={class:"password-feedback"};var z=(0,t.aZ)({__name:"PasswordStength",props:{password:null},setup(e){const n=e,{password:r}=(0,o.BK)(n),a=(0,c.o)(),u=(0,t.Fl)((()=>a.getters[l.SY.GETTERS.LANGUAGE])),z=(0,t.Fl)((()=>a.getters[l.YN.GETTERS.IS_SUCCESS])),O=(0,o.iH)(0),I=(0,o.iH)(""),R=(0,o.iH)([]),N=(0,o.iH)("0% 100%");function g(e){const n=(0,s.tu)(e);O.value=n.score,I.value=d(O.value),R.value=n.feedback.suggestions,N.value=100*O.value/4+"% 100%"}return(0,t.wF)((async()=>await m(u.value))),(0,t.YP)((()=>u.value),(async e=>{await m(e)})),(0,t.YP)((()=>r.value),(async e=>{z.value?I.value="":g(e)})),(e,n)=>((0,t.wg)(),(0,t.iD)("div",E,[(0,t._)("input",{class:(0,i.C_)(["password-slider",`strength-${O.value}`]),style:(0,i.j5)({backgroundSize:N.value}),type:"range",value:O.value,min:"0",max:"4",step:"1",tabindex:-1},null,14,_),I.value?((0,t.wg)(),(0,t.iD)("div",T,[(0,t._)("span",S,(0,i.zw)(e.$t("user.PASSWORD_STRENGTH.LABEL"))+": "+(0,i.zw)(e.$t(`user.PASSWORD_STRENGTH.${I.value}`)),1),R.value.length>0?((0,t.wg)(),(0,t.iD)("div",p,[(0,t._)("ul",A,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(R.value,(n=>((0,t.wg)(),(0,t.iD)("li",{key:n},(0,i.zw)(e.$t(`user.PASSWORD_STRENGTH.SUGGESTIONS.${n}`)),1)))),128))])])):(0,t.kq)("",!0)])):(0,t.kq)("",!0)]))}}),O=r(3744);const I=(0,O.Z)(z,[["__scopeId","data-v-31ee76d6"]]);var R=I;const N=e=>((0,t.dD)("data-v-7becbcbf"),e=e(),(0,t.Cn)(),e),g={class:"password-input"},U=["id","disabled","placeholder","required","type"],C={class:"show-password"},D=["onClick"],h={key:0,class:"form-info"},w=N((()=>(0,t._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)));var P=(0,t.aZ)({__name:"PasswordInput",props:{checkStrength:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:"password"},password:{default:""},placeholder:null,required:{type:Boolean,default:!1}},emits:["updatePassword","passwordError"],setup(e,{emit:n}){const r=e,{checkStrength:s,disabled:l,id:c,password:u,placeholder:m,required:d}=(0,o.BK)(r),E=(0,o.iH)(!1),_=(0,o.iH)("");function T(){E.value=!E.value}function S(e){n("updatePassword",e.target.value)}function p(){n("passwordError")}return(0,t.YP)((()=>u.value),(e=>{""===e&&(_.value="",E.value=!1)})),(e,n)=>((0,t.wg)(),(0,t.iD)("div",g,[(0,t.wy)((0,t._)("input",{id:(0,o.SU)(c),disabled:(0,o.SU)(l),placeholder:(0,o.SU)(m),required:(0,o.SU)(d),type:E.value?"text":"password","onUpdate:modelValue":n[0]||(n[0]=e=>_.value=e),minlength:"8",onInput:S,onInvalid:p},null,40,U),[[a.YZ,_.value]]),(0,t._)("div",C,[(0,t._)("button",{class:"transparent",onClick:(0,a.iM)(T,["prevent"]),type:"button"},[(0,t.Uk)((0,i.zw)(e.$t(`user.${E.value?"HIDE":"SHOW"}_PASSWORD`))+" ",1),(0,t._)("i",{class:(0,i.C_)(["fa","fa-eye"+(E.value?"-slash":"")]),"aria-hidden":"true"},null,2)],8,D)]),(0,o.SU)(s)?((0,t.wg)(),(0,t.iD)("div",h,[w,(0,t.Uk)(" "+(0,i.zw)(e.$t("user.PASSWORD_INFO")),1)])):(0,t.kq)("",!0),(0,o.SU)(s)?((0,t.wg)(),(0,t.j4)(R,{key:1,password:_.value},null,8,["password"])):(0,t.kq)("",!0)]))}});const v=(0,O.Z)(P,[["__scopeId","data-v-7becbcbf"]]);var L=v},2056:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var t=r(6252),o=r(3577),a=r(2262),i=r(2024);const s=(0,t._)("div",{class:"map-attribution"},[(0,t._)("span",{class:"map-attribution-text"},"©"),(0,t._)("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," OpenStreetMap ")],-1);var l=(0,t.aZ)({__name:"StaticMap",props:{workout:null,displayHover:{type:Boolean,default:!1}},setup(e){const n=e,{displayHover:r}=(0,a.BK)(n),l=`${(0,i.k)()}workouts/map/${n.workout.map}`;return(e,n)=>((0,t.wg)(),(0,t.iD)("div",{class:(0,o.C_)(["static-map",{"display-hover":(0,a.SU)(r)}])},[(0,a.SU)(r)?((0,t.wg)(),(0,t.iD)("img",{key:0,src:l,alt:""})):((0,t.wg)(),(0,t.iD)("div",{key:1,class:"bg-map-image",style:(0,o.j5)({backgroundImage:`url(${l})`})},null,4)),s],2))}});const c=l;var u=c},454:function(e,n,r){"use strict";r.d(n,{Z:function(){return M}});var t=r(6252),o=r(3577);const a={class:"start-chart"},i={key:0},s={key:1},l={class:"chart-radio"},c=["checked","disabled"],u=["checked","disabled"],m=["checked","disabled"],d={key:0},E=["checked","disabled"],_={key:1},T=["checked","disabled"],S={key:2},p=["checked","disabled"];function A(e,n,r,A,z,O){const I=(0,t.up)("Chart");return(0,t.wg)(),(0,t.iD)("div",a,[e.hideChartIfNoData&&e.emptyStats?((0,t.wg)(),(0,t.iD)("div",i,(0,o.zw)(e.$t("workouts.NO_WORKOUTS")),1)):((0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",l,[(0,t._)("label",null,[(0,t._)("input",{type:"radio",name:"total_distance",checked:"total_distance"===e.displayedData,disabled:e.isDisabled,onClick:n[0]||(n[0]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,c),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.DISTANCE")),1)]),(0,t._)("label",null,[(0,t._)("input",{type:"radio",name:"total_duration",checked:"total_duration"===e.displayedData,disabled:e.isDisabled,onClick:n[1]||(n[1]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,u),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.DURATION")),1)]),(0,t._)("label",null,[(0,t._)("input",{type:"radio",name:"nb_workouts",checked:"nb_workouts"===e.displayedData,disabled:e.isDisabled,onClick:n[2]||(n[2]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,m),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.WORKOUT",2)),1)]),e.fullStats?((0,t.wg)(),(0,t.iD)("label",d,[(0,t._)("input",{type:"radio",name:"average_speed",checked:"average_speed"===e.displayedData,disabled:e.isDisabled,onClick:n[3]||(n[3]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,E),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.AVERAGE_SPEED")),1)])):(0,t.kq)("",!0),e.fullStats?((0,t.wg)(),(0,t.iD)("label",_,[(0,t._)("input",{type:"radio",name:"total_ascent",checked:"total_ascent"===e.displayedData,disabled:e.isDisabled,onClick:n[4]||(n[4]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,T),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.ASCENT")),1)])):(0,t.kq)("",!0),e.fullStats?((0,t.wg)(),(0,t.iD)("label",S,[(0,t._)("input",{type:"radio",name:"total_descent",checked:"total_descent"===e.displayedData,disabled:e.isDisabled,onClick:n[5]||(n[5]=(...n)=>e.updateDisplayData&&e.updateDisplayData(...n))},null,8,p),(0,t.Uk)(" "+(0,o.zw)(e.$t("workouts.DESCENT")),1)])):(0,t.kq)("",!0)]),e.labels.length>0?((0,t.wg)(),(0,t.j4)(I,{key:0,datasets:e.datasets,labels:e.labels,displayedData:e.displayedData,displayedSportIds:e.displayedSportIds,fullStats:e.fullStats,useImperialUnits:e.user.imperial_units},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits"])):(0,t.kq)("",!0)]))])}var z=r(6761),O=r(2262);const I={class:"chart"};function R(e,n,r,o,a,i){const s=(0,t.up)("BarChart");return(0,t.wg)(),(0,t.iD)("div",I,[(0,t.Wm)(s,(0,t.dG)(e.barChartProps,{class:"bar-chart"}),null,16)])}var N=r(6518),g=r(9150);const U=(e,n=!1)=>{let r="0";n&&(r=String(Math.floor(e/86400)),e%=86400);const t=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;const o=String(Math.floor(e/60)).padStart(2,"0"),a=String(e%60).padStart(2,"0");return n?`${"0"===r?"":`${r}d `}${"00"===t?"":`${t}h `}${o}m ${a}s`:`${"00"===t?"":`${t}:`}${o}:${a}`};var C=r(3649);const D=(e,n,r,t=!0,o="km")=>{const a=r?C.Dl[o].defaultTarget:o;switch(e){case"average_speed":return`${n.toFixed(2)} ${a}/h`;case"total_duration":return U(n,t);case"total_distance":case"total_ascent":case"total_descent":return`${n.toFixed(2)} ${a}`;default:return n.toString()}};var h=(0,t.aZ)({name:"Chart",components:{BarChart:N.vz},props:{datasets:{type:Object,required:!0},labels:{type:Object,required:!0},displayedData:{type:String,required:!0},displayedSportIds:{type:Array,required:!0},fullStats:{type:Boolean,required:!0},useImperialUnits:{type:Boolean,required:!0}},setup(e){const{t:n}=(0,g.QT)();function r(e){return isNaN(e)?0:+e}function o(e,n){return r(e)+r(n)}function a(e){return["total_ascent","total_descent"].includes(e)?"m":"km"}const i=(0,t.Fl)((()=>({labels:e.labels,datasets:JSON.parse(JSON.stringify(e.datasets))}))),s=(0,t.Fl)((()=>({responsive:!0,maintainAspectRatio:!0,animation:!1,layout:{padding:{top:e.fullStats?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1}},y:{stacked:"average_speed"!==e.displayedData,grid:{drawOnChartArea:!1},ticks:{maxTicksLimit:6,callback:function(n){return D(e.displayedData,+n,e.useImperialUnits,!1,a(e.displayedData))}},afterFit:function(n){n.width=e.fullStats?90:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(n){return"average_speed"===e.displayedData&&n.dataset.backgroundColor?n.dataset.backgroundColor[0]:"#666666"},rotation:function(n){return e.fullStats&&n.chart.chartArea.width<580?310:0},display:function(n){return!(e.fullStats&&n.chart.chartArea.width<300)&&("average_speed"!==e.displayedData||1==e.displayedSportIds.length&&"auto")},formatter:function(n,r){if("average_speed"===e.displayedData)return D(e.displayedData,n,e.useImperialUnits,!1);{const n=r.chart.data.datasets.map((e=>e.data[r.dataIndex])).reduce(((e,n)=>o(e,n)),0);return r.datasetIndex===e.displayedSportIds.length-1&&n>0?D(e.displayedData,n,e.useImperialUnits,!1,a(e.displayedData)):null}}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:"average_speed"===e.displayedData?"nearest":"average"},filter:function(e){return"0"!==e.formattedValue},callbacks:{label:function(r){let t=n(`sports.${r.dataset.label}.LABEL`)||"";return t&&(t+=": "),null!==r.parsed.y&&(t+=D(e.displayedData,r.parsed.y,e.useImperialUnits,!0,a(e.displayedData))),t},footer:function(r){if("average_speed"===e.displayedData)return"";let t=0;return r.map((e=>{t+=e.parsed.y})),`${n("common.TOTAL")}: `+D(e.displayedData,t,e.useImperialUnits,!0,a(e.displayedData))}}}}}))),{barChartProps:l}=(0,N.xZ)({chartData:i,options:s});return{barChartProps:l}}}),w=r(3744);const P=(0,w.Z)(h,[["render",R]]);var v=P,L=r(5801),f=r(9917),k=r(9318),y=(0,t.aZ)({name:"UserMonthStats",components:{Chart:v},props:{sports:{type:Object,required:!0},user:{type:Object,required:!0},chartParams:{type:Object,required:!0},displayedSportIds:{type:Array,default:()=>[]},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},setup(e){const n=(0,f.o)(),r=(0,O.iH)("total_distance"),o=(0,t.Fl)((()=>n.getters[L.gu.GETTERS.USER_STATS])),a=(0,t.Fl)((()=>(0,k.v1)(e.chartParams,e.user.weekm,e.sports,e.displayedSportIds,o.value,e.user.imperial_units,e.user.date_format)));function i(r){n.dispatch(L.gu.ACTIONS.GET_USER_STATS,{username:e.user.username,filterType:"by_time",params:r})}function s(e){r.value=e.target.name}function l(e,n){return{from:(0,z.Z)(e.start,"yyyy-MM-dd"),to:(0,z.Z)(e.end,"yyyy-MM-dd"),time:"week"===e.duration?"week"+(n.weekm?"m":""):e.duration}}return(0,t.wF)((()=>i(l(e.chartParams,e.user)))),(0,t.YP)((()=>e.chartParams),(async n=>{i(l(n,e.user))})),{datasets:(0,t.Fl)((()=>a.value.datasets[r.value])),labels:(0,t.Fl)((()=>a.value.labels)),emptyStats:(0,t.Fl)((()=>0===Object.keys(o.value).length)),displayedData:r,updateDisplayData:s}}});const b=(0,w.Z)(y,[["render",A],["__scopeId","data-v-68b15e7a"]]);var M=b},2179:function(e,n,r){"use strict";r.d(n,{Z:function(){return g}});var t=r(6252),o=r(2262),a=r(3577),i=r(6595),s=r(5801),l=r(9917);const c={class:"box user-header"},u={class:"user-details"},m={class:"user-name"},d={class:"user-stats"},E={class:"user-stat"},_={class:"stat-number"},T={class:"stat-label"},S={class:"user-stat"},p={class:"stat-label"},A={class:"user-stat hide-small"},z={class:"stat-number"},O={class:"stat-label"};var I=(0,t.aZ)({__name:"UserHeader",props:{user:null},setup(e){const n=e,{user:r}=(0,o.BK)(n),I=(0,l.o)(),R=(0,t.Fl)((()=>I.getters[s.YN.GETTERS.AUTH_USER_PROFILE]));return(e,n)=>{const s=(0,t.up)("Distance");return(0,t.wg)(),(0,t.iD)("div",c,[(0,t.Wm)(i.Z,{user:(0,o.SU)(r)},null,8,["user"]),(0,t._)("div",u,[(0,t._)("div",m,(0,a.zw)((0,o.SU)(r).username),1),(0,t._)("div",d,[(0,t._)("div",E,[(0,t._)("span",_,(0,a.zw)((0,o.SU)(r).nb_workouts),1),(0,t._)("span",T,(0,a.zw)(e.$t("workouts.WORKOUT",(0,o.SU)(r).nb_workouts)),1)]),(0,t._)("div",S,[(0,t.Wm)(s,{distance:(0,o.SU)(r).total_distance,unitFrom:"km",digits:0,displayUnit:!1,useImperialUnits:(0,o.SU)(R).imperial_units},null,8,["distance","useImperialUnits"]),(0,t._)("span",p,(0,a.zw)((0,o.SU)(R).imperial_units?"miles":"km"),1)]),(0,t._)("div",A,[(0,t._)("span",z,(0,a.zw)((0,o.SU)(r).nb_sports),1),(0,t._)("span",O,(0,a.zw)(e.$t("workouts.SPORT",(0,o.SU)(r).nb_sports)),1)])])])])}}}),R=r(3744);const N=(0,R.Z)(I,[["__scopeId","data-v-20291951"]]);var g=N},9977:function(e,n,r){"use strict";r.d(n,{Z:function(){return w}});r(7658);var t=r(6252),o=r(2262),a=r(9963),i=r(3577),s=r(6761),l=r(5801),c=r(9917),u=r(6558),m=r(6287);const d={id:"user-infos",class:"description-list"},E={key:1,class:"info-box success-message"},_={key:4,class:"email-form form-box"},T={class:"form-items",for:"email"},S={class:"form-items",for:"email"},p={class:"form-buttons"},A={class:"confirm",type:"submit"},z=["onClick"],O={key:5},I={key:0},R={class:"user-bio"},N={key:0,class:"profile-buttons"},g=["onClick"],U={key:1,class:"profile-buttons"};var C=(0,t.aZ)({__name:"UserInfos",props:{user:null,fromAdmin:{type:Boolean,default:!1}},setup(e){const n=e,r=(0,c.o)(),{user:C,fromAdmin:D}=(0,o.BK)(n),h=(0,t.Fl)((()=>r.getters[l.SY.GETTERS.LANGUAGE])),w=(0,t.Fl)((()=>r.getters[l.YN.GETTERS.AUTH_USER_PROFILE])),P=(0,t.Fl)((()=>n.user.created_at?(0,u.p6)(n.user.created_at,w.value.timezone,w.value.date_format):"")),v=(0,t.Fl)((()=>n.user.birth_date?(0,s.Z)(new Date(n.user.birth_date),`${(0,u.mh)(w.value.date_format,h.value)}`,{locale:m.v1[h.value]}):"")),L=(0,t.Fl)((()=>r.getters[l.RT.GETTERS.USERS_IS_SUCCESS])),f=(0,t.Fl)((()=>r.getters[l.SY.GETTERS.ERROR_MESSAGES])),k=(0,t.Fl)((()=>r.getters[l.SY.GETTERS.APP_CONFIG])),y=(0,o.iH)(""),b=(0,o.iH)(!1),M=(0,o.iH)(!1),G=(0,o.iH)(""),W=(0,o.iH)("");function F(e){y.value=e,""!==e&&r.commit(l.RT.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function B(e){r.dispatch(l.RT.ACTIONS.DELETE_USER_ACCOUNT,{username:e})}function x(e){W.value="password-reset",r.dispatch(l.RT.ACTIONS.UPDATE_USER,{username:e,resetPassword:!0})}function Y(e){r.dispatch(l.RT.ACTIONS.UPDATE_USER,{username:e,activate:!0})}function K(){V(),G.value=C.value.email_to_confirm?C.value.email_to_confirm:"",M.value=!0,W.value="email-update"}function H(){G.value="",M.value=!1}function j(e){r.dispatch(l.RT.ACTIONS.UPDATE_USER,{username:e,new_email:G.value})}function V(){r.commit(l.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),r.commit(l.RT.MUTATIONS.UPDATE_IS_SUCCESS,!1),W.value=""}return(0,t.Ah)((()=>V())),(0,t.YP)((()=>L.value),(e=>{e&&(F(""),H())})),(e,n)=>{const r=(0,t.up)("Modal"),s=(0,t.up)("AlertMessage"),l=(0,t.up)("ErrorMessage");return(0,t.wg)(),(0,t.iD)("div",d,[y.value?((0,t.wg)(),(0,t.j4)(r,{key:0,title:e.$t("common.CONFIRMATION"),message:"delete"===y.value?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:(0,o.SU)(C).username,onConfirmAction:n[0]||(n[0]=e=>"delete"===y.value?B((0,o.SU)(C).username):x((0,o.SU)(C).username)),onCancelAction:n[1]||(n[1]=e=>F("")),onKeydown:n[2]||(n[2]=(0,a.D2)((e=>F("")),["esc"]))},null,8,["title","message","strongMessage"])):(0,t.kq)("",!0),(0,o.SU)(L)?((0,t.wg)(),(0,t.iD)("div",E,(0,i.zw)(e.$t(`admin.${"password-reset"===W.value?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):(0,t.kq)("",!0),(0,o.SU)(C).is_active?(0,t.kq)("",!0):((0,t.wg)(),(0,t.j4)(s,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})),(0,o.SU)(f)?((0,t.wg)(),(0,t.j4)(l,{key:3,message:(0,o.SU)(f)},null,8,["message"])):(0,t.kq)("",!0),M.value?((0,t.wg)(),(0,t.iD)("div",_,[(0,t._)("form",{class:(0,i.C_)({errors:b.value}),onSubmit:n[5]||(n[5]=(0,a.iM)((e=>j((0,o.SU)(C).username)),["prevent"]))},[(0,t._)("label",T,[(0,t.Uk)((0,i.zw)(e.$t("admin.CURRENT_EMAIL"))+" ",1),(0,t.wy)((0,t._)("input",{id:"email",type:"email","onUpdate:modelValue":n[3]||(n[3]=e=>(0,o.SU)(C).email=e),disabled:""},null,512),[[a.nr,(0,o.SU)(C).email]])]),(0,t._)("label",S,[(0,t.Uk)((0,i.zw)(e.$t("admin.NEW_EMAIL"))+"* ",1),(0,t.wy)((0,t._)("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":n[4]||(n[4]=e=>G.value=e)},null,512),[[a.nr,G.value]])]),(0,t._)("div",p,[(0,t._)("button",A,(0,i.zw)(e.$t("buttons.SUBMIT")),1),(0,t._)("button",{class:"cancel",onClick:(0,a.iM)(H,["prevent"])},(0,i.zw)(e.$t("buttons.CANCEL")),9,z)])],34)])):((0,t.wg)(),(0,t.iD)("div",O,[(0,t._)("dl",null,[(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),(0,t._)("dd",null,[(0,t._)("time",null,(0,i.zw)((0,o.SU)(P)),1)]),(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.FIRST_NAME"))+":",1),(0,t._)("dd",null,(0,i.zw)((0,o.SU)(C).first_name),1),(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.LAST_NAME"))+":",1),(0,t._)("dd",null,(0,i.zw)((0,o.SU)(C).last_name),1),(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.BIRTH_DATE"))+":",1),(0,t._)("dd",null,[(0,o.SU)(v)?((0,t.wg)(),(0,t.iD)("time",I,(0,i.zw)((0,o.SU)(v)),1)):(0,t.kq)("",!0)]),(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.LOCATION"))+":",1),(0,t._)("dd",null,(0,i.zw)((0,o.SU)(C).location),1),(0,t._)("dt",null,(0,i.zw)(e.$t("user.PROFILE.BIO"))+":",1),(0,t._)("dd",R,(0,i.zw)((0,o.SU)(C).bio),1)]),(0,o.SU)(D)?((0,t.wg)(),(0,t.iD)("div",N,[(0,o.SU)(w).username!==(0,o.SU)(C).username?((0,t.wg)(),(0,t.iD)("button",{key:0,class:"danger",onClick:n[6]||(n[6]=(0,a.iM)((e=>F("delete")),["prevent"]))},(0,i.zw)(e.$t("admin.DELETE_USER")),1)):(0,t.kq)("",!0),(0,o.SU)(C).is_active?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("button",{key:1,onClick:n[7]||(n[7]=(0,a.iM)((e=>Y((0,o.SU)(C).username)),["prevent"]))},(0,i.zw)(e.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),(0,o.SU)(w).username!==(0,o.SU)(C).username?((0,t.wg)(),(0,t.iD)("button",{key:2,onClick:(0,a.iM)(K,["prevent"])},(0,i.zw)(e.$t("admin.UPDATE_USER_EMAIL")),9,g)):(0,t.kq)("",!0),(0,o.SU)(w).username!==(0,o.SU)(C).username&&(0,o.SU)(k).is_email_sending_enabled?((0,t.wg)(),(0,t.iD)("button",{key:3,onClick:n[8]||(n[8]=(0,a.iM)((e=>F("reset")),["prevent"]))},(0,i.zw)(e.$t("admin.RESET_USER_PASSWORD")),1)):(0,t.kq)("",!0),(0,t._)("button",{onClick:n[9]||(n[9]=n=>e.$router.go(-1))},(0,i.zw)(e.$t("buttons.BACK")),1)])):((0,t.wg)(),(0,t.iD)("div",U,[(0,t._)("button",{onClick:n[10]||(n[10]=n=>e.$router.push("/profile/edit"))},(0,i.zw)(e.$t("user.PROFILE.EDIT")),1),(0,t._)("button",{onClick:n[11]||(n[11]=n=>e.$router.push("/"))},(0,i.zw)(e.$t("common.HOME")),1)]))]))])}}}),D=r(3744);const h=(0,D.Z)(C,[["__scopeId","data-v-dc6293e2"]]);var w=h},776:function(e,n,r){"use strict";r.d(n,{Z:function(){return L}});var t=r(6252),o=r(3577),a=r(2262),i=r(9963),s=r(2201),l=r(7374),c=r(5801),u=r(9917);const m=e=>((0,t.dD)("data-v-4f112f24"),e=e(),(0,t.Cn)(),e),d={id:"user-form"},E={key:2,class:"info-box success-message"},_={class:"form-items"},T=["disabled","placeholder"],S={key:1,class:"form-info"},p=m((()=>(0,t._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),A=["disabled","placeholder"],z={key:3,class:"form-info"},O=m((()=>(0,t._)("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1))),I={key:5,for:"accepted_policy",class:"accepted_policy"},R=["disabled"],N=["disabled"],g={key:3},U={key:0},C={key:4},D={class:"account"},h={key:5};var w=(0,t.aZ)({__name:"UserAuthForm",props:{action:null,token:{default:""}},setup(e){const n=e,r=(0,s.yj)(),m=(0,u.o)(),{action:w}=(0,a.BK)(n),P=(0,a.qj)({username:"",email:"",password:"",accepted_policy:!1}),v=(0,t.Fl)((()=>F(n.action))),L=(0,t.Fl)((()=>m.getters[c.SY.GETTERS.ERROR_MESSAGES])),f=(0,t.Fl)((()=>m.getters[c.YN.GETTERS.IS_REGISTRATION_SUCCESS])),k=(0,t.Fl)((()=>m.getters[c.YN.GETTERS.IS_SUCCESS])),y=(0,t.Fl)((()=>m.getters[c.SY.GETTERS.APP_CONFIG])),b=(0,t.Fl)((()=>m.getters[c.SY.GETTERS.LANGUAGE])),M=(0,t.Fl)((()=>"register"===n.action&&!y.value.is_registration_enabled)),G=(0,t.Fl)((()=>["reset-request","account-confirmation-resend"].includes(n.action)&&!y.value.is_email_sending_enabled)),W=(0,a.iH)(!1);function F(e){switch(e){case"reset-request":case"reset":return"buttons.SUBMIT";default:return`buttons.${n.action.toUpperCase()}`}}function B(){W.value=!0}function x(e){P.password=e}function Y(e){switch(e){case"reset":return n.token?m.dispatch(c.YN.ACTIONS.RESET_USER_PASSWORD,{password:P.password,token:n.token}):m.commit(c.SY.MUTATIONS.SET_ERROR_MESSAGES,"user.INVALID_TOKEN");case"reset-request":return m.dispatch(c.YN.ACTIONS.SEND_PASSWORD_RESET_REQUEST,{email:P.email});case"account-confirmation-resend":return m.dispatch(c.YN.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL,{email:P.email});default:P["language"]=b.value,m.dispatch(c.YN.ACTIONS.LOGIN_OR_REGISTER,{actionType:e,formData:P,redirectUrl:r.query.from})}}function K(){P.username="",P.email="",P.password="",P.accepted_policy=!1}return(0,t.Ah)((()=>m.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES))),(0,t.YP)((()=>r.path),(async()=>{m.commit(c.SY.MUTATIONS.EMPTY_ERROR_MESSAGES),m.commit(c.YN.MUTATIONS.UPDATE_IS_SUCCESS,!1),m.commit(c.YN.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),W.value=!1,K()})),(e,n)=>{const r=(0,t.up)("AlertMessage"),s=(0,t.up)("router-link"),c=(0,t.up)("i18n-t"),u=(0,t.up)("ErrorMessage");return(0,t.wg)(),(0,t.iD)("div",{id:"user-auth-form",class:(0,o.C_)(`${["reset","reset-request"].includes((0,a.SU)(w))?(0,a.SU)(w):"user-form"}`)},[(0,t._)("div",d,[(0,t._)("div",{class:(0,o.C_)(["form-box",{disabled:(0,a.SU)(M)}])},[(0,a.SU)(M)?((0,t.wg)(),(0,t.j4)(r,{key:0,message:"user.REGISTER_DISABLED"})):(0,t.kq)("",!0),(0,a.SU)(G)?((0,t.wg)(),(0,t.j4)(r,{key:1,message:"admin.EMAIL_SENDING_DISABLED"})):(0,t.kq)("",!0),(0,a.SU)(k)||(0,a.SU)(f)?((0,t.wg)(),(0,t.iD)("div",E,(0,o.zw)(e.$t("user.PROFILE.SUCCESSFUL_"+((0,a.SU)(f)?"REGISTRATION"+((0,a.SU)(y).is_email_sending_enabled?"_WITH_EMAIL":""):"UPDATE"))),1)):(0,t.kq)("",!0),(0,t._)("form",{class:(0,o.C_)({errors:W.value}),onSubmit:n[3]||(n[3]=(0,i.iM)((e=>Y((0,a.SU)(w))),["prevent"]))},[(0,t._)("div",_,["register"===(0,a.SU)(w)?(0,t.wy)(((0,t.wg)(),(0,t.iD)("input",{key:0,id:"username",disabled:(0,a.SU)(M),required:"",pattern:"[a-zA-Z0-9_]+",minlength:"3",maxlength:"30",onInvalid:B,"onUpdate:modelValue":n[0]||(n[0]=e=>P.username=e),placeholder:e.$t("user.USERNAME")},null,40,T)),[[i.nr,P.username]]):(0,t.kq)("",!0),"register"===(0,a.SU)(w)?((0,t.wg)(),(0,t.iD)("div",S,[p,(0,t.Uk)(" "+(0,o.zw)(e.$t("user.USERNAME_INFO")),1)])):(0,t.kq)("",!0),"reset"!==(0,a.SU)(w)?(0,t.wy)(((0,t.wg)(),(0,t.iD)("input",{key:2,id:"email",disabled:(0,a.SU)(M)||(0,a.SU)(G),required:"",onInvalid:B,type:"email","onUpdate:modelValue":n[1]||(n[1]=e=>P.email=e),placeholder:e.$t("user.EMAIL")},null,40,A)),[[i.nr,P.email]]):(0,t.kq)("",!0),["reset-request","register","account-confirmation-resend"].includes((0,a.SU)(w))?((0,t.wg)(),(0,t.iD)("div",z,[O,(0,t.Uk)(" "+(0,o.zw)(e.$t("user.EMAIL_INFO")),1)])):(0,t.kq)("",!0),["account-confirmation-resend","reset-request"].includes((0,a.SU)(w))?(0,t.kq)("",!0):((0,t.wg)(),(0,t.j4)(l.Z,{key:4,disabled:(0,a.SU)(M),required:!0,placeholder:"reset"===(0,a.SU)(w)?e.$t("user.ENTER_PASSWORD"):e.$t("user.PASSWORD"),password:P.password,checkStrength:["reset","register"].includes((0,a.SU)(w)),onUpdatePassword:x,onPasswordError:B},null,8,["disabled","placeholder","password","checkStrength"])),"register"===(0,a.SU)(w)?((0,t.wg)(),(0,t.iD)("label",I,[(0,t.wy)((0,t._)("input",{type:"checkbox",id:"accepted_policy",disabled:(0,a.SU)(M),required:"",onInvalid:B,"onUpdate:modelValue":n[2]||(n[2]=e=>P.accepted_policy=e)},null,40,R),[[i.e8,P.accepted_policy]]),(0,t._)("span",null,[(0,t.Wm)(c,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{to:"/privacy-policy",target:"_blank"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("privacy_policy.TITLE")),1)])),_:1})])),_:1})])])):(0,t.kq)("",!0)]),(0,t._)("button",{type:"submit",disabled:(0,a.SU)(M)||(0,a.SU)(G)},(0,o.zw)(e.$t((0,a.SU)(v))),9,N)],34),"login"===(0,a.SU)(w)?((0,t.wg)(),(0,t.iD)("div",g,[(0,t.Wm)(s,{class:"links",to:"/register"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("user.REGISTER")),1)])),_:1}),(0,a.SU)(y).is_email_sending_enabled?((0,t.wg)(),(0,t.iD)("span",U,"-")):(0,t.kq)("",!0),(0,a.SU)(y).is_email_sending_enabled?((0,t.wg)(),(0,t.j4)(s,{key:1,class:"links",to:"/password-reset/request"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("user.PASSWORD_FORGOTTEN")),1)])),_:1})):(0,t.kq)("",!0)])):(0,t.kq)("",!0),"register"===(0,a.SU)(w)?((0,t.wg)(),(0,t.iD)("div",C,[(0,t._)("span",D,(0,o.zw)(e.$t("user.ALREADY_HAVE_ACCOUNT")),1),(0,t.Wm)(s,{class:"links",to:"/login"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("user.LOGIN")),1)])),_:1})])):(0,t.kq)("",!0),["login","register"].includes((0,a.SU)(w))&&(0,a.SU)(y).is_email_sending_enabled?((0,t.wg)(),(0,t.iD)("div",h,[(0,t.Wm)(s,{class:"links",to:"/account-confirmation/resend"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("user.ACCOUNT_CONFIRMATION_NOT_RECEIVED")),1)])),_:1})])):(0,t.kq)("",!0),(0,a.SU)(L)?((0,t.wg)(),(0,t.j4)(u,{key:6,message:(0,a.SU)(L)},null,8,["message"])):(0,t.kq)("",!0)],2)])],2)}}}),P=r(3744);const v=(0,P.Z)(w,[["__scopeId","data-v-4f112f24"]]);var L=v},6595:function(e,n,r){"use strict";r.d(n,{Z:function(){return E}});var t=r(6252),o=r(2262),a=r(2024);const i={class:"user-picture"},s=["alt","src"],l={key:1,class:"no-picture"},c=(0,t._)("i",{class:"fa fa-user-circle-o","aria-hidden":"true"},null,-1),u=[c];var m=(0,t.aZ)({__name:"UserPicture",props:{user:null},setup(e){const n=e,r=(0,t.Fl)((()=>n.user.picture?`${(0,a.k)()}users/${n.user.username}/picture?${Date.now()}`:""));return(e,n)=>((0,t.wg)(),(0,t.iD)("div",i,[""!==(0,o.SU)(r)?((0,t.wg)(),(0,t.iD)("img",{key:0,class:"profile-user-img",alt:e.$t("user.USER_PICTURE"),src:(0,o.SU)(r)},null,8,s)):((0,t.wg)(),(0,t.iD)("div",l,u))]))}});const d=m;var E=d},5630:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var t=r(6252),o=r(3577);const a={class:"no-workouts box"};function i(e,n){const r=(0,t.up)("router-link");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t._)("div",null,[(0,t.Uk)((0,o.zw)(e.$t("workouts.NO_WORKOUTS"))+" ",1),(0,t.Wm)(r,{to:"/workouts/add"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,o.zw)(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)])),_:1})])])}var s=r(3744);const l={},c=(0,s.Z)(l,[["render",i],["__scopeId","data-v-4b4d15fb"]]);var u=c},4612:function(e,n,r){var t={"./de/de.ts":3010,"./en/en.ts":2709,"./es/es.ts":3429,"./fr/fr.ts":5479,"./gl/gl.ts":6338,"./it/it.ts":6013,"./nb/nb.ts":1901,"./nl/nl.ts":3726,"./pl/pl.ts":5381};function o(e){var n=a(e);return r(n)}function a(e){if(!r.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}o.keys=function(){return Object.keys(t)},o.resolve=a,e.exports=o,o.id=4612},5347:function(){},1777:function(){},4017:function(){},9905:function(){},4604:function(){}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={exports:{}};return e[t].call(a.exports,a,a.exports,r),a.exports}r.m=e,function(){var e=[];r.O=function(n,t,o,a){if(!t){var i=1/0;for(u=0;u=a)&&Object.keys(r.O).every((function(e){return r.O[e](t[l])}))?t.splice(l--,1):(s=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[t,o,a]}}(),function(){r.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(n,{a:n}),n}}(),function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"===typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"===typeof t.then)return t}var a=Object.create(null);r.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var s=2&o&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return t[e]}}));return i["default"]=function(){return t},r.d(a,i),a}}(),function(){r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}}(),function(){r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(n,t){return r.f[t](e,n),n}),[]))}}(),function(){r.u=function(e){return"static/js/"+({24:"reset",193:"statistics",222:"password.fr",261:"password.en",328:"admin",394:"password.es",401:"workouts",802:"password.it",845:"profile",881:"password",940:"password.de",946:"password.pl"}[e]||e)+"."+{24:"a3db17a0",93:"df2db3a3",193:"4725ae9d",222:"eca0ec1d",243:"03fdd6a3",261:"4b788215",328:"757bc8af",394:"0fdfd7ae",401:"c611e8ca",431:"e117da19",633:"3c920340",802:"9fae932a",845:"df2cbb8b",858:"8fd585ad",881:"b8efc50f",940:"d164c0cb",946:"d10f76b2"}[e]+".js"}}(),function(){r.miniCssF=function(e){return"static/css/"+{24:"reset",193:"statistics",328:"admin",401:"workouts",845:"profile"}[e]+"."+{24:"e2527ec6",193:"315506b0",328:"73df498d",401:"6abd9bd9",845:"083b26ea"}[e]+".css"}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="fittrackee_client:";r.l=function(t,o,a,i){if(e[t])e[t].push(o);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u{const n=new AbortController;e.signal=n.signal;const r=(0,o.a)(e);o.j.set(r,n);const t=a.Z.getters[i.YN.GETTERS.AUTH_TOKEN];if(t){const n=`Bearer ${t}`;e.headers&&e.headers.Authorization!==n&&(e.headers.Authorization=`Bearer ${t}`)}return e}),(e=>Promise.reject(e))),l.interceptors.response.use((e=>((0,o.a)(e.config),e)),(e=>("canceled"!==e.message&&e.response&&(0,o.a)(e.response.config),Promise.reject(e)))),n["Z"]=l},8566:function(e,n,r){"use strict";r.d(n,{a:function(){return a},j:function(){return t}});const t=new Map,o=e=>{const{method:n,url:r,params:t={},data:o={}}=e;return[n,r,JSON.stringify(t),JSON.stringify(o)].join("")},a=e=>{const n=o(e);if(t.has(n)){const e=t.get(n)||{};e?.abort(),t.delete(n)}return n}},2540:function(e,n,r){"use strict";var t=r(2429);function o(){const e=r(4612),n={};return e.keys().forEach((r=>{const t=r.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){const o=t[1];n[o]=e(r).default}})),n}n["Z"]=(0,t.o)({legacy:!1,locale:"en",fallbackLocale:"en",globalInjection:!0,messages:o()})},3010:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return S}});var t={ABOUT_THIS_INSTANCE:e=>{const{normalize:n}=e;return n(["Über diese Instanz"])},CONTACT_ADMIN:e=>{const{normalize:n}=e;return n(["Kontaktiere den Administrator"])},FITTRACKEE_DESCRIPTION:e=>{const{normalize:n}=e;return n(["FitTrackee ist ein selbst-gehosteter Outdoor-Aktivitäts-Tracker."])},FITTRACKEE_LICENSE:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["unter ",r(t(0))," Lizenz "])},SOURCE_CODE:e=>{const{normalize:n}=e;return n(["Quellcode"])},WEATHER_DATA_FROM:e=>{const{normalize:n}=e;return n(["Wetterdaten von:"])}},o={ABOUT:{DESCRIPTION:e=>{const{normalize:n}=e;return n(["Zusätzliche Informationen, die für deine Nutzer nützlich sein könnten. Markdown-Syntax wird unterstützt."])},TEXT:e=>{const{normalize:n}=e;return n(["Detaillierte Instanz-Informationen"])}},ACTION:e=>{const{normalize:n}=e;return n(["Aktion"])},ACTIVATE_USER_ACCOUNT:e=>{const{normalize:n}=e;return n(["Aktiviere Konto"])},ACTIVE:e=>{const{normalize:n}=e;return n(["Aktiv"])},ADMIN:e=>{const{normalize:n}=e;return n(["Admin"])},ADMINISTRATION:e=>{const{normalize:n}=e;return n(["Administration"])},ADMIN_RIGHTS_DELETE_USER_ACCOUNT:e=>{const{normalize:n}=e;return n(["Hinzufügen/Entfernen von Administratorrechten, Lösche Nutzerkonto."])},APPLICATION:e=>{const{normalize:n}=e;return n(["Anwendung"])},APP_CONFIG:{ADMIN_CONTACT:e=>{const{normalize:n}=e;return n(["Kontakt-E-Mail des Administrators"])},MAX_FILES_IN_ZIP_LABEL:e=>{const{normalize:n}=e;return n(["Max. Dateianzahl im zip Archiv"])},MAX_USERS_HELP:e=>{const{normalize:n}=e;return n(["Wenn 0, gibt es keine Registrierungslimitierung.."])},MAX_USERS_LABEL:e=>{const{normalize:n}=e;return n(["Max. Anzahl aktiver Nutzer"])},NO_CONTACT_EMAIL:e=>{const{normalize:n}=e;return n(["keine Kontakt-E-Mail"])},SINGLE_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:n}=e;return n(["Max. Größe der hochgeladenen Dateien (in Mb)"])},TITLE:e=>{const{normalize:n}=e;return n(["Anwendungskonfiguration"])},ZIP_UPLOAD_MAX_SIZE_LABEL:e=>{const{normalize:n}=e;return n(["Max. Größe des zip Archives (in Mb)"])}},BACK_TO_ADMIN:e=>{const{normalize:n}=e;return n(["Zurück zu Admin"])},CONFIRM_USER_ACCOUNT_DELETION:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["Möchtest du wirklich das ",r(t(0))," Konto löschen? Alle Daten werden gelöscht. Dieser Vorgang kann nicht rückgängig gemacht werden."])},CONFIRM_USER_PASSWORD_RESET:e=>{const{normalize:n,interpolate:r,list:t}=e;return n(["Möchtest du wirklich das ",r(t(0))," Passwort zurücksetzen?"])},CURRENT_EMAIL:e=>{const{normalize:n}=e;return n(["Aktuelle E-Mail"])},DELETE_USER:e=>{const{normalize:n}=e;return n(["Lösche Nutzer"])},EMAIL_SENDING_DISABLED:e=>{const{normalize:n}=e;return n(["E-Mail-Versand ist deaktiviert."])},ENABLE_DISABLE_SPORTS:e=>{const{normalize:n}=e;return n(["Aktivieren/Deaktivieren von Sportarten."])},NEW_EMAIL:e=>{const{normalize:n}=e;return n(["Neue E-Mail"])},NO_TEXT_ENTERED:e=>{const{normalize:n}=e;return n(["Kein Text eingegeben"])},PASSWORD_RESET_SUCCESSFUL:e=>{const{normalize:n}=e;return n(["Das wasswort wurde zurückgesetzt."])},PRIVACY_POLICY_DESCRIPTION:e=>{const{normalize:n}=e;return n(["Füge deine eigene Datenschutzrichtlinie hinzu oder leer lassen, um die standardmäßige zu verwenden. Markdown-Syntax wird unterstützt."])},REGISTRATION_DISABLED:e=>{const{normalize:n}=e;return n(["Registrierung ist derzeit deaktiviert."])},REGISTRATION_ENABLED:e=>{const{normalize:n}=e;return n(["Registrierung ist derzeit aktiviert."])},RESET_USER_PASSWORD:e=>{const{normalize:n}=e;return n(["Passwort zurücksetzen"])},SPORTS:{TABLE:{ACTIVE:e=>{const{normalize:n}=e;return n(["Aktiv"])},HAS_WORKOUTS:e=>{const{normalize:n}=e;return n(["Trainings existieren"])},IMAGE:e=>{const{normalize:n}=e;return n(["Bild"])},LABEL:e=>{const{normalize:n}=e;return n(["Titel"])}},TITLE:e=>{const{normalize:n}=e;return n(["Sportarten Administration"])}},UPDATE_APPLICATION_DESCRIPTION:e=>{const{normalize:n}=e;return n(["Aktualisiere Anwemdungskonfiguration."])},UPDATE_USER_EMAIL:e=>{const{normalize:n}=e;return n(["Aktualisiere E-Mail"])},USER:e=>{const{normalize:n}=e;return n(["Nutzer"])},USERS:{SELECTS:{ORDER_BY:{ADMIN:e=>{const{normalize:n}=e;return n(["Adminstatus"])},CREATED_AT:e=>{const{normalize:n}=e;return n(["Registrierungsdatum"])},IS_ACTIVE:e=>{const{normalize:n}=e;return n(["Accountstatus"])},USERNAME:e=>{const{normalize:n}=e;return n(["Nutzername"])},WORKOUTS_COUNT:e=>{const{normalize:n}=e;return n(["Trainingsanzahl"])}}},TABLE:{ADD_ADMIN_RIGHTS:e=>{const{normalize:n}=e;return n(["Administratorrechte hinzufügen"])},REMOVE_ADMIN_RIGHTS:e=>{const{normalize:n}=e;return n(["Administratorrechte entfernen"])}},TITLE:e=>{const{normalize:n}=e;return n(["Administration - Benutzer"])}},USER_EMAIL_UPDATE_SUCCESSFUL:e=>{const{normalize:n}=e;return n(["Die E-Mail Adresse wurde aktualisiert."])}},a={ERROR:{"