From dbdb7b89c361f0c4d68dbbcd68a68b799f248228 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 30 Dec 2024 09:00:38 +0100 Subject: [PATCH] build dist files --- fittrackee/dist/index.html | 4 ++-- .../static/css/{index-BnK-W-lv.css => index-a-Y1BgAZ.css} | 2 +- .../dist/static/{index-wcYMtFVC.js => index-DVbN2_96.js} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename fittrackee/dist/static/css/{index-BnK-W-lv.css => index-a-Y1BgAZ.css} (77%) rename fittrackee/dist/static/{index-wcYMtFVC.js => index-DVbN2_96.js} (98%) diff --git a/fittrackee/dist/index.html b/fittrackee/dist/index.html index d9cac61fa..366bf77f7 100644 --- a/fittrackee/dist/index.html +++ b/fittrackee/dist/index.html @@ -7,11 +7,11 @@ FitTrackee - + - +
diff --git a/fittrackee/dist/static/css/index-BnK-W-lv.css b/fittrackee/dist/static/css/index-a-Y1BgAZ.css similarity index 77% rename from fittrackee/dist/static/css/index-BnK-W-lv.css rename to fittrackee/dist/static/css/index-a-Y1BgAZ.css index 7dbc24092..72056caf2 100644 --- a/fittrackee/dist/static/css/index-BnK-W-lv.css +++ b/fittrackee/dist/static/css/index-a-Y1BgAZ.css @@ -1 +1 @@ -@charset "UTF-8";#footer[data-v-e9aea8ab]{display:flex;bottom:0;position:fixed;width:100%;background:var(--footer-background-color);color:var(--footer-color);font-size:.9em}#footer .footer-items[data-v-e9aea8ab]{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;width:100%}#footer .footer-items .footer-item[data-v-e9aea8ab]{padding:10px;border-top:solid 1px var(--footer-border-color);text-align:center}@media screen and (max-width: 500px){#footer .footer-items[data-v-e9aea8ab]{border-top:solid 1px var(--footer-border-color);font-size:.85em;padding:0 0 2px}#footer .footer-items .footer-item[data-v-e9aea8ab]{border-top:none;padding:1px 5px}#footer .footer-items .bullet[data-v-e9aea8ab]{padding:1px 0}}.user-picture{display:flex;justify-content:center;align-items:center;min-width:30%;line-height:1.2em}.user-picture img{border-radius:50%;height:90px;width:90px}.user-picture .no-picture{color:var(--app-a-color);font-size:5.5em}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}[data-v-19528410]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}#nav[data-v-19528410]{background:var(--nav-bar-background-color);display:flex;padding:15px 10px 10px}#nav a[data-v-19528410]{text-decoration:none}#nav .nav-container[data-v-19528410]{display:flex;margin-left:auto;margin-right:auto;padding:0 15px 15px;max-width:1140px;width:100%;border-bottom:solid 1px var(--nav-border-color)}#nav a.router-link-exact-active[data-v-19528410]{color:var(--nav-bar-link-active);font-weight:700}#nav a.router-link-exact-active.app-name[data-v-19528410]{color:var(--app-color)}#nav .app-name[data-v-19528410]{color:var(--app-color);font-size:1.2em;font-weight:700;margin-right:10px;line-height:1.6em}#nav .fa[data-v-19528410]{font-size:1.2em}#nav .notifications-icons[data-v-19528410]{font-size:1em;padding-top:7px}#nav .nav-icon-open[data-v-19528410],#nav .hamburger-icon[data-v-19528410],#nav .close-icon[data-v-19528410]{display:none}#nav .menu-button[data-v-19528410]{padding:0}#nav .nav-items[data-v-19528410]{display:flex;flex:1;justify-content:space-between;line-height:2em;width:100%}#nav .nav-items .nav-items-close[data-v-19528410]{display:none}#nav .nav-items .nav-items-app-menu[data-v-19528410],#nav .nav-items .nav-items-user-menu[data-v-19528410]{display:flex;margin:0;padding:0}#nav .nav-items .nav-items-group[data-v-19528410]{display:flex;align-items:flex-start}#nav .nav-items .nav-item[data-v-19528410]{padding:0 10px;height:28px}#nav .nav-items .nav-item.dropdown-wrapper[data-v-19528410]{padding:0;margin-left:2px}#nav .nav-items .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{z-index:1000;margin-left:-150px!important;width:190px!important}#nav .nav-items .nav-item.notifications .notifications-label[data-v-19528410]{display:none}#nav .nav-items .nav-link[data-v-19528410]{color:var(--app-a-color);cursor:pointer}#nav .nav-items .nav-profile-img[data-v-19528410]{display:flex;gap:10px;align-items:flex-start;margin-bottom:-10px}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture{min-width:auto}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture img{height:32px;width:32px;object-fit:cover}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture .no-picture{font-size:1.7em;padding:0}#nav .nav-items .nav-profile-img .user-name[data-v-19528410]{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#nav .nav-items .nav-separator[data-v-19528410]{display:none}#nav .nav-items .nav-button[data-v-19528410]{padding:5px 7.5px;margin-left:2px}#nav .nav-items .nav-button .nav-button-fa[data-v-19528410]{display:block}#nav .nav-items .nav-button .nav-button-text[data-v-19528410]{display:none}#nav .nav-items .nav-button.logout-button[data-v-19528410]{padding:6px 0 0 6px}#nav .nav-items .clear-theme[data-v-19528410]{filter:var(--workout-img-color);height:20px;margin-bottom:-3px}@media screen and (max-width: 1000px){#nav .hamburger-icon[data-v-19528410]{display:block}#nav .nav-icon-open[data-v-19528410]{display:flex;text-align:right;justify-content:flex-end;gap:10px;width:100%}#nav .nav-icon-open.menu-open[data-v-19528410]{display:none}#nav .notifications-icons[data-v-19528410]{padding:6px 0 0 4px}#nav .close-icon[data-v-19528410]{display:block}#nav .close-icon.menu-closed[data-v-19528410],#nav .nav-items[data-v-19528410]{display:none}#nav .nav-items.menu-open[data-v-19528410]{display:flex;flex-direction:column;justify-content:flex-start;z-index:1001;position:absolute;top:0;right:0;bottom:0;left:0;background:var(--nav-bar-background-color)}#nav .nav-items.menu-open .nav-items-close[data-v-19528410],#nav .nav-items.menu-open .nav-items-app-menu[data-v-19528410],#nav .nav-items.menu-open .nav-items-user-menu[data-v-19528410]{display:flex;flex-direction:column;background:var(--nav-bar-background-color)}#nav .nav-items.menu-open .nav-items-close[data-v-19528410]{align-items:center;display:flex;flex-direction:row;justify-content:space-between}#nav .nav-items.menu-open .nav-items-close .app-name[data-v-19528410]{padding:15px 25px}#nav .nav-items.menu-open .nav-items-group[data-v-19528410]{display:flex;flex-direction:column}#nav .nav-items.menu-open .nav-items-group .nav-button[data-v-19528410]{padding:10px 10px 10px 24px;color:var(--app-a-color);text-align:left}#nav .nav-items.menu-open .nav-items-group .nav-button .nav-button-fa[data-v-19528410]{display:none;width:36px}#nav .nav-items.menu-open .nav-items-group .nav-button .nav-button-text[data-v-19528410]{display:block}#nav .nav-items.menu-open .nav-item[data-v-19528410]{padding:7px 25px}#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410]{padding-left:20px}#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{width:auto!important;height:200px;overflow-y:scroll}}@media screen and (max-width: 1000px) and (orientation: portrait){#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{margin-left:initial!important}}@media screen and (max-width: 1000px) and (orientation: landscape){#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{margin-top:-35px;margin-left:35px!important}}@media screen and (max-width: 1000px){#nav .nav-items.menu-open .nav-item.notifications[data-v-19528410]{margin:10px 0 0}#nav .nav-items.menu-open .nav-item.notifications .notifications-label[data-v-19528410]{display:block}#nav .nav-items.menu-open .nav-separator[data-v-19528410]{display:flex;border-top:solid 1px var(--nav-border-color);margin:0 20px;padding:0 0 10px;height:0;width:88%}#nav .theme-button[data-v-19528410]{margin-left:15px}}#nav .fa-language[data-v-19528410]{cursor:pointer}#no-config[data-v-73140811]{display:flex;align-items:center;justify-content:space-around;padding:10px;height:100%}#no-config .error-page[data-v-73140811]{display:flex;flex-direction:column;align-items:center;max-width:100%}#no-config .error-page .error-img[data-v-73140811]{width:150px}#no-config .error-page .error-img svg[data-v-73140811]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter)}#no-config .error-page .error-message[data-v-73140811]{font-size:1.2em;text-align:center}@media screen and (max-width: 1000px){#no-config .error-page .error-message[data-v-73140811]{font-size:1em}}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"×";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark]{color-scheme:dark}body{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body::-webkit-scrollbar{width:5px;height:5px}body::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body:hover::-webkit-scrollbar-track{background:transparent}#app{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a:hover,a:focus{text-decoration-color:var(--app-a-color)}img{max-width:100%}input,textarea,select{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input:disabled,textarea:disabled,select:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors :invalid{outline:2px solid var(--input-error-color)}label{font-weight:700}button{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent:hover,button.transparent:disabled{background:transparent}button.transparent:hover{color:var(--app-color)}button.transparent:enabled:active{box-shadow:none}button.transparent:disabled,button.transparent.confirm:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button{cursor:pointer;padding:0}button.small{font-size:.9em;padding:3px 7px}button:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button:disabled,button.confirm:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items{display:flex;flex-direction:column}.form-box .form-items input{margin:10px;padding:5px}.form-info{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper{text-transform:uppercase}.view{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy{color:var(--workout-trophy-color)}.mountains{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title{padding-left:5px;text-transform:capitalize}.section-title:first-letter{text-transform:uppercase}.no-map{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl{display:flex;flex-direction:column;width:100%}.description-list dl dt{font-weight:700}.description-list dl dd{margin-bottom:10px}.center-card{margin:0 auto;width:700px}.center-card.with-margin{margin-top:100px}@media screen and (max-width: 1000px){.center-card{width:100%;margin:0 auto 50px}}.text-center{text-align:center}.text-left{text-align:left}.deleted-object{font-style:italic}.responsive-table{margin-bottom:15px}.responsive-table table{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody{font-size:.95em}.responsive-table table tbody td{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td{border:none}.responsive-table table .cell-heading{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading{display:flex}}@media screen and (max-width: 500px){.responsive-table table td{width:100%}}.profile-buttons{display:flex;align-items:baseline;gap:10px}.user-role,.follows-you,.blocked{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img{height:35px;width:35px;margin:0 auto}.hidden-content{display:none}.items-list-view .items-list-container{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container{flex-direction:column}}.items-list-view .items-list-container .filters-container,.items-list-view .items-list-container .list-container{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden{display:none}}.items-list-view .items-list-container .display-filters{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container{width:100%}}.visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects{flex-wrap:wrap}.table-selects label{margin-bottom:10px}.table-selects label select{margin-left:0}}.suspended{font-style:italic;font-weight:700}.action-loading{display:flex;align-items:center}.markdown-hints{font-size:.8em;font-style:normal;margin:5px 0 10px}.app-container{height:calc(100vh - 130px)}.app-container.hide-scroll{overflow:hidden}.app-container .app-loading{display:flex;align-items:center;height:100%}.scroll{display:flex;justify-content:flex-end;position:fixed;bottom:42px;right:-15px;padding:0 25px}.scroll .scroll-button{background-color:var(--scroll-button-bg-color);border-radius:4px;box-shadow:1px 1px 3px var(--app-shadow-color);display:none;padding:0 10px}.scroll .scroll-button.display-button{display:block}.description-list[data-v-3aa846b9]{margin-bottom:10px}.description-list dl[data-v-3aa846b9]{margin-bottom:0}.error-message[data-v-3aa846b9],.appeal-info[data-v-3aa846b9]{margin:10px 0}.appeal-submitted[data-v-3aa846b9]{display:flex;flex-direction:column;gap:10px}.appeal-submitted .appeal-success[data-v-3aa846b9]{margin:10px 0 0}.appeal-approved[data-v-3aa846b9]{background:var(--success-background-color);color:var(--success-color)}.appeal-approved button[data-v-3aa846b9]{color:var(--success-color)}.appeal-rejected[data-v-3aa846b9]{background:var(--error-background-color);color:var(--error-color)}.appeal-rejected button[data-v-3aa846b9]{color:var(--error-color)}.report-buttons[data-v-3aa846b9]{display:flex;gap:10px}.hide-button[data-v-3aa846b9]{font-style:italic;padding:0 10px}.notification-object[data-v-1ff8965e]{font-weight:700;text-transform:capitalize}.appeal-action .appeal-button[data-v-1ff8965e]{padding:0 10px;font-size:.9em}.add-comment[data-v-96400748]{margin:20px 0}.add-comment .comment[data-v-96400748]{padding:10px 0 0}.add-comment .form-select-buttons[data-v-96400748]{display:flex;gap:10px;flex-wrap:wrap}.add-comment .form-select-buttons .spacer[data-v-96400748]{flex-grow:3}.add-comment .text-visibility[data-v-96400748]{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:5px}.add-comment .text-visibility select[data-v-96400748]{padding:5px 10px}.add-comment .add-comment-label[data-v-96400748]{font-style:italic;position:relative}.add-comment .add-comment-label .users-suggestions[data-v-96400748]{list-style-type:none;background-color:var(--user-suggestion-background);margin-top:0;padding:0;border:1px solid var(--input-border-color);border-radius:4px;box-shadow:2px 2px 5px #00000040;max-width:200px;top:30px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]{display:flex;gap:10px;padding:10px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture{min-width:min-content;align-items:flex-start}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture img{height:25px;width:25px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture .no-picture{font-size:1.5em}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:hover,.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:focus{background-color:var(--dropdown-hover-color);font-weight:700;cursor:pointer}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:hover .user-picture,.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:focus .user-picture{background-color:var(--dropdown-hover-color)}.add-comment .comment-buttons[data-v-96400748]{display:flex;gap:10px}.add-comment .loader[data-v-96400748]{border-width:5px;height:15px;margin:0 10px;width:15px}.report-form[data-v-40798811]{margin:10px 0}.report-form .report-buttons[data-v-40798811]{display:flex;gap:10px}.report-form .loader[data-v-40798811]{border-width:5px;height:15px;margin:0 10px;width:15px}.report-form .error-message[data-v-40798811]{margin:10px 0}.user-name[data-v-b000441f]{padding-left:5px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}@media screen and (max-width: 700px){.user-name[data-v-b000441f]{max-width:fit-content}}@media screen and (max-width: 500px){.user-name[data-v-b000441f]{max-width:170px}}.workout-comment[data-v-9a13ce5d]{display:flex;background-color:var(--comment-background);padding:10px 0}.workout-comment[data-v-9a13ce5d] .user-picture{min-width:min-content;align-items:flex-start;background-color:var(--comment-background)}.workout-comment[data-v-9a13ce5d] .user-picture img{height:25px;width:25px}.workout-comment[data-v-9a13ce5d] .user-picture .no-picture{font-size:1.5em}.workout-comment .comment-detail[data-v-9a13ce5d]{display:flex;flex-direction:column;width:100%}.workout-comment .comment-detail .comment-info[data-v-9a13ce5d],.workout-comment .comment-detail .comment-actions[data-v-9a13ce5d]{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.workout-comment .comment-detail .comment-likes[data-v-9a13ce5d]{display:flex;gap:5px;line-height:15px}.workout-comment .comment-detail .comment-info .user-name[data-v-9a13ce5d]{font-weight:700;padding-left:10px}.workout-comment .comment-detail .comment-info .spacer[data-v-9a13ce5d]{flex-grow:3}.workout-comment .comment-detail .comment-info .comment-date[data-v-9a13ce5d],.workout-comment .comment-detail .comment-info .comment-edited[data-v-9a13ce5d]{font-size:.85em;font-style:italic;white-space:nowrap}.workout-comment .comment-detail .comment-info .comment-date[data-v-9a13ce5d]:hover{text-decoration:underline}.workout-comment .comment-detail .comment-info[data-v-9a13ce5d] .fa-users{font-size:.8em}.workout-comment .comment-detail .appeal[data-v-9a13ce5d]{margin-left:10px}.workout-comment .comment-detail .comment-actions[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes[data-v-9a13ce5d]{justify-content:flex-end}.workout-comment .comment-detail .comment-actions .icon-button[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .icon-button[data-v-9a13ce5d]{line-height:15px}.workout-comment .comment-detail .comment-actions .fa-edit[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-edit[data-v-9a13ce5d]{margin-bottom:-3px}.workout-comment .comment-detail .comment-actions .fa-heart[data-v-9a13ce5d],.workout-comment .comment-detail .comment-actions .fa-heart-o[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart-o[data-v-9a13ce5d]{font-size:.9em}.workout-comment .comment-detail .comment-actions .fa-heart.liked[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart.liked[data-v-9a13ce5d]{color:var(--like-color)}.workout-comment .comment-detail .report-submitted[data-v-9a13ce5d]{display:flex}.workout-comment .comment-detail .report-submitted .info-box[data-v-9a13ce5d]{padding:10px 20px}.workout-comment .comment-detail .comment-text[data-v-9a13ce5d]{padding:10px;white-space:pre-wrap}.workout-comment .comment-detail .comment-text.highlight[data-v-9a13ce5d]{border-radius:5px;background-image:var(--comment-background-highlight)}.workout-comment .comment-detail[data-v-9a13ce5d] .suspended{margin-top:10px}.workout-comment .comment-detail .likes .likes-count[data-v-9a13ce5d]{padding-left:3px;font-size:.8em}.alert-message[data-v-fc0d2d13]{display:flex;flex-wrap:wrap;gap:3px;background:var(--alert-background-color);color:var(--alert-color);border-radius:4px;margin:10px;padding:10px}.card{border:solid 1px var(--card-border-color);border-radius:4px;margin:10px}.card .card-title{font-weight:700;border-bottom:solid 1px var(--card-border-color);padding:10px 20px}.card .card-content{padding:10px 20px}.custom-textarea[data-v-8d139e95]{display:flex;flex-direction:column}.custom-textarea .remaining-chars[data-v-8d139e95]{font-size:.8em;font-style:italic}.strong[data-v-3aadc3cb]{font-weight:700}.dropdown-wrapper .dropdown-selector[data-v-f0445cd3]{margin:0;padding:5px}.dropdown-wrapper .dropdown-list[data-v-f0445cd3]{list-style-type:none;background-color:var(--dropdown-background-color);padding:0!important;margin-top:5px;margin-left:-20px!important;position:absolute;text-align:left;border:solid 1px var(--dropdown-border-color);box-shadow:2px 2px 5px var(--app-shadow-color);width:auto!important}.dropdown-wrapper .dropdown-list .dropdown-item[data-v-f0445cd3]{padding:3px 12px}.dropdown-wrapper .dropdown-list .dropdown-item.selected[data-v-f0445cd3]{font-weight:700}.dropdown-wrapper .dropdown-list .dropdown-item.selected[data-v-f0445cd3]:after{content:" ✔"}.dropdown-wrapper .dropdown-list .dropdown-item[data-v-f0445cd3]:hover,.dropdown-wrapper .dropdown-list .dropdown-item.focused[data-v-f0445cd3]{background-color:var(--dropdown-hover-color)}.error-message[data-v-5d2995e8]{background:var(--error-background-color);color:var(--error-color);border-radius:4px;margin:10px;padding:10px}.loader[data-v-8b613881]{animation:spin-8b613881 2s linear infinite;border:14px solid var(--app-loading-color);border-top:14px solid var(--app-loading-top-color);border-radius:50%;height:60px;margin-left:41%;width:60px}@keyframes spin-8b613881{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#modal[data-v-9235de5f]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:var(--modal-background-color);padding:10px;z-index:1240;display:flex;justify-content:center;align-items:center}#modal .custom-modal[data-v-9235de5f]{background-color:var(--app-background-color);border-radius:4px;max-width:500px;z-index:1250}@media screen and (max-width: 1000px){#modal .custom-modal[data-v-9235de5f]{width:100%}}#modal .custom-modal[data-v-9235de5f] .card{border:0;margin:0}#modal .custom-modal[data-v-9235de5f] .card .card-content{display:flex;flex-direction:column}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-message{padding:10px}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-message span{font-weight:700}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-buttons{display:flex;justify-content:flex-end}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-buttons button{margin:5px}#modal .custom-modal[data-v-9235de5f] .card .card-content .info-box{margin:0 10px 10px}#modal .custom-modal .loader[data-v-9235de5f]{border-width:5px;height:20px;margin-left:45%;width:20px}#admin-app .admin-help[data-v-3a7598c9]{display:flex}#admin-app .admin-help span[data-v-3a7598c9]{font-style:italic}#admin-app .admin-help .fa-info-circle[data-v-3a7598c9]{margin-right:10px}#admin-app .no-contact[data-v-3a7598c9]{font-style:italic}#admin-app textarea[data-v-3a7598c9]{margin-bottom:10px}#admin-app .textarea-description[data-v-3a7598c9]{font-style:italic}#admin-app .textarea-content[data-v-3a7598c9]{margin-bottom:10px;padding:10px}.no-contact[data-v-3a7598c9]{font-style:italic}#admin-equipment-types table td[data-v-a3acbd9a]{font-size:1.1em}#admin-equipment-types .equipment-type-img[data-v-a3acbd9a]{height:35px;width:35px;margin:0 auto}#admin-equipment-types .has-equipments[data-v-a3acbd9a]{font-size:.95em;font-style:italic;padding:0 10px}#admin-equipment-types .equipment-type-action[data-v-a3acbd9a]{padding-left:40px}#admin-equipment-types .action-button[data-v-a3acbd9a]{display:block}#admin-equipment-types .top-button[data-v-a3acbd9a]{display:none}@media screen and (max-width: 700px){#admin-equipment-types .equipment-type-action[data-v-a3acbd9a]{padding-left:10px}#admin-equipment-types .has-equipments[data-v-a3acbd9a]{padding-top:5px}#admin-equipment-types .action-button[data-v-a3acbd9a]{display:flex;align-items:center;flex-wrap:wrap;flex-direction:column}#admin-equipment-types .top-button[data-v-a3acbd9a]{display:block;margin-bottom:20px}}.stat-card{flex:1;max-width:25%}@media screen and (max-width: 700px){.stat-card{flex:1 0 50%;max-width:49%}}.stat-card .stat-content{display:flex;flex-direction:row;justify-content:space-between;padding:10px 20px}.stat-card .stat-content .stat-icon{width:30%;text-align:center;vertical-align:center}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-icon{width:50%;text-align:left}}.stat-card .stat-content .stat-icon .fa{font-size:3em}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-icon .fa{font-size:2em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-icon .fa{font-size:1.5em}}.stat-card .stat-content .stat-details{width:70%;text-align:right}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details{width:100%}}.stat-card .stat-content .stat-details .stat-huge{font-size:1.7em;font-weight:700}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details .stat-huge{font-size:1.3em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-details .stat-huge{font-size:1em}}.stat-card .stat-content .stat-details .stat{font-size:1em}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details .stat{font-size:.9em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-details .stat{font-size:.8em}}#user-stats{display:flex;flex-wrap:wrap}#admin-menu[data-v-18089d26]{display:flex}#admin-menu.center-card[data-v-18089d26]{width:100%}#admin-menu[data-v-18089d26] .card{flex-grow:1}@media screen and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content{padding:10px}}@media screen and (max-width: 500px) and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content .stat-card .stat-content{padding:10px}}@media screen and (max-width: 500px) and (max-width: 500px) and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content .stat-card .stat-content .stat-icon .fa{font-size:1.2em}}#admin-menu[data-v-18089d26] .card .admin-menu{padding:0 10px}#admin-menu[data-v-18089d26] .card .admin-menu dd{margin-bottom:30px}#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details{display:flex;flex-direction:column}#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details .email-sending-status,#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details .registration-status{font-weight:700}.appeal[data-v-88ea8757]{margin:10px;color:var(--app-color)}.appeal .appeal-date[data-v-88ea8757],.appeal .appeal-text[data-v-88ea8757]{padding-left:5px}.appeal .appeal-date[data-v-88ea8757]{color:var(--app-color-light);font-size:.9em}.appeal .appeal-text[data-v-88ea8757]{font-style:normal}.appeal .appeal-actions[data-v-88ea8757]{display:flex;flex-direction:column;gap:5px;margin:5px 0 0 5px}.appeal .appeal-actions .appeal-actions-buttons[data-v-88ea8757]{display:flex;gap:5px}.appeal .automatically-approved[data-v-88ea8757]{margin-top:10px}.appeal .description-list dl[data-v-88ea8757]{margin-bottom:-10px}.appeal .error-message[data-v-88ea8757]{margin:10px 0}#error[data-v-48ec856d]{display:flex;align-items:center;justify-content:center;height:75vh;text-align:center}#error .error-content[data-v-48ec856d]{margin-top:50px}#error .error-content h1[data-v-48ec856d]{font-size:6em;text-shadow:4px 4px 0 var(--app-shadow-color)}#error .error-content p[data-v-48ec856d]{font-size:1.2em;margin:30px 0}.user-actions[data-v-f72b5b8c]{display:flex;justify-content:space-between;align-items:flex-end;min-height:35px;gap:5px}.user-actions .pending[data-v-f72b5b8c]{border-radius:4px;padding:5px 10px;background-color:var(--text-background-color)}.user-actions .actions-buttons[data-v-f72b5b8c],.user-actions .blocked-user[data-v-f72b5b8c]{display:flex;gap:5px;align-items:center}.user-actions .actions-buttons button[data-v-f72b5b8c],.user-actions .blocked-user button[data-v-f72b5b8c]{text-transform:capitalize;white-space:nowrap}.user-actions .follows-you[data-v-f72b5b8c]{white-space:nowrap}.user-stats[data-v-9af0bb02],.user-stats .user-stat[data-v-9af0bb02]{display:flex}.user-stats .user-stat .stat-number[data-v-9af0bb02],.user-stats .user-stat .stat-label[data-v-9af0bb02]{padding:0 5px}.user-stats .user-stat[data-v-9af0bb02] .distance,.user-stats .user-stat .stat-number[data-v-9af0bb02]{font-weight:700}.user-stats .router-link-exact-active[data-v-9af0bb02]{text-decoration:underline}.box[data-v-45957e2b]{padding:10px 12px}.box .user-card[data-v-45957e2b]{display:flex;min-height:140px}.box .user-card .user-header[data-v-45957e2b]{display:flex;flex-direction:column;align-items:center;gap:10px;margin:10px 0;width:50%}.box .user-card .user-header[data-v-45957e2b] .user-picture img{height:70px;width:70px}.box .user-card .user-header[data-v-45957e2b] .user-picture .no-picture{font-size:4.4em}.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:170px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (max-width: 700px){.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:fit-content}}@media screen and (max-width: 500px){.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:170px}}.box .user-card .stats-role[data-v-45957e2b]{display:flex;flex-direction:column;justify-content:space-between;width:50%}.box .user-card .stats-role .role[data-v-45957e2b]{display:flex;justify-content:flex-end;margin-bottom:5px}.box .user-card .stats-role[data-v-45957e2b] .user-stats{flex-direction:column;align-items:flex-end;margin:10px 0}.box .user-card .stats-role[data-v-45957e2b] .user-stats .distance{padding-right:1px}.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-number{padding-right:0}.box .user-card .stats-role[data-v-45957e2b] .user-stats .distance,.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-number,.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-label{font-size:.95em}.static-map{display:flex;position:relative}.static-map.display-hover{position:absolute;margin-left:20px;margin-top:3px;width:400px;height:225px;z-index:100;filter:var(--map-display-hover-filter)}.static-map.display-hover .map-attribution-text{color:var(--map-display-hover-attribution-text);background-color:var(--map-attribution-bg-color)}.static-map .bg-map-image{background-size:cover;background-position:center;opacity:.6;height:200px;width:100%;filter:var(--map-filter)}.static-map .map-attribution{top:0;right:0;font-size:11px;position:absolute}.static-map .map-attribution-text{color:var(--map-attribution-text);background-color:var(--map-attribution-bg-color)}.mountains[data-v-9f1da2f4]{padding-right:5px}.timeline-workout[data-v-9f1da2f4]{margin-bottom:20px}.timeline-workout .box[data-v-9f1da2f4]{flex-direction:column;padding:0}.timeline-workout .box .workout-user-date[data-v-9f1da2f4]{display:flex;justify-content:space-between;align-items:flex-start;padding:5px 10px}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4]{display:flex}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture{min-width:min-content}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture img{height:25px;width:25px}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture .no-picture{font-size:1.5em}.timeline-workout .box .workout-user-date .workout-user .workout-user-name[data-v-9f1da2f4]{white-space:nowrap;margin-left:3px;padding:0 5px;text-decoration:none}.timeline-workout .box .workout-user-date .workout-date-visibility[data-v-9f1da2f4]{display:flex;gap:5px;align-items:flex-end}.timeline-workout .box .workout-user-date .workout-date-visibility .workout-date[data-v-9f1da2f4]{font-size:.85em;font-style:italic;white-space:nowrap}.timeline-workout .box .workout-user-date .workout-title[data-v-9f1da2f4]{display:block;text-align:center;padding:0 10px}@media screen and (max-width: 500px){.timeline-workout .box .workout-user-date .workout-title[data-v-9f1da2f4]{display:none}}.timeline-workout .box .workout-map[data-v-9f1da2f4]{height:150px}.timeline-workout .box .workout-map .no-map[data-v-9f1da2f4]{line-height:150px;filter:var(--no-map-filter)}.timeline-workout .box .workout-map[data-v-9f1da2f4] .static-map{background-color:var(--workout-static-map-bg-color)}.timeline-workout .box .workout-map[data-v-9f1da2f4] .static-map .bg-map-image{height:150px}.timeline-workout .box .workout-data[data-v-9f1da2f4]{display:flex;padding:5px;font-size:.9em}.timeline-workout .box .workout-data .sport-img[data-v-9f1da2f4]{height:25px;width:25px}.timeline-workout .box .workout-data .img[data-v-9f1da2f4],.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{display:flex;align-items:center}.timeline-workout .box .workout-data .img .data-values[data-v-9f1da2f4],.timeline-workout .box .workout-data .data .data-values[data-v-9f1da2f4]{display:flex;flex-wrap:wrap}.timeline-workout .box .workout-data .img[data-v-9f1da2f4]{justify-content:flex-end;width:10%}.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{justify-content:center;width:22%}@media screen and (max-width: 500px){.timeline-workout .box .workout-data .img[data-v-9f1da2f4]{justify-content:center;width:20%}.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{justify-content:center;width:40%}.timeline-workout .box .workout-data .altitude[data-v-9f1da2f4],.timeline-workout .box .workout-data .elevation[data-v-9f1da2f4]{display:none}}.timeline-workout .box .workout-data.without-elevation .img[data-v-9f1da2f4],.timeline-workout .box .workout-data.without-elevation .data[data-v-9f1da2f4]{justify-content:center;width:33%}.timeline-workout .box .workout-map[data-v-9f1da2f4],.timeline-workout .box .workout-data[data-v-9f1da2f4]{cursor:pointer}.timeline-workout .box .no-cursor[data-v-9f1da2f4]{cursor:default}.timeline-workout .box .fa[data-v-9f1da2f4]{padding-right:10px}.report-loading[data-v-e9598d83]{margin-top:200px;width:100%}#admin-report[data-v-e9598d83]{width:100%}#admin-report .report-comment-user[data-v-e9598d83],#admin-report .resolver-user[data-v-e9598d83]{display:flex;gap:5px}#admin-report .report-comment-user[data-v-e9598d83] .user-picture,#admin-report .resolver-user[data-v-e9598d83] .user-picture{min-width:min-content;align-items:flex-start}#admin-report .report-comment-user[data-v-e9598d83] .user-picture img,#admin-report .resolver-user[data-v-e9598d83] .user-picture img{height:25px;width:25px}#admin-report .report-comment-user[data-v-e9598d83] .user-picture .no-picture,#admin-report .resolver-user[data-v-e9598d83] .user-picture .no-picture{font-size:1.5em}#admin-report .report-detail-card[data-v-e9598d83],#admin-report .report-action-and-comments[data-v-e9598d83]{margin:10px 0 20px}@media screen and (max-width: 700px){#admin-report .report-detail-card[data-v-e9598d83] .card-content,#admin-report .report-action-and-comments[data-v-e9598d83] .card-content{padding:10px}}#admin-report .report-data[data-v-e9598d83]{display:flex;flex-wrap:wrap}#admin-report .report-data .report-detail[data-v-e9598d83]{display:flex;flex-direction:column;flex-grow:3}#admin-report .report-data .report-info[data-v-e9598d83]{display:flex;flex-direction:column;flex-grow:1;padding:0 10px}#admin-report .report-data .report-info dt[data-v-e9598d83]{font-weight:700;text-transform:lowercase}@media screen and (max-width: 700px){#admin-report .report-data[data-v-e9598d83]{flex-direction:column-reverse}#admin-report .report-data .report-info[data-v-e9598d83]{padding:0!important}}#admin-report .report-status[data-v-e9598d83]{text-transform:lowercase}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content{display:flex;flex-direction:column;gap:12px}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment{display:flex;flex-direction:column}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-info{display:flex;justify-content:space-between}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-info .report-comment-date{font-size:.85em;font-style:italic;white-space:nowrap}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-comment{padding-top:10px}#admin-report .report-action-and-comments .report-action[data-v-e9598d83]{color:var(--app-color-light);font-style:italic;font-size:.9em;margin-left:10px}#admin-report .report-action-and-comments .report-action .report-action-note[data-v-e9598d83]{margin:0 0 0 10px;font-size:.95em}#admin-report .report-action-and-comments .report-action .report-action-note span[data-v-e9598d83]{font-weight:700}#admin-report .report-action-and-comments .report-action .appeal-button[data-v-e9598d83]{margin-left:3px}#admin-report .report-action-and-comments .no-notes[data-v-e9598d83]{font-style:italic}#admin-report .comment-textarea[data-v-e9598d83]{padding:5px 0 10px}#admin-report .comment-textarea .comment-buttons[data-v-e9598d83]{display:flex;gap:10px;padding-top:10px}#admin-report .actions-buttons[data-v-e9598d83]{display:flex;flex-wrap:wrap;gap:10px}@media screen and (max-width: 700px){#admin-report .actions-buttons[data-v-e9598d83]{justify-content:center}}.pagination-center[data-v-d7c0bddb]{display:flex;justify-content:center;font-size:.9em}.pagination-center a[data-v-d7c0bddb]{text-decoration:none}.pagination-center .pagination[data-v-d7c0bddb]{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.pagination-center .pagination .page-prev[data-v-d7c0bddb],.pagination-center .pagination .page-next[data-v-d7c0bddb],.pagination-center .pagination .page[data-v-d7c0bddb]{border:solid 1px var(--card-border-color);padding:10px 15px}.pagination-center .pagination .page-prev.active[data-v-d7c0bddb],.pagination-center .pagination .page-next.active[data-v-d7c0bddb],.pagination-center .pagination .page.active[data-v-d7c0bddb]{font-weight:700}.pagination-center .pagination .page-prev.disabled[data-v-d7c0bddb],.pagination-center .pagination .page-next.disabled[data-v-d7c0bddb],.pagination-center .pagination .page.disabled[data-v-d7c0bddb]{cursor:default}.pagination-center .pagination .page-prev.disabled a[data-v-d7c0bddb],.pagination-center .pagination .page-next.disabled a[data-v-d7c0bddb],.pagination-center .pagination .page.disabled a[data-v-d7c0bddb]{cursor:default;pointer-events:none;color:var(--disabled-color)}.pagination-center .pagination .page[data-v-d7c0bddb]{margin-left:-1px}.pagination-center .pagination .page-prev[data-v-d7c0bddb]{border-top-left-radius:5px;border-bottom-left-radius:5px}.pagination-center .pagination .page-next[data-v-d7c0bddb]{border-top-right-radius:5px;border-bottom-right-radius:5px;margin-left:-1px}.pagination-center .pagination .fa[data-v-d7c0bddb]{font-size:.8em;padding:0 5px}@media screen and (max-width: 1000px){.pagination-center .pagination .page[data-v-d7c0bddb]{display:none}}#admin-reports .top-button[data-v-88c1fd48]{display:none}#admin-reports .no-reports[data-v-88c1fd48]{display:flex;justify-content:center;padding:20px 0;font-weight:700}#admin-reports table td[data-v-88c1fd48]{font-size:1.1em}#admin-reports .left-text[data-v-88c1fd48]{text-align:left}#admin-reports .link-with-image[data-v-88c1fd48]{display:flex;align-items:center}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture{min-width:40px}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture img{height:30px;width:30px}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture .no-picture{font-size:2em}@media screen and (max-width: 700px){#admin-reports .top-button[data-v-88c1fd48]{display:block;margin-bottom:20px}#admin-reports .pagination-center[data-v-88c1fd48]{margin-top:-30px}#admin-reports .link-with-image[data-v-88c1fd48]{justify-content:center}}#admin-sports table td[data-v-f6f9d907]{font-size:1.1em}#admin-sports .sport-img[data-v-f6f9d907]{height:35px;width:35px;margin:0 auto}#admin-sports .has-workouts[data-v-f6f9d907]{font-size:.95em;font-style:italic;padding:0 10px}#admin-sports .sport-action[data-v-f6f9d907]{padding-left:40px}#admin-sports .action-button[data-v-f6f9d907]{display:block}#admin-sports .top-button[data-v-f6f9d907]{display:none}@media screen and (max-width: 700px){#admin-sports .sport-action[data-v-f6f9d907]{padding-left:10px}#admin-sports .has-workouts[data-v-f6f9d907]{padding-top:5px}#admin-sports .action-button[data-v-f6f9d907]{display:flex;align-items:center;flex-wrap:wrap;flex-direction:column}#admin-sports .top-button[data-v-f6f9d907]{display:block;margin-bottom:20px}}.users-filters[data-v-359360da]{display:flex;align-items:center;padding:10px 0;gap:10px}.users-filters .fa[data-v-359360da]{font-size:1.5em}.users-filters .fa-disabled[data-v-359360da]{color:var(--disabled-color)}.users-filters .search-username[data-v-359360da]{display:flex;align-items:center;justify-content:space-between;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;color:var(--info-color);width:45%}.users-filters .search-username input[data-v-359360da]{border:none;height:12px;width:90%}.users-filters .search-username input[data-v-359360da]:focus{outline:none}.users-filters .search-username .fa-times[data-v-359360da]{padding-right:10px}@media screen and (max-width: 700px){.users-filters .search-username[data-v-359360da]{width:400px}}@media screen and (max-width: 500px){.users-filters .search-username[data-v-359360da]{width:90%}}#admin-users .top-button[data-v-4934ef0c]{display:none}#admin-users .no-users[data-v-4934ef0c]{display:flex;justify-content:center;padding:20px 0;font-weight:700}#admin-users table td[data-v-4934ef0c]{font-size:1.1em}#admin-users .left-text[data-v-4934ef0c]{text-align:left}#admin-users .roles[data-v-4934ef0c]{width:120px;display:flex;justify-content:center;margin:auto}#admin-users .roles .roles-buttons[data-v-4934ef0c]{display:flex;flex-direction:column;align-items:center;gap:5px}#admin-users[data-v-4934ef0c] .user-picture img{height:30px;width:30px}#admin-users[data-v-4934ef0c] .user-picture .no-picture{font-size:2em}@media screen and (max-width: 700px){#admin-users .roles[data-v-4934ef0c]{width:45%}#admin-users .top-button[data-v-4934ef0c]{display:block;margin-bottom:20px}#admin-users .pagination-center[data-v-4934ef0c]{margin-top:-30px}}@media screen and (max-width: 500px){#admin-users .roles[data-v-4934ef0c]{width:100%}}.user-header[data-v-12bd7069]{display:flex;align-items:stretch;position:relative}.user-header .follows-you[data-v-12bd7069]{position:absolute;margin-top:-10px;margin-left:-10px}.user-header .user-role[data-v-12bd7069]{position:absolute;bottom:0;margin-bottom:-10px;margin-left:-10px}.user-header[data-v-12bd7069] .user-picture{min-width:20%}.user-header .user-details[data-v-12bd7069]{flex-grow:1;padding:10px;display:flex;flex-direction:column;align-items:center}.user-header .user-details .user-name[data-v-12bd7069]{font-size:2em;height:60%}.user-header .user-details[data-v-12bd7069] .user-stats{flex-wrap:nowrap;gap:40px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat{flex-direction:column;align-items:center;padding-top:10px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1.5em}@media screen and (max-width: 700px){.user-header .user-details .user-name[data-v-12bd7069]{font-size:1.5em}.user-header .user-details[data-v-12bd7069] .user-stats{margin-top:5px;align-content:space-between;flex-wrap:wrap;gap:10px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat{padding:0;flex-direction:row}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1.2em}}@media screen and (max-width: 500px){.user-header[data-v-12bd7069] .user-picture img{height:50px;width:50px}.user-header[data-v-12bd7069] .user-picture .no-picture{font-size:3em}.user-header .user-details .user-name[data-v-12bd7069]{font-size:1.5em}.user-header .user-details[data-v-12bd7069] .user-stats{flex-direction:column;gap:5px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1em}}.profile-tabs-links{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-bottom:10px}.profile-tabs-links a{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;color:var(--app-color);display:block;font-size:.9em;padding:2px 6px;text-align:center;text-decoration:none}.profile-tabs-links a.selected{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}@media screen and (max-width: 700px){.profile-tabs-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.profile-tabs-links .profile-tab{padding-bottom:5px}}#user-profile[data-v-4b475df4]{margin:auto;width:700px}@media screen and (max-width: 1000px){#user-profile[data-v-4b475df4]{width:100%;margin:0 auto 50px}}#user-moderation-detail[data-v-bfe7e915]{margin-bottom:10px}#user-moderation-detail #user-reports dl[data-v-bfe7e915]{margin-bottom:0}#user-moderation-detail #user-sanctions ul[data-v-bfe7e915]{list-style:square}#user-moderation-detail #user-sanctions ul li[data-v-bfe7e915]{margin-left:10px;padding:5px}#user-moderation-detail #user-sanctions ul li div[data-v-bfe7e915]{display:flex;flex-wrap:wrap;gap:5px}#user-moderation-detail #user-sanctions .appeal[data-v-bfe7e915]{margin-top:-2px;padding:5px 10px}#user-moderation-detail #user-sanctions .appeal.approved[data-v-bfe7e915]{background:var(--success-background-color);color:var(--success-color)}#user-moderation-detail #user-sanctions .appeal.rejected[data-v-bfe7e915]{background:var(--error-background-color);color:var(--error-color)}#user-infos[data-v-7c182b65]{padding:0 0 10px}#user-infos .user-bio[data-v-7c182b65]{white-space:pre-wrap}#user-infos .alert-message[data-v-7c182b65]{margin:0}#user-infos .profile-buttons[data-v-7c182b65]{display:flex;flex-wrap:wrap}#user-infos .profile-buttons[data-v-7c182b65] .actions-buttons{gap:10px}#user-infos .email-form[data-v-7c182b65]{display:flex}#user-infos .email-form form[data-v-7c182b65]{width:100%}#user-infos .email-form .form-buttons[data-v-7c182b65]{display:flex;gap:10px;margin-top:10px}#user-infos .report-submitted[data-v-7c182b65]{display:flex}#user-infos .report-submitted .info-box[data-v-7c182b65]{margin-bottom:10px}#user-infos .suspended[data-v-7c182b65]{margin-top:10px}#user-preferences[data-v-545b27a5]{padding:5px 0 10px}#user-preferences .preferences-section[data-v-545b27a5]{font-weight:700;text-transform:uppercase;border-bottom:1px solid var(--card-border-color)}#user-preferences .raw-speed-help[data-v-545b27a5]{margin-top:-5px}.users-list .item[data-v-b29d1311]{display:flex}.users-list .item[data-v-b29d1311] .user-picture{min-width:15%}.users-list .item[data-v-b29d1311] .user-picture img{height:60px;width:60px}.users-list .item[data-v-b29d1311] .user-picture .no-picture{font-size:3.8em}.users-list .item .user-name[data-v-b29d1311]{display:flex;flex-direction:column;justify-content:center;flex-grow:2}.users-list .item .blocked-user button[data-v-b29d1311],.users-list .item .follow-requests-list-actions button[data-v-b29d1311]{text-transform:capitalize}.users-list .item .blocked-user[data-v-b29d1311]{display:flex;flex-direction:column;justify-content:center}.users-list .item .follow-requests-list-actions[data-v-b29d1311]{display:flex;flex-direction:column;gap:10px}.users-list .item .follow-requests-list-actions button[data-v-b29d1311]{display:flex;gap:10px}.users-list .item .follow-requests-list-actions button .fa[data-v-b29d1311]{line-height:20px}@media screen and (max-width: 700px){.users-list .item[data-v-b29d1311] .user-picture{margin-right:10px;min-width:40px}.users-list .item[data-v-b29d1311] .user-picture img{height:48px;width:48px}.users-list .item[data-v-b29d1311] .user-picture .no-picture{font-size:3em}.users-list .item .follow-request .user-name[data-v-b29d1311]{padding-left:10px}}.password-strength[data-v-dee3cf5a]{cursor:default;display:flex;flex-direction:column}.password-strength .password-slider[data-v-dee3cf5a]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:8px;height:5px;outline:none;padding:0}.password-strength .strength-0[data-v-dee3cf5a],.password-strength .strength-1[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-weak)),color-stop(100%,var(--password-color-weak)));background-image:-webkit-linear-gradient(left,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:-moz-linear-gradient(left,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:-o-linear-gradient(to right,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:linear-gradient(to right,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-repeat:no-repeat}.password-strength .strength-2[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-medium)),color-stop(100%,var(--password-color-medium)));background-image:-webkit-linear-gradient(left,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:-moz-linear-gradient(left,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:-o-linear-gradient(to right,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:linear-gradient(to right,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-repeat:no-repeat}.password-strength .strength-3[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-good)),color-stop(100%,var(--password-color-good)));background-image:-webkit-linear-gradient(left,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:-moz-linear-gradient(left,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:-o-linear-gradient(to right,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:linear-gradient(to right,var(--password-color-good) 0%,var(--password-color-good) 100%);background-repeat:no-repeat}.password-strength .strength-4[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-strong)),color-stop(100%,var(--password-color-strong)));background-image:-webkit-linear-gradient(left,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:-moz-linear-gradient(left,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:-o-linear-gradient(to right,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:linear-gradient(to right,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-repeat:no-repeat}.password-strength .password-slider[data-v-dee3cf5a]::-webkit-slider-thumb,.password-strength .password-slider[data-v-dee3cf5a]::-moz-range-thumb{opacity:0}.password-strength .password-slider[data-v-dee3cf5a]::-webkit-slider-thumb{-webkit-appearance:none}.password-strength .password-slider[data-v-dee3cf5a]::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none}.password-strength .password-strength-details[data-v-dee3cf5a]{margin-bottom:5px;margin-top:-10px;padding:0 10px}.password-strength .password-strength-details .password-strength-value[data-v-dee3cf5a]{font-size:.85em}.password-strength .password-strength-details .info-box[data-v-dee3cf5a]{padding:1px 10px}.password-strength .password-strength-details .info-box .password-feedback[data-v-dee3cf5a]{padding-left:20px}.password-input[data-v-56852c2e]{display:flex;flex-direction:column}.password-input .show-password[data-v-56852c2e]{margin-top:-5px;display:flex;justify-content:right}.password-input .show-password button[data-v-56852c2e]{font-style:italic;font-size:.85em;padding:5px 10px;cursor:pointer}#user-infos-edition[data-v-881b0d2d]{padding:10px 0}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .show-password{font-weight:400;font-size:.8em;margin-top:-4px;padding-left:0}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .form-info{font-weight:400;padding-left:10px}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .password-strength-details{font-weight:400;margin-top:0}#user-infos-edition .form-buttons[data-v-881b0d2d]{flex-direction:row}@media screen and (max-width: 500px){#user-infos-edition .form-buttons[data-v-881b0d2d]{flex-direction:column}}#user-infos-edition .data-export[data-v-881b0d2d]{padding:10px 0}#user-infos-edition .data-export .data-export-archive[data-v-881b0d2d]{padding-top:20px;font-size:.9em}#user-infos-edition .data-export .data-export-archive .archive-link[data-v-881b0d2d]{color:var(--app-a-color);cursor:pointer}#user-infos-edition[data-v-74879b02]{padding-top:10px}#user-infos-edition .form-items .password-input[data-v-74879b02] .show-password{font-weight:400;font-size:.8em;margin-top:-4px;padding-left:0}#user-infos-edition .form-buttons[data-v-74879b02]{flex-direction:row}@media screen and (max-width: 500px){#user-infos-edition .form-buttons[data-v-74879b02]{flex-direction:column}}#user-picture-edition[data-v-0a8e1dca]{padding:10px 0}#user-picture-edition .user-picture-form[data-v-0a8e1dca]{display:flex;flex-direction:column;margin-top:10px}#user-picture-edition .user-picture-form form[data-v-0a8e1dca]{display:flex;flex-direction:column;gap:10px;justify-content:flex-start}#user-picture-edition .user-picture-form form input[data-v-0a8e1dca]{margin-top:10px;padding:5px}#user-picture-edition .user-picture-form form span[data-v-0a8e1dca]{font-style:italic;font-size:.9em;padding-left:5px}#user-picture-edition .user-picture-form form .picture-help[data-v-0a8e1dca]{display:flex}#user-picture-edition .user-picture-form form .picture-help span[data-v-0a8e1dca]{font-style:italic;padding:10px}#user-picture-edition .user-picture-form form .picture-help .fa-info-circle[data-v-0a8e1dca]{margin-right:10px}#user-picture-edition .user-picture-form .picture-buttons[data-v-0a8e1dca]{display:flex;flex-direction:row;align-items:center;gap:10px}@media screen and (max-width: 500px){#user-picture-edition .user-picture-form .picture-buttons[data-v-0a8e1dca],#user-picture-edition .user-picture-form .picture-help[data-v-0a8e1dca]{flex-direction:column;align-items:stretch}}#tz-dropdown[data-v-de57165c]{display:flex;flex-direction:column;position:relative}#tz-dropdown .tz-dropdown-list[data-v-de57165c]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);padding:5px 0;position:absolute;overflow-y:auto;top:20px;left:0;right:0;max-height:200px;width:inherit}#tz-dropdown .tz-dropdown-item[data-v-de57165c]{cursor:pointer;font-size:.9em;font-weight:400;padding:5px}#tz-dropdown .tz-dropdown-item.focus[data-v-de57165c]{background-color:var(--dropdown-hover-color)}#user-preferences-edition[data-v-a2dba7d8]{padding-top:10px}#user-preferences-edition .form-items[data-v-a2dba7d8]{padding-top:5px}#user-preferences-edition .form-checkboxes .checkboxes-label[data-v-a2dba7d8]{font-weight:700}#user-preferences-edition .form-checkboxes .checkboxes[data-v-a2dba7d8]{display:flex;gap:10px;flex-wrap:wrap}#user-preferences-edition .form-checkboxes .checkboxes .checkbox-label[data-v-a2dba7d8]{padding-left:5px}#user-preferences-edition .form-checkboxes .checkboxes label[data-v-a2dba7d8]{font-weight:400}#user-preferences-edition .preferences-section[data-v-a2dba7d8]{font-weight:700;text-transform:uppercase;border-bottom:1px solid var(--card-border-color);margin-bottom:5px}#user-preferences-edition .preferences-section[data-v-a2dba7d8]:not(:first-child){margin-top:15px}#user-preferences-edition #language[data-v-a2dba7d8],#user-preferences-edition #date_format[data-v-a2dba7d8],#user-preferences-edition #use_dark_mode[data-v-a2dba7d8],#user-preferences-edition #map_visibility[data-v-a2dba7d8],#user-preferences-edition #analysis_visibility[data-v-a2dba7d8],#user-preferences-edition #workouts_visibility[data-v-a2dba7d8]{padding:5px}[data-v-4c6083e4]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark][data-v-4c6083e4]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark][data-v-4c6083e4]{color-scheme:dark}body[data-v-4c6083e4]{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body[data-v-4c6083e4]::-webkit-scrollbar{width:5px;height:5px}body[data-v-4c6083e4]::-webkit-scrollbar-track{background:transparent}body[data-v-4c6083e4]::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body[data-v-4c6083e4]:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body[data-v-4c6083e4]:hover::-webkit-scrollbar-track{background:transparent}#app[data-v-4c6083e4]{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a[data-v-4c6083e4]{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a[data-v-4c6083e4]:hover,a[data-v-4c6083e4]:focus{text-decoration-color:var(--app-a-color)}img[data-v-4c6083e4]{max-width:100%}input[data-v-4c6083e4],textarea[data-v-4c6083e4],select[data-v-4c6083e4]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input[data-v-4c6083e4]:disabled,textarea[data-v-4c6083e4]:disabled,select[data-v-4c6083e4]:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors[data-v-4c6083e4] :invalid{outline:2px solid var(--input-error-color)}label[data-v-4c6083e4]{font-weight:700}button[data-v-4c6083e4]{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent[data-v-4c6083e4]{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent[data-v-4c6083e4]:hover,button.transparent[data-v-4c6083e4]:disabled{background:transparent}button.transparent[data-v-4c6083e4]:hover{color:var(--app-color)}button.transparent[data-v-4c6083e4]:enabled:active{box-shadow:none}button.transparent[data-v-4c6083e4]:disabled,button.transparent.confirm[data-v-4c6083e4]:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button[data-v-4c6083e4]{cursor:pointer;padding:0}button.small[data-v-4c6083e4]{font-size:.9em;padding:3px 7px}button[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button[data-v-4c6083e4]:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button[data-v-4c6083e4]:disabled,button.confirm[data-v-4c6083e4]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel[data-v-4c6083e4]{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm[data-v-4c6083e4]{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger[data-v-4c6083e4]{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger[data-v-4c6083e4]:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger[data-v-4c6083e4]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box[data-v-4c6083e4]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box[data-v-4c6083e4]{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container[data-v-4c6083e4]{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items[data-v-4c6083e4]{display:flex;flex-direction:column}.form-box .form-items input[data-v-4c6083e4]{margin:10px;padding:5px}.form-info[data-v-4c6083e4]{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message[data-v-4c6083e4]{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper[data-v-4c6083e4]{text-transform:uppercase}.view[data-v-4c6083e4]{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy[data-v-4c6083e4]{color:var(--workout-trophy-color)}.mountains[data-v-4c6083e4]{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title[data-v-4c6083e4]{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title[data-v-4c6083e4]{padding-left:5px;text-transform:capitalize}.section-title[data-v-4c6083e4]:first-letter{text-transform:uppercase}.no-map[data-v-4c6083e4]{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group[data-v-4c6083e4]{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes[data-v-4c6083e4]{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes[data-v-4c6083e4]{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label[data-v-4c6083e4]{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input[data-v-4c6083e4]{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span[data-v-4c6083e4]{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span[data-v-4c6083e4]{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl[data-v-4c6083e4]{display:flex;flex-direction:column;width:100%}.description-list dl dt[data-v-4c6083e4]{font-weight:700}.description-list dl dd[data-v-4c6083e4]{margin-bottom:10px}.center-card[data-v-4c6083e4]{margin:0 auto;width:700px}.center-card.with-margin[data-v-4c6083e4]{margin-top:100px}@media screen and (max-width: 1000px){.center-card[data-v-4c6083e4]{width:100%;margin:0 auto 50px}}.text-center[data-v-4c6083e4]{text-align:center}.text-left[data-v-4c6083e4]{text-align:left}.deleted-object[data-v-4c6083e4]{font-style:italic}.responsive-table[data-v-4c6083e4]{margin-bottom:15px}.responsive-table table[data-v-4c6083e4]{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th[data-v-4c6083e4]{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody[data-v-4c6083e4]{font-size:.95em}.responsive-table table tbody td[data-v-4c6083e4]{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td[data-v-4c6083e4]{border:none}.responsive-table table .cell-heading[data-v-4c6083e4]{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead[data-v-4c6083e4]{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr[data-v-4c6083e4]{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td[data-v-4c6083e4]{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td[data-v-4c6083e4]{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading[data-v-4c6083e4]{display:flex}}@media screen and (max-width: 500px){.responsive-table table td[data-v-4c6083e4]{width:100%}}.profile-buttons[data-v-4c6083e4]{display:flex;align-items:baseline;gap:10px}.user-role[data-v-4c6083e4],.follows-you[data-v-4c6083e4],.blocked[data-v-4c6083e4]{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img[data-v-4c6083e4]{height:35px;width:35px;margin:0 auto}.hidden-content[data-v-4c6083e4]{display:none}.items-list-view .items-list-container[data-v-4c6083e4]{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container[data-v-4c6083e4]{flex-direction:column}}.items-list-view .items-list-container .filters-container[data-v-4c6083e4],.items-list-view .items-list-container .list-container[data-v-4c6083e4]{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container[data-v-4c6083e4]{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container[data-v-4c6083e4]{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden[data-v-4c6083e4]{display:none}}.items-list-view .items-list-container .display-filters[data-v-4c6083e4]{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span[data-v-4c6083e4]{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa[data-v-4c6083e4]{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters[data-v-4c6083e4]{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container[data-v-4c6083e4]{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container[data-v-4c6083e4]{width:100%}}.visually-hidden[data-v-4c6083e4]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden[data-v-4c6083e4]:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects[data-v-4c6083e4]{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select[data-v-4c6083e4]{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects[data-v-4c6083e4]{flex-wrap:wrap}.table-selects label[data-v-4c6083e4]{margin-bottom:10px}.table-selects label select[data-v-4c6083e4]{margin-left:0}}.suspended[data-v-4c6083e4]{font-style:italic;font-weight:700}.action-loading[data-v-4c6083e4]{display:flex;align-items:center}.markdown-hints[data-v-4c6083e4]{font-size:.8em;font-style:normal;margin:5px 0 10px}.privacy-policy-text[data-v-4c6083e4]{margin:10px 50px 20px;padding:10px;width:100%}@media screen and (max-width: 700px){.privacy-policy-text[data-v-4c6083e4]{margin:0}}#user-privacy-policy[data-v-ac974385]{padding:10px 0}#user-privacy-policy form[data-v-ac974385]{display:flex;flex-direction:column;gap:10px}#user-privacy-policy form .policy-content[data-v-ac974385]{height:500px;border:1px solid var(--policy-border-color);overflow:auto;margin:10px;border-radius:4px}@media screen and (max-width: 700px){#user-privacy-policy form .policy-content[data-v-ac974385]{margin:10px 0;font-size:.9em}}#user-privacy-policy form .policy-content .privacy-policy-text[data-v-ac974385]{width:auto}#user-privacy-policy form .form-buttons[data-v-ac974385]{display:flex;gap:10px;flex-direction:row}@media screen and (max-width: 500px){#user-privacy-policy form .form-buttons[data-v-ac974385]{flex-direction:column}}.no-suspension[data-v-2a9aa8c5]{margin:10px 0}#new-oauth2-app #new-oauth2-title[data-v-f0f43085]{font-size:1.05em;font-weight:700;padding:0 10px}#new-oauth2-app #apps-form .form-items[data-v-f0f43085]{display:flex;flex-direction:column}#new-oauth2-app #apps-form .form-items input[type=text][data-v-f0f43085]{height:20px}#new-oauth2-app #apps-form .form-items .form-item-scope[data-v-f0f43085]{padding:10px}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-label[data-v-f0f43085]{font-weight:700}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes[data-v-f0f43085]{padding-bottom:10px}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes .scope-label[data-v-f0f43085]{height:inherit}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes .scope-description[data-v-f0f43085]{font-style:italic;margin:0 5px}#new-oauth2-app #apps-form .form-items .form-item[data-v-f0f43085]{display:flex;flex-direction:column;padding:10px}#new-oauth2-app #apps-form .form-buttons[data-v-f0f43085]{display:flex;justify-content:flex-end}#new-oauth2-app #apps-form .form-buttons button[data-v-f0f43085]{margin:5px}#authorize-oauth2-app #authorize-oauth2-title[data-v-6462d75b]{font-size:1.05em;font-weight:700;padding:0 10px}#authorize-oauth2-app .oauth2-access[data-v-6462d75b]{padding:0 10px}#authorize-oauth2-app .authorize-oauth2-buttons[data-v-6462d75b]{display:flex}#authorize-oauth2-app .authorize-oauth2-buttons button[data-v-6462d75b]{margin:5px}#oauth2-app .app-buttons[data-v-7371d7c1]{display:flex;flex-wrap:wrap;gap:10px}#oauth2-app .app-secret[data-v-7371d7c1]{word-break:break-word}#oauth2-app .client-scopes[data-v-7371d7c1]{display:flex;flex-wrap:wrap}#oauth2-app .client-scopes .client-scope[data-v-7371d7c1]{padding-right:15px}#oauth2-app .fa-copy[data-v-7371d7c1]{font-size:.9em}#oauth2-app .no-description[data-v-7371d7c1]{font-style:italic}#oauth2-app .no-app[data-v-7371d7c1]{font-style:italic;padding:10px 0}#oauth2-apps-list[data-v-018b8e7c]{padding:0 0 10px}#oauth2-apps-list ul[data-v-018b8e7c]{list-style:square}#oauth2-apps-list ul li[data-v-018b8e7c]{padding-bottom:10px}#oauth2-apps-list .app-issued-at[data-v-018b8e7c]{font-size:.85em;font-style:italic;padding-left:10px}#oauth2-apps-list .apps-list[data-v-018b8e7c]{font-size:1.05em;font-weight:700}#oauth2-apps-list .app-list-buttons[data-v-018b8e7c]{display:flex;gap:10px}#oauth2-apps-list .no-apps[data-v-018b8e7c]{font-style:italic;padding-bottom:20px}[data-v-016d8e47] .multiselect__input{background-color:var(--input-bg-color)}[data-v-016d8e47] .multiselect__tags{border:1px solid var(--input-border-color);border-radius:4px;background:var(--multiselect-tags-bg-color)}[data-v-016d8e47] .multiselect__input{border-color:#000}[data-v-016d8e47] .multiselect__tag{background-color:var(--multiselect-tag-bg-color);color:var(--multiselect-tag-color)}[data-v-016d8e47] .multiselect__tag-icon:after{color:var(--multiselect-tag-color)}[data-v-016d8e47] .multiselect__tag-icon:focus,[data-v-016d8e47] .multiselect__tag-icon:hover{background:var(--multiselect-tag-icon-hover-bg-color)}[data-v-016d8e47] .multiselect__tag-icon:focus:after,[data-v-016d8e47] .multiselect__tag-icon:hover:after{color:var(--multiselect-tag-icon-hover-color)}[data-v-016d8e47] .multiselect__option{background:var(--multiselect-option-bg-color);color:var(--multiselect-option-color)}[data-v-016d8e47] .multiselect__option--highlight,[data-v-016d8e47] .multiselect__option--highlight:after{background:var(--multiselect-option-highlight-bg-color);color:var(--multiselect-option-highlight-color)}[data-v-016d8e47] .multiselect__option--selected.multiselect__option--highlight{background:var(--multiselect-option-selected-highlight-bg-color);color:var(--multiselect-option-selected-highlight-color)}[data-v-016d8e47] .multiselect__option--selected.multiselect__option--highlight:after{background:var(--multiselect-option-selected-highlight-after-bg-color);color:var(--multiselect-option-selected-highlight-after-color)}[data-v-016d8e47] .multiselect__option--selected{background-color:var(--multiselect-option-selected-bg-color);color:var(--multiselect-option-selected-color)}[data-v-016d8e47] .multiselect__content-wrapper{border-color:var(--multiselect-content-wrapper-border-color)}.multiselect--disabled[data-v-016d8e47]{background-color:var(--multiselect-disabled-bg-color)}.multiselect--disabled[data-v-016d8e47] .multiselect__select{background:var(--multiselect-select-disabled-bg-color);color:var(--multiselect-select-disabled-color)}#new-equipment #new-equipment-title[data-v-a596b0f9]{font-size:1.05em;font-weight:700;padding:0 10px}#new-equipment #equipment-form .form-items[data-v-a596b0f9]{display:flex;flex-direction:column}#new-equipment #equipment-form .form-items input[type=text][data-v-a596b0f9]{height:20px}#new-equipment #equipment-form .form-items .form-item[data-v-a596b0f9]{display:flex;flex-direction:column;padding:10px 0}#new-equipment #equipment-form .form-items .form-item-checkbox[data-v-a596b0f9]{display:flex;padding:10px 10px 10px 0;gap:5px}#new-equipment #equipment-form .equipment-label-help[data-v-a596b0f9]{margin-top:15px}#new-equipment #equipment-form .equipment-warning[data-v-a596b0f9]{margin-top:5px;margin-bottom:10px}#new-equipment #equipment-form .error-message[data-v-a596b0f9]{margin:10px 0}#new-equipment #equipment-form .form-buttons[data-v-a596b0f9]{display:flex;justify-content:flex-end}#new-equipment #equipment-form .form-buttons button[data-v-a596b0f9]{margin:5px}#user-equipment .no-equipment[data-v-a3438555]{font-style:italic;padding:10px 0}#user-equipment .no-description[data-v-a3438555]{font-style:italic}#user-equipment .equipment-description[data-v-a3438555]{white-space:pre-wrap}#user-equipment .equipment-type[data-v-a3438555]{display:flex}#user-equipment .equipment-type .equipment-type-img[data-v-a3438555]{height:25px;width:25px;margin:0}#user-equipment .sports-list[data-v-a3438555]{display:flex;gap:10px;flex-wrap:wrap;padding-top:5px}#user-equipment .sports-list .sport-badge[data-v-a3438555]{display:flex;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;padding:7.5px 12px}#user-equipment .sports-list .sport-badge.inactive[data-v-a3438555]{font-style:italic}#user-equipment .sports-list .sport-badge .sport-img[data-v-a3438555]{height:20px;width:20px;margin:0}#user-equipment .duration-detail[data-v-a3438555]{font-style:italic}.equipment-buttons[data-v-a3438555]{display:flex;flex-wrap:wrap;gap:10px}.error-message[data-v-a3438555]{margin:20px 0}#user-equipments-list[data-v-235c4af3]{padding:0 0 10px}#user-equipments-list h1[data-v-235c4af3]{font-size:1.05em;font-weight:700}#user-equipments-list h2[data-v-235c4af3]{font-size:1em;font-weight:700;display:flex;gap:5px;margin:20px 0 5px}#user-equipments-list h2 .equipment-type-img[data-v-235c4af3]{height:25px;width:25px;margin:0}#user-equipments-list table th[data-v-235c4af3]{text-transform:lowercase}#user-equipments-list table td.equipment-label[data-v-235c4af3]{width:280px}#user-equipments-list table td.column[data-v-235c4af3]{min-width:80px}#user-equipments-list table td.active[data-v-235c4af3]{width:40px}#user-equipments-list .mobile-display[data-v-235c4af3]{display:none}#user-equipments-list .no-equipments[data-v-235c4af3]{font-style:italic}#user-equipments-list .equipments-list-buttons[data-v-235c4af3]{display:flex;gap:10px;flex-wrap:wrap}@media screen and (max-width: 700px){#user-equipments-list table td.column[data-v-235c4af3]{min-width:initial}#user-equipments-list table td.equipment-label[data-v-235c4af3],#user-equipments-list table td.active[data-v-235c4af3],#user-equipments-list table td.action-buttons[data-v-235c4af3]{width:45%}#user-equipments-list .edition-buttons[data-v-235c4af3]{justify-content:center}#user-equipments-list .mobile-display[data-v-235c4af3]{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 20px}}@media screen and (max-width: 500px){#user-equipments-list table td.equipment-label[data-v-235c4af3],#user-equipments-list table td.active[data-v-235c4af3],#user-equipments-list table td.action-buttons[data-v-235c4af3]{width:100%}}.notification-object[data-v-ed2176b7]{font-weight:700;text-transform:capitalize}.appeal-action .appeal-button[data-v-a3f01233]{padding:0 10px;font-size:.9em}.suspended[data-v-a3f01233]{font-size:.9em}.notification-object[data-v-bb831628]{font-weight:700;text-transform:capitalize}.workout-card[data-v-bb831628]{margin-bottom:0}.alert-message[data-v-bb831628]{margin:10px 0}#user-sanction[data-v-f297e854]{padding:10px 0}#user-sanction h1[data-v-f297e854]{font-size:1.05em;font-weight:700}#user-sanction .no-warning[data-v-f297e854]{margin:10px 0}#user-sanction[data-v-f297e854] .notification-object{margin-top:10px}#user-sanction .buttons[data-v-f297e854]{display:flex;gap:10px}#user-sanction .buttons button[data-v-f297e854]{text-transform:capitalize}#user-moderation[data-v-bb47e769]{padding:0 0 10px}#user-moderation h1[data-v-bb47e769]{font-size:1.05em;font-weight:700}#user-moderation #user-reports dl[data-v-bb47e769]{margin-bottom:0}#user-moderation #user-sanctions ul[data-v-bb47e769]{list-style:square}#user-moderation #user-sanctions ul li[data-v-bb47e769]{margin-left:10px;padding:5px}#user-moderation #user-sanctions ul li div[data-v-bb47e769]{display:flex;flex-wrap:wrap;gap:5px}#user-moderation #user-sanctions .appeal[data-v-bb47e769]{margin-top:-2px;padding:5px 10px}#user-moderation #user-sanctions .appeal.approved[data-v-bb47e769]{background:var(--success-background-color);color:var(--success-color)}#user-moderation #user-sanctions .appeal.rejected[data-v-bb47e769]{background:var(--error-background-color);color:var(--error-color)}#user-moderation .no-sanctions[data-v-bb47e769]{font-style:italic}.relationships[data-v-2a9a43ae]{min-height:40px}.relationships .user-relationships[data-v-2a9a43ae]{display:flex;justify-content:space-between;flex-wrap:wrap}.relationships .user-relationships[data-v-2a9a43ae] .box{width:40%}@media screen and (max-width: 700px){.relationships .user-relationships[data-v-2a9a43ae] .box{width:100%}}.relationships .no-relationships[data-v-2a9a43ae]{padding:0 5px}.equipment-badge[data-v-35b40eb3]{display:flex;align-items:center;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;padding:5px 10px}.equipment-badge.inactive[data-v-35b40eb3]{font-style:italic}.equipment-badge .equipment-type-img[data-v-35b40eb3]{height:25px;min-width:25px;margin:0}#user-sport .sport-img[data-v-fbec81b5]{height:35px;width:35px;margin:0}#user-sport .sport-equipments[data-v-fbec81b5]{display:flex;flex-wrap:wrap;padding:5px;gap:10px}.sport-buttons[data-v-fbec81b5]{display:flex;flex-wrap:wrap;gap:10px}.no-equipments[data-v-fbec81b5]{font-style:italic}#sport-edition .form-items[data-v-aaa31377]{display:flex;flex-direction:column}#sport-edition .form-items input[type=text][data-v-aaa31377]{height:20px}#sport-edition .form-items .form-item[data-v-aaa31377]{display:flex;flex-direction:column;padding:10px 0}#sport-edition .form-items .form-item-checkbox[data-v-aaa31377]{display:flex;padding:10px 10px 10px 0;gap:5px}#sport-edition .form-items .sport-color[data-v-aaa31377]{border:none;margin:6px 1px 6px 0;padding:0;width:80px}#sport-edition .error-message[data-v-aaa31377]{margin:10px 0}#sport-edition .form-buttons[data-v-aaa31377]{display:flex;justify-content:flex-end}#sport-edition .form-buttons button[data-v-aaa31377]{margin:5px}#user-sport-preferences table th[data-v-2f0e6a61]{padding-top:0;text-transform:lowercase}#user-sport-preferences .sport-img[data-v-2f0e6a61]{height:35px;width:35px;margin:0 auto}#user-sport-preferences .sport-color[data-v-2f0e6a61]{border:none;margin:6px 1px 6px 0;padding:0;width:40px}#user-sport-preferences .sport-label[data-v-2f0e6a61]{width:170px}#user-sport-preferences .disabled-sport[data-v-2f0e6a61]{font-style:italic;color:var(--disabled-sport-color)}#user-sport-preferences .disabled-sport .disabled-message[data-v-2f0e6a61]{font-size:.9em}#user-sport-preferences .disabled-sport .cell-heading[data-v-2f0e6a61]{font-style:normal}#user-sport-preferences .profile-buttons[data-v-2f0e6a61]{display:flex;align-items:center}#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:70px}#user-sport-preferences .edition-buttons[data-v-2f0e6a61]{display:flex;flex-wrap:wrap;gap:5px;line-height:1.3em}#user-sport-preferences .edition-buttons button[data-v-2f0e6a61]{text-align:center;min-width:80px}#user-sport-preferences .threshold[data-v-2f0e6a61]{display:flex;flex-direction:column;-webkit-hyphens:auto;hyphens:auto;min-width:100px}#user-sport-preferences .threshold-input[data-v-2f0e6a61]{padding:5px;width:50px}#user-sport-preferences .mobile-display[data-v-2f0e6a61]{display:none}#user-sport-preferences div.error-message[data-v-2f0e6a61]{margin:0}@media screen and (max-width: 700px){#user-sport-preferences .sport-label[data-v-2f0e6a61],#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:45%}#user-sport-preferences .edition-buttons[data-v-2f0e6a61]{justify-content:center}#user-sport-preferences .mobile-display[data-v-2f0e6a61]{display:flex;margin:10px 0}}@media screen and (max-width: 500px){#user-sport-preferences .sport-label[data-v-2f0e6a61],#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:100%}}[data-v-28993d11]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark][data-v-28993d11]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark][data-v-28993d11]{color-scheme:dark}body[data-v-28993d11]{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body[data-v-28993d11]::-webkit-scrollbar{width:5px;height:5px}body[data-v-28993d11]::-webkit-scrollbar-track{background:transparent}body[data-v-28993d11]::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body[data-v-28993d11]:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body[data-v-28993d11]:hover::-webkit-scrollbar-track{background:transparent}#app[data-v-28993d11]{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a[data-v-28993d11]{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a[data-v-28993d11]:hover,a[data-v-28993d11]:focus{text-decoration-color:var(--app-a-color)}img[data-v-28993d11]{max-width:100%}input[data-v-28993d11],textarea[data-v-28993d11],select[data-v-28993d11]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input[data-v-28993d11]:disabled,textarea[data-v-28993d11]:disabled,select[data-v-28993d11]:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors[data-v-28993d11] :invalid{outline:2px solid var(--input-error-color)}label[data-v-28993d11]{font-weight:700}button[data-v-28993d11]{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent[data-v-28993d11]{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent[data-v-28993d11]:hover,button.transparent[data-v-28993d11]:disabled{background:transparent}button.transparent[data-v-28993d11]:hover{color:var(--app-color)}button.transparent[data-v-28993d11]:enabled:active{box-shadow:none}button.transparent[data-v-28993d11]:disabled,button.transparent.confirm[data-v-28993d11]:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button[data-v-28993d11]{cursor:pointer;padding:0}button.small[data-v-28993d11]{font-size:.9em;padding:3px 7px}button[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button[data-v-28993d11]:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button[data-v-28993d11]:disabled,button.confirm[data-v-28993d11]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel[data-v-28993d11]{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm[data-v-28993d11]{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger[data-v-28993d11]{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger[data-v-28993d11]:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger[data-v-28993d11]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box[data-v-28993d11]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box[data-v-28993d11]{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container[data-v-28993d11]{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items[data-v-28993d11]{display:flex;flex-direction:column}.form-box .form-items input[data-v-28993d11]{margin:10px;padding:5px}.form-info[data-v-28993d11]{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message[data-v-28993d11]{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper[data-v-28993d11]{text-transform:uppercase}.view[data-v-28993d11]{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy[data-v-28993d11]{color:var(--workout-trophy-color)}.mountains[data-v-28993d11]{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title[data-v-28993d11]{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title[data-v-28993d11]{padding-left:5px;text-transform:capitalize}.section-title[data-v-28993d11]:first-letter{text-transform:uppercase}.no-map[data-v-28993d11]{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group[data-v-28993d11]{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes[data-v-28993d11]{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes[data-v-28993d11]{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label[data-v-28993d11]{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input[data-v-28993d11]{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span[data-v-28993d11]{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span[data-v-28993d11]{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl[data-v-28993d11]{display:flex;flex-direction:column;width:100%}.description-list dl dt[data-v-28993d11]{font-weight:700}.description-list dl dd[data-v-28993d11]{margin-bottom:10px}.center-card[data-v-28993d11]{margin:0 auto;width:700px}.center-card.with-margin[data-v-28993d11]{margin-top:100px}@media screen and (max-width: 1000px){.center-card[data-v-28993d11]{width:100%;margin:0 auto 50px}}.text-center[data-v-28993d11]{text-align:center}.text-left[data-v-28993d11]{text-align:left}.deleted-object[data-v-28993d11]{font-style:italic}.responsive-table[data-v-28993d11]{margin-bottom:15px}.responsive-table table[data-v-28993d11]{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th[data-v-28993d11]{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody[data-v-28993d11]{font-size:.95em}.responsive-table table tbody td[data-v-28993d11]{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td[data-v-28993d11]{border:none}.responsive-table table .cell-heading[data-v-28993d11]{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead[data-v-28993d11]{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr[data-v-28993d11]{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td[data-v-28993d11]{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td[data-v-28993d11]{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading[data-v-28993d11]{display:flex}}@media screen and (max-width: 500px){.responsive-table table td[data-v-28993d11]{width:100%}}.profile-buttons[data-v-28993d11]{display:flex;align-items:baseline;gap:10px}.user-role[data-v-28993d11],.follows-you[data-v-28993d11],.blocked[data-v-28993d11]{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img[data-v-28993d11]{height:35px;width:35px;margin:0 auto}.hidden-content[data-v-28993d11]{display:none}.items-list-view .items-list-container[data-v-28993d11]{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container[data-v-28993d11]{flex-direction:column}}.items-list-view .items-list-container .filters-container[data-v-28993d11],.items-list-view .items-list-container .list-container[data-v-28993d11]{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container[data-v-28993d11]{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container[data-v-28993d11]{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden[data-v-28993d11]{display:none}}.items-list-view .items-list-container .display-filters[data-v-28993d11]{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span[data-v-28993d11]{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa[data-v-28993d11]{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters[data-v-28993d11]{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container[data-v-28993d11]{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container[data-v-28993d11]{width:100%}}.visually-hidden[data-v-28993d11]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden[data-v-28993d11]:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects[data-v-28993d11]{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select[data-v-28993d11]{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects[data-v-28993d11]{flex-wrap:wrap}.table-selects label[data-v-28993d11]{margin-bottom:10px}.table-selects label select[data-v-28993d11]{margin-left:0}}.suspended[data-v-28993d11]{font-style:italic;font-weight:700}.action-loading[data-v-28993d11]{display:flex;align-items:center}.markdown-hints[data-v-28993d11]{font-size:.8em;font-style:normal;margin:5px 0 10px}.about-text[data-v-28993d11]{margin-top:200px;margin-right:100px;padding-bottom:40px}@media screen and (max-width: 700px){.about-text[data-v-28993d11]{margin-top:0;margin-right:0;padding-bottom:0}}.about-text .fa-padding[data-v-28993d11]{padding-right:10px}.about-text .about-instance[data-v-28993d11]{font-weight:700;margin-top:30px}#bike[data-v-dc181e30]{display:flex;justify-content:center;margin-top:180px;padding:10px}#bike .bike-img[data-v-dc181e30]{max-width:200px}@media screen and (max-width: 700px){#bike[data-v-dc181e30]{margin-top:10px}#bike .bike-img[data-v-dc181e30]{max-width:150px}}#about[data-v-ef9c7198]{display:flex;height:100%}#about .container[data-v-ef9c7198]{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:20px;width:100%}#about .container .container-sub[data-v-ef9c7198]{min-width:50%;height:100%}#about .container .about-details[data-v-ef9c7198]{width:100%}@media screen and (max-width: 1000px){#about[data-v-ef9c7198]{height:auto}#about .container .container-sub[data-v-ef9c7198]{align-items:center}#about .container .container-sub .bike-img[data-v-ef9c7198]{max-width:60%}}@media screen and (max-width: 700px){#about .container[data-v-ef9c7198]{flex-direction:column}}#admin .admin-card[data-v-580b02ed]{width:100%}#admin .admin-card[data-v-580b02ed] .card .admin-form{display:flex;flex-direction:column}#admin .admin-card[data-v-580b02ed] .card .admin-form label{display:flex;align-items:center;justify-content:space-between;margin:10px 0;flex-wrap:wrap}#admin .admin-card[data-v-580b02ed] .card .admin-form label input{width:50%;font-size:.9em;margin-right:50px}@media screen and (max-width: 1000px){#admin .admin-card[data-v-580b02ed] .card .admin-form label input{margin-right:0}}@media screen and (max-width: 700px){#admin .admin-card[data-v-580b02ed] .card .admin-form label input{width:100%}}#admin .admin-card[data-v-580b02ed] .card .admin-form label input:disabled{-webkit-appearance:none;-moz-appearance:textfield;background-color:var(--admin-disabled-input-color);border-color:var(--admin-disabled-input-color);color:var(--app-color)}#admin .admin-card[data-v-580b02ed] .card .admin-form .form-buttons{display:flex;gap:10px;margin-bottom:10px}.no-workouts[data-v-b0c91cc6]{display:flex;justify-content:center}#timeline[data-v-bab374a4]{margin-bottom:20px}#timeline .more-workouts[data-v-bab374a4]{display:flex;justify-content:center}.calendar-workout{display:flex;padding:1px;cursor:pointer}.calendar-workout .sport-img{width:18px;height:18px}.calendar-workout sup{position:relative;top:-8px;left:-3px;width:2px}.calendar-workout sup .custom-fa-small{font-size:.7em}@media screen and (max-width: 700px){.calendar-workout .sport-img{padding:3px;width:20px;height:20px}.calendar-workout sup .custom-fa-small{font-size:.6em}}.calendar-workouts-chart[data-v-fda2985a]{display:flex}.calendar-workouts-chart .workouts-chart[data-v-fda2985a]{position:relative;padding:0}.calendar-workouts-chart .workouts-chart .workouts-count[data-v-fda2985a]{display:flex;justify-content:center;position:absolute;top:4px;left:6px;width:20px;font-size:1.1em;font-weight:700}@media screen and (max-width: 700px){.calendar-workouts-chart .workouts-chart .workouts-count[data-v-fda2985a]{top:16px;left:6px}.calendar-workouts-chart .workouts-chart[data-v-fda2985a] .donut-chart{padding-top:12px}.calendar-workouts-chart .workouts-chart[data-v-fda2985a] .donut-chart svg g circle{stroke-width:2;stroke-opacity:.8}}.calendar-workouts-chart .workouts-pane[data-v-fda2985a]{display:flex;padding-left:40px}.calendar-workouts-chart .workouts-pane .more-workouts[data-v-fda2985a]{background:var(--calendar-workouts-color);border-radius:4px;box-shadow:0 4px 8px 0 var(--calendar-workouts-box-shadow-0),0 6px 20px 0 var(--calendar-workouts-box-shadow-1);position:absolute;top:52px;left:0;min-width:60px;margin-bottom:20px;padding:10px;display:flex;flex-wrap:wrap;z-index:1000}@media screen and (max-width: 700px){.calendar-workouts-chart .workouts-pane .more-workouts[data-v-fda2985a]{min-width:70px}}.calendar-workouts-chart .workouts-pane .more-workouts .calendar-more-close[data-v-fda2985a]{position:absolute;font-size:.9em;top:5px;right:5px;padding:0}.calendar-workouts .desktop-display{display:flex}.calendar-workouts .mobile-display{display:none}.calendar-workouts .workouts-display{display:flex;flex-wrap:wrap;position:relative;margin:0 10px 0 0}.calendar-workouts .donut-display{display:flex;height:34px;width:34px}@media screen and (max-width: 700px){.calendar-workouts .desktop-display{display:none}.calendar-workouts .mobile-display{display:flex}}.calendar-cells{display:flex;flex-direction:column;width:100%}.calendar-cells .calendar-row{display:flex;flex-wrap:wrap;border-top:solid 1px var(--calendar-border-color)}.calendar-cells .calendar-row .calendar-cell{border-right:solid 1px var(--calendar-border-color);height:40px;flex-grow:1;flex-basis:8%;padding:5px 10px 5px 5px;width:8%;position:relative}.calendar-cells .calendar-row .calendar-cell .calendar-cell-day{position:absolute;font-size:.8em;line-height:1;top:.5em;right:.5em;font-weight:700}.calendar-cells .calendar-row .calendar-cell:last-child{border-right:0}@media screen and (max-width: 700px){.calendar-cells .calendar-row .calendar-cell:last-child .calendar-workouts .more-workouts{left:-45px}}.calendar-cells .calendar-row .disabled-cell{color:var(--app-color-light)}.calendar-cells .calendar-row .week-end{background:var(--calendar-week-end-color)}.calendar-cells .calendar-row .today{background:var(--calendar-today-color)}@media screen and (max-width: 700px){.calendar-cells .calendar-row:last-child .calendar-workouts .more-workouts{top:inherit;bottom:20px}}.calendar-days{display:flex;flex-direction:row;border-top:solid 1px var(--calendar-border-color)}.calendar-days .calendar-day{flex-grow:1;padding:5px;text-align:center;text-transform:uppercase;color:var(--calendar-day-color)}.calendar-header{display:flex;flex-direction:row}.calendar-header .calendar-arrow{flex-grow:1;padding:9px px}.calendar-header .calendar-arrow-left{text-align:left;cursor:pointer}.calendar-header .calendar-arrow-right{text-align:right;cursor:pointer}.calendar-header .calendar-month{flex-grow:1;font-weight:700;padding:10px;text-align:center;text-transform:uppercase}#user-calendar .calendar-card,#user-calendar .calendar-card .card-content{padding:0}.bar-chart[data-v-f96e822f]{position:relative;min-height:400px;width:100%}.bar-chart.minimal[data-v-f96e822f]{min-height:300px}@media screen and (max-width: 700px){.bar-chart[data-v-f96e822f]{min-height:268px}.bar-chart.minimal[data-v-f96e822f]{min-height:290px}}@media screen and (max-width: 420px){.bar-chart[data-v-f96e822f]{width:calc(100vw - 95px)}}.stats-chart[data-v-f61443a0]{width:100%}.stats-chart .chart-radio[data-v-f61443a0]{display:flex;justify-content:space-between;flex-wrap:wrap;padding:10px}.stats-chart .chart-radio label[data-v-f61443a0]{font-size:.85em;font-weight:400}@media screen and (max-width: 700px){.stats-chart .chart-radio label[data-v-f61443a0]{padding-bottom:10px}}.stats-chart .workouts-average[data-v-f61443a0]{display:flex;margin:10px 0 0 25px;min-height:20px}.stats-chart .workouts-average .fa-info-circle[data-v-f61443a0]{padding-right:5px}@media screen and (max-width: 700px){.stats-chart .workouts-average .fa-info-circle[data-v-f61443a0]{padding-right:2px}.stats-chart .workouts-average .info-box[data-v-f61443a0]{padding:5px 10px}}.user-month-stats[data-v-f5b0f1af] .card-content{padding:10px}.record[data-v-f8125b68]{display:flex;align-items:center;justify-content:space-between}.record span[data-v-f8125b68]{padding:2px}.record .record-type[data-v-f8125b68]{flex-grow:1}.record .record-value[data-v-f8125b68]{font-weight:700;white-space:nowrap;padding-right:10px}.record .record-date[data-v-f8125b68]{white-space:nowrap;min-width:30%;text-align:right}.records-card[data-v-7ab88f3c]{width:100%;padding-bottom:3px}.records-card[data-v-7ab88f3c] .card{font-size:.9em}.records-card[data-v-7ab88f3c] .card .card-title{display:flex;font-size:.9em}.records-card[data-v-7ab88f3c] .card .card-title .sport-img{padding-right:10px;height:20px;width:20px}.records-card[data-v-7ab88f3c] .card .card-content{font-size:.9em;padding:10px}.records-card[data-v-7ab88f3c] .card .card-content .record{display:flex;align-items:center;justify-content:space-between}.records-card[data-v-7ab88f3c] .card .card-content .record span{padding:2px}.records-card[data-v-7ab88f3c] .card .card-content .record .record-type{flex-grow:1}.records-card[data-v-7ab88f3c] .card .card-content .record .record-value{font-weight:700;white-space:nowrap;padding-right:10px}.records-card[data-v-7ab88f3c] .card .card-content .record .record-date{white-space:nowrap;min-width:30%;text-align:right}@media screen and (max-width: 1000px){.records-card[data-v-7ab88f3c] .card,.records-card[data-v-7ab88f3c] .card .card-title{font-size:1em}.records-card[data-v-7ab88f3c] .card .card-title .sport-img{height:22px;width:22px}}@media screen and (max-width: 500px){.records-card[data-v-7ab88f3c] .card .card-content .record.max-width .record-type{max-width:40%}}.user-records .no-records[data-v-e0d23747]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}#user-stats{display:flex;flex:1 0 25%;justify-content:space-around;flex-wrap:wrap}.privacy-policy-message[data-v-1653c054]{background:var(--alert-background-color);color:var(--alert-color);border-radius:4px;padding:10px 20px}.privacy-policy-message .policy-link[data-v-1653c054]{color:var(--policy-link-color);text-decoration:underline}#dashboard .dashboard-container[data-v-3dd07f41]{display:flex;flex-direction:row}#dashboard .dashboard-container .dashboard-sub-container[data-v-3dd07f41]{display:flex;flex-direction:column}#dashboard .dashboard-container .left-container[data-v-3dd07f41]{width:32%}#dashboard .dashboard-container .right-container[data-v-3dd07f41]{width:68%}#dashboard .mobile-menu[data-v-3dd07f41]{display:none}#dashboard .privacy-policy-message[data-v-3dd07f41]{display:flex;justify-content:center}@media screen and (max-width: 1000px){#dashboard[data-v-3dd07f41]{padding-bottom:60px}#dashboard .dashboard-container[data-v-3dd07f41]{display:flex;flex-direction:column}#dashboard .dashboard-container .left-container[data-v-3dd07f41],#dashboard .dashboard-container .right-container[data-v-3dd07f41]{width:100%}#dashboard .mobile-menu[data-v-3dd07f41]{display:flex}#dashboard .mobile-menu .box[data-v-3dd07f41]{display:flex;justify-content:space-between;padding:0;width:100%}#dashboard .mobile-menu .box .mobile-menu-item[data-v-3dd07f41]{display:flex;justify-content:space-around;border:none;border-radius:4px;box-shadow:none;font-size:.95em;padding:10px;width:25%}#dashboard .mobile-menu .box .mobile-menu-item .fa-trophy[data-v-3dd07f41]{color:var(--app-color)}#dashboard .mobile-menu .box .mobile-menu-item.is-selected[data-v-3dd07f41]{color:var(--mobile-menu-selected-color);background-color:var(--mobile-menu-selected-bgcolor)}#dashboard .mobile-menu .box .mobile-menu-item.is-selected .fa-trophy[data-v-3dd07f41]{color:var(--mobile-menu-selected-color)}#dashboard .is-hidden[data-v-3dd07f41]{display:none}}@media screen and (max-width: 700px){#dashboard .privacy-policy-message[data-v-3dd07f41]{margin:0 5px}}.follow-request[data-v-dc09ab49]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.follow-request .follow-request-user[data-v-dc09ab49]{display:flex;align-items:center}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture{min-width:initial;padding:0 10px}@media screen and (max-width: 700px){.follow-request .follow-request-user[data-v-dc09ab49] .user-picture{padding:0 10px 5px}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture img{height:60px;width:60px}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture .no-picture{font-size:3.8em}}.follow-request .follow-request-actions[data-v-dc09ab49]{display:flex;flex-direction:column;gap:10px}.follow-request .follow-request-actions button[data-v-dc09ab49]{display:flex;gap:10px}.follow-request .follow-request-actions button .fa[data-v-dc09ab49]{line-height:20px}.report-notification[data-v-ff0a4948]{display:flex;justify-content:space-between;flex-wrap:wrap}.report-notification .reported-user[data-v-ff0a4948]{display:flex;align-items:center}.report-notification .reported-user .user-picture[data-v-ff0a4948]{min-width:initial;padding:0 10px}.report-notification .reported-comment[data-v-ff0a4948],.report-notification .reported-workout[data-v-ff0a4948]{width:100%}.report-notification .report-button[data-v-ff0a4948]{display:flex;flex-direction:column;justify-content:center}.notification-card[data-v-c0558938] .card-title{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center}.notification-card[data-v-c0558938] .card-title .notification-icon{padding-right:5px}.notification-card[data-v-c0558938] .card-title .mark-action{font-weight:initial;font-style:italic;border:none;box-shadow:none}.notification-card[data-v-c0558938] .card-title .notification-data-button{display:flex;gap:5px;align-items:center}.notification-card[data-v-c0558938] .card-title .notification-data-button .notification-date{font-size:.85em;font-style:italic;font-weight:400;white-space:nowrap}.notification-card[data-v-c0558938] .box{margin:10px 0}.notification-card .auth-user[data-v-c0558938]{display:flex;align-items:center}.notification-card .auth-user .user-picture[data-v-c0558938]{min-width:initial;padding:0 10px}.notification-card .auth-user .user-picture img[data-v-c0558938]{height:60px;width:60px}.notification-card .auth-user .user-picture .no-picture[data-v-c0558938]{font-size:3.8em}.notification-card .notification-reason[data-v-c0558938]{font-weight:700;text-transform:capitalize}.notification-card .comment-box[data-v-c0558938]{padding:5px 10px}.notification-card .info-box.suspended[data-v-c0558938]{padding:30px}.notification-card .appeal-link[data-v-c0558938]{margin-left:10px}.notification-card[data-v-c0558938] .suspended.info-box{font-size:.9em}.notification-card[data-v-c0558938] .workout-card .suspended.info-box{margin-bottom:10px}.notification-card.read[data-v-c0558938]{color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] .user-picture img{opacity:.5}.notification-card.read[data-v-c0558938] .user-picture .no-picture,.notification-card.read[data-v-c0558938] .workout-comment .fa-heart{color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] a:not(.appeal-link){color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] .sport-img,.notification-card.read[data-v-c0558938] .suspended.info-box,.notification-card.read[data-v-c0558938] .appeal-rejected{opacity:.5}.notification-card.read .mark-action[data-v-c0558938]{color:var(--app-color-lighter)}.notification-card.read .mark-action[data-v-c0558938]:hover{background:var(--app-color-lighter);color:var(--button-confirm-bg-color)}.notification-card .appeal-in-progress[data-v-c0558938]{margin-top:5px}#notifications .no-notifications[data-v-a25ddea4]{padding:10px;text-align:center}#notifications .mark-all-action[data-v-a25ddea4]{border:none;box-shadow:none;font-style:italic;font-weight:initial;margin-top:10px;padding-top:0}#notifications .mark-all-action[data-v-a25ddea4]:hover{background-color:initial;color:var(--app-color);text-decoration:underline}.notifications-filters .form .form-all-items[data-v-6cb336ec]{display:flex;flex-direction:column;padding-top:0}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{display:flex;flex-direction:column;padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item[data-v-6cb336ec]{display:flex;flex-direction:column}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:34%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item input[data-v-6cb336ec]{height:16px}.notifications-filters .form .form-all-items .form-items-group .form-item select[data-v-6cb336ec]{height:38px;padding:0 5px}.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:10px}.notifications-filters .form .form-all-items .form-items-group .form-item-title input.title[data-v-6cb336ec]{width:100%}.notifications-filters .status-title[data-v-6cb336ec]{font-weight:700}.notifications-filters .status-radio[data-v-6cb336ec]{display:flex;justify-content:space-around;padding-top:5px}@media screen and (max-width: 1000px){.notifications-filters .form .form-all-items[data-v-6cb336ec]{flex-direction:row;padding-top:5px}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{padding:0 5px;height:100%}.notifications-filters .form .form-all-items .form-items-group .form-item label[data-v-6cb336ec],.notifications-filters .form .form-all-items .form-items-group .form-item span[data-v-6cb336ec]{font-size:.9em}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{flex-direction:column;justify-content:normal;padding:0}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:85%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:0}.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:0}.notifications-filters .form .form-all-items .form-items-group .notification-labels[data-v-6cb336ec]{min-width:100px}}@media screen and (max-width: 700px){.notifications-filters .form .form-all-items[data-v-6cb336ec]{flex-direction:column;padding-top:0}.notifications-filters .form .form-all-items .notification-labels[data-v-6cb336ec]{min-width:10px}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item label[data-v-6cb336ec]{font-size:1em}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{flex-direction:row;justify-content:space-around;align-items:center}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:50%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:5px}}@media screen and (max-width: 500px){.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:10px}.notifications-filters .form .form-all-items .form-items-group .form-item-title input.title[data-v-6cb336ec]{width:100%}}.chart-menu[data-v-dacfdeb2]{display:flex;align-items:center}.chart-menu .chart-arrow[data-v-dacfdeb2],.chart-menu .time-frames[data-v-dacfdeb2]{flex-grow:1;text-align:center}.chart-menu .chart-arrow[data-v-dacfdeb2]{cursor:pointer}@media screen and (max-width: 500px){.chart-menu .chart-arrow[data-v-dacfdeb2]{padding:6px}}.stats-type[data-v-dacfdeb2]{display:flex;justify-content:center;margin:10px 0 5px}.stats-type .stats-type-radio[data-v-dacfdeb2]{display:flex;gap:10px}.stats-type .stats-type-radio label[data-v-dacfdeb2]{font-size:.9em;font-weight:400;text-transform:lowercase}.sports-menu{display:flex;flex-wrap:wrap;padding:0 10px}.sports-menu label{display:flex;align-items:center;font-size:.9em;font-weight:400;min-width:120px;padding:10px}@media screen and (max-width: 1000px){.sports-menu label{min-width:100px}}@media screen and (max-width: 500px){.sports-menu label{min-width:20px}.sports-menu label .sport-label{display:none}}.sports-menu .sport-img{padding:3px;width:20px;height:20px}#user-statistics.stats-disabled[data-v-f9158924]{opacity:.3;pointer-events:none}#user-statistics[data-v-f9158924] .chart-radio{justify-content:space-around;padding:10px 10px 0}.sport-stat-card{flex:0 0 33%}@media screen and (max-width: 700px){.sport-stat-card{flex:1 0 50%}}@media screen and (max-width: 500px){.sport-stat-card{flex:1 0 100%}}.sport-stat-card .stat-content{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px}.sport-stat-card .stat-content .stat-icon .fa{font-size:2em}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-icon .fa{font-size:1.5em}}.sport-stat-card .stat-content .stat-details{display:flex;flex-direction:column;align-items:center;justify-content:space-around}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details{width:100%}}.sport-stat-card .stat-content .stat-details .stat-label{text-transform:capitalize}.sport-stat-card .stat-content .stat-details .stat-values{display:flex;gap:5px;align-items:baseline;min-height:30px}.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1.3em;font-weight:700}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1.2em}}@media screen and (max-width: 500px){.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1em}}.sport-stat-card .stat-content .stat-details .stat-values .fa-refresh{font-size:1.4em}.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:1em}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:.9em}}@media screen and (max-width: 500px){.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:.8em}}.sport-stat-card .stat-content .stat-details .stat-average{display:flex;gap:5px;font-style:italic;font-size:.9em;text-transform:lowercase;min-height:25px}#sport-statistics #sport[data-v-dad31bfb]{height:30px;margin-left:10px;padding:5px}#sport-statistics .label[data-v-dad31bfb]{font-weight:700;text-transform:capitalize;margin:20px 0 10px}#sport-statistics .statistics-workouts-count[data-v-dad31bfb]{font-style:italic}#sport-statistics .sport-statistics .sport-img-label[data-v-dad31bfb]{display:flex;gap:10px;align-items:flex-end;margin-top:15px}#sport-statistics .sport-statistics .sport-img-label .sport-img[data-v-dad31bfb]{height:50px;width:50px}#sport-statistics .sport-statistics .sport-img-label .sport-label[data-v-dad31bfb]{font-size:25px;font-weight:700}#sport-statistics .sport-statistics .statistics[data-v-dad31bfb]{display:flex;justify-content:flex-start;flex-wrap:wrap}#sport-statistics .records[data-v-dad31bfb]{width:425px}@media screen and (max-width: 500px){#sport-statistics .sport-statistics .sport-img-label .sport-img[data-v-dad31bfb]{height:50px;width:50px}#sport-statistics .sport-statistics .sport-img-label .sport-label[data-v-dad31bfb]{font-size:20px;font-weight:700}#sport-statistics .sport-statistics .records[data-v-dad31bfb]{font-size:.9em;width:100%}}#statistics[data-v-94133818]{display:flex;width:100%}#statistics .container[data-v-94133818]{display:flex;flex-direction:column;width:100%}#statistics .stats-types[data-v-94133818]{height:30px;margin-left:10px;padding:5px}[data-v-8a25f980]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}#user-auth-form[data-v-8a25f980]{display:flex}#user-auth-form #user-form[data-v-8a25f980]{width:60%}#user-auth-form #user-form .account[data-v-8a25f980]{font-size:.9em;padding-left:10px}#user-auth-form #user-form .links[data-v-8a25f980]{font-size:.9em;font-style:italic;padding:0 10px}#user-auth-form #user-form button[data-v-8a25f980]{margin:10px;border:solid 1px var(--app-color)}#user-auth-form #user-form button[data-v-8a25f980]:disabled{border-color:var(--disabled-color)}#user-auth-form #user-form .success-message[data-v-8a25f980]{margin:10px}#user-auth-form #user-form .accepted_policy[data-v-8a25f980]{display:flex;align-items:center;font-size:.85em;font-weight:400}#user-auth-form #user-form .form-items label[data-v-8a25f980]{padding-left:10px}#user-auth-form #user-form .form-items label.accepted_policy[data-v-8a25f980]{padding-left:0}#user-auth-form #user-form .form-items label.accepted_policy input[data-v-8a25f980]{margin-top:10px}#user-auth-form #user-form .form-items[data-v-8a25f980] input{margin-top:0}#user-auth-form #user-form .form-items[data-v-8a25f980] .password-strength input{margin-top:10px}#user-auth-form #user-form .form-info[data-v-8a25f980]{margin-bottom:5px}@media screen and (max-width: 1000px){#user-auth-form[data-v-8a25f980]{margin-bottom:50px}#user-auth-form #user-form[data-v-8a25f980]{width:100%}}.user-form[data-v-8a25f980]{margin-top:200px}@media screen and (max-width: 700px){.user-form[data-v-8a25f980]{margin-top:10px}}#account-confirmation-email[data-v-08a26b50]{display:flex;flex-direction:column}#account-confirmation-email .email-sent[data-v-08a26b50]{display:flex;flex-direction:column;align-items:center}#account-confirmation-email .email-sent svg[data-v-08a26b50]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#account-confirmation-email .email-sent .email-sent-message[data-v-08a26b50]{font-size:1.1em;text-align:center}@media screen and (max-width: 1000px){#account-confirmation-email .email-sent .email-sent-message[data-v-08a26b50]{font-size:1em}}#account-confirmation-email[data-v-08a26b50] .card .card-content #user-auth-form{margin-top:0}#account-confirmation-email[data-v-08a26b50] .card .card-content #user-auth-form #user-form{width:100%}#account-confirmation[data-v-9a9c1644]{display:flex}#account-confirmation .container[data-v-9a9c1644]{display:flex;justify-content:center;width:50%}@media screen and (max-width: 700px){#account-confirmation .container[data-v-9a9c1644]{width:100%}}#account-confirmation[data-v-576433a9]{display:flex;flex-direction:column;align-items:center}#account-confirmation svg[data-v-576433a9]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#account-confirmation .error-message[data-v-576433a9]{font-size:1.1em;text-align:center;display:flex;flex-direction:column}@media screen and (max-width: 1000px){#account-confirmation .error-message[data-v-576433a9]{font-size:1em}}#email-update[data-v-8710c2be]{display:flex;flex-direction:column;align-items:center}#email-update svg[data-v-8710c2be]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#email-update .error-message[data-v-8710c2be]{font-size:1.1em;text-align:center;display:flex;flex-direction:column}@media screen and (max-width: 1000px){#email-update .error-message[data-v-8710c2be]{font-size:1em}}#loginOrRegister[data-v-7344db74]{display:flex}#loginOrRegister .container[data-v-7344db74]{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:20px;width:100%}#loginOrRegister .container .container-sub[data-v-7344db74]{min-width:50%;height:100%}@media screen and (max-width: 1000px){#loginOrRegister[data-v-7344db74]{height:auto}#loginOrRegister .container .container-sub[data-v-7344db74]{align-items:center}#loginOrRegister .container .container-sub .bike-img[data-v-7344db74]{max-width:60%}}@media screen and (max-width: 700px){#loginOrRegister .container[data-v-7344db74]{flex-direction:column}}#password-action-done[data-v-4f0a2bcc]{display:flex;flex-direction:column;align-items:center}#password-action-done svg[data-v-4f0a2bcc]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#password-action-done .password-message[data-v-4f0a2bcc]{font-size:1.1em;text-align:center}@media screen and (max-width: 1000px){#password-action-done .password-message[data-v-4f0a2bcc]{font-size:1em}}#password-reset-request[data-v-25ace80f] .card .card-content #user-form{width:100%}#password-reset[data-v-f7d7dbd1]{display:flex}#password-reset .container[data-v-f7d7dbd1]{display:flex;justify-content:center;width:50%}@media screen and (max-width: 700px){#password-reset .container[data-v-f7d7dbd1]{width:100%}}#profile[data-v-10b39629]{display:flex;flex-direction:column;padding:0 10px 40px}#profile[data-v-10b39629] .profile-form{display:flex;flex-direction:column}#profile[data-v-10b39629] .profile-form hr{border-color:var(--card-border-color);border-width:1px 0 0 0}#profile[data-v-10b39629] .profile-form .form-items{display:flex;flex-direction:column}#profile[data-v-10b39629] .profile-form .form-items input{margin:5px 0}#profile[data-v-10b39629] .profile-form .form-items select{height:35px;padding:5px 0}#profile[data-v-10b39629] .profile-form .form-items ::v-deep(.custom-textarea) textarea{padding:5px}#profile[data-v-10b39629] .profile-form .form-items .form-item{display:flex;flex-direction:column;padding:10px}#profile[data-v-10b39629] .profile-form .form-items .birth-date{height:20px}#profile[data-v-10b39629] .profile-form .form-buttons{display:flex;margin-top:10px;padding:10px 0;gap:10px}#user[data-v-f352961e]{margin:auto;width:700px}@media screen and (max-width: 1000px){#user[data-v-f352961e]{width:100%;margin:0 auto 50px}}.users-list[data-v-b77a3b27]{display:flex;flex-direction:column;margin-bottom:50px;width:100%}.users-list .users-container[data-v-b77a3b27]{display:flex;align-content:flex-start;flex-wrap:wrap;padding:0;width:100%}.users-list .users-container .user-box[data-v-b77a3b27]{width:33%}@media screen and (max-width: 1000px){.users-list .users-container .user-box[data-v-b77a3b27]{width:50%}}@media screen and (max-width: 700px){.users-list .users-container .user-box[data-v-b77a3b27]{width:100%}}.users-list .no-users[data-v-b77a3b27]{padding:10px}#workout-edition[data-v-24e1fdb7] .card .card-title{text-align:center;text-transform:uppercase}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content{padding:10px 0}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items{display:flex;flex-direction:column}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items input{height:20px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items label{text-transform:lowercase}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .workout-date-duration{display:flex;flex-direction:row;justify-content:space-between}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .workout-date-duration{flex-direction:column}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item{display:flex;flex-direction:column;padding:5px 10px 2.5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-date-time{display:flex}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-date-time #workout-date{margin-right:10px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-duration{width:25px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio{display:flex;justify-content:space-around}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio label{font-weight:400}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio label{font-size:.9em}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio input{margin-top:-2px;vertical-align:middle}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-buttons{display:flex;justify-content:flex-end;padding:10px 5px 0}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-buttons button{margin:5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help{display:flex;justify-content:space-around;margin-top:10px;padding:7.5px 10px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div{display:flex}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div{flex-direction:column}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div ul{margin:0;padding:0 20px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .field-help{display:flex;margin-top:5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data{display:flex;flex-direction:row;justify-content:space-between}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data .form-item{width:30%}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data{flex-direction:column}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data .form-item{width:initial}}@media screen and (max-width: 700px){#workout-edition[data-v-24e1fdb7]{margin-bottom:0}#workout-edition.center-form[data-v-24e1fdb7]{margin:50px auto}#workout-edition.with-margin[data-v-24e1fdb7]{margin-top:0}}#workout-edition .errored[data-v-24e1fdb7]{outline:2px solid var(--input-error-color)}.workout-comments[data-v-dbdc1cf2]{padding-bottom:20px}.workout-comments .no-comments[data-v-dbdc1cf2]{font-style:italic}.workout-comments .add-comment-button[data-v-dbdc1cf2]{margin:10px 0}.workout-comments .loader[data-v-dbdc1cf2]{border-width:5px;height:20px;margin-left:50%;width:20px}.workout-comments .card-content div[data-v-dbdc1cf2]:not(:nth-last-child(-n+2)){border-bottom:1px solid var(--comment-border-color)}#comments[data-v-da00ce02]{display:flex}#comments .container[data-v-da00ce02]{width:100%;padding:0}#comments .container .comments-container[data-v-da00ce02]{width:100%}#workout-card-title[data-v-0dda19ba]{display:flex;justify-content:space-between;align-items:center}#workout-card-title .workout-arrow[data-v-0dda19ba]{cursor:pointer;padding:10px}#workout-card-title .workout-arrow.inactive[data-v-0dda19ba]{color:var(--disabled-color);cursor:default}#workout-card-title .workout-card-title[data-v-0dda19ba]{display:flex;flex-grow:1;align-items:center}#workout-card-title .workout-card-title .sport-img[data-v-0dda19ba]{padding:0 10px}#workout-card-title .workout-card-title .sport-img[data-v-0dda19ba] svg{height:35px;width:35px}#workout-card-title .workout-card-title .workout-title[data-v-0dda19ba]{display:flex;flex-direction:row;align-items:baseline}#workout-card-title .workout-card-title .workout-title span[data-v-0dda19ba]{margin-right:5px}#workout-card-title .workout-card-title .workout-date[data-v-0dda19ba]{font-size:.8em;font-weight:400}#workout-card-title .workout-card-title .workout-segment[data-v-0dda19ba]{font-weight:400}#workout-card-title .workout-card-title .workout-link[data-v-0dda19ba]{padding-left:10px}#workout-card-title .workout-card-title .fa[data-v-0dda19ba]{padding:0 3px}#workout-card-title .workout-card-title .fa-heart.liked[data-v-0dda19ba]{color:var(--like-color)}#workout-card-title .workout-card-title .icon-button[data-v-0dda19ba]{margin-left:2px}@media screen and (max-width: 700px){#workout-card-title .workout-arrow[data-v-0dda19ba]{padding:5px}}@media screen and (max-width: 700px) and (max-width: 700px){#workout-card-title .workout-card-title .fa-download[data-v-0dda19ba],#workout-card-title .workout-card-title .fa-trash[data-v-0dda19ba],#workout-card-title .workout-card-title .fa-edit[data-v-0dda19ba]{padding:0 7px}}@media screen and (max-width: 700px){#workout-card-title .workout-card-title .workout-title[data-v-0dda19ba]{display:flex;flex-direction:column}}.workout-record sup[data-v-0c5d556a]{font-size:75%;line-height:0}.wind[data-v-e1f7f9cc]{display:flex;justify-content:center}.wind .wind-bearing[data-v-e1f7f9cc]{padding-left:5px}#workout-weather[data-v-d507bd79]{padding-top:10px}#workout-weather .weather-img[data-v-d507bd79]{height:30px;filter:var(--icon-svg-filter)}#workout-weather .weather-img-small[data-v-d507bd79]{height:20px}#workout-weather .weather-table[data-v-d507bd79]{width:100%;text-align:center}#workout-weather .weather-table .weather-th[data-v-d507bd79]{display:flex;flex-direction:column;text-transform:capitalize}#workout-weather .weather-table tbody[data-v-d507bd79]{font-size:.8em}#workout-info[data-v-299a57f0]{display:flex;flex-direction:column;padding:10px 20px;width:100%}#workout-info .fa[data-v-299a57f0],#workout-info .mountains[data-v-299a57f0]{padding-right:5px}#workout-info .workout-data[data-v-299a57f0]{padding:5px 0}#workout-info .workout-data .label[data-v-299a57f0]{text-transform:capitalize}#workout-info .workout-data .value[data-v-299a57f0]{font-weight:700;text-transform:lowercase}@media screen and (max-width: 700px){#workout-info[data-v-299a57f0]{padding:10px}}#workout-map[data-v-6abbf12a]{padding:10px 0}#workout-map .leaflet-container[data-v-6abbf12a],#workout-map .no-map[data-v-6abbf12a]{height:400px;width:600px}#workout-map .no-map[data-v-6abbf12a]{line-height:400px;filter:var(--no-map-filter)}#workout-map .leaflet-container .map[data-v-6abbf12a]{filter:var(--map-filter)}#workout-map .leaflet-container .map-control[data-v-6abbf12a]{background:var(--map-control-bg-color);padding:5px 10px;border:2px solid var(--map-control-border-color);border-radius:3px;color:var(--map-control-color)}#workout-map .leaflet-container .map-control[data-v-6abbf12a]:hover{background-color:var(--map-control-hover-bg-color)}#workout-map[data-v-6abbf12a] .fullscreen{display:flex;align-items:center;z-index:1000}#workout-map[data-v-6abbf12a] .fullscreen .fullscreen-map{height:100%;width:100%}@media screen and (max-width: 700px){#workout-map[data-v-6abbf12a]{padding:0}#workout-map .leaflet-container[data-v-6abbf12a]{width:100%;height:300px}#workout-map .no-map[data-v-6abbf12a]{display:none}}.workout-visibility-levels[data-v-a634386f]{display:flex;align-items:center;font-size:.9em;font-style:italic}.workout-visibility-levels .visibility[data-v-a634386f]{padding-left:5px}.workout-visibility-levels .visibility[data-v-a634386f]:not(:first-child):before{content:"- "}.workout-visibility-levels .visibility .workout-visibility[data-v-a634386f]{padding-right:5px}.workout-visibility-levels .visibility .visibility-label[data-v-a634386f]{color:var(--text-visibilty);text-transform:lowercase}@media screen and (max-width: 500px){.workout-visibility-levels .visibility .visibility-label[data-v-a634386f]{display:none}}.workout-detail[data-v-58f8e3a3]{display:flex}.workout-detail[data-v-58f8e3a3] .card{margin:0 10px;width:100%}.workout-detail[data-v-58f8e3a3] .card .card-title{padding:10px 15px}.workout-detail[data-v-58f8e3a3] .card .card-title .report-submitted{display:flex}.workout-detail[data-v-58f8e3a3] .card .card-title .report-submitted .info-box{padding:10px 20px;margin:5px 0 0 10px}.workout-detail[data-v-58f8e3a3] .card .card-title .report-form .error-message{font-weight:400;margin:10px 0}.workout-detail[data-v-58f8e3a3] .card .card-content{display:flex;flex-direction:column}.workout-detail[data-v-58f8e3a3] .card .card-content .workout-map-data{display:flex;flex-direction:row}.workout-detail[data-v-58f8e3a3] .card .card-content .workout-equipments{display:flex;flex-wrap:wrap;gap:10px;margin-top:5px}.workout-detail[data-v-58f8e3a3] .card .card-content .appeal{margin-top:10px}.workout-detail[data-v-58f8e3a3] .card .card-content .appeal-button{padding:0 10px;font-size:.95em}@media screen and (max-width: 1000px){.workout-detail[data-v-58f8e3a3] .card .card-content .workout-map-data{display:flex;flex-direction:column}}#workout-chart[data-v-a8515886] .card .card-title{text-transform:capitalize}#workout-chart[data-v-a8515886] .card .card-content{display:flex;flex-direction:column}#workout-chart[data-v-a8515886] .card .card-content .chart-radio{width:100%;display:flex;justify-content:center}#workout-chart[data-v-a8515886] .card .card-content .chart-radio label{padding:0 10px}#workout-chart[data-v-a8515886] .card .card-content .chart-info{display:flex;justify-content:space-between;font-size:.85em;font-style:italic}#workout-chart[data-v-a8515886] .card .card-content #chart-legend{display:flex;justify-content:center}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul{display:flex;margin-bottom:0;padding:0}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li{cursor:pointer;display:flex;font-size:.85em;padding:0 5px}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li label{display:flex;font-weight:400}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li label span{border-radius:5%;border-style:solid;border-width:1.5px;height:10px;margin-top:4px;margin-left:2px;width:20px}#workout-chart[data-v-a8515886] .card .card-content .line-chart{min-height:400px}@media screen and (max-width: 700px){#workout-chart[data-v-a8515886] .card .card-content{padding:10px 0}#workout-chart[data-v-a8515886] .card .card-content .chart-info{display:flex;flex-direction:column-reverse}#workout-chart[data-v-a8515886] .card .card-content .chart-info .elevation-start{padding:10px 15px 0}#workout-chart[data-v-a8515886] .card .card-content .chart-info .no-data-cleaning{padding:0 20px}#workout-chart[data-v-a8515886] .card .card-content .line-chart{min-height:338px}}#workout-content[data-v-d2967c38] .card-title .icon-button{cursor:pointer;padding:0;margin-left:5px}#workout-content[data-v-d2967c38] .card-content .workout-content{white-space:pre-wrap}#workout-content[data-v-d2967c38] .card-content .read-more{font-size:.85em;font-weight:700;padding:0 10px}#workout-content[data-v-d2967c38] .card-content .edition-loading{display:flex;align-items:center}#workout-content[data-v-d2967c38] .card-content .notes{font-style:italic}#workout-content[data-v-d2967c38] .card-content .error-message{margin:10px 0}#workout-content[data-v-d2967c38] .card-content .form-buttons{display:flex;margin-top:5px;gap:10px}#workout-segments[data-v-eaec7ac1] .card .card-title{text-transform:capitalize}#workout-segments[data-v-eaec7ac1] .card .card-content{padding-bottom:0;padding-top:0}#workout-segments[data-v-eaec7ac1] .card .card-content a{font-weight:700}#workout-segments[data-v-eaec7ac1] .card .card-content ul{padding:0 10px;list-style:square}.workout-user[data-v-942d8f8a]{display:flex;flex-direction:row;gap:20px;align-items:center}.workout-user .user-img-name[data-v-942d8f8a]{display:flex;align-items:center;gap:10px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture{padding-left:10px;min-width:0}.workout-user .user-img-name[data-v-942d8f8a] .user-picture img{height:48px;width:48px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture .no-picture{font-size:3em}.workout-user .user-img-name .user-name[data-v-942d8f8a]{font-size:1.3em}@media screen and (max-width: 700px){.workout-user[data-v-942d8f8a]{flex-direction:column;align-items:flex-start;gap:0}}@media screen and (max-width: 500px){.workout-user .user-img-name[data-v-942d8f8a] .user-picture{padding-left:10px;min-width:0}.workout-user .user-img-name[data-v-942d8f8a] .user-picture img{height:30px;width:30px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture .no-picture{font-size:2em}.workout-user .user-img-name .user-name[data-v-942d8f8a]{font-size:1em;padding-left:5px}.workout-user[data-v-942d8f8a] .user-stats{flex-wrap:wrap}}#workout[data-v-ea73edb8]{display:flex}#workout .container[data-v-ea73edb8]{width:100%;padding:0}#workout .container .workout-container[data-v-ea73edb8]{width:100%}#workout .container .workout-container .user-header[data-v-ea73edb8]{align-items:center}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-picture img{height:50px;width:50px}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-picture .no-picture{font-size:3em}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-details{flex-direction:row}#workout .container .workout-loading[data-v-ea73edb8]{height:calc(100vh - 130px);width:100%}#workout .container .workout-loading .loading[data-v-ea73edb8]{display:flex;align-items:center;height:100%}.workouts-filters .form .form-all-items[data-v-3341c41a]{display:flex;flex-direction:column;padding-top:0}.workouts-filters .form .form-all-items .form-items-group[data-v-3341c41a]{display:flex;flex-direction:column;padding:0 5px}.workouts-filters .form .form-all-items .form-items-group .form-item[data-v-3341c41a]{display:flex;flex-direction:column}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:34%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:5px}.workouts-filters .form .form-all-items .form-items-group .form-item input[data-v-3341c41a]{height:16px}.workouts-filters .form .form-all-items .form-items-group .form-item select[data-v-3341c41a]{height:38px;padding:0 5px}.workouts-filters .form .form-all-items .form-items-group .form-item-text input.text[data-v-3341c41a]{width:100%}.workouts-filters .form-button[data-v-3341c41a]{display:flex;justify-content:center;flex-wrap:wrap;margin:0 5px}.workouts-filters .form-button button[data-v-3341c41a]{margin-top:10px;width:100%}@media screen and (max-width: 1000px){.workouts-filters .form .form-all-items[data-v-3341c41a]{flex-direction:row;padding-top:5px;justify-content:center}.workouts-filters .form .form-all-items .form-items-group[data-v-3341c41a]{flex-grow:1;padding:0 5px;height:100%}.workouts-filters .form .form-all-items .form-items-group .form-item label[data-v-3341c41a],.workouts-filters .form .form-all-items .form-items-group .form-item span[data-v-3341c41a]{font-size:.9em}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{flex-direction:column;justify-content:normal;padding:0}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:85%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:0}.workouts-filters .form .form-all-items .form-items-group .form-item-text[data-v-3341c41a]{padding-top:0}.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:initial}.workouts-filters .form-button button[data-v-3341c41a]{margin:10px 5px;width:100%}}@media screen and (max-width: 700px){.workouts-filters .form .form-all-items[data-v-3341c41a]{flex-direction:column;padding-top:0}.workouts-filters .form .form-all-items .form-items-group .form-item label[data-v-3341c41a]{font-size:1em}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{flex-direction:row;justify-content:space-around;align-items:center}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:50%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:5px}.workouts-filters .form .form-all-items .form-items-group .form-item-text input.text[data-v-3341c41a]{width:100%}.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:initial}.workouts-filters .form-button button[data-v-3341c41a]{margin:10px 5px}}@media screen and (max-width: 500px){.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:wrap}}.workouts-list[data-v-b3a10603]{display:flex;flex-direction:column;margin-bottom:50px;width:100%}.workouts-list .box[data-v-b3a10603]{padding:10px 15px}@media screen and (max-width: 700px){.workouts-list .box.empty-table[data-v-b3a10603]{display:none}}.workouts-list .box .total[data-v-b3a10603]{display:flex;gap:5px}.workouts-list .box .total .total-label[data-v-b3a10603]{font-weight:700}.workouts-list .box .top-pagination[data-v-b3a10603]{display:none}@media screen and (max-width: 700px){.workouts-list .box .top-pagination[data-v-b3a10603]{display:flex}}@media screen and (max-width: 700px){.workouts-list .box[data-v-b3a10603] .pagination-center ul{margin-top:0}}.workouts-list .box .workouts-table .smaller th[data-v-b3a10603]{font-size:.95em;padding:10px 0;max-width:100px}.workouts-list .box .workouts-table td[data-v-b3a10603]{text-align:right}.workouts-list .box .workouts-table .sport-col[data-v-b3a10603]{padding:0}.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{text-align:left;width:100px;position:relative}.workouts-list .box .workouts-table .workout-title .fa-map-o[data-v-b3a10603]{font-size:.75em;padding-right:5px}.workouts-list .box .workouts-table .workout-title .nav-item[data-v-b3a10603]{white-space:nowrap}.workouts-list .box .workouts-table .workout-title .nav-item .title[data-v-b3a10603]{word-break:break-word;white-space:normal}.workouts-list .box .workouts-table .workout-title .static-map[data-v-b3a10603]{display:none;box-shadow:3px 3px 3px 1px var(--workout-static-map-shadow-color)}.workouts-list .box .workouts-table .workout-title .visibility[data-v-b3a10603]{padding-left:5px}.workouts-list .box .workouts-table .workout-title:hover .static-map[data-v-b3a10603]{display:block}.workouts-list .box .workouts-table .sport-img[data-v-b3a10603]{height:20px;width:20px}.workouts-list .box .workouts-table .workout-date[data-v-b3a10603]{max-width:60px;text-align:left}@media screen and (max-width: 700px){.workouts-list .box .workouts-table td[data-v-b3a10603],.workouts-list .box .workouts-table .workout-date[data-v-b3a10603],.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{text-align:center}.workouts-list .box .workouts-table .sport-col[data-v-b3a10603]{display:flex;justify-content:center;padding:10px}.workouts-list .box .workouts-table .workout-date[data-v-b3a10603]{max-width:initial}.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{max-width:initial;width:45%}.workouts-list .box .workouts-table .workout-title:hover .static-map[data-v-b3a10603]{display:none}}@media screen and (max-width: 500px){.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{width:100%}}.workouts-list .more-workouts[data-v-b3a10603]{display:flex;justify-content:center;padding:10px} +@charset "UTF-8";#footer[data-v-e9aea8ab]{display:flex;bottom:0;position:fixed;width:100%;background:var(--footer-background-color);color:var(--footer-color);font-size:.9em}#footer .footer-items[data-v-e9aea8ab]{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;width:100%}#footer .footer-items .footer-item[data-v-e9aea8ab]{padding:10px;border-top:solid 1px var(--footer-border-color);text-align:center}@media screen and (max-width: 500px){#footer .footer-items[data-v-e9aea8ab]{border-top:solid 1px var(--footer-border-color);font-size:.85em;padding:0 0 2px}#footer .footer-items .footer-item[data-v-e9aea8ab]{border-top:none;padding:1px 5px}#footer .footer-items .bullet[data-v-e9aea8ab]{padding:1px 0}}.user-picture{display:flex;justify-content:center;align-items:center;min-width:30%;line-height:1.2em}.user-picture img{border-radius:50%;height:90px;width:90px}.user-picture .no-picture{color:var(--app-a-color);font-size:5.5em}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}[data-v-19528410]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}#nav[data-v-19528410]{background:var(--nav-bar-background-color);display:flex;padding:15px 10px 10px}#nav a[data-v-19528410]{text-decoration:none}#nav .nav-container[data-v-19528410]{display:flex;margin-left:auto;margin-right:auto;padding:0 15px 15px;max-width:1140px;width:100%;border-bottom:solid 1px var(--nav-border-color)}#nav a.router-link-exact-active[data-v-19528410]{color:var(--nav-bar-link-active);font-weight:700}#nav a.router-link-exact-active.app-name[data-v-19528410]{color:var(--app-color)}#nav .app-name[data-v-19528410]{color:var(--app-color);font-size:1.2em;font-weight:700;margin-right:10px;line-height:1.6em}#nav .fa[data-v-19528410]{font-size:1.2em}#nav .notifications-icons[data-v-19528410]{font-size:1em;padding-top:7px}#nav .nav-icon-open[data-v-19528410],#nav .hamburger-icon[data-v-19528410],#nav .close-icon[data-v-19528410]{display:none}#nav .menu-button[data-v-19528410]{padding:0}#nav .nav-items[data-v-19528410]{display:flex;flex:1;justify-content:space-between;line-height:2em;width:100%}#nav .nav-items .nav-items-close[data-v-19528410]{display:none}#nav .nav-items .nav-items-app-menu[data-v-19528410],#nav .nav-items .nav-items-user-menu[data-v-19528410]{display:flex;margin:0;padding:0}#nav .nav-items .nav-items-group[data-v-19528410]{display:flex;align-items:flex-start}#nav .nav-items .nav-item[data-v-19528410]{padding:0 10px;height:28px}#nav .nav-items .nav-item.dropdown-wrapper[data-v-19528410]{padding:0;margin-left:2px}#nav .nav-items .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{z-index:1000;margin-left:-150px!important;width:190px!important}#nav .nav-items .nav-item.notifications .notifications-label[data-v-19528410]{display:none}#nav .nav-items .nav-link[data-v-19528410]{color:var(--app-a-color);cursor:pointer}#nav .nav-items .nav-profile-img[data-v-19528410]{display:flex;gap:10px;align-items:flex-start;margin-bottom:-10px}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture{min-width:auto}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture img{height:32px;width:32px;object-fit:cover}#nav .nav-items .nav-profile-img[data-v-19528410] .user-picture .no-picture{font-size:1.7em;padding:0}#nav .nav-items .nav-profile-img .user-name[data-v-19528410]{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#nav .nav-items .nav-separator[data-v-19528410]{display:none}#nav .nav-items .nav-button[data-v-19528410]{padding:5px 7.5px;margin-left:2px}#nav .nav-items .nav-button .nav-button-fa[data-v-19528410]{display:block}#nav .nav-items .nav-button .nav-button-text[data-v-19528410]{display:none}#nav .nav-items .nav-button.logout-button[data-v-19528410]{padding:6px 0 0 6px}#nav .nav-items .clear-theme[data-v-19528410]{filter:var(--workout-img-color);height:20px;margin-bottom:-3px}@media screen and (max-width: 1000px){#nav .hamburger-icon[data-v-19528410]{display:block}#nav .nav-icon-open[data-v-19528410]{display:flex;text-align:right;justify-content:flex-end;gap:10px;width:100%}#nav .nav-icon-open.menu-open[data-v-19528410]{display:none}#nav .notifications-icons[data-v-19528410]{padding:6px 0 0 4px}#nav .close-icon[data-v-19528410]{display:block}#nav .close-icon.menu-closed[data-v-19528410],#nav .nav-items[data-v-19528410]{display:none}#nav .nav-items.menu-open[data-v-19528410]{display:flex;flex-direction:column;justify-content:flex-start;z-index:1001;position:absolute;top:0;right:0;bottom:0;left:0;background:var(--nav-bar-background-color)}#nav .nav-items.menu-open .nav-items-close[data-v-19528410],#nav .nav-items.menu-open .nav-items-app-menu[data-v-19528410],#nav .nav-items.menu-open .nav-items-user-menu[data-v-19528410]{display:flex;flex-direction:column;background:var(--nav-bar-background-color)}#nav .nav-items.menu-open .nav-items-close[data-v-19528410]{align-items:center;display:flex;flex-direction:row;justify-content:space-between}#nav .nav-items.menu-open .nav-items-close .app-name[data-v-19528410]{padding:15px 25px}#nav .nav-items.menu-open .nav-items-group[data-v-19528410]{display:flex;flex-direction:column}#nav .nav-items.menu-open .nav-items-group .nav-button[data-v-19528410]{padding:10px 10px 10px 24px;color:var(--app-a-color);text-align:left}#nav .nav-items.menu-open .nav-items-group .nav-button .nav-button-fa[data-v-19528410]{display:none;width:36px}#nav .nav-items.menu-open .nav-items-group .nav-button .nav-button-text[data-v-19528410]{display:block}#nav .nav-items.menu-open .nav-item[data-v-19528410]{padding:7px 25px}#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410]{padding-left:20px}#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{width:auto!important;height:200px;overflow-y:scroll}}@media screen and (max-width: 1000px) and (orientation: portrait){#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{margin-left:initial!important}}@media screen and (max-width: 1000px) and (orientation: landscape){#nav .nav-items.menu-open .nav-item.dropdown-wrapper[data-v-19528410] .dropdown-list{margin-top:-35px;margin-left:35px!important}}@media screen and (max-width: 1000px){#nav .nav-items.menu-open .nav-item.notifications[data-v-19528410]{margin:10px 0 0}#nav .nav-items.menu-open .nav-item.notifications .notifications-label[data-v-19528410]{display:block}#nav .nav-items.menu-open .nav-separator[data-v-19528410]{display:flex;border-top:solid 1px var(--nav-border-color);margin:0 20px;padding:0 0 10px;height:0;width:88%}#nav .theme-button[data-v-19528410]{margin-left:15px}}#nav .fa-language[data-v-19528410]{cursor:pointer}#no-config[data-v-73140811]{display:flex;align-items:center;justify-content:space-around;padding:10px;height:100%}#no-config .error-page[data-v-73140811]{display:flex;flex-direction:column;align-items:center;max-width:100%}#no-config .error-page .error-img[data-v-73140811]{width:150px}#no-config .error-page .error-img svg[data-v-73140811]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter)}#no-config .error-page .error-message[data-v-73140811]{font-size:1.2em;text-align:center}@media screen and (max-width: 1000px){#no-config .error-page .error-message[data-v-73140811]{font-size:1em}}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"×";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark]{color-scheme:dark}body{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body::-webkit-scrollbar{width:5px;height:5px}body::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body:hover::-webkit-scrollbar-track{background:transparent}#app{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a:hover,a:focus{text-decoration-color:var(--app-a-color)}img{max-width:100%}input,textarea,select{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input:disabled,textarea:disabled,select:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors :invalid{outline:2px solid var(--input-error-color)}label{font-weight:700}button{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent:hover,button.transparent:disabled{background:transparent}button.transparent:hover{color:var(--app-color)}button.transparent:enabled:active{box-shadow:none}button.transparent:disabled,button.transparent.confirm:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button{cursor:pointer;padding:0}button.small{font-size:.9em;padding:3px 7px}button:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button:disabled,button.confirm:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items{display:flex;flex-direction:column}.form-box .form-items input{margin:10px;padding:5px}.form-info{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper{text-transform:uppercase}.view{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy{color:var(--workout-trophy-color)}.mountains{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title{padding-left:5px;text-transform:capitalize}.section-title:first-letter{text-transform:uppercase}.no-map{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl{display:flex;flex-direction:column;width:100%}.description-list dl dt{font-weight:700}.description-list dl dd{margin-bottom:10px}.center-card{margin:0 auto;width:700px}.center-card.with-margin{margin-top:100px}@media screen and (max-width: 1000px){.center-card{width:100%;margin:0 auto 50px}}.text-center{text-align:center}.text-left{text-align:left}.deleted-object{font-style:italic}.responsive-table{margin-bottom:15px}.responsive-table table{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody{font-size:.95em}.responsive-table table tbody td{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td{border:none}.responsive-table table .cell-heading{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading{display:flex}}@media screen and (max-width: 500px){.responsive-table table td{width:100%}}.profile-buttons{display:flex;align-items:baseline;gap:10px}.user-role,.follows-you,.blocked{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img{height:35px;width:35px;margin:0 auto}.hidden-content{display:none}.items-list-view .items-list-container{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container{flex-direction:column}}.items-list-view .items-list-container .filters-container,.items-list-view .items-list-container .list-container{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden{display:none}}.items-list-view .items-list-container .display-filters{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container{width:100%}}.visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects{flex-wrap:wrap}.table-selects label{margin-bottom:10px}.table-selects label select{margin-left:0}}.suspended{font-style:italic;font-weight:700}.action-loading{display:flex;align-items:center}.markdown-hints{font-size:.8em;font-style:normal;margin:5px 0 10px}.app-container{height:calc(100vh - 130px)}.app-container.hide-scroll{overflow:hidden}.app-container .app-loading{display:flex;align-items:center;height:100%}.scroll{display:flex;justify-content:flex-end;position:fixed;bottom:42px;right:-15px;padding:0 25px}.scroll .scroll-button{background-color:var(--scroll-button-bg-color);border-radius:4px;box-shadow:1px 1px 3px var(--app-shadow-color);display:none;padding:0 10px}.scroll .scroll-button.display-button{display:block}.description-list[data-v-3aa846b9]{margin-bottom:10px}.description-list dl[data-v-3aa846b9]{margin-bottom:0}.error-message[data-v-3aa846b9],.appeal-info[data-v-3aa846b9]{margin:10px 0}.appeal-submitted[data-v-3aa846b9]{display:flex;flex-direction:column;gap:10px}.appeal-submitted .appeal-success[data-v-3aa846b9]{margin:10px 0 0}.appeal-approved[data-v-3aa846b9]{background:var(--success-background-color);color:var(--success-color)}.appeal-approved button[data-v-3aa846b9]{color:var(--success-color)}.appeal-rejected[data-v-3aa846b9]{background:var(--error-background-color);color:var(--error-color)}.appeal-rejected button[data-v-3aa846b9]{color:var(--error-color)}.report-buttons[data-v-3aa846b9]{display:flex;gap:10px}.hide-button[data-v-3aa846b9]{font-style:italic;padding:0 10px}.notification-object[data-v-1ff8965e]{font-weight:700;text-transform:capitalize}.appeal-action .appeal-button[data-v-1ff8965e]{padding:0 10px;font-size:.9em}.add-comment[data-v-96400748]{margin:20px 0}.add-comment .comment[data-v-96400748]{padding:10px 0 0}.add-comment .form-select-buttons[data-v-96400748]{display:flex;gap:10px;flex-wrap:wrap}.add-comment .form-select-buttons .spacer[data-v-96400748]{flex-grow:3}.add-comment .text-visibility[data-v-96400748]{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:5px}.add-comment .text-visibility select[data-v-96400748]{padding:5px 10px}.add-comment .add-comment-label[data-v-96400748]{font-style:italic;position:relative}.add-comment .add-comment-label .users-suggestions[data-v-96400748]{list-style-type:none;background-color:var(--user-suggestion-background);margin-top:0;padding:0;border:1px solid var(--input-border-color);border-radius:4px;box-shadow:2px 2px 5px #00000040;max-width:200px;top:30px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]{display:flex;gap:10px;padding:10px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture{min-width:min-content;align-items:flex-start}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture img{height:25px;width:25px}.add-comment .add-comment-label .users-suggestions li[data-v-96400748] .user-picture .no-picture{font-size:1.5em}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:hover,.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:focus{background-color:var(--dropdown-hover-color);font-weight:700;cursor:pointer}.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:hover .user-picture,.add-comment .add-comment-label .users-suggestions li[data-v-96400748]:focus .user-picture{background-color:var(--dropdown-hover-color)}.add-comment .comment-buttons[data-v-96400748]{display:flex;gap:10px}.add-comment .loader[data-v-96400748]{border-width:5px;height:15px;margin:0 10px;width:15px}.report-form[data-v-40798811]{margin:10px 0}.report-form .report-buttons[data-v-40798811]{display:flex;gap:10px}.report-form .loader[data-v-40798811]{border-width:5px;height:15px;margin:0 10px;width:15px}.report-form .error-message[data-v-40798811]{margin:10px 0}.user-name[data-v-b000441f]{padding-left:5px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}@media screen and (max-width: 700px){.user-name[data-v-b000441f]{max-width:fit-content}}@media screen and (max-width: 500px){.user-name[data-v-b000441f]{max-width:170px}}.workout-comment[data-v-9a13ce5d]{display:flex;background-color:var(--comment-background);padding:10px 0}.workout-comment[data-v-9a13ce5d] .user-picture{min-width:min-content;align-items:flex-start;background-color:var(--comment-background)}.workout-comment[data-v-9a13ce5d] .user-picture img{height:25px;width:25px}.workout-comment[data-v-9a13ce5d] .user-picture .no-picture{font-size:1.5em}.workout-comment .comment-detail[data-v-9a13ce5d]{display:flex;flex-direction:column;width:100%}.workout-comment .comment-detail .comment-info[data-v-9a13ce5d],.workout-comment .comment-detail .comment-actions[data-v-9a13ce5d]{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.workout-comment .comment-detail .comment-likes[data-v-9a13ce5d]{display:flex;gap:5px;line-height:15px}.workout-comment .comment-detail .comment-info .user-name[data-v-9a13ce5d]{font-weight:700;padding-left:10px}.workout-comment .comment-detail .comment-info .spacer[data-v-9a13ce5d]{flex-grow:3}.workout-comment .comment-detail .comment-info .comment-date[data-v-9a13ce5d],.workout-comment .comment-detail .comment-info .comment-edited[data-v-9a13ce5d]{font-size:.85em;font-style:italic;white-space:nowrap}.workout-comment .comment-detail .comment-info .comment-date[data-v-9a13ce5d]:hover{text-decoration:underline}.workout-comment .comment-detail .comment-info[data-v-9a13ce5d] .fa-users{font-size:.8em}.workout-comment .comment-detail .appeal[data-v-9a13ce5d]{margin-left:10px}.workout-comment .comment-detail .comment-actions[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes[data-v-9a13ce5d]{justify-content:flex-end}.workout-comment .comment-detail .comment-actions .icon-button[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .icon-button[data-v-9a13ce5d]{line-height:15px}.workout-comment .comment-detail .comment-actions .fa-edit[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-edit[data-v-9a13ce5d]{margin-bottom:-3px}.workout-comment .comment-detail .comment-actions .fa-heart[data-v-9a13ce5d],.workout-comment .comment-detail .comment-actions .fa-heart-o[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart-o[data-v-9a13ce5d]{font-size:.9em}.workout-comment .comment-detail .comment-actions .fa-heart.liked[data-v-9a13ce5d],.workout-comment .comment-detail .comment-likes .fa-heart.liked[data-v-9a13ce5d]{color:var(--like-color)}.workout-comment .comment-detail .report-submitted[data-v-9a13ce5d]{display:flex}.workout-comment .comment-detail .report-submitted .info-box[data-v-9a13ce5d]{padding:10px 20px}.workout-comment .comment-detail .comment-text[data-v-9a13ce5d]{padding:10px;white-space:pre-wrap}.workout-comment .comment-detail .comment-text.highlight[data-v-9a13ce5d]{border-radius:5px;background-image:var(--comment-background-highlight)}.workout-comment .comment-detail[data-v-9a13ce5d] .suspended{margin-top:10px}.workout-comment .comment-detail .likes .likes-count[data-v-9a13ce5d]{padding-left:3px;font-size:.8em}.alert-message[data-v-fc0d2d13]{display:flex;flex-wrap:wrap;gap:3px;background:var(--alert-background-color);color:var(--alert-color);border-radius:4px;margin:10px;padding:10px}.card{border:solid 1px var(--card-border-color);border-radius:4px;margin:10px}.card .card-title{font-weight:700;border-bottom:solid 1px var(--card-border-color);padding:10px 20px}.card .card-content{padding:10px 20px}.custom-textarea[data-v-8d139e95]{display:flex;flex-direction:column}.custom-textarea .remaining-chars[data-v-8d139e95]{font-size:.8em;font-style:italic}.strong[data-v-3aadc3cb]{font-weight:700}.dropdown-wrapper .dropdown-selector[data-v-f0445cd3]{margin:0;padding:5px}.dropdown-wrapper .dropdown-list[data-v-f0445cd3]{list-style-type:none;background-color:var(--dropdown-background-color);padding:0!important;margin-top:5px;margin-left:-20px!important;position:absolute;text-align:left;border:solid 1px var(--dropdown-border-color);box-shadow:2px 2px 5px var(--app-shadow-color);width:auto!important}.dropdown-wrapper .dropdown-list .dropdown-item[data-v-f0445cd3]{padding:3px 12px}.dropdown-wrapper .dropdown-list .dropdown-item.selected[data-v-f0445cd3]{font-weight:700}.dropdown-wrapper .dropdown-list .dropdown-item.selected[data-v-f0445cd3]:after{content:" ✔"}.dropdown-wrapper .dropdown-list .dropdown-item[data-v-f0445cd3]:hover,.dropdown-wrapper .dropdown-list .dropdown-item.focused[data-v-f0445cd3]{background-color:var(--dropdown-hover-color)}.error-message[data-v-5d2995e8]{background:var(--error-background-color);color:var(--error-color);border-radius:4px;margin:10px;padding:10px}.loader[data-v-8b613881]{animation:spin-8b613881 2s linear infinite;border:14px solid var(--app-loading-color);border-top:14px solid var(--app-loading-top-color);border-radius:50%;height:60px;margin-left:41%;width:60px}@keyframes spin-8b613881{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#modal[data-v-9235de5f]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:var(--modal-background-color);padding:10px;z-index:1240;display:flex;justify-content:center;align-items:center}#modal .custom-modal[data-v-9235de5f]{background-color:var(--app-background-color);border-radius:4px;max-width:500px;z-index:1250}@media screen and (max-width: 1000px){#modal .custom-modal[data-v-9235de5f]{width:100%}}#modal .custom-modal[data-v-9235de5f] .card{border:0;margin:0}#modal .custom-modal[data-v-9235de5f] .card .card-content{display:flex;flex-direction:column}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-message{padding:10px}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-message span{font-weight:700}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-buttons{display:flex;justify-content:flex-end}#modal .custom-modal[data-v-9235de5f] .card .card-content .modal-buttons button{margin:5px}#modal .custom-modal[data-v-9235de5f] .card .card-content .info-box{margin:0 10px 10px}#modal .custom-modal .loader[data-v-9235de5f]{border-width:5px;height:20px;margin-left:45%;width:20px}#admin-app .admin-help[data-v-3a7598c9]{display:flex}#admin-app .admin-help span[data-v-3a7598c9]{font-style:italic}#admin-app .admin-help .fa-info-circle[data-v-3a7598c9]{margin-right:10px}#admin-app .no-contact[data-v-3a7598c9]{font-style:italic}#admin-app textarea[data-v-3a7598c9]{margin-bottom:10px}#admin-app .textarea-description[data-v-3a7598c9]{font-style:italic}#admin-app .textarea-content[data-v-3a7598c9]{margin-bottom:10px;padding:10px}.no-contact[data-v-3a7598c9]{font-style:italic}#admin-equipment-types table td[data-v-a3acbd9a]{font-size:1.1em}#admin-equipment-types .equipment-type-img[data-v-a3acbd9a]{height:35px;width:35px;margin:0 auto}#admin-equipment-types .has-equipments[data-v-a3acbd9a]{font-size:.95em;font-style:italic;padding:0 10px}#admin-equipment-types .equipment-type-action[data-v-a3acbd9a]{padding-left:40px}#admin-equipment-types .action-button[data-v-a3acbd9a]{display:block}#admin-equipment-types .top-button[data-v-a3acbd9a]{display:none}@media screen and (max-width: 700px){#admin-equipment-types .equipment-type-action[data-v-a3acbd9a]{padding-left:10px}#admin-equipment-types .has-equipments[data-v-a3acbd9a]{padding-top:5px}#admin-equipment-types .action-button[data-v-a3acbd9a]{display:flex;align-items:center;flex-wrap:wrap;flex-direction:column}#admin-equipment-types .top-button[data-v-a3acbd9a]{display:block;margin-bottom:20px}}.stat-card{flex:1;max-width:25%}@media screen and (max-width: 700px){.stat-card{flex:1 0 50%;max-width:49%}}.stat-card .stat-content{display:flex;flex-direction:row;justify-content:space-between;padding:10px 20px}.stat-card .stat-content .stat-icon{width:30%;text-align:center;vertical-align:center}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-icon{width:50%;text-align:left}}.stat-card .stat-content .stat-icon .fa{font-size:3em}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-icon .fa{font-size:2em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-icon .fa{font-size:1.5em}}.stat-card .stat-content .stat-details{width:70%;text-align:right}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details{width:100%}}.stat-card .stat-content .stat-details .stat-huge{font-size:1.7em;font-weight:700}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details .stat-huge{font-size:1.3em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-details .stat-huge{font-size:1em}}.stat-card .stat-content .stat-details .stat{font-size:1em}@media screen and (max-width: 1000px){.stat-card .stat-content .stat-details .stat{font-size:.9em}}@media screen and (max-width: 500px){.stat-card .stat-content .stat-details .stat{font-size:.8em}}#user-stats{display:flex;flex-wrap:wrap}#admin-menu[data-v-18089d26]{display:flex}#admin-menu.center-card[data-v-18089d26]{width:100%}#admin-menu[data-v-18089d26] .card{flex-grow:1}@media screen and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content{padding:10px}}@media screen and (max-width: 500px) and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content .stat-card .stat-content{padding:10px}}@media screen and (max-width: 500px) and (max-width: 500px) and (max-width: 500px){#admin-menu[data-v-18089d26] .card .card-content .stat-card .stat-content .stat-icon .fa{font-size:1.2em}}#admin-menu[data-v-18089d26] .card .admin-menu{padding:0 10px}#admin-menu[data-v-18089d26] .card .admin-menu dd{margin-bottom:30px}#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details{display:flex;flex-direction:column}#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details .email-sending-status,#admin-menu[data-v-18089d26] .card .admin-menu .application-config-details .registration-status{font-weight:700}.appeal[data-v-88ea8757]{margin:10px;color:var(--app-color)}.appeal .appeal-date[data-v-88ea8757],.appeal .appeal-text[data-v-88ea8757]{padding-left:5px}.appeal .appeal-date[data-v-88ea8757]{color:var(--app-color-light);font-size:.9em}.appeal .appeal-text[data-v-88ea8757]{font-style:normal}.appeal .appeal-actions[data-v-88ea8757]{display:flex;flex-direction:column;gap:5px;margin:5px 0 0 5px}.appeal .appeal-actions .appeal-actions-buttons[data-v-88ea8757]{display:flex;gap:5px}.appeal .automatically-approved[data-v-88ea8757]{margin-top:10px}.appeal .description-list dl[data-v-88ea8757]{margin-bottom:-10px}.appeal .error-message[data-v-88ea8757]{margin:10px 0}#error[data-v-48ec856d]{display:flex;align-items:center;justify-content:center;height:75vh;text-align:center}#error .error-content[data-v-48ec856d]{margin-top:50px}#error .error-content h1[data-v-48ec856d]{font-size:6em;text-shadow:4px 4px 0 var(--app-shadow-color)}#error .error-content p[data-v-48ec856d]{font-size:1.2em;margin:30px 0}.user-actions[data-v-f72b5b8c]{display:flex;justify-content:space-between;align-items:flex-end;min-height:35px;gap:5px}.user-actions .pending[data-v-f72b5b8c]{border-radius:4px;padding:5px 10px;background-color:var(--text-background-color)}.user-actions .actions-buttons[data-v-f72b5b8c],.user-actions .blocked-user[data-v-f72b5b8c]{display:flex;gap:5px;align-items:center}.user-actions .actions-buttons button[data-v-f72b5b8c],.user-actions .blocked-user button[data-v-f72b5b8c]{text-transform:capitalize;white-space:nowrap}.user-actions .follows-you[data-v-f72b5b8c]{white-space:nowrap}.user-stats[data-v-9af0bb02],.user-stats .user-stat[data-v-9af0bb02]{display:flex}.user-stats .user-stat .stat-number[data-v-9af0bb02],.user-stats .user-stat .stat-label[data-v-9af0bb02]{padding:0 5px}.user-stats .user-stat[data-v-9af0bb02] .distance,.user-stats .user-stat .stat-number[data-v-9af0bb02]{font-weight:700}.user-stats .router-link-exact-active[data-v-9af0bb02]{text-decoration:underline}.box[data-v-45957e2b]{padding:10px 12px}.box .user-card[data-v-45957e2b]{display:flex;min-height:140px}.box .user-card .user-header[data-v-45957e2b]{display:flex;flex-direction:column;align-items:center;gap:10px;margin:10px 0;width:50%}.box .user-card .user-header[data-v-45957e2b] .user-picture img{height:70px;width:70px}.box .user-card .user-header[data-v-45957e2b] .user-picture .no-picture{font-size:4.4em}.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:170px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (max-width: 700px){.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:fit-content}}@media screen and (max-width: 500px){.box .user-card .user-header .user-name[data-v-45957e2b]{max-width:170px}}.box .user-card .stats-role[data-v-45957e2b]{display:flex;flex-direction:column;justify-content:space-between;width:50%}.box .user-card .stats-role .role[data-v-45957e2b]{display:flex;justify-content:flex-end;margin-bottom:5px}.box .user-card .stats-role[data-v-45957e2b] .user-stats{flex-direction:column;align-items:flex-end;margin:10px 0}.box .user-card .stats-role[data-v-45957e2b] .user-stats .distance{padding-right:1px}.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-number{padding-right:0}.box .user-card .stats-role[data-v-45957e2b] .user-stats .distance,.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-number,.box .user-card .stats-role[data-v-45957e2b] .user-stats .stat-label{font-size:.95em}.static-map{display:flex;position:relative}.static-map.display-hover{position:absolute;margin-left:20px;margin-top:3px;width:400px;height:225px;z-index:100;filter:var(--map-display-hover-filter)}.static-map.display-hover .map-attribution-text{color:var(--map-display-hover-attribution-text);background-color:var(--map-attribution-bg-color)}.static-map .bg-map-image{background-size:cover;background-position:center;opacity:.6;height:200px;width:100%;filter:var(--map-filter)}.static-map .map-attribution{top:0;right:0;font-size:11px;position:absolute}.static-map .map-attribution-text{color:var(--map-attribution-text);background-color:var(--map-attribution-bg-color)}.mountains[data-v-9f1da2f4]{padding-right:5px}.timeline-workout[data-v-9f1da2f4]{margin-bottom:20px}.timeline-workout .box[data-v-9f1da2f4]{flex-direction:column;padding:0}.timeline-workout .box .workout-user-date[data-v-9f1da2f4]{display:flex;justify-content:space-between;align-items:flex-start;padding:5px 10px}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4]{display:flex}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture{min-width:min-content}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture img{height:25px;width:25px}.timeline-workout .box .workout-user-date .workout-user[data-v-9f1da2f4] .user-picture .no-picture{font-size:1.5em}.timeline-workout .box .workout-user-date .workout-user .workout-user-name[data-v-9f1da2f4]{white-space:nowrap;margin-left:3px;padding:0 5px;text-decoration:none}.timeline-workout .box .workout-user-date .workout-date-visibility[data-v-9f1da2f4]{display:flex;gap:5px;align-items:flex-end}.timeline-workout .box .workout-user-date .workout-date-visibility .workout-date[data-v-9f1da2f4]{font-size:.85em;font-style:italic;white-space:nowrap}.timeline-workout .box .workout-user-date .workout-title[data-v-9f1da2f4]{display:block;text-align:center;padding:0 10px}@media screen and (max-width: 500px){.timeline-workout .box .workout-user-date .workout-title[data-v-9f1da2f4]{display:none}}.timeline-workout .box .workout-map[data-v-9f1da2f4]{height:150px}.timeline-workout .box .workout-map .no-map[data-v-9f1da2f4]{line-height:150px;filter:var(--no-map-filter)}.timeline-workout .box .workout-map[data-v-9f1da2f4] .static-map{background-color:var(--workout-static-map-bg-color)}.timeline-workout .box .workout-map[data-v-9f1da2f4] .static-map .bg-map-image{height:150px}.timeline-workout .box .workout-data[data-v-9f1da2f4]{display:flex;padding:5px;font-size:.9em}.timeline-workout .box .workout-data .sport-img[data-v-9f1da2f4]{height:25px;width:25px}.timeline-workout .box .workout-data .img[data-v-9f1da2f4],.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{display:flex;align-items:center}.timeline-workout .box .workout-data .img .data-values[data-v-9f1da2f4],.timeline-workout .box .workout-data .data .data-values[data-v-9f1da2f4]{display:flex;flex-wrap:wrap}.timeline-workout .box .workout-data .img[data-v-9f1da2f4]{justify-content:flex-end;width:10%}.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{justify-content:center;width:22%}@media screen and (max-width: 500px){.timeline-workout .box .workout-data .img[data-v-9f1da2f4]{justify-content:center;width:20%}.timeline-workout .box .workout-data .data[data-v-9f1da2f4]{justify-content:center;width:40%}.timeline-workout .box .workout-data .altitude[data-v-9f1da2f4],.timeline-workout .box .workout-data .elevation[data-v-9f1da2f4]{display:none}}.timeline-workout .box .workout-data.without-elevation .img[data-v-9f1da2f4],.timeline-workout .box .workout-data.without-elevation .data[data-v-9f1da2f4]{justify-content:center;width:33%}.timeline-workout .box .workout-map[data-v-9f1da2f4],.timeline-workout .box .workout-data[data-v-9f1da2f4]{cursor:pointer}.timeline-workout .box .no-cursor[data-v-9f1da2f4]{cursor:default}.timeline-workout .box .fa[data-v-9f1da2f4]{padding-right:10px}.report-loading[data-v-e9598d83]{margin-top:200px;width:100%}#admin-report[data-v-e9598d83]{width:100%}#admin-report .report-comment-user[data-v-e9598d83],#admin-report .resolver-user[data-v-e9598d83]{display:flex;gap:5px}#admin-report .report-comment-user[data-v-e9598d83] .user-picture,#admin-report .resolver-user[data-v-e9598d83] .user-picture{min-width:min-content;align-items:flex-start}#admin-report .report-comment-user[data-v-e9598d83] .user-picture img,#admin-report .resolver-user[data-v-e9598d83] .user-picture img{height:25px;width:25px}#admin-report .report-comment-user[data-v-e9598d83] .user-picture .no-picture,#admin-report .resolver-user[data-v-e9598d83] .user-picture .no-picture{font-size:1.5em}#admin-report .report-detail-card[data-v-e9598d83],#admin-report .report-action-and-comments[data-v-e9598d83]{margin:10px 0 20px}@media screen and (max-width: 700px){#admin-report .report-detail-card[data-v-e9598d83] .card-content,#admin-report .report-action-and-comments[data-v-e9598d83] .card-content{padding:10px}}#admin-report .report-data[data-v-e9598d83]{display:flex;flex-wrap:wrap}#admin-report .report-data .report-detail[data-v-e9598d83]{display:flex;flex-direction:column;flex-grow:3}#admin-report .report-data .report-info[data-v-e9598d83]{display:flex;flex-direction:column;flex-grow:1;padding:0 10px}#admin-report .report-data .report-info dt[data-v-e9598d83]{font-weight:700;text-transform:lowercase}@media screen and (max-width: 700px){#admin-report .report-data[data-v-e9598d83]{flex-direction:column-reverse}#admin-report .report-data .report-info[data-v-e9598d83]{padding:0!important}}#admin-report .report-status[data-v-e9598d83]{text-transform:lowercase}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content{display:flex;flex-direction:column;gap:12px}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment{display:flex;flex-direction:column}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-info{display:flex;justify-content:space-between}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-info .report-comment-date{font-size:.85em;font-style:italic;white-space:nowrap}#admin-report .report-action-and-comments[data-v-e9598d83] .card-content .report-comment .report-comment-comment{padding-top:10px}#admin-report .report-action-and-comments .report-action[data-v-e9598d83]{color:var(--app-color-light);font-style:italic;font-size:.9em;margin-left:10px}#admin-report .report-action-and-comments .report-action .report-action-note[data-v-e9598d83]{margin:0 0 0 10px;font-size:.95em}#admin-report .report-action-and-comments .report-action .report-action-note span[data-v-e9598d83]{font-weight:700}#admin-report .report-action-and-comments .report-action .appeal-button[data-v-e9598d83]{margin-left:3px}#admin-report .report-action-and-comments .no-notes[data-v-e9598d83]{font-style:italic}#admin-report .comment-textarea[data-v-e9598d83]{padding:5px 0 10px}#admin-report .comment-textarea .comment-buttons[data-v-e9598d83]{display:flex;gap:10px;padding-top:10px}#admin-report .actions-buttons[data-v-e9598d83]{display:flex;flex-wrap:wrap;gap:10px}@media screen and (max-width: 700px){#admin-report .actions-buttons[data-v-e9598d83]{justify-content:center}}.pagination-center[data-v-d7c0bddb]{display:flex;justify-content:center;font-size:.9em}.pagination-center a[data-v-d7c0bddb]{text-decoration:none}.pagination-center .pagination[data-v-d7c0bddb]{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.pagination-center .pagination .page-prev[data-v-d7c0bddb],.pagination-center .pagination .page-next[data-v-d7c0bddb],.pagination-center .pagination .page[data-v-d7c0bddb]{border:solid 1px var(--card-border-color);padding:10px 15px}.pagination-center .pagination .page-prev.active[data-v-d7c0bddb],.pagination-center .pagination .page-next.active[data-v-d7c0bddb],.pagination-center .pagination .page.active[data-v-d7c0bddb]{font-weight:700}.pagination-center .pagination .page-prev.disabled[data-v-d7c0bddb],.pagination-center .pagination .page-next.disabled[data-v-d7c0bddb],.pagination-center .pagination .page.disabled[data-v-d7c0bddb]{cursor:default}.pagination-center .pagination .page-prev.disabled a[data-v-d7c0bddb],.pagination-center .pagination .page-next.disabled a[data-v-d7c0bddb],.pagination-center .pagination .page.disabled a[data-v-d7c0bddb]{cursor:default;pointer-events:none;color:var(--disabled-color)}.pagination-center .pagination .page[data-v-d7c0bddb]{margin-left:-1px}.pagination-center .pagination .page-prev[data-v-d7c0bddb]{border-top-left-radius:5px;border-bottom-left-radius:5px}.pagination-center .pagination .page-next[data-v-d7c0bddb]{border-top-right-radius:5px;border-bottom-right-radius:5px;margin-left:-1px}.pagination-center .pagination .fa[data-v-d7c0bddb]{font-size:.8em;padding:0 5px}@media screen and (max-width: 1000px){.pagination-center .pagination .page[data-v-d7c0bddb]{display:none}}#admin-reports .top-button[data-v-88c1fd48]{display:none}#admin-reports .no-reports[data-v-88c1fd48]{display:flex;justify-content:center;padding:20px 0;font-weight:700}#admin-reports table td[data-v-88c1fd48]{font-size:1.1em}#admin-reports .left-text[data-v-88c1fd48]{text-align:left}#admin-reports .link-with-image[data-v-88c1fd48]{display:flex;align-items:center}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture{min-width:40px}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture img{height:30px;width:30px}#admin-reports .link-with-image[data-v-88c1fd48] .user-picture .no-picture{font-size:2em}@media screen and (max-width: 700px){#admin-reports .top-button[data-v-88c1fd48]{display:block;margin-bottom:20px}#admin-reports .pagination-center[data-v-88c1fd48]{margin-top:-30px}#admin-reports .link-with-image[data-v-88c1fd48]{justify-content:center}}#admin-sports table td[data-v-f6f9d907]{font-size:1.1em}#admin-sports .sport-img[data-v-f6f9d907]{height:35px;width:35px;margin:0 auto}#admin-sports .has-workouts[data-v-f6f9d907]{font-size:.95em;font-style:italic;padding:0 10px}#admin-sports .sport-action[data-v-f6f9d907]{padding-left:40px}#admin-sports .action-button[data-v-f6f9d907]{display:block}#admin-sports .top-button[data-v-f6f9d907]{display:none}@media screen and (max-width: 700px){#admin-sports .sport-action[data-v-f6f9d907]{padding-left:10px}#admin-sports .has-workouts[data-v-f6f9d907]{padding-top:5px}#admin-sports .action-button[data-v-f6f9d907]{display:flex;align-items:center;flex-wrap:wrap;flex-direction:column}#admin-sports .top-button[data-v-f6f9d907]{display:block;margin-bottom:20px}}.users-filters[data-v-359360da]{display:flex;align-items:center;padding:10px 0;gap:10px}.users-filters .fa[data-v-359360da]{font-size:1.5em}.users-filters .fa-disabled[data-v-359360da]{color:var(--disabled-color)}.users-filters .search-username[data-v-359360da]{display:flex;align-items:center;justify-content:space-between;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;color:var(--info-color);width:45%}.users-filters .search-username input[data-v-359360da]{border:none;height:12px;width:90%}.users-filters .search-username input[data-v-359360da]:focus{outline:none}.users-filters .search-username .fa-times[data-v-359360da]{padding-right:10px}@media screen and (max-width: 700px){.users-filters .search-username[data-v-359360da]{width:400px}}@media screen and (max-width: 500px){.users-filters .search-username[data-v-359360da]{width:90%}}#admin-users .top-button[data-v-4934ef0c]{display:none}#admin-users .no-users[data-v-4934ef0c]{display:flex;justify-content:center;padding:20px 0;font-weight:700}#admin-users table td[data-v-4934ef0c]{font-size:1.1em}#admin-users .left-text[data-v-4934ef0c]{text-align:left}#admin-users .roles[data-v-4934ef0c]{width:120px;display:flex;justify-content:center;margin:auto}#admin-users .roles .roles-buttons[data-v-4934ef0c]{display:flex;flex-direction:column;align-items:center;gap:5px}#admin-users[data-v-4934ef0c] .user-picture img{height:30px;width:30px}#admin-users[data-v-4934ef0c] .user-picture .no-picture{font-size:2em}@media screen and (max-width: 700px){#admin-users .roles[data-v-4934ef0c]{width:45%}#admin-users .top-button[data-v-4934ef0c]{display:block;margin-bottom:20px}#admin-users .pagination-center[data-v-4934ef0c]{margin-top:-30px}}@media screen and (max-width: 500px){#admin-users .roles[data-v-4934ef0c]{width:100%}}.user-header[data-v-12bd7069]{display:flex;align-items:stretch;position:relative}.user-header .follows-you[data-v-12bd7069]{position:absolute;margin-top:-10px;margin-left:-10px}.user-header .user-role[data-v-12bd7069]{position:absolute;bottom:0;margin-bottom:-10px;margin-left:-10px}.user-header[data-v-12bd7069] .user-picture{min-width:20%}.user-header .user-details[data-v-12bd7069]{flex-grow:1;padding:10px;display:flex;flex-direction:column;align-items:center}.user-header .user-details .user-name[data-v-12bd7069]{font-size:2em;height:60%}.user-header .user-details[data-v-12bd7069] .user-stats{flex-wrap:nowrap;gap:40px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat{flex-direction:column;align-items:center;padding-top:10px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1.5em}@media screen and (max-width: 700px){.user-header .user-details .user-name[data-v-12bd7069]{font-size:1.5em}.user-header .user-details[data-v-12bd7069] .user-stats{margin-top:5px;align-content:space-between;flex-wrap:wrap;gap:10px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat{padding:0;flex-direction:row}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1.2em}}@media screen and (max-width: 500px){.user-header[data-v-12bd7069] .user-picture img{height:50px;width:50px}.user-header[data-v-12bd7069] .user-picture .no-picture{font-size:3em}.user-header .user-details .user-name[data-v-12bd7069]{font-size:1.5em}.user-header .user-details[data-v-12bd7069] .user-stats{flex-direction:column;gap:5px}.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .distance,.user-header .user-details[data-v-12bd7069] .user-stats .user-stat .stat-number{font-size:1em}}.profile-tabs-links{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-bottom:10px}.profile-tabs-links a{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;color:var(--app-color);display:block;font-size:.9em;padding:2px 6px;text-align:center;text-decoration:none}.profile-tabs-links a.selected{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}@media screen and (max-width: 700px){.profile-tabs-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.profile-tabs-links .profile-tab{padding-bottom:5px}}#user-profile[data-v-4b475df4]{margin:auto;width:700px}@media screen and (max-width: 1000px){#user-profile[data-v-4b475df4]{width:100%;margin:0 auto 50px}}#user-moderation-detail[data-v-bfe7e915]{margin-bottom:10px}#user-moderation-detail #user-reports dl[data-v-bfe7e915]{margin-bottom:0}#user-moderation-detail #user-sanctions ul[data-v-bfe7e915]{list-style:square}#user-moderation-detail #user-sanctions ul li[data-v-bfe7e915]{margin-left:10px;padding:5px}#user-moderation-detail #user-sanctions ul li div[data-v-bfe7e915]{display:flex;flex-wrap:wrap;gap:5px}#user-moderation-detail #user-sanctions .appeal[data-v-bfe7e915]{margin-top:-2px;padding:5px 10px}#user-moderation-detail #user-sanctions .appeal.approved[data-v-bfe7e915]{background:var(--success-background-color);color:var(--success-color)}#user-moderation-detail #user-sanctions .appeal.rejected[data-v-bfe7e915]{background:var(--error-background-color);color:var(--error-color)}#user-infos[data-v-7c182b65]{padding:0 0 10px}#user-infos .user-bio[data-v-7c182b65]{white-space:pre-wrap}#user-infos .alert-message[data-v-7c182b65]{margin:0}#user-infos .profile-buttons[data-v-7c182b65]{display:flex;flex-wrap:wrap}#user-infos .profile-buttons[data-v-7c182b65] .actions-buttons{gap:10px}#user-infos .email-form[data-v-7c182b65]{display:flex}#user-infos .email-form form[data-v-7c182b65]{width:100%}#user-infos .email-form .form-buttons[data-v-7c182b65]{display:flex;gap:10px;margin-top:10px}#user-infos .report-submitted[data-v-7c182b65]{display:flex}#user-infos .report-submitted .info-box[data-v-7c182b65]{margin-bottom:10px}#user-infos .suspended[data-v-7c182b65]{margin-top:10px}#user-preferences[data-v-545b27a5]{padding:5px 0 10px}#user-preferences .preferences-section[data-v-545b27a5]{font-weight:700;text-transform:uppercase;border-bottom:1px solid var(--card-border-color)}#user-preferences .raw-speed-help[data-v-545b27a5]{margin-top:-5px}.users-list .item[data-v-b29d1311]{display:flex}.users-list .item[data-v-b29d1311] .user-picture{min-width:15%}.users-list .item[data-v-b29d1311] .user-picture img{height:60px;width:60px}.users-list .item[data-v-b29d1311] .user-picture .no-picture{font-size:3.8em}.users-list .item .user-name[data-v-b29d1311]{display:flex;flex-direction:column;justify-content:center;flex-grow:2}.users-list .item .blocked-user button[data-v-b29d1311],.users-list .item .follow-requests-list-actions button[data-v-b29d1311]{text-transform:capitalize}.users-list .item .blocked-user[data-v-b29d1311]{display:flex;flex-direction:column;justify-content:center}.users-list .item .follow-requests-list-actions[data-v-b29d1311]{display:flex;flex-direction:column;gap:10px}.users-list .item .follow-requests-list-actions button[data-v-b29d1311]{display:flex;gap:10px}.users-list .item .follow-requests-list-actions button .fa[data-v-b29d1311]{line-height:20px}@media screen and (max-width: 700px){.users-list .item[data-v-b29d1311] .user-picture{margin-right:10px;min-width:40px}.users-list .item[data-v-b29d1311] .user-picture img{height:48px;width:48px}.users-list .item[data-v-b29d1311] .user-picture .no-picture{font-size:3em}.users-list .item .follow-request .user-name[data-v-b29d1311]{padding-left:10px}}.password-strength[data-v-dee3cf5a]{cursor:default;display:flex;flex-direction:column}.password-strength .password-slider[data-v-dee3cf5a]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:8px;height:5px;outline:none;padding:0}.password-strength .strength-0[data-v-dee3cf5a],.password-strength .strength-1[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-weak)),color-stop(100%,var(--password-color-weak)));background-image:-webkit-linear-gradient(left,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:-moz-linear-gradient(left,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:-o-linear-gradient(to right,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-image:linear-gradient(to right,var(--password-color-weak) 0%,var(--password-color-weak) 100%);background-repeat:no-repeat}.password-strength .strength-2[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-medium)),color-stop(100%,var(--password-color-medium)));background-image:-webkit-linear-gradient(left,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:-moz-linear-gradient(left,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:-o-linear-gradient(to right,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-image:linear-gradient(to right,var(--password-color-medium) 0%,var(--password-color-medium) 100%);background-repeat:no-repeat}.password-strength .strength-3[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-good)),color-stop(100%,var(--password-color-good)));background-image:-webkit-linear-gradient(left,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:-moz-linear-gradient(left,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:-o-linear-gradient(to right,var(--password-color-good) 0%,var(--password-color-good) 100%);background-image:linear-gradient(to right,var(--password-color-good) 0%,var(--password-color-good) 100%);background-repeat:no-repeat}.password-strength .strength-4[data-v-dee3cf5a]{background:var(--password-bg-color);background-image:-webkit-gradient(linear,20% 0%,20% 100%,color-stop(0%,var(--password-color-strong)),color-stop(100%,var(--password-color-strong)));background-image:-webkit-linear-gradient(left,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:-moz-linear-gradient(left,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:-o-linear-gradient(to right,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-image:linear-gradient(to right,var(--password-color-strong) 0%,var(--password-color-strong) 100%);background-repeat:no-repeat}.password-strength .password-slider[data-v-dee3cf5a]::-webkit-slider-thumb,.password-strength .password-slider[data-v-dee3cf5a]::-moz-range-thumb{opacity:0}.password-strength .password-slider[data-v-dee3cf5a]::-webkit-slider-thumb{-webkit-appearance:none}.password-strength .password-slider[data-v-dee3cf5a]::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none}.password-strength .password-strength-details[data-v-dee3cf5a]{margin-bottom:5px;margin-top:-10px;padding:0 10px}.password-strength .password-strength-details .password-strength-value[data-v-dee3cf5a]{font-size:.85em}.password-strength .password-strength-details .info-box[data-v-dee3cf5a]{padding:1px 10px}.password-strength .password-strength-details .info-box .password-feedback[data-v-dee3cf5a]{padding-left:20px}.password-input[data-v-56852c2e]{display:flex;flex-direction:column}.password-input .show-password[data-v-56852c2e]{margin-top:-5px;display:flex;justify-content:right}.password-input .show-password button[data-v-56852c2e]{font-style:italic;font-size:.85em;padding:5px 10px;cursor:pointer}#user-infos-edition[data-v-881b0d2d]{padding:10px 0}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .show-password{font-weight:400;font-size:.8em;margin-top:-4px;padding-left:0}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .form-info{font-weight:400;padding-left:10px}#user-infos-edition .form-items .password-input[data-v-881b0d2d] .password-strength-details{font-weight:400;margin-top:0}#user-infos-edition .form-buttons[data-v-881b0d2d]{flex-direction:row}@media screen and (max-width: 500px){#user-infos-edition .form-buttons[data-v-881b0d2d]{flex-direction:column}}#user-infos-edition .data-export[data-v-881b0d2d]{padding:10px 0}#user-infos-edition .data-export .data-export-archive[data-v-881b0d2d]{padding-top:20px;font-size:.9em}#user-infos-edition .data-export .data-export-archive .archive-link[data-v-881b0d2d]{color:var(--app-a-color);cursor:pointer}#user-infos-edition[data-v-74879b02]{padding-top:10px}#user-infos-edition .form-items .password-input[data-v-74879b02] .show-password{font-weight:400;font-size:.8em;margin-top:-4px;padding-left:0}#user-infos-edition .form-buttons[data-v-74879b02]{flex-direction:row}@media screen and (max-width: 500px){#user-infos-edition .form-buttons[data-v-74879b02]{flex-direction:column}}#user-picture-edition[data-v-0a8e1dca]{padding:10px 0}#user-picture-edition .user-picture-form[data-v-0a8e1dca]{display:flex;flex-direction:column;margin-top:10px}#user-picture-edition .user-picture-form form[data-v-0a8e1dca]{display:flex;flex-direction:column;gap:10px;justify-content:flex-start}#user-picture-edition .user-picture-form form input[data-v-0a8e1dca]{margin-top:10px;padding:5px}#user-picture-edition .user-picture-form form span[data-v-0a8e1dca]{font-style:italic;font-size:.9em;padding-left:5px}#user-picture-edition .user-picture-form form .picture-help[data-v-0a8e1dca]{display:flex}#user-picture-edition .user-picture-form form .picture-help span[data-v-0a8e1dca]{font-style:italic;padding:10px}#user-picture-edition .user-picture-form form .picture-help .fa-info-circle[data-v-0a8e1dca]{margin-right:10px}#user-picture-edition .user-picture-form .picture-buttons[data-v-0a8e1dca]{display:flex;flex-direction:row;align-items:center;gap:10px}@media screen and (max-width: 500px){#user-picture-edition .user-picture-form .picture-buttons[data-v-0a8e1dca],#user-picture-edition .user-picture-form .picture-help[data-v-0a8e1dca]{flex-direction:column;align-items:stretch}}#tz-dropdown[data-v-de57165c]{display:flex;flex-direction:column;position:relative}#tz-dropdown .tz-dropdown-list[data-v-de57165c]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);padding:5px 0;position:absolute;overflow-y:auto;top:20px;left:0;right:0;max-height:200px;width:inherit}#tz-dropdown .tz-dropdown-item[data-v-de57165c]{cursor:pointer;font-size:.9em;font-weight:400;padding:5px}#tz-dropdown .tz-dropdown-item.focus[data-v-de57165c]{background-color:var(--dropdown-hover-color)}#user-preferences-edition[data-v-a2dba7d8]{padding-top:10px}#user-preferences-edition .form-items[data-v-a2dba7d8]{padding-top:5px}#user-preferences-edition .form-checkboxes .checkboxes-label[data-v-a2dba7d8]{font-weight:700}#user-preferences-edition .form-checkboxes .checkboxes[data-v-a2dba7d8]{display:flex;gap:10px;flex-wrap:wrap}#user-preferences-edition .form-checkboxes .checkboxes .checkbox-label[data-v-a2dba7d8]{padding-left:5px}#user-preferences-edition .form-checkboxes .checkboxes label[data-v-a2dba7d8]{font-weight:400}#user-preferences-edition .preferences-section[data-v-a2dba7d8]{font-weight:700;text-transform:uppercase;border-bottom:1px solid var(--card-border-color);margin-bottom:5px}#user-preferences-edition .preferences-section[data-v-a2dba7d8]:not(:first-child){margin-top:15px}#user-preferences-edition #language[data-v-a2dba7d8],#user-preferences-edition #date_format[data-v-a2dba7d8],#user-preferences-edition #use_dark_mode[data-v-a2dba7d8],#user-preferences-edition #map_visibility[data-v-a2dba7d8],#user-preferences-edition #analysis_visibility[data-v-a2dba7d8],#user-preferences-edition #workouts_visibility[data-v-a2dba7d8]{padding:5px}[data-v-4c6083e4]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark][data-v-4c6083e4]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark][data-v-4c6083e4]{color-scheme:dark}body[data-v-4c6083e4]{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body[data-v-4c6083e4]::-webkit-scrollbar{width:5px;height:5px}body[data-v-4c6083e4]::-webkit-scrollbar-track{background:transparent}body[data-v-4c6083e4]::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body[data-v-4c6083e4]:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body[data-v-4c6083e4]:hover::-webkit-scrollbar-track{background:transparent}#app[data-v-4c6083e4]{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a[data-v-4c6083e4]{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a[data-v-4c6083e4]:hover,a[data-v-4c6083e4]:focus{text-decoration-color:var(--app-a-color)}img[data-v-4c6083e4]{max-width:100%}input[data-v-4c6083e4],textarea[data-v-4c6083e4],select[data-v-4c6083e4]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input[data-v-4c6083e4]:disabled,textarea[data-v-4c6083e4]:disabled,select[data-v-4c6083e4]:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors[data-v-4c6083e4] :invalid{outline:2px solid var(--input-error-color)}label[data-v-4c6083e4]{font-weight:700}button[data-v-4c6083e4]{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent[data-v-4c6083e4]{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent[data-v-4c6083e4]:hover,button.transparent[data-v-4c6083e4]:disabled{background:transparent}button.transparent[data-v-4c6083e4]:hover{color:var(--app-color)}button.transparent[data-v-4c6083e4]:enabled:active{box-shadow:none}button.transparent[data-v-4c6083e4]:disabled,button.transparent.confirm[data-v-4c6083e4]:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button[data-v-4c6083e4]{cursor:pointer;padding:0}button.small[data-v-4c6083e4]{font-size:.9em;padding:3px 7px}button[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button[data-v-4c6083e4]:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button[data-v-4c6083e4]:disabled,button.confirm[data-v-4c6083e4]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel[data-v-4c6083e4]{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm[data-v-4c6083e4]{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm[data-v-4c6083e4]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger[data-v-4c6083e4]{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger[data-v-4c6083e4]:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger[data-v-4c6083e4]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box[data-v-4c6083e4]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box[data-v-4c6083e4]{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container[data-v-4c6083e4]{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items[data-v-4c6083e4]{display:flex;flex-direction:column}.form-box .form-items input[data-v-4c6083e4]{margin:10px;padding:5px}.form-info[data-v-4c6083e4]{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message[data-v-4c6083e4]{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper[data-v-4c6083e4]{text-transform:uppercase}.view[data-v-4c6083e4]{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy[data-v-4c6083e4]{color:var(--workout-trophy-color)}.mountains[data-v-4c6083e4]{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title[data-v-4c6083e4]{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title[data-v-4c6083e4]{padding-left:5px;text-transform:capitalize}.section-title[data-v-4c6083e4]:first-letter{text-transform:uppercase}.no-map[data-v-4c6083e4]{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group[data-v-4c6083e4]{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes[data-v-4c6083e4]{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes[data-v-4c6083e4]{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label[data-v-4c6083e4]{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input[data-v-4c6083e4]{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span[data-v-4c6083e4]{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span[data-v-4c6083e4]{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl[data-v-4c6083e4]{display:flex;flex-direction:column;width:100%}.description-list dl dt[data-v-4c6083e4]{font-weight:700}.description-list dl dd[data-v-4c6083e4]{margin-bottom:10px}.center-card[data-v-4c6083e4]{margin:0 auto;width:700px}.center-card.with-margin[data-v-4c6083e4]{margin-top:100px}@media screen and (max-width: 1000px){.center-card[data-v-4c6083e4]{width:100%;margin:0 auto 50px}}.text-center[data-v-4c6083e4]{text-align:center}.text-left[data-v-4c6083e4]{text-align:left}.deleted-object[data-v-4c6083e4]{font-style:italic}.responsive-table[data-v-4c6083e4]{margin-bottom:15px}.responsive-table table[data-v-4c6083e4]{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th[data-v-4c6083e4]{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody[data-v-4c6083e4]{font-size:.95em}.responsive-table table tbody td[data-v-4c6083e4]{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td[data-v-4c6083e4]{border:none}.responsive-table table .cell-heading[data-v-4c6083e4]{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead[data-v-4c6083e4]{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr[data-v-4c6083e4]{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td[data-v-4c6083e4]{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td[data-v-4c6083e4]{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading[data-v-4c6083e4]{display:flex}}@media screen and (max-width: 500px){.responsive-table table td[data-v-4c6083e4]{width:100%}}.profile-buttons[data-v-4c6083e4]{display:flex;align-items:baseline;gap:10px}.user-role[data-v-4c6083e4],.follows-you[data-v-4c6083e4],.blocked[data-v-4c6083e4]{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img[data-v-4c6083e4]{height:35px;width:35px;margin:0 auto}.hidden-content[data-v-4c6083e4]{display:none}.items-list-view .items-list-container[data-v-4c6083e4]{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container[data-v-4c6083e4]{flex-direction:column}}.items-list-view .items-list-container .filters-container[data-v-4c6083e4],.items-list-view .items-list-container .list-container[data-v-4c6083e4]{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container[data-v-4c6083e4]{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container[data-v-4c6083e4]{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden[data-v-4c6083e4]{display:none}}.items-list-view .items-list-container .display-filters[data-v-4c6083e4]{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span[data-v-4c6083e4]{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa[data-v-4c6083e4]{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters[data-v-4c6083e4]{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container[data-v-4c6083e4]{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container[data-v-4c6083e4]{width:100%}}.visually-hidden[data-v-4c6083e4]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden[data-v-4c6083e4]:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects[data-v-4c6083e4]{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select[data-v-4c6083e4]{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects[data-v-4c6083e4]{flex-wrap:wrap}.table-selects label[data-v-4c6083e4]{margin-bottom:10px}.table-selects label select[data-v-4c6083e4]{margin-left:0}}.suspended[data-v-4c6083e4]{font-style:italic;font-weight:700}.action-loading[data-v-4c6083e4]{display:flex;align-items:center}.markdown-hints[data-v-4c6083e4]{font-size:.8em;font-style:normal;margin:5px 0 10px}.privacy-policy-text[data-v-4c6083e4]{margin:10px 50px 20px;padding:10px;width:100%}@media screen and (max-width: 700px){.privacy-policy-text[data-v-4c6083e4]{margin:0}}#user-privacy-policy[data-v-ac974385]{padding:10px 0}#user-privacy-policy form[data-v-ac974385]{display:flex;flex-direction:column;gap:10px}#user-privacy-policy form .policy-content[data-v-ac974385]{height:500px;border:1px solid var(--policy-border-color);overflow:auto;margin:10px;border-radius:4px}@media screen and (max-width: 700px){#user-privacy-policy form .policy-content[data-v-ac974385]{margin:10px 0;font-size:.9em}}#user-privacy-policy form .policy-content .privacy-policy-text[data-v-ac974385]{width:auto}#user-privacy-policy form .form-buttons[data-v-ac974385]{display:flex;gap:10px;flex-direction:row}@media screen and (max-width: 500px){#user-privacy-policy form .form-buttons[data-v-ac974385]{flex-direction:column}}.no-suspension[data-v-2a9aa8c5]{margin:10px 0}#new-oauth2-app #new-oauth2-title[data-v-f0f43085]{font-size:1.05em;font-weight:700;padding:0 10px}#new-oauth2-app #apps-form .form-items[data-v-f0f43085]{display:flex;flex-direction:column}#new-oauth2-app #apps-form .form-items input[type=text][data-v-f0f43085]{height:20px}#new-oauth2-app #apps-form .form-items .form-item-scope[data-v-f0f43085]{padding:10px}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-label[data-v-f0f43085]{font-weight:700}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes[data-v-f0f43085]{padding-bottom:10px}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes .scope-label[data-v-f0f43085]{height:inherit}#new-oauth2-app #apps-form .form-items .form-item-scope .form-item-scope-checkboxes .scope-description[data-v-f0f43085]{font-style:italic;margin:0 5px}#new-oauth2-app #apps-form .form-items .form-item[data-v-f0f43085]{display:flex;flex-direction:column;padding:10px}#new-oauth2-app #apps-form .form-buttons[data-v-f0f43085]{display:flex;justify-content:flex-end}#new-oauth2-app #apps-form .form-buttons button[data-v-f0f43085]{margin:5px}#authorize-oauth2-app #authorize-oauth2-title[data-v-6462d75b]{font-size:1.05em;font-weight:700;padding:0 10px}#authorize-oauth2-app .oauth2-access[data-v-6462d75b]{padding:0 10px}#authorize-oauth2-app .authorize-oauth2-buttons[data-v-6462d75b]{display:flex}#authorize-oauth2-app .authorize-oauth2-buttons button[data-v-6462d75b]{margin:5px}#oauth2-app .app-buttons[data-v-7371d7c1]{display:flex;flex-wrap:wrap;gap:10px}#oauth2-app .app-secret[data-v-7371d7c1]{word-break:break-word}#oauth2-app .client-scopes[data-v-7371d7c1]{display:flex;flex-wrap:wrap}#oauth2-app .client-scopes .client-scope[data-v-7371d7c1]{padding-right:15px}#oauth2-app .fa-copy[data-v-7371d7c1]{font-size:.9em}#oauth2-app .no-description[data-v-7371d7c1]{font-style:italic}#oauth2-app .no-app[data-v-7371d7c1]{font-style:italic;padding:10px 0}#oauth2-apps-list[data-v-018b8e7c]{padding:0 0 10px}#oauth2-apps-list ul[data-v-018b8e7c]{list-style:square}#oauth2-apps-list ul li[data-v-018b8e7c]{padding-bottom:10px}#oauth2-apps-list .app-issued-at[data-v-018b8e7c]{font-size:.85em;font-style:italic;padding-left:10px}#oauth2-apps-list .apps-list[data-v-018b8e7c]{font-size:1.05em;font-weight:700}#oauth2-apps-list .app-list-buttons[data-v-018b8e7c]{display:flex;gap:10px}#oauth2-apps-list .no-apps[data-v-018b8e7c]{font-style:italic;padding-bottom:20px}[data-v-016d8e47] .multiselect__input{background-color:var(--input-bg-color)}[data-v-016d8e47] .multiselect__tags{border:1px solid var(--input-border-color);border-radius:4px;background:var(--multiselect-tags-bg-color)}[data-v-016d8e47] .multiselect__input{border-color:#000}[data-v-016d8e47] .multiselect__tag{background-color:var(--multiselect-tag-bg-color);color:var(--multiselect-tag-color)}[data-v-016d8e47] .multiselect__tag-icon:after{color:var(--multiselect-tag-color)}[data-v-016d8e47] .multiselect__tag-icon:focus,[data-v-016d8e47] .multiselect__tag-icon:hover{background:var(--multiselect-tag-icon-hover-bg-color)}[data-v-016d8e47] .multiselect__tag-icon:focus:after,[data-v-016d8e47] .multiselect__tag-icon:hover:after{color:var(--multiselect-tag-icon-hover-color)}[data-v-016d8e47] .multiselect__option{background:var(--multiselect-option-bg-color);color:var(--multiselect-option-color)}[data-v-016d8e47] .multiselect__option--highlight,[data-v-016d8e47] .multiselect__option--highlight:after{background:var(--multiselect-option-highlight-bg-color);color:var(--multiselect-option-highlight-color)}[data-v-016d8e47] .multiselect__option--selected.multiselect__option--highlight{background:var(--multiselect-option-selected-highlight-bg-color);color:var(--multiselect-option-selected-highlight-color)}[data-v-016d8e47] .multiselect__option--selected.multiselect__option--highlight:after{background:var(--multiselect-option-selected-highlight-after-bg-color);color:var(--multiselect-option-selected-highlight-after-color)}[data-v-016d8e47] .multiselect__option--selected{background-color:var(--multiselect-option-selected-bg-color);color:var(--multiselect-option-selected-color)}[data-v-016d8e47] .multiselect__content-wrapper{border-color:var(--multiselect-content-wrapper-border-color)}.multiselect--disabled[data-v-016d8e47]{background-color:var(--multiselect-disabled-bg-color)}.multiselect--disabled[data-v-016d8e47] .multiselect__select{background:var(--multiselect-select-disabled-bg-color);color:var(--multiselect-select-disabled-color)}#new-equipment #new-equipment-title[data-v-a596b0f9]{font-size:1.05em;font-weight:700;padding:0 10px}#new-equipment #equipment-form .form-items[data-v-a596b0f9]{display:flex;flex-direction:column}#new-equipment #equipment-form .form-items input[type=text][data-v-a596b0f9]{height:20px}#new-equipment #equipment-form .form-items .form-item[data-v-a596b0f9]{display:flex;flex-direction:column;padding:10px 0}#new-equipment #equipment-form .form-items .form-item-checkbox[data-v-a596b0f9]{display:flex;padding:10px 10px 10px 0;gap:5px}#new-equipment #equipment-form .equipment-label-help[data-v-a596b0f9]{margin-top:15px}#new-equipment #equipment-form .equipment-warning[data-v-a596b0f9]{margin-top:5px;margin-bottom:10px}#new-equipment #equipment-form .error-message[data-v-a596b0f9]{margin:10px 0}#new-equipment #equipment-form .form-buttons[data-v-a596b0f9]{display:flex;justify-content:flex-end}#new-equipment #equipment-form .form-buttons button[data-v-a596b0f9]{margin:5px}#user-equipment .no-equipment[data-v-a3438555]{font-style:italic;padding:10px 0}#user-equipment .no-description[data-v-a3438555]{font-style:italic}#user-equipment .equipment-description[data-v-a3438555]{white-space:pre-wrap}#user-equipment .equipment-type[data-v-a3438555]{display:flex}#user-equipment .equipment-type .equipment-type-img[data-v-a3438555]{height:25px;width:25px;margin:0}#user-equipment .sports-list[data-v-a3438555]{display:flex;gap:10px;flex-wrap:wrap;padding-top:5px}#user-equipment .sports-list .sport-badge[data-v-a3438555]{display:flex;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;padding:7.5px 12px}#user-equipment .sports-list .sport-badge.inactive[data-v-a3438555]{font-style:italic}#user-equipment .sports-list .sport-badge .sport-img[data-v-a3438555]{height:20px;width:20px;margin:0}#user-equipment .duration-detail[data-v-a3438555]{font-style:italic}.equipment-buttons[data-v-a3438555]{display:flex;flex-wrap:wrap;gap:10px}.error-message[data-v-a3438555]{margin:20px 0}#user-equipments-list[data-v-235c4af3]{padding:0 0 10px}#user-equipments-list h1[data-v-235c4af3]{font-size:1.05em;font-weight:700}#user-equipments-list h2[data-v-235c4af3]{font-size:1em;font-weight:700;display:flex;gap:5px;margin:20px 0 5px}#user-equipments-list h2 .equipment-type-img[data-v-235c4af3]{height:25px;width:25px;margin:0}#user-equipments-list table th[data-v-235c4af3]{text-transform:lowercase}#user-equipments-list table td.equipment-label[data-v-235c4af3]{width:280px}#user-equipments-list table td.column[data-v-235c4af3]{min-width:80px}#user-equipments-list table td.active[data-v-235c4af3]{width:40px}#user-equipments-list .mobile-display[data-v-235c4af3]{display:none}#user-equipments-list .no-equipments[data-v-235c4af3]{font-style:italic}#user-equipments-list .equipments-list-buttons[data-v-235c4af3]{display:flex;gap:10px;flex-wrap:wrap}@media screen and (max-width: 700px){#user-equipments-list table td.column[data-v-235c4af3]{min-width:initial}#user-equipments-list table td.equipment-label[data-v-235c4af3],#user-equipments-list table td.active[data-v-235c4af3],#user-equipments-list table td.action-buttons[data-v-235c4af3]{width:45%}#user-equipments-list .edition-buttons[data-v-235c4af3]{justify-content:center}#user-equipments-list .mobile-display[data-v-235c4af3]{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 20px}}@media screen and (max-width: 500px){#user-equipments-list table td.equipment-label[data-v-235c4af3],#user-equipments-list table td.active[data-v-235c4af3],#user-equipments-list table td.action-buttons[data-v-235c4af3]{width:100%}}.notification-object[data-v-ed2176b7]{font-weight:700;text-transform:capitalize}.appeal-action .appeal-button[data-v-a3f01233]{padding:0 10px;font-size:.9em}.suspended[data-v-a3f01233]{font-size:.9em}.notification-object[data-v-bb831628]{font-weight:700;text-transform:capitalize}.workout-card[data-v-bb831628]{margin-bottom:0}.alert-message[data-v-bb831628]{margin:10px 0}#user-sanction[data-v-f297e854]{padding:10px 0}#user-sanction h1[data-v-f297e854]{font-size:1.05em;font-weight:700}#user-sanction .no-warning[data-v-f297e854]{margin:10px 0}#user-sanction[data-v-f297e854] .notification-object{margin-top:10px}#user-sanction .buttons[data-v-f297e854]{display:flex;gap:10px}#user-sanction .buttons button[data-v-f297e854]{text-transform:capitalize}#user-moderation[data-v-bb47e769]{padding:0 0 10px}#user-moderation h1[data-v-bb47e769]{font-size:1.05em;font-weight:700}#user-moderation #user-reports dl[data-v-bb47e769]{margin-bottom:0}#user-moderation #user-sanctions ul[data-v-bb47e769]{list-style:square}#user-moderation #user-sanctions ul li[data-v-bb47e769]{margin-left:10px;padding:5px}#user-moderation #user-sanctions ul li div[data-v-bb47e769]{display:flex;flex-wrap:wrap;gap:5px}#user-moderation #user-sanctions .appeal[data-v-bb47e769]{margin-top:-2px;padding:5px 10px}#user-moderation #user-sanctions .appeal.approved[data-v-bb47e769]{background:var(--success-background-color);color:var(--success-color)}#user-moderation #user-sanctions .appeal.rejected[data-v-bb47e769]{background:var(--error-background-color);color:var(--error-color)}#user-moderation .no-sanctions[data-v-bb47e769]{font-style:italic}.relationships[data-v-2a9a43ae]{min-height:40px}.relationships .user-relationships[data-v-2a9a43ae]{display:flex;justify-content:space-between;flex-wrap:wrap}.relationships .user-relationships[data-v-2a9a43ae] .box{width:40%}@media screen and (max-width: 700px){.relationships .user-relationships[data-v-2a9a43ae] .box{width:100%}}.relationships .no-relationships[data-v-2a9a43ae]{padding:0 5px}.equipment-badge[data-v-35b40eb3]{display:flex;align-items:center;gap:10px;border:solid 1px var(--card-border-color);border-radius:4px;padding:5px 10px}.equipment-badge.inactive[data-v-35b40eb3]{font-style:italic}.equipment-badge .equipment-type-img[data-v-35b40eb3]{height:25px;min-width:25px;margin:0}#user-sport .sport-img[data-v-fbec81b5]{height:35px;width:35px;margin:0}#user-sport .sport-equipments[data-v-fbec81b5]{display:flex;flex-wrap:wrap;padding:5px;gap:10px}.sport-buttons[data-v-fbec81b5]{display:flex;flex-wrap:wrap;gap:10px}.no-equipments[data-v-fbec81b5]{font-style:italic}#sport-edition .form-items[data-v-aaa31377]{display:flex;flex-direction:column}#sport-edition .form-items input[type=text][data-v-aaa31377]{height:20px}#sport-edition .form-items .form-item[data-v-aaa31377]{display:flex;flex-direction:column;padding:10px 0}#sport-edition .form-items .form-item-checkbox[data-v-aaa31377]{display:flex;padding:10px 10px 10px 0;gap:5px}#sport-edition .form-items .sport-color[data-v-aaa31377]{border:none;margin:6px 1px 6px 0;padding:0;width:80px}#sport-edition .error-message[data-v-aaa31377]{margin:10px 0}#sport-edition .form-buttons[data-v-aaa31377]{display:flex;justify-content:flex-end}#sport-edition .form-buttons button[data-v-aaa31377]{margin:5px}#user-sport-preferences table th[data-v-2f0e6a61]{padding-top:0;text-transform:lowercase}#user-sport-preferences .sport-img[data-v-2f0e6a61]{height:35px;width:35px;margin:0 auto}#user-sport-preferences .sport-color[data-v-2f0e6a61]{border:none;margin:6px 1px 6px 0;padding:0;width:40px}#user-sport-preferences .sport-label[data-v-2f0e6a61]{width:170px}#user-sport-preferences .disabled-sport[data-v-2f0e6a61]{font-style:italic;color:var(--disabled-sport-color)}#user-sport-preferences .disabled-sport .disabled-message[data-v-2f0e6a61]{font-size:.9em}#user-sport-preferences .disabled-sport .cell-heading[data-v-2f0e6a61]{font-style:normal}#user-sport-preferences .profile-buttons[data-v-2f0e6a61]{display:flex;align-items:center}#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:70px}#user-sport-preferences .edition-buttons[data-v-2f0e6a61]{display:flex;flex-wrap:wrap;gap:5px;line-height:1.3em}#user-sport-preferences .edition-buttons button[data-v-2f0e6a61]{text-align:center;min-width:80px}#user-sport-preferences .threshold[data-v-2f0e6a61]{display:flex;flex-direction:column;-webkit-hyphens:auto;hyphens:auto;min-width:100px}#user-sport-preferences .threshold-input[data-v-2f0e6a61]{padding:5px;width:50px}#user-sport-preferences .mobile-display[data-v-2f0e6a61]{display:none}#user-sport-preferences div.error-message[data-v-2f0e6a61]{margin:0}@media screen and (max-width: 700px){#user-sport-preferences .sport-label[data-v-2f0e6a61],#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:45%}#user-sport-preferences .edition-buttons[data-v-2f0e6a61]{justify-content:center}#user-sport-preferences .mobile-display[data-v-2f0e6a61]{display:flex;margin:10px 0}}@media screen and (max-width: 500px){#user-sport-preferences .sport-label[data-v-2f0e6a61],#user-sport-preferences .action-buttons[data-v-2f0e6a61]{width:100%}}[data-v-28993d11]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}:root [data-theme=dark][data-v-28993d11]{--dark-blue: #181a1b;--light-grey: #cfd0d0;--app-background-color: var(--dark-blue);--app-color: var(--light-grey);--app-color-light: #6f7070;--app-a-color: var(--light-grey);--app-a-text-decoration-color: #494949;--app-shadow-color: #383d3f;--app-loading-color: #414141;--app-loading-top-color: #949494;--button-hover-color: var(--app-color);--button-transparent-hover-color: #233240;--button-cancel-bg-color: var(--dark-blue);--button-cancel-color: var(--app-color);--button-confirm-bg-color: var(--dark-blue);--button-confirm-color: var(--app-color);--button-danger-bg-color: var(--dark-blue);--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: var(--dark-blue);--card-border-color: #494f52;--input-border-color: #494f52;--input-bg-color: var(--dark-blue);--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #233240;--dropdown-background-color: var(--dark-blue);--dropdown-border-color: var(--input-border-color);--policy-border-color: #ccc;--policy-link-color: var(--alert-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: var(--dark-blue);--multiselect-tags-bg-color: var(--dark-blue);--multiselect-tag-bg-color: #33353a;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #cfd0d0;--multiselect-tag-icon-hover-color: var(--dark-blue);--multiselect-option-bg-color: #61636e;--multiselect-option-color: #ffffff;--multiselect-option-highlight-bg-color: #4d4e56;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #963a41;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #963a41;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #33353a;--multiselect-option-selected-color: #f3f3f3;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #665f54;--custom-checkbox-checked-bg-color: #575e62;--custom-checkbox-checked-color: #e8e6e3;--calendar-border-color: var(--input-border-color);--calendar-week-end-color: #1e2021;--calendar-day-color: var(--app-color);--calendar-today-color: #202324;--calendar-workouts-color: #233240;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(68, 68, 68, .3);--nav-bar-background-color: var(--dark-blue);--nav-bar-link-active: #ffffff;--nav-border-color: var(--input-border-color);--mobile-menu-selected-color: var(--dark-blue);--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: var(--dark-blue);--footer-border-color: var(--input-border-color);--footer-color: #cfd0d0;--form-info: var(--app-color);--alert-background-color: #3f3f3f;--alert-color: #d6dde3;--info-background-color: #33353a;--info-color: var(--app-color);--error-background-color: #4e0000;--error-color: #ea464f;--success-background-color: #24391c;--success-color: #97cd97;--disabled-background-color: var(--dark-blue);--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: var(--dark-blue);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: #eff0f5;--map-attribution-text: #e8e8e8;--map-display-hover-attribution-text: #444444;--map-attribution-bg-color: none;--map-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.85);--map-display-hover-filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(.6);--map-layers-overlays: var(--app-color);--map-control-bar: var(--app-color);--no-map-filter: invert(1) brightness(1.5) contrast(.9);--workout-static-map-shadow-color: #d2d2d2;--workout-static-map-bg-color: #818181;--icon-svg-filter: invert(90%) sepia(19%) saturate(0%) hue-rotate(39deg) brightness(86%) contrast(102%);--cell-heading-bg-color: #383838;--cell-heading-color: #eeeeee;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #831819;--password-color-medium: #9e6906;--password-color-good: #4b5826;--password-color-strong: #4a8c32;--scroll-thumb-color: #949697;--text-background-color: rgba(255, 255, 255, .1);--text-visibilty: rgba(229, 229, 229, .65);--comment-border-color: #333131;--comment-background: #181a1b;--comment-background-highlight: linear-gradient(to right, #2c2b2b, #2d2b2b);--user-suggestion-background: #2c2b2b;--like-color: #831819}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot);src:local("PT Sans"),local("PTSans-Regular"),url(/static/fonts/pt-sans-v9-latin-regular-BP0lxQaa.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-regular-Djlo7W5_.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-regular-hd7YDG6O.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-regular-CmpJlkma.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-regular-DbVTbs7b.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;src:url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot);src:local("PT Sans Italic"),local("PTSans-Italic"),url(/static/fonts/pt-sans-v9-latin-italic-DgMO1lZg.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-italic-DUVM-V4c.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-italic-PAbCZe5A.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-italic-jaBdj_Wz.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-italic-Bgf8aerm.svg#PTSans) format("svg")}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;src:url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot);src:local("PT Sans Bold"),local("PTSans-Bold"),url(/static/fonts/pt-sans-v9-latin-700-CyQRYPtb.eot?#iefix) format("embedded-opentype"),url(/static/fonts/pt-sans-v9-latin-700-ELxAYisY.woff2) format("woff2"),url(/static/fonts/pt-sans-v9-latin-700-C1xncn47.woff) format("woff"),url(/static/fonts/pt-sans-v9-latin-700-BNHRiIhU.ttf) format("truetype"),url(/static/fonts/pt-sans-v9-latin-700-BfLKrhyt.svg#PTSans) format("svg")}html [data-theme=dark][data-v-28993d11]{color-scheme:dark}body[data-v-28993d11]{margin:0;overflow-y:scroll;scrollbar-gutter:stable both-edges;background-color:var(--app-background-color)}body[data-v-28993d11]::-webkit-scrollbar{width:5px;height:5px}body[data-v-28993d11]::-webkit-scrollbar-track{background:transparent}body[data-v-28993d11]::-webkit-scrollbar-thumb{background:transparent;border-radius:10px}body[data-v-28993d11]:hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb-color)}body[data-v-28993d11]:hover::-webkit-scrollbar-track{background:transparent}#app[data-v-28993d11]{font-family:PT Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--app-color);background-color:var(--app-background-color);margin:0;min-height:100vh}a[data-v-28993d11]{color:var(--app-a-color);text-decoration-color:var(--app-a-text-decoration-color)}a[data-v-28993d11]:hover,a[data-v-28993d11]:focus{text-decoration-color:var(--app-a-color)}img[data-v-28993d11]{max-width:100%}input[data-v-28993d11],textarea[data-v-28993d11],select[data-v-28993d11]{background-color:var(--input-bg-color);border-radius:4px;border:solid 1px var(--input-border-color);color:var(--input-color);padding:10px}input[data-v-28993d11]:disabled,textarea[data-v-28993d11]:disabled,select[data-v-28993d11]:disabled{background-color:var(--disabled-background-color);border-color:var(--disabled-color)}form.errors[data-v-28993d11] :invalid{outline:2px solid var(--input-error-color)}label[data-v-28993d11]{font-weight:700}button[data-v-28993d11]{background:var(--app-background-color);border:solid 1px var(--input-border-color);border-radius:4px;box-shadow:2px 2px 2px var(--app-shadow-color);color:var(--app-color);padding:6px 14px;cursor:pointer}button.transparent[data-v-28993d11]{font-family:PT Sans,Helvetica,Arial,sans-serif;font-size:1em;background:transparent;border-color:transparent;box-shadow:none}button.transparent[data-v-28993d11]:hover,button.transparent[data-v-28993d11]:disabled{background:transparent}button.transparent[data-v-28993d11]:hover{color:var(--app-color)}button.transparent[data-v-28993d11]:enabled:active{box-shadow:none}button.transparent[data-v-28993d11]:disabled,button.transparent.confirm[data-v-28993d11]:disabled{border-color:var(--disabled-border-color);color:var(--disabled-color)}button.icon-button[data-v-28993d11]{cursor:pointer;padding:0}button.small[data-v-28993d11]{font-size:.9em;padding:3px 7px}button[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button[data-v-28993d11]:enabled:active{box-shadow:2px 0 2px var(--app-shadow-color);transform:translateY(2px)}button[data-v-28993d11]:disabled,button.confirm[data-v-28993d11]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}button.cancel[data-v-28993d11]{background:var(--button-cancel-bg-color);color:var(--button-cancel-color)}button.cancel[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.confirm[data-v-28993d11]{background:var(--button-confirm-bg-color);color:var(--button-confirm-color)}button.confirm[data-v-28993d11]:hover{background:var(--button-transparent-hover-color);color:var(--button-hover-color)}button.danger[data-v-28993d11]{background:var(--button-danger-bg-color);color:var(--button-danger-color)}button.danger[data-v-28993d11]:hover{background:var(--button-danger-hover-bg-color);color:var(--button-danger-hover-color)}button.danger[data-v-28993d11]:disabled{background:var(--disabled-background-color);color:var(--disabled-color)}.box[data-v-28993d11]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}.info-box[data-v-28993d11]{background-color:var(--info-background-color);border-radius:4px;color:var(--info-color);font-size:.8em;padding:10px}.container[data-v-28993d11]{display:flex;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;max-width:1140px}.form-box .form-items[data-v-28993d11]{display:flex;flex-direction:column}.form-box .form-items input[data-v-28993d11]{margin:10px;padding:5px}.form-info[data-v-28993d11]{color:var(--form-info);font-size:.8em;margin-top:-2px;padding:0 15px}.success-message[data-v-28993d11]{margin:20px 0;background-color:var(--success-background-color);color:var(--success-color)}.upper[data-v-28993d11]{text-transform:uppercase}.view[data-v-28993d11]{padding-bottom:35px;background-color:var(--app-background-color)}.fa-trophy[data-v-28993d11]{color:var(--workout-trophy-color)}.mountains[data-v-28993d11]{margin-bottom:-3px;height:16px;filter:var(--icon-svg-filter)}.section-title[data-v-28993d11]{font-weight:700;padding-top:15px;padding-left:10px}.section-title .title[data-v-28993d11]{padding-left:5px;text-transform:capitalize}.section-title[data-v-28993d11]:first-letter{text-transform:uppercase}.no-map[data-v-28993d11]{background-color:var(--workout-no-map-bg-color);background-image:url(/static/img/map-DegIsCOa.svg);background-size:contain;background-repeat:no-repeat;background-position:center;color:var(--workout-no-map-color);font-style:italic;font-weight:700;text-align:center;vertical-align:center}.custom-checkboxes-group[data-v-28993d11]{display:flex;justify-content:space-around}.custom-checkboxes-group .custom-checkboxes[data-v-28993d11]{display:inline-flex}@media screen and (max-width: 300px){.custom-checkboxes-group .custom-checkboxes[data-v-28993d11]{display:flex;flex-direction:column;align-items:center;gap:5px}}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label[data-v-28993d11]{font-weight:400;float:left;padding:0 5px;cursor:pointer}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label input[data-v-28993d11]{display:none}.custom-checkboxes-group .custom-checkboxes .custom-checkbox label span[data-v-28993d11]{border:solid 1px var(--custom-checkbox-border-color);border-radius:5px;display:block;font-size:.9em;padding:2px 6px;text-align:center}.custom-checkboxes-group .custom-checkboxes .custom-checkbox input:checked+span[data-v-28993d11]{background-color:var(--custom-checkbox-checked-bg-color);color:var(--custom-checkbox-checked-color)}.description-list dl[data-v-28993d11]{display:flex;flex-direction:column;width:100%}.description-list dl dt[data-v-28993d11]{font-weight:700}.description-list dl dd[data-v-28993d11]{margin-bottom:10px}.center-card[data-v-28993d11]{margin:0 auto;width:700px}.center-card.with-margin[data-v-28993d11]{margin-top:100px}@media screen and (max-width: 1000px){.center-card[data-v-28993d11]{width:100%;margin:0 auto 50px}}.text-center[data-v-28993d11]{text-align:center}.text-left[data-v-28993d11]{text-align:left}.deleted-object[data-v-28993d11]{font-style:italic}.responsive-table[data-v-28993d11]{margin-bottom:15px}.responsive-table table[data-v-28993d11]{width:100%;padding:10px;font-size:.9em;border-collapse:collapse}.responsive-table table thead th[data-v-28993d11]{vertical-align:center;padding:10px;border-bottom:2px solid var(--card-border-color)}.responsive-table table tbody[data-v-28993d11]{font-size:.95em}.responsive-table table tbody td[data-v-28993d11]{padding:10px;border-bottom:1px solid var(--card-border-color)}.responsive-table table tbody tr:last-child td[data-v-28993d11]{border:none}.responsive-table table .cell-heading[data-v-28993d11]{background:var(--cell-heading-bg-color);color:var(--cell-heading-color);display:none;font-size:10px;font-weight:700;padding:5px;position:absolute;text-transform:uppercase;top:0;left:0}@media screen and (max-width: 700px){.responsive-table table thead[data-v-28993d11]{left:-9999px;position:absolute;visibility:hidden}.responsive-table table tr[data-v-28993d11]{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}.responsive-table table td[data-v-28993d11]{border:1px solid var(--card-border-color);margin:0 -1px -1px 0;padding-top:25px!important;position:relative;text-align:center;width:45%}.responsive-table table tbody tr:last-child td[data-v-28993d11]{border:1px solid var(--card-border-color)}.responsive-table table .cell-heading[data-v-28993d11]{display:flex}}@media screen and (max-width: 500px){.responsive-table table td[data-v-28993d11]{width:100%}}.profile-buttons[data-v-28993d11]{display:flex;align-items:baseline;gap:10px}.user-role[data-v-28993d11],.follows-you[data-v-28993d11],.blocked[data-v-28993d11]{font-size:.7em;font-style:italic;text-transform:uppercase;padding:5px 10px;background-color:var(--text-background-color);border-radius:4px;max-height:16px}.medium-sport-img[data-v-28993d11]{height:35px;width:35px;margin:0 auto}.hidden-content[data-v-28993d11]{display:none}.items-list-view .items-list-container[data-v-28993d11]{display:flex;flex-direction:row}@media screen and (max-width: 1000px){.items-list-view .items-list-container[data-v-28993d11]{flex-direction:column}}.items-list-view .items-list-container .filters-container[data-v-28993d11],.items-list-view .items-list-container .list-container[data-v-28993d11]{display:flex;flex-direction:column}.items-list-view .items-list-container .filters-container[data-v-28993d11]{width:25%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .filters-container[data-v-28993d11]{width:100%}}@media screen and (max-width: 1000px) and (max-width: 700px){.items-list-view .items-list-container .filters-container.hidden[data-v-28993d11]{display:none}}.items-list-view .items-list-container .display-filters[data-v-28993d11]{display:none;font-size:.8em;padding:0 20px}.items-list-view .items-list-container .display-filters span[data-v-28993d11]{cursor:pointer;font-weight:700;padding-left:5px}.items-list-view .items-list-container .display-filters .fa[data-v-28993d11]{cursor:pointer}@media screen and (max-width: 700px){.items-list-view .items-list-container .display-filters[data-v-28993d11]{display:flex;justify-content:flex-end;align-items:center}}.items-list-view .items-list-container .list-container[data-v-28993d11]{width:75%}@media screen and (max-width: 1000px){.items-list-view .items-list-container .list-container[data-v-28993d11]{width:100%}}.visually-hidden[data-v-28993d11]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visually-hidden[data-v-28993d11]:focus{clip:auto;height:auto;overflow:auto;position:absolute;width:auto}.table-selects[data-v-28993d11]{display:flex;justify-content:space-between;margin:10px 0}.table-selects label select[data-v-28993d11]{margin-left:10px;padding:5px}@media screen and (max-width: 700px){.table-selects[data-v-28993d11]{flex-wrap:wrap}.table-selects label[data-v-28993d11]{margin-bottom:10px}.table-selects label select[data-v-28993d11]{margin-left:0}}.suspended[data-v-28993d11]{font-style:italic;font-weight:700}.action-loading[data-v-28993d11]{display:flex;align-items:center}.markdown-hints[data-v-28993d11]{font-size:.8em;font-style:normal;margin:5px 0 10px}.about-text[data-v-28993d11]{margin-top:200px;margin-right:100px;padding-bottom:40px}@media screen and (max-width: 700px){.about-text[data-v-28993d11]{margin-top:0;margin-right:0;padding-bottom:0}}.about-text .fa-padding[data-v-28993d11]{padding-right:10px}.about-text .about-instance[data-v-28993d11]{font-weight:700;margin-top:30px}#bike[data-v-dc181e30]{display:flex;justify-content:center;margin-top:180px;padding:10px}#bike .bike-img[data-v-dc181e30]{max-width:200px}@media screen and (max-width: 700px){#bike[data-v-dc181e30]{margin-top:10px}#bike .bike-img[data-v-dc181e30]{max-width:150px}}#about[data-v-ef9c7198]{display:flex;height:100%}#about .container[data-v-ef9c7198]{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:20px;width:100%}#about .container .container-sub[data-v-ef9c7198]{min-width:50%;height:100%}#about .container .about-details[data-v-ef9c7198]{width:100%}@media screen and (max-width: 1000px){#about[data-v-ef9c7198]{height:auto}#about .container .container-sub[data-v-ef9c7198]{align-items:center}#about .container .container-sub .bike-img[data-v-ef9c7198]{max-width:60%}}@media screen and (max-width: 700px){#about .container[data-v-ef9c7198]{flex-direction:column}}#admin .admin-card[data-v-580b02ed]{width:100%}#admin .admin-card[data-v-580b02ed] .card .admin-form{display:flex;flex-direction:column}#admin .admin-card[data-v-580b02ed] .card .admin-form label{display:flex;align-items:center;justify-content:space-between;margin:10px 0;flex-wrap:wrap}#admin .admin-card[data-v-580b02ed] .card .admin-form label input{width:50%;font-size:.9em;margin-right:50px}@media screen and (max-width: 1000px){#admin .admin-card[data-v-580b02ed] .card .admin-form label input{margin-right:0}}@media screen and (max-width: 700px){#admin .admin-card[data-v-580b02ed] .card .admin-form label input{width:100%}}#admin .admin-card[data-v-580b02ed] .card .admin-form label input:disabled{-webkit-appearance:none;-moz-appearance:textfield;background-color:var(--admin-disabled-input-color);border-color:var(--admin-disabled-input-color);color:var(--app-color)}#admin .admin-card[data-v-580b02ed] .card .admin-form .form-buttons{display:flex;gap:10px;margin-bottom:10px}.no-workouts[data-v-b0c91cc6]{display:flex;justify-content:center}#timeline[data-v-bab374a4]{margin-bottom:20px}#timeline .more-workouts[data-v-bab374a4]{display:flex;justify-content:center}.calendar-workout{display:flex;padding:1px;cursor:pointer}.calendar-workout .sport-img{width:18px;height:18px}.calendar-workout sup{position:relative;top:-8px;left:-3px;width:2px}.calendar-workout sup .custom-fa-small{font-size:.7em}@media screen and (max-width: 700px){.calendar-workout .sport-img{padding:3px;width:20px;height:20px}.calendar-workout sup .custom-fa-small{font-size:.6em}}.calendar-workouts-chart[data-v-fda2985a]{display:flex}.calendar-workouts-chart .workouts-chart[data-v-fda2985a]{position:relative;padding:0}.calendar-workouts-chart .workouts-chart .workouts-count[data-v-fda2985a]{display:flex;justify-content:center;position:absolute;top:4px;left:6px;width:20px;font-size:1.1em;font-weight:700}@media screen and (max-width: 700px){.calendar-workouts-chart .workouts-chart .workouts-count[data-v-fda2985a]{top:16px;left:6px}.calendar-workouts-chart .workouts-chart[data-v-fda2985a] .donut-chart{padding-top:12px}.calendar-workouts-chart .workouts-chart[data-v-fda2985a] .donut-chart svg g circle{stroke-width:2;stroke-opacity:.8}}.calendar-workouts-chart .workouts-pane[data-v-fda2985a]{display:flex;padding-left:40px}.calendar-workouts-chart .workouts-pane .more-workouts[data-v-fda2985a]{background:var(--calendar-workouts-color);border-radius:4px;box-shadow:0 4px 8px 0 var(--calendar-workouts-box-shadow-0),0 6px 20px 0 var(--calendar-workouts-box-shadow-1);position:absolute;top:52px;left:0;min-width:60px;margin-bottom:20px;padding:10px;display:flex;flex-wrap:wrap;z-index:1000}@media screen and (max-width: 700px){.calendar-workouts-chart .workouts-pane .more-workouts[data-v-fda2985a]{min-width:70px}}.calendar-workouts-chart .workouts-pane .more-workouts .calendar-more-close[data-v-fda2985a]{position:absolute;font-size:.9em;top:5px;right:5px;padding:0}.calendar-workouts .desktop-display{display:flex}.calendar-workouts .mobile-display{display:none}.calendar-workouts .workouts-display{display:flex;flex-wrap:wrap;position:relative;margin:0 10px 0 0}.calendar-workouts .donut-display{display:flex;height:34px;width:34px}@media screen and (max-width: 700px){.calendar-workouts .desktop-display{display:none}.calendar-workouts .mobile-display{display:flex}}.calendar-cells{display:flex;flex-direction:column;width:100%}.calendar-cells .calendar-row{display:flex;flex-wrap:wrap;border-top:solid 1px var(--calendar-border-color)}.calendar-cells .calendar-row .calendar-cell{border-right:solid 1px var(--calendar-border-color);height:40px;flex-grow:1;flex-basis:8%;padding:5px 10px 5px 5px;width:8%;position:relative}.calendar-cells .calendar-row .calendar-cell .calendar-cell-day{position:absolute;font-size:.8em;line-height:1;top:.5em;right:.5em;font-weight:700}.calendar-cells .calendar-row .calendar-cell:last-child{border-right:0}@media screen and (max-width: 700px){.calendar-cells .calendar-row .calendar-cell:last-child .calendar-workouts .more-workouts{left:-45px}}.calendar-cells .calendar-row .disabled-cell{color:var(--app-color-light)}.calendar-cells .calendar-row .week-end{background:var(--calendar-week-end-color)}.calendar-cells .calendar-row .today{background:var(--calendar-today-color)}@media screen and (max-width: 700px){.calendar-cells .calendar-row:last-child .calendar-workouts .more-workouts{top:inherit;bottom:20px}}.calendar-days{display:flex;flex-direction:row;border-top:solid 1px var(--calendar-border-color)}.calendar-days .calendar-day{flex-grow:1;padding:5px;text-align:center;text-transform:uppercase;color:var(--calendar-day-color)}.calendar-header{display:flex;flex-direction:row}.calendar-header .calendar-arrow{flex-grow:1;padding:9px px}.calendar-header .calendar-arrow-left{text-align:left;cursor:pointer}.calendar-header .calendar-arrow-right{text-align:right;cursor:pointer}.calendar-header .calendar-month{flex-grow:1;font-weight:700;padding:10px;text-align:center;text-transform:uppercase}#user-calendar .calendar-card,#user-calendar .calendar-card .card-content{padding:0}.bar-chart[data-v-f96e822f]{position:relative;min-height:400px;width:100%}.bar-chart.minimal[data-v-f96e822f]{min-height:300px}@media screen and (max-width: 700px){.bar-chart[data-v-f96e822f]{min-height:268px}.bar-chart.minimal[data-v-f96e822f]{min-height:290px}}@media screen and (max-width: 420px){.bar-chart[data-v-f96e822f]{width:calc(100vw - 95px)}}.stats-chart[data-v-f61443a0]{width:100%}.stats-chart .chart-radio[data-v-f61443a0]{display:flex;justify-content:space-between;flex-wrap:wrap;padding:10px}.stats-chart .chart-radio label[data-v-f61443a0]{font-size:.85em;font-weight:400}@media screen and (max-width: 700px){.stats-chart .chart-radio label[data-v-f61443a0]{padding-bottom:10px}}.stats-chart .workouts-average[data-v-f61443a0]{display:flex;margin:10px 0 0 25px;min-height:20px}.stats-chart .workouts-average .fa-info-circle[data-v-f61443a0]{padding-right:5px}@media screen and (max-width: 700px){.stats-chart .workouts-average .fa-info-circle[data-v-f61443a0]{padding-right:2px}.stats-chart .workouts-average .info-box[data-v-f61443a0]{padding:5px 10px}}.user-month-stats[data-v-f5b0f1af] .card-content{padding:10px}.record[data-v-f8125b68]{display:flex;align-items:center;justify-content:space-between}.record span[data-v-f8125b68]{padding:2px}.record .record-type[data-v-f8125b68]{flex-grow:1}.record .record-value[data-v-f8125b68]{font-weight:700;white-space:nowrap;padding-right:10px}.record .record-date[data-v-f8125b68]{white-space:nowrap;min-width:30%;text-align:right}.records-card[data-v-7ab88f3c]{width:100%;padding-bottom:3px}.records-card[data-v-7ab88f3c] .card{font-size:.9em}.records-card[data-v-7ab88f3c] .card .card-title{display:flex;font-size:.9em}.records-card[data-v-7ab88f3c] .card .card-title .sport-img{padding-right:10px;height:20px;width:20px}.records-card[data-v-7ab88f3c] .card .card-content{font-size:.9em;padding:10px}.records-card[data-v-7ab88f3c] .card .card-content .record{display:flex;align-items:center;justify-content:space-between}.records-card[data-v-7ab88f3c] .card .card-content .record span{padding:2px}.records-card[data-v-7ab88f3c] .card .card-content .record .record-type{flex-grow:1}.records-card[data-v-7ab88f3c] .card .card-content .record .record-value{font-weight:700;white-space:nowrap;padding-right:10px}.records-card[data-v-7ab88f3c] .card .card-content .record .record-date{white-space:nowrap;min-width:30%;text-align:right}@media screen and (max-width: 1000px){.records-card[data-v-7ab88f3c] .card,.records-card[data-v-7ab88f3c] .card .card-title{font-size:1em}.records-card[data-v-7ab88f3c] .card .card-title .sport-img{height:22px;width:22px}}@media screen and (max-width: 500px){.records-card[data-v-7ab88f3c] .card .card-content .record.max-width .record-type{max-width:40%}}.user-records .no-records[data-v-e0d23747]{border:solid 1px var(--card-border-color);border-radius:4px;padding:10px;margin:10px}#user-stats{display:flex;flex:1 0 25%;justify-content:space-around;flex-wrap:wrap}.policy-message[data-v-a0e19cca]{background:var(--alert-background-color);color:var(--alert-color);border-radius:4px;padding:10px 20px}.policy-message .policy-link[data-v-a0e19cca]{color:var(--policy-link-color);text-decoration:underline}#dashboard .dashboard-container[data-v-42926bb4]{display:flex;flex-direction:row}#dashboard .dashboard-container .dashboard-sub-container[data-v-42926bb4]{display:flex;flex-direction:column}#dashboard .dashboard-container .left-container[data-v-42926bb4]{width:32%}#dashboard .dashboard-container .right-container[data-v-42926bb4]{width:68%}#dashboard .mobile-menu[data-v-42926bb4]{display:none}#dashboard .policy-container[data-v-42926bb4]{display:flex;justify-content:center}@media screen and (max-width: 1000px){#dashboard[data-v-42926bb4]{padding-bottom:60px}#dashboard .dashboard-container[data-v-42926bb4]{display:flex;flex-direction:column}#dashboard .dashboard-container .left-container[data-v-42926bb4],#dashboard .dashboard-container .right-container[data-v-42926bb4]{width:100%}#dashboard .mobile-menu[data-v-42926bb4]{display:flex}#dashboard .mobile-menu .box[data-v-42926bb4]{display:flex;justify-content:space-between;padding:0;width:100%}#dashboard .mobile-menu .box .mobile-menu-item[data-v-42926bb4]{display:flex;justify-content:space-around;border:none;border-radius:4px;box-shadow:none;font-size:.95em;padding:10px;width:25%}#dashboard .mobile-menu .box .mobile-menu-item .fa-trophy[data-v-42926bb4]{color:var(--app-color)}#dashboard .mobile-menu .box .mobile-menu-item.is-selected[data-v-42926bb4]{color:var(--mobile-menu-selected-color);background-color:var(--mobile-menu-selected-bgcolor)}#dashboard .mobile-menu .box .mobile-menu-item.is-selected .fa-trophy[data-v-42926bb4]{color:var(--mobile-menu-selected-color)}#dashboard .is-hidden[data-v-42926bb4]{display:none}}@media screen and (max-width: 700px){#dashboard .policy-container[data-v-42926bb4]{margin:0 5px}}.follow-request[data-v-dc09ab49]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.follow-request .follow-request-user[data-v-dc09ab49]{display:flex;align-items:center}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture{min-width:initial;padding:0 10px}@media screen and (max-width: 700px){.follow-request .follow-request-user[data-v-dc09ab49] .user-picture{padding:0 10px 5px}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture img{height:60px;width:60px}.follow-request .follow-request-user[data-v-dc09ab49] .user-picture .no-picture{font-size:3.8em}}.follow-request .follow-request-actions[data-v-dc09ab49]{display:flex;flex-direction:column;gap:10px}.follow-request .follow-request-actions button[data-v-dc09ab49]{display:flex;gap:10px}.follow-request .follow-request-actions button .fa[data-v-dc09ab49]{line-height:20px}.report-notification[data-v-ff0a4948]{display:flex;justify-content:space-between;flex-wrap:wrap}.report-notification .reported-user[data-v-ff0a4948]{display:flex;align-items:center}.report-notification .reported-user .user-picture[data-v-ff0a4948]{min-width:initial;padding:0 10px}.report-notification .reported-comment[data-v-ff0a4948],.report-notification .reported-workout[data-v-ff0a4948]{width:100%}.report-notification .report-button[data-v-ff0a4948]{display:flex;flex-direction:column;justify-content:center}.notification-card[data-v-c0558938] .card-title{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center}.notification-card[data-v-c0558938] .card-title .notification-icon{padding-right:5px}.notification-card[data-v-c0558938] .card-title .mark-action{font-weight:initial;font-style:italic;border:none;box-shadow:none}.notification-card[data-v-c0558938] .card-title .notification-data-button{display:flex;gap:5px;align-items:center}.notification-card[data-v-c0558938] .card-title .notification-data-button .notification-date{font-size:.85em;font-style:italic;font-weight:400;white-space:nowrap}.notification-card[data-v-c0558938] .box{margin:10px 0}.notification-card .auth-user[data-v-c0558938]{display:flex;align-items:center}.notification-card .auth-user .user-picture[data-v-c0558938]{min-width:initial;padding:0 10px}.notification-card .auth-user .user-picture img[data-v-c0558938]{height:60px;width:60px}.notification-card .auth-user .user-picture .no-picture[data-v-c0558938]{font-size:3.8em}.notification-card .notification-reason[data-v-c0558938]{font-weight:700;text-transform:capitalize}.notification-card .comment-box[data-v-c0558938]{padding:5px 10px}.notification-card .info-box.suspended[data-v-c0558938]{padding:30px}.notification-card .appeal-link[data-v-c0558938]{margin-left:10px}.notification-card[data-v-c0558938] .suspended.info-box{font-size:.9em}.notification-card[data-v-c0558938] .workout-card .suspended.info-box{margin-bottom:10px}.notification-card.read[data-v-c0558938]{color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] .user-picture img{opacity:.5}.notification-card.read[data-v-c0558938] .user-picture .no-picture,.notification-card.read[data-v-c0558938] .workout-comment .fa-heart{color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] a:not(.appeal-link){color:var(--app-color-lighter)}.notification-card.read[data-v-c0558938] .sport-img,.notification-card.read[data-v-c0558938] .suspended.info-box,.notification-card.read[data-v-c0558938] .appeal-rejected{opacity:.5}.notification-card.read .mark-action[data-v-c0558938]{color:var(--app-color-lighter)}.notification-card.read .mark-action[data-v-c0558938]:hover{background:var(--app-color-lighter);color:var(--button-confirm-bg-color)}.notification-card .appeal-in-progress[data-v-c0558938]{margin-top:5px}#notifications .no-notifications[data-v-a25ddea4]{padding:10px;text-align:center}#notifications .mark-all-action[data-v-a25ddea4]{border:none;box-shadow:none;font-style:italic;font-weight:initial;margin-top:10px;padding-top:0}#notifications .mark-all-action[data-v-a25ddea4]:hover{background-color:initial;color:var(--app-color);text-decoration:underline}.notifications-filters .form .form-all-items[data-v-6cb336ec]{display:flex;flex-direction:column;padding-top:0}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{display:flex;flex-direction:column;padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item[data-v-6cb336ec]{display:flex;flex-direction:column}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:34%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item input[data-v-6cb336ec]{height:16px}.notifications-filters .form .form-all-items .form-items-group .form-item select[data-v-6cb336ec]{height:38px;padding:0 5px}.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:10px}.notifications-filters .form .form-all-items .form-items-group .form-item-title input.title[data-v-6cb336ec]{width:100%}.notifications-filters .status-title[data-v-6cb336ec]{font-weight:700}.notifications-filters .status-radio[data-v-6cb336ec]{display:flex;justify-content:space-around;padding-top:5px}@media screen and (max-width: 1000px){.notifications-filters .form .form-all-items[data-v-6cb336ec]{flex-direction:row;padding-top:5px}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{padding:0 5px;height:100%}.notifications-filters .form .form-all-items .form-items-group .form-item label[data-v-6cb336ec],.notifications-filters .form .form-all-items .form-items-group .form-item span[data-v-6cb336ec]{font-size:.9em}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{flex-direction:column;justify-content:normal;padding:0}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:85%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:0}.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:0}.notifications-filters .form .form-all-items .form-items-group .notification-labels[data-v-6cb336ec]{min-width:100px}}@media screen and (max-width: 700px){.notifications-filters .form .form-all-items[data-v-6cb336ec]{flex-direction:column;padding-top:0}.notifications-filters .form .form-all-items .notification-labels[data-v-6cb336ec]{min-width:10px}.notifications-filters .form .form-all-items .form-items-group[data-v-6cb336ec]{padding:5px}.notifications-filters .form .form-all-items .form-items-group .form-item label[data-v-6cb336ec]{font-size:1em}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-6cb336ec]{flex-direction:row;justify-content:space-around;align-items:center}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-6cb336ec]{width:50%}.notifications-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-6cb336ec]{padding:5px}}@media screen and (max-width: 500px){.notifications-filters .form .form-all-items .form-items-group .form-item-title[data-v-6cb336ec]{padding-top:10px}.notifications-filters .form .form-all-items .form-items-group .form-item-title input.title[data-v-6cb336ec]{width:100%}}.chart-menu[data-v-dacfdeb2]{display:flex;align-items:center}.chart-menu .chart-arrow[data-v-dacfdeb2],.chart-menu .time-frames[data-v-dacfdeb2]{flex-grow:1;text-align:center}.chart-menu .chart-arrow[data-v-dacfdeb2]{cursor:pointer}@media screen and (max-width: 500px){.chart-menu .chart-arrow[data-v-dacfdeb2]{padding:6px}}.stats-type[data-v-dacfdeb2]{display:flex;justify-content:center;margin:10px 0 5px}.stats-type .stats-type-radio[data-v-dacfdeb2]{display:flex;gap:10px}.stats-type .stats-type-radio label[data-v-dacfdeb2]{font-size:.9em;font-weight:400;text-transform:lowercase}.sports-menu{display:flex;flex-wrap:wrap;padding:0 10px}.sports-menu label{display:flex;align-items:center;font-size:.9em;font-weight:400;min-width:120px;padding:10px}@media screen and (max-width: 1000px){.sports-menu label{min-width:100px}}@media screen and (max-width: 500px){.sports-menu label{min-width:20px}.sports-menu label .sport-label{display:none}}.sports-menu .sport-img{padding:3px;width:20px;height:20px}#user-statistics.stats-disabled[data-v-f9158924]{opacity:.3;pointer-events:none}#user-statistics[data-v-f9158924] .chart-radio{justify-content:space-around;padding:10px 10px 0}.sport-stat-card{flex:0 0 33%}@media screen and (max-width: 700px){.sport-stat-card{flex:1 0 50%}}@media screen and (max-width: 500px){.sport-stat-card{flex:1 0 100%}}.sport-stat-card .stat-content{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px}.sport-stat-card .stat-content .stat-icon .fa{font-size:2em}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-icon .fa{font-size:1.5em}}.sport-stat-card .stat-content .stat-details{display:flex;flex-direction:column;align-items:center;justify-content:space-around}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details{width:100%}}.sport-stat-card .stat-content .stat-details .stat-label{text-transform:capitalize}.sport-stat-card .stat-content .stat-details .stat-values{display:flex;gap:5px;align-items:baseline;min-height:30px}.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1.3em;font-weight:700}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1.2em}}@media screen and (max-width: 500px){.sport-stat-card .stat-content .stat-details .stat-values .stat-huge{font-size:1em}}.sport-stat-card .stat-content .stat-details .stat-values .fa-refresh{font-size:1.4em}.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:1em}@media screen and (max-width: 1000px){.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:.9em}}@media screen and (max-width: 500px){.sport-stat-card .stat-content .stat-details .stat-values .stat{font-size:.8em}}.sport-stat-card .stat-content .stat-details .stat-average{display:flex;gap:5px;font-style:italic;font-size:.9em;text-transform:lowercase;min-height:25px}#sport-statistics #sport[data-v-dad31bfb]{height:30px;margin-left:10px;padding:5px}#sport-statistics .label[data-v-dad31bfb]{font-weight:700;text-transform:capitalize;margin:20px 0 10px}#sport-statistics .statistics-workouts-count[data-v-dad31bfb]{font-style:italic}#sport-statistics .sport-statistics .sport-img-label[data-v-dad31bfb]{display:flex;gap:10px;align-items:flex-end;margin-top:15px}#sport-statistics .sport-statistics .sport-img-label .sport-img[data-v-dad31bfb]{height:50px;width:50px}#sport-statistics .sport-statistics .sport-img-label .sport-label[data-v-dad31bfb]{font-size:25px;font-weight:700}#sport-statistics .sport-statistics .statistics[data-v-dad31bfb]{display:flex;justify-content:flex-start;flex-wrap:wrap}#sport-statistics .records[data-v-dad31bfb]{width:425px}@media screen and (max-width: 500px){#sport-statistics .sport-statistics .sport-img-label .sport-img[data-v-dad31bfb]{height:50px;width:50px}#sport-statistics .sport-statistics .sport-img-label .sport-label[data-v-dad31bfb]{font-size:20px;font-weight:700}#sport-statistics .sport-statistics .records[data-v-dad31bfb]{font-size:.9em;width:100%}}#statistics[data-v-94133818]{display:flex;width:100%}#statistics .container[data-v-94133818]{display:flex;flex-direction:column;width:100%}#statistics .stats-types[data-v-94133818]{height:30px;margin-left:10px;padding:5px}[data-v-8a25f980]:root{--app-background-color: #ffffff;--app-color: #2c3e50;--app-color-light: #6f7070;--app-color-lighter: #959ea7;--app-a-color: #40578a;--app-a-text-decoration-color: #d2d2d2;--app-shadow-color: lightgrey;--app-loading-color: #f3f3f3;--app-loading-top-color: var(--app-color);--button-hover-color: #ffffff;--button-transparent-hover-color: var(--app-color);--button-cancel-bg-color: #ffffff;--button-cancel-color: var(--app-color);--button-confirm-bg-color: #ffffff;--button-confirm-color: var(--app-color);--button-danger-bg-color: #ffffff;--button-danger-color: #dc3545;--button-danger-hover-bg-color: #dc3545;--button-danger-hover-color: #ffffff;--card-border-color: #c4c7cf;--input-border-color: #9da3af;--input-bg-color: #ffffff;--input-color: var(--app-color);--input-error-color: #dc3545;--dropdown-hover-color: #eff0f5;--dropdown-background-color: #ffffff;--dropdown-border-color: lightgrey;--policy-border-color: #ccc;--policy-link-color: var(--app-a-color);--box-shadow-color: lightgrey;--admin-disabled-input-color: #ffffff;--multiselect-tags-bg-color: #ffffff;--multiselect-tag-bg-color: #e5e7ea;--multiselect-tag-color: var(--app-color);--multiselect-tag-icon-hover-bg-color: #647088;--multiselect-tag-icon-hover-color: #ffffff;--multiselect-option-bg-color: #ffffff;--multiselect-option-color: var(--app-color);--multiselect-option-highlight-bg-color: #9fa2af;--multiselect-option-highlight-color: #ffffff;--multiselect-option-selected-highlight-bg-color: #ff6a6a;--multiselect-option-selected-highlight-color: #fff;--multiselect-option-selected-highlight-after-bg-color: #ff6a6a;--multiselect-option-selected-highlight-after-color: #fff;--multiselect-option-selected-bg-color: #f3f3f3;--multiselect-option-selected-color: #35495e;--multiselect-content-wrapper-border-color: var(--input-border-color);--multiselect-disabled-bg-color: transparent;--multiselect-select-disabled-bg-color: transparent;--multiselect-select-disabled-color: #a6a6a6;--custom-checkbox-border-color: #6d797a;--custom-checkbox-checked-bg-color: #6d797a;--custom-checkbox-checked-color: #ffffff;--calendar-border-color: #c4c7cf;--calendar-week-end-color: #f5f5f5;--calendar-day-color: var(--app-color-light);--calendar-today-color: #eff1f3;--calendar-workouts-color: whitesmoke;--calendar-workouts-box-shadow-0: rgba(0, 0, 0, .2);--calendar-workouts-box-shadow-1: rgba(0, 0, 0, .19);--modal-background-color: rgba(0, 0, 0, .3);--nav-bar-background-color: #ffffff;--nav-bar-link-active: #485b6e;--nav-border-color: #c5ccdb;--mobile-menu-selected-color: #ffffff;--mobile-menu-selected-bgcolor: #9da3af;--footer-background-color: #ffffff;--footer-border-color: #ebeef3;--footer-color: #6f7070;--form-info: var(--alert-color);--alert-background-color: #d6dde3;--alert-color: #3f3f3f;--info-background-color: #e5e7ea;--info-color: var(--app-color);--error-background-color: #ffd2d2;--error-color: #db1924;--success-background-color: #d9ecd9;--success-color: #306430;--disabled-background-color: #e0e0e0;--disabled-border-color: transparent;--disabled-color: #727272;--disabled-sport-color: #616161;--scroll-button-bg-color: rgba(255, 255, 255, .7);--workout-trophy-color: #daa520;--workout-img-color: invert(22%) sepia(25%) saturate(646%) hue-rotate(169deg) brightness(97%) contrast(96%);--workout-no-map-bg-color: #eaeaea;--workout-no-map-color: #585959;--map-control-color: #000000;--map-control-bg-color: #ffffff;--map-control-border-color: #bfc0ab;--map-control-hover-bg-color: var(--dropdown-hover-color);--map-attribution-text: var(--app-color);--map-display-hover-attribution-text: initial;--map-attribution-bg-color: rgba(255, 255, 255, .7);--map-filter: initial;--map-display-hover-filter: initial;--map-layers-overlays: initial;--map-control-bar: #bfc0ab;--no-map-filter: initial;--workout-static-map-shadow-color: var(--app-shadow-color);--workout-static-map-bg-color: var(--workout-no-map-bg-color);--icon-svg-filter: invert(19%) sepia(9%) saturate(2921%) hue-rotate(169deg) brightness(85%) contrast(80%);--cell-heading-bg-color: #eeeeee;--cell-heading-color: #696969;--svg-filter: drop-shadow(10px 10px 10px var(--app-shadow-color));--password-bg-color: #d7dadf;--password-color-weak: #e46d6e;--password-color-medium: #f8bc4a;--password-color-good: #acc578;--password-color-strong: #57c255;--scroll-thumb-color: #949697;--text-background-color: rgb(114, 114, 114, .1);--text-visibilty: rgba(37, 37, 37, .65);--comment-border-color: #d5d7de;--comment-background: #fff;--comment-background-highlight: linear-gradient(to right, #eef1f4, #f3f7fa);--user-suggestion-background: #fff;--like-color: #ee2222}#user-auth-form[data-v-8a25f980]{display:flex}#user-auth-form #user-form[data-v-8a25f980]{width:60%}#user-auth-form #user-form .account[data-v-8a25f980]{font-size:.9em;padding-left:10px}#user-auth-form #user-form .links[data-v-8a25f980]{font-size:.9em;font-style:italic;padding:0 10px}#user-auth-form #user-form button[data-v-8a25f980]{margin:10px;border:solid 1px var(--app-color)}#user-auth-form #user-form button[data-v-8a25f980]:disabled{border-color:var(--disabled-color)}#user-auth-form #user-form .success-message[data-v-8a25f980]{margin:10px}#user-auth-form #user-form .accepted_policy[data-v-8a25f980]{display:flex;align-items:center;font-size:.85em;font-weight:400}#user-auth-form #user-form .form-items label[data-v-8a25f980]{padding-left:10px}#user-auth-form #user-form .form-items label.accepted_policy[data-v-8a25f980]{padding-left:0}#user-auth-form #user-form .form-items label.accepted_policy input[data-v-8a25f980]{margin-top:10px}#user-auth-form #user-form .form-items[data-v-8a25f980] input{margin-top:0}#user-auth-form #user-form .form-items[data-v-8a25f980] .password-strength input{margin-top:10px}#user-auth-form #user-form .form-info[data-v-8a25f980]{margin-bottom:5px}@media screen and (max-width: 1000px){#user-auth-form[data-v-8a25f980]{margin-bottom:50px}#user-auth-form #user-form[data-v-8a25f980]{width:100%}}.user-form[data-v-8a25f980]{margin-top:200px}@media screen and (max-width: 700px){.user-form[data-v-8a25f980]{margin-top:10px}}#account-confirmation-email[data-v-08a26b50]{display:flex;flex-direction:column}#account-confirmation-email .email-sent[data-v-08a26b50]{display:flex;flex-direction:column;align-items:center}#account-confirmation-email .email-sent svg[data-v-08a26b50]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#account-confirmation-email .email-sent .email-sent-message[data-v-08a26b50]{font-size:1.1em;text-align:center}@media screen and (max-width: 1000px){#account-confirmation-email .email-sent .email-sent-message[data-v-08a26b50]{font-size:1em}}#account-confirmation-email[data-v-08a26b50] .card .card-content #user-auth-form{margin-top:0}#account-confirmation-email[data-v-08a26b50] .card .card-content #user-auth-form #user-form{width:100%}#account-confirmation[data-v-9a9c1644]{display:flex}#account-confirmation .container[data-v-9a9c1644]{display:flex;justify-content:center;width:50%}@media screen and (max-width: 700px){#account-confirmation .container[data-v-9a9c1644]{width:100%}}#account-confirmation[data-v-576433a9]{display:flex;flex-direction:column;align-items:center}#account-confirmation svg[data-v-576433a9]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#account-confirmation .error-message[data-v-576433a9]{font-size:1.1em;text-align:center;display:flex;flex-direction:column}@media screen and (max-width: 1000px){#account-confirmation .error-message[data-v-576433a9]{font-size:1em}}#email-update[data-v-8710c2be]{display:flex;flex-direction:column;align-items:center}#email-update svg[data-v-8710c2be]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#email-update .error-message[data-v-8710c2be]{font-size:1.1em;text-align:center;display:flex;flex-direction:column}@media screen and (max-width: 1000px){#email-update .error-message[data-v-8710c2be]{font-size:1em}}#loginOrRegister[data-v-7344db74]{display:flex}#loginOrRegister .container[data-v-7344db74]{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:20px;width:100%}#loginOrRegister .container .container-sub[data-v-7344db74]{min-width:50%;height:100%}@media screen and (max-width: 1000px){#loginOrRegister[data-v-7344db74]{height:auto}#loginOrRegister .container .container-sub[data-v-7344db74]{align-items:center}#loginOrRegister .container .container-sub .bike-img[data-v-7344db74]{max-width:60%}}@media screen and (max-width: 700px){#loginOrRegister .container[data-v-7344db74]{flex-direction:column}}#password-action-done[data-v-4f0a2bcc]{display:flex;flex-direction:column;align-items:center}#password-action-done svg[data-v-4f0a2bcc]{stroke:none;fill-rule:nonzero;fill:var(--app-color);filter:var(--svg-filter);width:100px}#password-action-done .password-message[data-v-4f0a2bcc]{font-size:1.1em;text-align:center}@media screen and (max-width: 1000px){#password-action-done .password-message[data-v-4f0a2bcc]{font-size:1em}}#password-reset-request[data-v-25ace80f] .card .card-content #user-form{width:100%}#password-reset[data-v-f7d7dbd1]{display:flex}#password-reset .container[data-v-f7d7dbd1]{display:flex;justify-content:center;width:50%}@media screen and (max-width: 700px){#password-reset .container[data-v-f7d7dbd1]{width:100%}}#profile[data-v-10b39629]{display:flex;flex-direction:column;padding:0 10px 40px}#profile[data-v-10b39629] .profile-form{display:flex;flex-direction:column}#profile[data-v-10b39629] .profile-form hr{border-color:var(--card-border-color);border-width:1px 0 0 0}#profile[data-v-10b39629] .profile-form .form-items{display:flex;flex-direction:column}#profile[data-v-10b39629] .profile-form .form-items input{margin:5px 0}#profile[data-v-10b39629] .profile-form .form-items select{height:35px;padding:5px 0}#profile[data-v-10b39629] .profile-form .form-items ::v-deep(.custom-textarea) textarea{padding:5px}#profile[data-v-10b39629] .profile-form .form-items .form-item{display:flex;flex-direction:column;padding:10px}#profile[data-v-10b39629] .profile-form .form-items .birth-date{height:20px}#profile[data-v-10b39629] .profile-form .form-buttons{display:flex;margin-top:10px;padding:10px 0;gap:10px}#user[data-v-f352961e]{margin:auto;width:700px}@media screen and (max-width: 1000px){#user[data-v-f352961e]{width:100%;margin:0 auto 50px}}.users-list[data-v-b77a3b27]{display:flex;flex-direction:column;margin-bottom:50px;width:100%}.users-list .users-container[data-v-b77a3b27]{display:flex;align-content:flex-start;flex-wrap:wrap;padding:0;width:100%}.users-list .users-container .user-box[data-v-b77a3b27]{width:33%}@media screen and (max-width: 1000px){.users-list .users-container .user-box[data-v-b77a3b27]{width:50%}}@media screen and (max-width: 700px){.users-list .users-container .user-box[data-v-b77a3b27]{width:100%}}.users-list .no-users[data-v-b77a3b27]{padding:10px}#workout-edition[data-v-24e1fdb7] .card .card-title{text-align:center;text-transform:uppercase}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content{padding:10px 0}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items{display:flex;flex-direction:column}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items input{height:20px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items label{text-transform:lowercase}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .workout-date-duration{display:flex;flex-direction:row;justify-content:space-between}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .workout-date-duration{flex-direction:column}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item{display:flex;flex-direction:column;padding:5px 10px 2.5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-date-time{display:flex}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-date-time #workout-date{margin-right:10px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item .workout-duration{width:25px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio{display:flex;justify-content:space-around}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio label{font-weight:400}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio label{font-size:.9em}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-items .form-item-radio input{margin-top:-2px;vertical-align:middle}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-buttons{display:flex;justify-content:flex-end;padding:10px 5px 0}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .form-buttons button{margin:5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help{display:flex;justify-content:space-around;margin-top:10px;padding:7.5px 10px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div{display:flex}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div{flex-direction:column}}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .files-help div ul{margin:0;padding:0 20px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .field-help{display:flex;margin-top:5px}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data{display:flex;flex-direction:row;justify-content:space-between}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data .form-item{width:30%}@media screen and (max-width: 1000px){#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data{flex-direction:column}#workout-edition[data-v-24e1fdb7] .card .card-content #workout-form .workout-data .form-item{width:initial}}@media screen and (max-width: 700px){#workout-edition[data-v-24e1fdb7]{margin-bottom:0}#workout-edition.center-form[data-v-24e1fdb7]{margin:50px auto}#workout-edition.with-margin[data-v-24e1fdb7]{margin-top:0}}#workout-edition .errored[data-v-24e1fdb7]{outline:2px solid var(--input-error-color)}.workout-comments[data-v-dbdc1cf2]{padding-bottom:20px}.workout-comments .no-comments[data-v-dbdc1cf2]{font-style:italic}.workout-comments .add-comment-button[data-v-dbdc1cf2]{margin:10px 0}.workout-comments .loader[data-v-dbdc1cf2]{border-width:5px;height:20px;margin-left:50%;width:20px}.workout-comments .card-content div[data-v-dbdc1cf2]:not(:nth-last-child(-n+2)){border-bottom:1px solid var(--comment-border-color)}#comments[data-v-da00ce02]{display:flex}#comments .container[data-v-da00ce02]{width:100%;padding:0}#comments .container .comments-container[data-v-da00ce02]{width:100%}#workout-card-title[data-v-0dda19ba]{display:flex;justify-content:space-between;align-items:center}#workout-card-title .workout-arrow[data-v-0dda19ba]{cursor:pointer;padding:10px}#workout-card-title .workout-arrow.inactive[data-v-0dda19ba]{color:var(--disabled-color);cursor:default}#workout-card-title .workout-card-title[data-v-0dda19ba]{display:flex;flex-grow:1;align-items:center}#workout-card-title .workout-card-title .sport-img[data-v-0dda19ba]{padding:0 10px}#workout-card-title .workout-card-title .sport-img[data-v-0dda19ba] svg{height:35px;width:35px}#workout-card-title .workout-card-title .workout-title[data-v-0dda19ba]{display:flex;flex-direction:row;align-items:baseline}#workout-card-title .workout-card-title .workout-title span[data-v-0dda19ba]{margin-right:5px}#workout-card-title .workout-card-title .workout-date[data-v-0dda19ba]{font-size:.8em;font-weight:400}#workout-card-title .workout-card-title .workout-segment[data-v-0dda19ba]{font-weight:400}#workout-card-title .workout-card-title .workout-link[data-v-0dda19ba]{padding-left:10px}#workout-card-title .workout-card-title .fa[data-v-0dda19ba]{padding:0 3px}#workout-card-title .workout-card-title .fa-heart.liked[data-v-0dda19ba]{color:var(--like-color)}#workout-card-title .workout-card-title .icon-button[data-v-0dda19ba]{margin-left:2px}@media screen and (max-width: 700px){#workout-card-title .workout-arrow[data-v-0dda19ba]{padding:5px}}@media screen and (max-width: 700px) and (max-width: 700px){#workout-card-title .workout-card-title .fa-download[data-v-0dda19ba],#workout-card-title .workout-card-title .fa-trash[data-v-0dda19ba],#workout-card-title .workout-card-title .fa-edit[data-v-0dda19ba]{padding:0 7px}}@media screen and (max-width: 700px){#workout-card-title .workout-card-title .workout-title[data-v-0dda19ba]{display:flex;flex-direction:column}}.workout-record sup[data-v-0c5d556a]{font-size:75%;line-height:0}.wind[data-v-e1f7f9cc]{display:flex;justify-content:center}.wind .wind-bearing[data-v-e1f7f9cc]{padding-left:5px}#workout-weather[data-v-d507bd79]{padding-top:10px}#workout-weather .weather-img[data-v-d507bd79]{height:30px;filter:var(--icon-svg-filter)}#workout-weather .weather-img-small[data-v-d507bd79]{height:20px}#workout-weather .weather-table[data-v-d507bd79]{width:100%;text-align:center}#workout-weather .weather-table .weather-th[data-v-d507bd79]{display:flex;flex-direction:column;text-transform:capitalize}#workout-weather .weather-table tbody[data-v-d507bd79]{font-size:.8em}#workout-info[data-v-299a57f0]{display:flex;flex-direction:column;padding:10px 20px;width:100%}#workout-info .fa[data-v-299a57f0],#workout-info .mountains[data-v-299a57f0]{padding-right:5px}#workout-info .workout-data[data-v-299a57f0]{padding:5px 0}#workout-info .workout-data .label[data-v-299a57f0]{text-transform:capitalize}#workout-info .workout-data .value[data-v-299a57f0]{font-weight:700;text-transform:lowercase}@media screen and (max-width: 700px){#workout-info[data-v-299a57f0]{padding:10px}}#workout-map[data-v-6abbf12a]{padding:10px 0}#workout-map .leaflet-container[data-v-6abbf12a],#workout-map .no-map[data-v-6abbf12a]{height:400px;width:600px}#workout-map .no-map[data-v-6abbf12a]{line-height:400px;filter:var(--no-map-filter)}#workout-map .leaflet-container .map[data-v-6abbf12a]{filter:var(--map-filter)}#workout-map .leaflet-container .map-control[data-v-6abbf12a]{background:var(--map-control-bg-color);padding:5px 10px;border:2px solid var(--map-control-border-color);border-radius:3px;color:var(--map-control-color)}#workout-map .leaflet-container .map-control[data-v-6abbf12a]:hover{background-color:var(--map-control-hover-bg-color)}#workout-map[data-v-6abbf12a] .fullscreen{display:flex;align-items:center;z-index:1000}#workout-map[data-v-6abbf12a] .fullscreen .fullscreen-map{height:100%;width:100%}@media screen and (max-width: 700px){#workout-map[data-v-6abbf12a]{padding:0}#workout-map .leaflet-container[data-v-6abbf12a]{width:100%;height:300px}#workout-map .no-map[data-v-6abbf12a]{display:none}}.workout-visibility-levels[data-v-a634386f]{display:flex;align-items:center;font-size:.9em;font-style:italic}.workout-visibility-levels .visibility[data-v-a634386f]{padding-left:5px}.workout-visibility-levels .visibility[data-v-a634386f]:not(:first-child):before{content:"- "}.workout-visibility-levels .visibility .workout-visibility[data-v-a634386f]{padding-right:5px}.workout-visibility-levels .visibility .visibility-label[data-v-a634386f]{color:var(--text-visibilty);text-transform:lowercase}@media screen and (max-width: 500px){.workout-visibility-levels .visibility .visibility-label[data-v-a634386f]{display:none}}.workout-detail[data-v-58f8e3a3]{display:flex}.workout-detail[data-v-58f8e3a3] .card{margin:0 10px;width:100%}.workout-detail[data-v-58f8e3a3] .card .card-title{padding:10px 15px}.workout-detail[data-v-58f8e3a3] .card .card-title .report-submitted{display:flex}.workout-detail[data-v-58f8e3a3] .card .card-title .report-submitted .info-box{padding:10px 20px;margin:5px 0 0 10px}.workout-detail[data-v-58f8e3a3] .card .card-title .report-form .error-message{font-weight:400;margin:10px 0}.workout-detail[data-v-58f8e3a3] .card .card-content{display:flex;flex-direction:column}.workout-detail[data-v-58f8e3a3] .card .card-content .workout-map-data{display:flex;flex-direction:row}.workout-detail[data-v-58f8e3a3] .card .card-content .workout-equipments{display:flex;flex-wrap:wrap;gap:10px;margin-top:5px}.workout-detail[data-v-58f8e3a3] .card .card-content .appeal{margin-top:10px}.workout-detail[data-v-58f8e3a3] .card .card-content .appeal-button{padding:0 10px;font-size:.95em}@media screen and (max-width: 1000px){.workout-detail[data-v-58f8e3a3] .card .card-content .workout-map-data{display:flex;flex-direction:column}}#workout-chart[data-v-a8515886] .card .card-title{text-transform:capitalize}#workout-chart[data-v-a8515886] .card .card-content{display:flex;flex-direction:column}#workout-chart[data-v-a8515886] .card .card-content .chart-radio{width:100%;display:flex;justify-content:center}#workout-chart[data-v-a8515886] .card .card-content .chart-radio label{padding:0 10px}#workout-chart[data-v-a8515886] .card .card-content .chart-info{display:flex;justify-content:space-between;font-size:.85em;font-style:italic}#workout-chart[data-v-a8515886] .card .card-content #chart-legend{display:flex;justify-content:center}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul{display:flex;margin-bottom:0;padding:0}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li{cursor:pointer;display:flex;font-size:.85em;padding:0 5px}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li label{display:flex;font-weight:400}#workout-chart[data-v-a8515886] .card .card-content #chart-legend ul li label span{border-radius:5%;border-style:solid;border-width:1.5px;height:10px;margin-top:4px;margin-left:2px;width:20px}#workout-chart[data-v-a8515886] .card .card-content .line-chart{min-height:400px}@media screen and (max-width: 700px){#workout-chart[data-v-a8515886] .card .card-content{padding:10px 0}#workout-chart[data-v-a8515886] .card .card-content .chart-info{display:flex;flex-direction:column-reverse}#workout-chart[data-v-a8515886] .card .card-content .chart-info .elevation-start{padding:10px 15px 0}#workout-chart[data-v-a8515886] .card .card-content .chart-info .no-data-cleaning{padding:0 20px}#workout-chart[data-v-a8515886] .card .card-content .line-chart{min-height:338px}}#workout-content[data-v-d2967c38] .card-title .icon-button{cursor:pointer;padding:0;margin-left:5px}#workout-content[data-v-d2967c38] .card-content .workout-content{white-space:pre-wrap}#workout-content[data-v-d2967c38] .card-content .read-more{font-size:.85em;font-weight:700;padding:0 10px}#workout-content[data-v-d2967c38] .card-content .edition-loading{display:flex;align-items:center}#workout-content[data-v-d2967c38] .card-content .notes{font-style:italic}#workout-content[data-v-d2967c38] .card-content .error-message{margin:10px 0}#workout-content[data-v-d2967c38] .card-content .form-buttons{display:flex;margin-top:5px;gap:10px}#workout-segments[data-v-eaec7ac1] .card .card-title{text-transform:capitalize}#workout-segments[data-v-eaec7ac1] .card .card-content{padding-bottom:0;padding-top:0}#workout-segments[data-v-eaec7ac1] .card .card-content a{font-weight:700}#workout-segments[data-v-eaec7ac1] .card .card-content ul{padding:0 10px;list-style:square}.workout-user[data-v-942d8f8a]{display:flex;flex-direction:row;gap:20px;align-items:center}.workout-user .user-img-name[data-v-942d8f8a]{display:flex;align-items:center;gap:10px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture{padding-left:10px;min-width:0}.workout-user .user-img-name[data-v-942d8f8a] .user-picture img{height:48px;width:48px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture .no-picture{font-size:3em}.workout-user .user-img-name .user-name[data-v-942d8f8a]{font-size:1.3em}@media screen and (max-width: 700px){.workout-user[data-v-942d8f8a]{flex-direction:column;align-items:flex-start;gap:0}}@media screen and (max-width: 500px){.workout-user .user-img-name[data-v-942d8f8a] .user-picture{padding-left:10px;min-width:0}.workout-user .user-img-name[data-v-942d8f8a] .user-picture img{height:30px;width:30px}.workout-user .user-img-name[data-v-942d8f8a] .user-picture .no-picture{font-size:2em}.workout-user .user-img-name .user-name[data-v-942d8f8a]{font-size:1em;padding-left:5px}.workout-user[data-v-942d8f8a] .user-stats{flex-wrap:wrap}}#workout[data-v-ea73edb8]{display:flex}#workout .container[data-v-ea73edb8]{width:100%;padding:0}#workout .container .workout-container[data-v-ea73edb8]{width:100%}#workout .container .workout-container .user-header[data-v-ea73edb8]{align-items:center}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-picture img{height:50px;width:50px}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-picture .no-picture{font-size:3em}#workout .container .workout-container .user-header[data-v-ea73edb8] .user-details{flex-direction:row}#workout .container .workout-loading[data-v-ea73edb8]{height:calc(100vh - 130px);width:100%}#workout .container .workout-loading .loading[data-v-ea73edb8]{display:flex;align-items:center;height:100%}.workouts-filters .form .form-all-items[data-v-3341c41a]{display:flex;flex-direction:column;padding-top:0}.workouts-filters .form .form-all-items .form-items-group[data-v-3341c41a]{display:flex;flex-direction:column;padding:0 5px}.workouts-filters .form .form-all-items .form-items-group .form-item[data-v-3341c41a]{display:flex;flex-direction:column}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:34%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:5px}.workouts-filters .form .form-all-items .form-items-group .form-item input[data-v-3341c41a]{height:16px}.workouts-filters .form .form-all-items .form-items-group .form-item select[data-v-3341c41a]{height:38px;padding:0 5px}.workouts-filters .form .form-all-items .form-items-group .form-item-text input.text[data-v-3341c41a]{width:100%}.workouts-filters .form-button[data-v-3341c41a]{display:flex;justify-content:center;flex-wrap:wrap;margin:0 5px}.workouts-filters .form-button button[data-v-3341c41a]{margin-top:10px;width:100%}@media screen and (max-width: 1000px){.workouts-filters .form .form-all-items[data-v-3341c41a]{flex-direction:row;padding-top:5px;justify-content:center}.workouts-filters .form .form-all-items .form-items-group[data-v-3341c41a]{flex-grow:1;padding:0 5px;height:100%}.workouts-filters .form .form-all-items .form-items-group .form-item label[data-v-3341c41a],.workouts-filters .form .form-all-items .form-items-group .form-item span[data-v-3341c41a]{font-size:.9em}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{flex-direction:column;justify-content:normal;padding:0}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:85%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:0}.workouts-filters .form .form-all-items .form-items-group .form-item-text[data-v-3341c41a]{padding-top:0}.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:initial}.workouts-filters .form-button button[data-v-3341c41a]{margin:10px 5px;width:100%}}@media screen and (max-width: 700px){.workouts-filters .form .form-all-items[data-v-3341c41a]{flex-direction:column;padding-top:0}.workouts-filters .form .form-all-items .form-items-group .form-item label[data-v-3341c41a]{font-size:1em}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group[data-v-3341c41a]{flex-direction:row;justify-content:space-around;align-items:center}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group input[data-v-3341c41a]{width:50%}.workouts-filters .form .form-all-items .form-items-group .form-item .form-inputs-group span[data-v-3341c41a]{padding:5px}.workouts-filters .form .form-all-items .form-items-group .form-item-text input.text[data-v-3341c41a]{width:100%}.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:initial}.workouts-filters .form-button button[data-v-3341c41a]{margin:10px 5px}}@media screen and (max-width: 500px){.workouts-filters .form-button[data-v-3341c41a]{flex-wrap:wrap}}.workouts-list[data-v-b3a10603]{display:flex;flex-direction:column;margin-bottom:50px;width:100%}.workouts-list .box[data-v-b3a10603]{padding:10px 15px}@media screen and (max-width: 700px){.workouts-list .box.empty-table[data-v-b3a10603]{display:none}}.workouts-list .box .total[data-v-b3a10603]{display:flex;gap:5px}.workouts-list .box .total .total-label[data-v-b3a10603]{font-weight:700}.workouts-list .box .top-pagination[data-v-b3a10603]{display:none}@media screen and (max-width: 700px){.workouts-list .box .top-pagination[data-v-b3a10603]{display:flex}}@media screen and (max-width: 700px){.workouts-list .box[data-v-b3a10603] .pagination-center ul{margin-top:0}}.workouts-list .box .workouts-table .smaller th[data-v-b3a10603]{font-size:.95em;padding:10px 0;max-width:100px}.workouts-list .box .workouts-table td[data-v-b3a10603]{text-align:right}.workouts-list .box .workouts-table .sport-col[data-v-b3a10603]{padding:0}.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{text-align:left;width:100px;position:relative}.workouts-list .box .workouts-table .workout-title .fa-map-o[data-v-b3a10603]{font-size:.75em;padding-right:5px}.workouts-list .box .workouts-table .workout-title .nav-item[data-v-b3a10603]{white-space:nowrap}.workouts-list .box .workouts-table .workout-title .nav-item .title[data-v-b3a10603]{word-break:break-word;white-space:normal}.workouts-list .box .workouts-table .workout-title .static-map[data-v-b3a10603]{display:none;box-shadow:3px 3px 3px 1px var(--workout-static-map-shadow-color)}.workouts-list .box .workouts-table .workout-title .visibility[data-v-b3a10603]{padding-left:5px}.workouts-list .box .workouts-table .workout-title:hover .static-map[data-v-b3a10603]{display:block}.workouts-list .box .workouts-table .sport-img[data-v-b3a10603]{height:20px;width:20px}.workouts-list .box .workouts-table .workout-date[data-v-b3a10603]{max-width:60px;text-align:left}@media screen and (max-width: 700px){.workouts-list .box .workouts-table td[data-v-b3a10603],.workouts-list .box .workouts-table .workout-date[data-v-b3a10603],.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{text-align:center}.workouts-list .box .workouts-table .sport-col[data-v-b3a10603]{display:flex;justify-content:center;padding:10px}.workouts-list .box .workouts-table .workout-date[data-v-b3a10603]{max-width:initial}.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{max-width:initial;width:45%}.workouts-list .box .workouts-table .workout-title:hover .static-map[data-v-b3a10603]{display:none}}@media screen and (max-width: 500px){.workouts-list .box .workouts-table .workout-title[data-v-b3a10603]{width:100%}}.workouts-list .more-workouts[data-v-b3a10603]{display:flex;justify-content:center;padding:10px} diff --git a/fittrackee/dist/static/index-wcYMtFVC.js b/fittrackee/dist/static/index-DVbN2_96.js similarity index 98% rename from fittrackee/dist/static/index-wcYMtFVC.js rename to fittrackee/dist/static/index-DVbN2_96.js index 52d13f12c..caab87ede 100644 --- a/fittrackee/dist/static/index-wcYMtFVC.js +++ b/fittrackee/dist/static/index-DVbN2_96.js @@ -637,7 +637,7 @@ and ensure you are accounting for this risk. c-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 c12.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`}),p("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 c-17.796,4.581-28.535,22.711-23.964,40.535C290.439,120.476,308.599,131.205,326.395,126.625z`})])],-1)]))}const aje=se(eje,[["render",nje]]),sje={name:"Walking"},ije={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"};function oje(e,t,n,a,s,i){return h(),v("svg",ije,t[0]||(t[0]=[Pn('silhouette of a walking person',3)]))}const rje=se(sje,[["render",oje]]),zp={"Cycling (Sport)":"#4c9792","Cycling (Trekking)":"#a8af88","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",Swimrun:"#3d9fc9",Trail:"#09a98a",Walking:"#838383"},uje=e=>{const t={};return e.map(n=>t[n.id]=n.color?n.color:zp[n.label]),t},lje=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.filter(s=>n==="all"?!0:a.includes(s.id)||s[n]).map(s=>({...s,translatedLabel:t(`sports.${s.label}.LABEL`)})).sort(lje),xp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.label)[0],Bp=(e,t)=>t.filter(n=>n.id===e.sport_id).map(n=>n.color)[0];function nn(){const e=Le(),{t}=yt(),n=Ut("sportColors"),a="#838383",s=Ie(!1),i=Ie(""),o=z(()=>e.getters[Ht.GETTERS.SPORTS]),r=z(()=>ia(o.value,t)),u=kt({sport_id:0,color:null,is_active:!0,stopped_speed_threshold:1,fromSport:!1});function l(_){u.is_active=_.target.checked}function d(_){s.value=_}function E(_){const f={...u};f.stopped_speed_threshold=_.imperial_units?Yt(u.stopped_speed_threshold,"mi","km",2):u.stopped_speed_threshold,e.dispatch(K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES,f)}function c(_,f=!1){e.dispatch(K.ACTIONS.RESET_USER_SPORT_PREFERENCES,{sportId:_,fromSport:f})}function T(_){return _?o.value.filter(f=>f.id===_.sport_id)[0]:null}return{defaultColor:a,defaultEquipmentId:i,displayModal:s,sportColors:n,sportPayload:u,sports:o,translatedSports:r,getWorkoutSport:T,resetSport:c,updateDisplayModal:d,updateIsActive:l,updateSport:E}}const cje=["title"],dje=X({__name:"index",props:{sportLabel:{},color:{},title:{default:""}},setup(e){const t=e,{color:n,sportLabel:a,title:s}=fe(t),{sportColors:i}=nn();return(o,r)=>(h(),v("div",{class:"sport-img",style:za({fill:m(n)?m(n):m(i)[m(a)]}),title:m(s)?m(s):o.$t(`sports.${m(a)}.LABEL`)},[m(a)==="Cycling (Sport)"?(h(),B(qKe,{key:0})):L("",!0),m(a)==="Cycling (Trekking)"?(h(),B(tqe,{key:1})):L("",!0),m(a)==="Cycling (Transport)"?(h(),B(QKe,{key:2})):L("",!0),m(a)==="Cycling (Virtual)"?(h(),B(iqe,{key:3})):L("",!0),m(a)==="Hiking"?(h(),B(lqe,{key:4})):L("",!0),m(a)==="Mountain Biking"?(h(),B(pqe,{key:5})):L("",!0),m(a)==="Mountain Biking (Electric)"?(h(),B(fqe,{key:6})):L("",!0),m(a)==="Mountaineering"?(h(),B(Oqe,{key:7})):L("",!0),m(a)==="Paragliding"?(h(),B(Pqe,{key:8})):L("",!0),m(a)==="Open Water Swimming"?(h(),B(Nqe,{key:9})):L("",!0),m(a)==="Rowing"?(h(),B($qe,{key:10})):L("",!0),m(a)==="Running"?(h(),B(Mqe,{key:11})):L("",!0),m(a)==="Skiing (Alpine)"?(h(),B(xqe,{key:12})):L("",!0),m(a)==="Skiing (Cross Country)"?(h(),B(Hqe,{key:13})):L("",!0),m(a)==="Snowshoes"?(h(),B(Yqe,{key:14})):L("",!0),m(a)==="Swimrun"?(h(),B(Jqe,{key:15})):L("",!0),m(a)==="Trail"?(h(),B(aje,{key:16})):L("",!0),m(a)==="Walking"?(h(),B(rje,{key:17})):L("",!0)],12,cje))}}),Eje={},pje={class:"loader"};function Tje(e,t){return h(),v("div",pje)}const wl=se(Eje,[["render",Tje],["__scopeId","data-v-8b613881"]]),mje={class:"custom-modal"},_je={key:0,class:"modal-message"},fje={key:1,class:"modal-message"},hje={key:2,class:"info-box"},Sje={key:4},Aje={key:5,class:"modal-buttons"},Oje=X({__name:"Modal",props:{title:{},message:{},strongMessage:{default:()=>""},loading:{type:Boolean,default:!1},warning:{default:()=>""},hideErrorMessage:{type:Boolean,default:!1}},emits:["cancelAction","confirmAction"],setup(e,{emit:t}){const n=e,{title:a,message:s,strongMessage:i}=fe(n),o=t,{errorMessages:r}=qe();let u=null,l=null,d=null;function E(c){var T;(c.key==="Tab"||c.keyCode===9)&&(c.preventDefault(),((T=document.activeElement)==null?void 0:T.id)==="cancel-button"?u==null||u.focus():l==null||l.focus())}return mt(()=>{d=document.activeElement,l=document.getElementById("cancel-button"),u=document.getElementById("confirm-button"),l&&l.focus(),document.addEventListener("keydown",E)}),ct(()=>{document.removeEventListener("keydown",E),d==null||d.focus()}),(c,T)=>{const _=j("i18n-t"),f=j("ErrorMessage"),O=j("Loader"),A=j("Card");return h(),v("div",{id:"modal",role:"dialog",onClick:T[2]||(T[2]=ve(R=>o("cancelAction"),["self"]))},[p("div",mje,[M(A,null,{title:Y(()=>[x(S(m(a)),1)]),content:Y(()=>[m(i)?(h(),v("div",_je,[M(_,{keypath:m(s)},{default:Y(()=>[p("span",null,S(m(i)),1)]),_:1},8,["keypath"])])):(h(),v("div",fje,S(m(s)),1)),c.warning?(h(),v("div",hje,[T[3]||(T[3]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(c.warning),1)])):L("",!0),m(r)&&!c.hideErrorMessage?(h(),B(f,{key:3,message:m(r)},null,8,["message"])):L("",!0),c.loading?(h(),v("div",Sje,[M(O)])):(h(),v("div",Aje,[m(r)?L("",!0):(h(),v("button",{key:0,class:Ae(["confirm",{danger:c.warning}]),id:"confirm-button",onClick:T[0]||(T[0]=R=>o("confirmAction"))},S(c.$t("buttons.YES")),3)),p("button",{tabindex:"0",id:"cancel-button",class:"cancel",onClick:T[1]||(T[1]=R=>o("cancelAction"))},S(c.$t(`buttons.${m(r)?"CANCEL":"NO"}`)),1)]))]),_:1})])])}}}),Ije=se(Oje,[["__scopeId","data-v-9235de5f"]]),gje={class:"visibility"},Rje=["title"],Nje=X({__name:"VisibilityIcon",props:{visibility:{},isComment:{type:Boolean,default:!1}},setup(e){const t=e,{visibility:n,isComment:a}=fe(t);function s(i){switch(i){case"public":return"globe";case"followers_only":return"users";default:case"private":return"lock"}}return(i,o)=>(h(),v("span",gje,[p("i",{class:Ae(`fa fa-${s(m(n))}`),"aria-hidden":"true",title:i.$t(`visibility_levels.${m(a)?"COMMENT_":""}LEVELS.${m(n)}`)},null,10,Rje)]))}}),vje=[{target:KHe,name:"AlertMessage"},{target:NO,name:"Card"},{target:vO,name:"CustomTextArea"},{target:iKe,name:"Distance"},{target:dKe,name:"Dropdown"},{target:fKe,name:"ErrorMessage"},{target:wl,name:"Loader"},{target:Ije,name:"Modal"},{target:dje,name:"SportImage"},{target:GKe,name:"EquipmentTypeImage"},{target:Nje,name:"VisibilityIcon"},{target:Fp,name:"Comment"}],bje={mounted:(e,t)=>{e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent),document.body.addEventListener("touchstart",e.clickOutsideEvent)},unmounted:function(e){e.clickOutsideEvent&&(document.body.removeEventListener("click",e.clickOutsideEvent),document.body.removeEventListener("touchstart",e.clickOutsideEvent),e.clickOutsideEvent=void 0)}},Cje=["bytes","KB","MB","GB","TB"],bO=e=>{if(!e)return{size:"0",suffix:"bytes"};const t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),a=Cje[t];return{size:n,suffix:a}},Qu=e=>{if(!e)return"0 bytes";const t=bO(e);return`${t.size}${t.suffix}`},Pje=e=>{const t=e/1048576;return!e&&0||+t.toFixed(2)},Dje={id:"admin-app",class:"admin-card"},Lje={for:"admin_contact"},yje=["value"],$je=["disabled"],Uje={for:"max_users"},kje=["disabled"],wje={class:"admin-help"},Mje={class:"info-box"},Wje={for:"max_single_file_size"},Fje=["disabled"],zje={for:"max_zip_file_size"},xje=["disabled"],Bje={for:"gpx_limit_import"},Gje=["disabled"],Vje={for:"stats_workouts_limit"},Hje=["disabled"],Kje={class:"admin-help"},qje={class:"info-box"},jje={class:"about-label",for:"about"},Yje={class:"textarea-description"},Xje=["innerHTML"],Qje={class:"privacy-policy-label",for:"privacy_policy"},Zje={class:"textarea-description"},Jje=["innerHTML"],eYe={key:5,class:"form-buttons"},tYe={class:"confirm",type:"submit"},nYe={key:6,class:"form-buttons"},aYe=X({__name:"AdminApplication",props:{edition:{type:Boolean,default:!1}},setup(e){const t=e,{edition:n}=fe(t),a=gn(),s=Le(),{appConfig:i,errorMessages:o}=qe(),r=kt({admin_contact:"",max_users:0,max_single_file_size:0,max_zip_file_size:0,gpx_limit_import:0,about:"",privacy_policy:"",stats_workouts_limit:0});function u(E){Object.keys(r).map(c=>{["max_single_file_size","max_zip_file_size"].includes(c)?r[c]=Pje(E[c]):["about","privacy_policy"].includes(c)?r[c]=E[c]!==null?E[c]:"":r[c]=E[c]})}function l(){u(i.value),s.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),a.push("/admin/application")}function d(){const E=Object.assign({},r);E.max_single_file_size*=1048576,E.max_zip_file_size*=1048576,s.dispatch(te.ACTIONS.UPDATE_APPLICATION_CONFIG,E)}return et(()=>{i.value&&u(i.value)}),(E,c)=>{const T=j("ErrorMessage"),_=j("Card");return h(),v("div",Dje,[M(_,null,{title:Y(()=>[x(S(E.$t("admin.APP_CONFIG.TITLE")),1)]),content:Y(()=>[p("form",{class:"admin-form",onSubmit:ve(d,["prevent"])},[p("label",Lje,[x(S(E.$t("admin.APP_CONFIG.ADMIN_CONTACT"))+": ",1),!m(n)&&!r.admin_contact?(h(),v("input",{key:0,class:"no-contact",value:E.$t("admin.APP_CONFIG.NO_CONTACT_EMAIL"),disabled:""},null,8,yje)):We((h(),v("input",{key:1,id:"admin_contact",name:"admin_contact",type:"email","onUpdate:modelValue":c[0]||(c[0]=f=>r.admin_contact=f),disabled:!m(n)},null,8,$je)),[[ot,r.admin_contact]])]),p("label",Uje,[x(S(E.$t("admin.APP_CONFIG.MAX_USERS_LABEL"))+": ",1),We(p("input",{id:"max_users",name:"max_users",type:"number",min:"0","onUpdate:modelValue":c[1]||(c[1]=f=>r.max_users=f),disabled:!m(n)},null,8,kje),[[ot,r.max_users]])]),p("div",wje,[p("span",Mje,[c[10]||(c[10]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.MAX_USERS_HELP")),1)])]),p("label",Wje,[x(S(E.$t("admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_single_file_size",name:"max_single_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[2]||(c[2]=f=>r.max_single_file_size=f),disabled:!m(n)},null,8,Fje),[[ot,r.max_single_file_size]])]),p("label",zje,[x(S(E.$t("admin.APP_CONFIG.ZIP_UPLOAD_MAX_SIZE_LABEL"))+": ",1),We(p("input",{id:"max_zip_file_size",name:"max_zip_file_size",type:"number",step:"0.1",min:"0","onUpdate:modelValue":c[3]||(c[3]=f=>r.max_zip_file_size=f),disabled:!m(n)},null,8,xje),[[ot,r.max_zip_file_size]])]),p("label",Bje,[x(S(E.$t("admin.APP_CONFIG.MAX_FILES_IN_ZIP_LABEL"))+": ",1),We(p("input",{id:"gpx_limit_import",name:"gpx_limit_import",type:"number",min:"0","onUpdate:modelValue":c[4]||(c[4]=f=>r.gpx_limit_import=f),disabled:!m(n)},null,8,Gje),[[ot,r.gpx_limit_import]])]),p("label",Vje,[x(S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_LABEL"))+": ",1),We(p("input",{id:"stats_workouts_limit",name:"stats_workouts_limit",type:"number",min:"0","onUpdate:modelValue":c[5]||(c[5]=f=>r.stats_workouts_limit=f),disabled:!m(n)},null,8,Hje),[[ot,r.stats_workouts_limit]])]),p("div",Kje,[p("span",qje,[c[11]||(c[11]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("admin.APP_CONFIG.STATS_WORKOUTS_LIMIT_HELP")),1)])]),p("label",jje,S(E.$t("admin.ABOUT.TEXT"))+": ",1),p("span",Yje,S(E.$t("admin.ABOUT.DESCRIPTION")),1),m(n)?We((h(),v("textarea",{key:0,id:"about",name:"about",rows:"10","onUpdate:modelValue":c[6]||(c[6]=f=>r.about=f)},null,512)),[[ot,r.about]]):(h(),v("div",{key:1,innerHTML:r.about?m(Go)(r.about):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,Xje)),p("label",Qje,S(Fe(E.$t("privacy_policy.TITLE")))+": ",1),p("span",Zje,S(E.$t("admin.PRIVACY_POLICY_DESCRIPTION")),1),m(n)?We((h(),v("textarea",{key:2,id:"privacy_policy",name:"privacy_policy",rows:"20","onUpdate:modelValue":c[7]||(c[7]=f=>r.privacy_policy=f)},null,512)),[[ot,r.privacy_policy]]):(h(),v("div",{key:3,innerHTML:r.privacy_policy?m(Go)(r.privacy_policy):E.$t("admin.NO_TEXT_ENTERED"),class:"textarea-content"},null,8,Jje)),m(o)?(h(),B(T,{key:4,message:m(o)},null,8,["message"])):L("",!0),m(n)?(h(),v("div",eYe,[p("button",tYe,S(E.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(l,["prevent"])},S(E.$t("buttons.CANCEL")),1)])):(h(),v("div",nYe,[p("button",{class:"confirm",onClick:c[8]||(c[8]=ve(f=>E.$router.push("/admin/application/edit"),["prevent"]))},S(E.$t("buttons.EDIT")),1),p("button",{class:"cancel",onClick:c[9]||(c[9]=ve(f=>E.$router.push("/admin"),["prevent"]))},S(E.$t("admin.BACK_TO_ADMIN")),1)]))],32)]),_:1})])}}}),ph=se(aYe,[["__scopeId","data-v-3a7598c9"]]),sYe=(e,t)=>{const n=e.translatedLabel.toLowerCase(),a=t.translatedLabel.toLowerCase();return n>a?1:ne.map(n=>({...n,translatedLabel:t(`equipment_types.${n.label}.LABEL`)})).sort(sYe),Gp=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:na?e.filter(i=>PO[i.equipment_type.label].includes(a.label)).filter(i=>n=="all"?!0:n=="withIncludedIds"&&s.includes(i.id)||i.is_active).map(i=>({...i,label:i.is_active?i.label:`${i.label} (${t("common.INACTIVE")})`})).sort(Gp):[],iYe={id:"admin-equipment-types",class:"admin-card"},oYe={class:"responsive-table"},rYe={class:"text-left"},uYe={class:"text-left equipment-type-action"},lYe={class:"text-center"},cYe={class:"cell-heading"},dYe={class:"equipment-type-label"},EYe={class:"cell-heading"},pYe={class:"text-center"},TYe={class:"cell-heading"},mYe={class:"equipment-type-action"},_Ye={class:"cell-heading"},fYe={class:"action-button"},hYe=["onClick"],SYe={key:0,class:"has-equipments"},AYe=X({__name:"AdminEquipmentTypes",setup(e){const t=Le(),{t:n}=yt(),{errorMessages:a}=qe(),s=z(()=>CO(t.getters[xe.GETTERS.EQUIPMENT_TYPES],n));function i(){t.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES)}function o(r,u){t.dispatch(xe.ACTIONS.UPDATE_EQUIPMENT_TYPE,{id:r,isActive:u})}return et(()=>i()),(r,u)=>{const l=j("EquipmentTypeImage"),d=j("ErrorMessage"),E=j("Card");return h(),v("div",iYe,[M(E,null,{title:Y(()=>[x(S(r.$t("admin.EQUIPMENT_TYPES.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:u[0]||(u[0]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1),p("div",oYe,[p("table",null,[p("thead",null,[p("tr",null,[u[2]||(u[2]=p("th",null,"#",-1)),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),p("th",rYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),p("th",null,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("th",uYe,S(r.$t("admin.ACTION")),1)])]),p("tbody",null,[(h(!0),v(ue,null,be(s.value,c=>(h(),v("tr",{key:c.id},[p("td",lYe,[u[3]||(u[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(c.id),1)]),p("td",null,[p("span",cYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.IMAGE")),1),M(l,{title:c.translatedLabel,"equipment-type-label":c.label},null,8,["title","equipment-type-label"])]),p("td",dYe,[p("span",EYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.LABEL")),1),x(" "+S(c.translatedLabel),1)]),p("td",pYe,[p("span",TYe,S(r.$t("admin.EQUIPMENT_TYPES.TABLE.ACTIVE")),1),p("i",{class:Ae(`fa fa${c.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",mYe,[p("span",_Ye,S(r.$t("admin.ACTION")),1),p("div",fYe,[p("button",{class:Ae({danger:c.is_active}),onClick:T=>o(c.id,!c.is_active)},S(r.$t(`buttons.${c.is_active?"DIS":"EN"}ABLE`)),11,hYe),c.has_equipments?(h(),v("span",SYe,[u[4]||(u[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(r.$t("admin.EQUIPMENT_TYPES.TABLE.HAS_EQUIPMENTS")),1)])):L("",!0)])])]))),128))])]),m(a)?(h(),B(d,{key:0,message:m(a)},null,8,["message"])):L("",!0),p("button",{onClick:u[1]||(u[1]=ve(c=>r.$router.push("/admin"),["prevent"]))},S(r.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),OYe=se(AYe,[["__scopeId","data-v-a3acbd9a"]]),IYe={class:"stat-card"},gYe={class:"stat-content box"},RYe={class:"stat-icon"},NYe={class:"stat-details"},vYe={class:"stat-huge"},bYe={class:"stat"},wa=X({__name:"StatCard",props:{icon:{},text:{},value:{}},setup(e){const t=e,{icon:n,text:a,value:s}=fe(t);return(i,o)=>(h(),v("div",IYe,[p("div",gYe,[p("div",RYe,[p("i",{class:Ae(["fa",`fa-${m(n)}`])},null,2)]),p("div",NYe,[p("div",vYe,S(m(s)),1),p("div",bYe,S(m(a)),1)])])]))}}),CYe={id:"user-stats"},PYe=X({__name:"AppStatsCards",props:{appStatistics:{}},setup(e){const t=e,{appStatistics:n}=fe(t),a=z(()=>bO(n.value.uploads_dir_size));return(s,i)=>(h(),v("div",CYe,[M(wa,{icon:"users",value:m(n).users,text:s.$t("user.ACTIVE_USER",m(n).users)},null,8,["value","text"]),M(wa,{icon:"tags",value:m(n).sports,text:s.$t("workouts.SPORT",m(n).sports)},null,8,["value","text"]),M(wa,{icon:"calendar",value:m(n).workouts,text:s.$t("workouts.WORKOUT",m(n).workouts)},null,8,["value","text"]),M(wa,{icon:"folder-open",value:a.value.size,text:a.value.suffix},null,8,["value","text"])]))}}),DYe={id:"admin-menu",class:"center-card"},LYe={class:"admin-menu description-list"},yYe={class:"application-config-details"},$Ye={class:"registration-status"},UYe={key:0,class:"email-sending-status"},kYe={class:"application-config-details"},wYe=X({__name:"AdminMenu",setup(e){const t=Le(),{appConfig:n}=qe(),{authUserHasAdminRights:a}=Ke(),s=z(()=>t.getters[te.GETTERS.APP_STATS]),i=z(()=>t.getters[De.GETTERS.UNRESOLVED_REPORTS_STATUS]);return et(()=>t.dispatch(De.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS)),mt(()=>{const o=document.getElementById("adminLink");o&&o.focus()}),(o,r)=>{const u=j("router-link");return h(),v("div",DYe,[M(NO,null,{title:Y(()=>[x(S(o.$t("admin.ADMINISTRATION")),1)]),content:Y(()=>[M(PYe,{appStatistics:s.value},null,8,["appStatistics"]),p("div",LYe,[p("dl",null,[m(a)?(h(),v(ue,{key:0},[p("dt",null,[M(u,{id:"adminLink",to:"/admin/application"},{default:Y(()=>[x(S(o.$t("admin.APPLICATION")),1)]),_:1})]),p("dd",yYe,[x(S(o.$t("admin.UPDATE_APPLICATION_DESCRIPTION"))+" ",1),p("span",$Ye,S(o.$t(`admin.REGISTRATION_${m(n).is_registration_enabled?"ENABLED":"DISABLED"}`)),1),m(n).is_email_sending_enabled?L("",!0):(h(),v("span",UYe,[r[0]||(r[0]=p("i",{class:"fa fa-exclamation-triangle","aria-hidden":"true"},null,-1)),x(" "+S(o.$t("admin.EMAIL_SENDING_DISABLED")),1)]))]),p("dt",null,[M(u,{to:"/admin/equipment-types"},{default:Y(()=>[x(S(Fe(o.$t("equipments.EQUIPMENT_TYPE",0))),1)]),_:1})]),p("dd",null,S(o.$t("admin.ENABLE_DISABLE_EQUIPMENT_TYPES")),1)],64)):L("",!0),p("dt",null,[M(u,{id:"adminLink",to:"/admin/reports"},{default:Y(()=>[x(S(o.$t("admin.APP_MODERATION.TITLE")),1)]),_:1})]),p("dd",kYe,[x(S(o.$t("admin.APP_MODERATION.DESCRIPTION"))+" ",1),i.value?(h(),B(u,{key:0,to:"/admin/reports?resolved=false"},{default:Y(()=>[x(S(o.$t("admin.APP_MODERATION.UNRESOLVED_REPORTS_EXIST")),1)]),_:1})):L("",!0)]),m(a)?(h(),v(ue,{key:1},[p("dt",null,[M(u,{to:"/admin/sports"},{default:Y(()=>[x(S(Fe(o.$t("workouts.SPORT",0))),1)]),_:1})]),p("dd",null,S(o.$t("admin.ENABLE_DISABLE_SPORTS")),1),p("dt",null,[M(u,{to:"/admin/users"},{default:Y(()=>[x(S(Fe(o.$t("user.USER",0))),1)]),_:1})]),p("dd",null,S(o.$t("admin.ADMIN_RIGHTS_DELETE_USER_ACCOUNT")),1)],64)):L("",!0)])])]),_:1})])}}}),MYe=se(wYe,[["__scopeId","data-v-18089d26"]]),WYe=["id"],FYe={class:"appeal-text"},zYe=["title"],xYe={class:"appeal-actions-buttons"},BYe={class:"small approve",value:"approve"},GYe={class:"small reject",value:"reject"},VYe={key:1,class:"automatically-approved"},HYe={key:2,class:"description-list"},KYe=["title"],qYe=X({__name:"AdminReportActionAppeal",props:{appeal:{},authUser:{}},emits:["updateAppeal","closeAppeal"],setup(e,{emit:t}){const n=e,{appeal:a,authUser:s}=fe(n),i=t,{errorMessages:o,locale:r}=qe(),u=Ie("");function l(c){c.preventDefault(),i("updateAppeal",{approved:c.submitter.value==="approve",appealId:a.value.id,reason:u.value})}function d(c){u.value=c.value}function E(){i("closeAppeal")}return(c,T)=>{const _=j("ErrorMessage"),f=j("i18n-t");return h(),v("div",{class:"appeal box",id:`appeal-${m(a).id}`},[p("div",FYe,S(m(a).text),1),p("span",{class:"appeal-date",title:m($t)(m(a).created_at,m(s).timezone,m(s).date_format)},S(m(Ws)(new Date(m(a).created_at),new Date,{addSuffix:!0,locale:m(r)})),9,zYe),m(a).updated_at===null?(h(),v(ue,{key:0},[m(a).approved===null?(h(),v("form",{key:0,onSubmit:ve(l,["prevent"]),class:"appeal-actions"},[M(vO,{name:"appeal-reason",required:!0,placeholder:c.$t("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.UPDATE_APPEAL"),onUpdateValue:d},null,8,["placeholder"]),m(o)?(h(),B(_,{key:0,message:m(o)},null,8,["message"])):L("",!0),p("div",xYe,[p("button",BYe,S(c.$t("buttons.APPROVE")),1),p("button",GYe,S(c.$t("buttons.REJECT")),1),p("button",{class:"small reject",type:"button",onClick:E},S(c.$t("buttons.CANCEL")),1)])],32)):L("",!0)],64)):m(a).approved===null?(h(),v("div",VYe,S(c.$t("admin.APP_MODERATION.APPEAL.AUTOMATICALLY_APPROVED_BY_UNSUSPENSION")),1)):(h(),v("div",HYe,[M(f,{keypath:`admin.APP_MODERATION.APPEAL.${m(a).approved?"APPROVED":"REJECTED"}`,tag:"p"},{default:Y(()=>[p("span",{class:"report-action-date",title:m($t)(m(a).updated_at,m(s).timezone,m(s).date_format)},S(m(Ws)(new Date(m(a).updated_at),new Date,{addSuffix:!0,locale:m(r)})),9,KYe)]),_:1},8,["keypath"]),p("dl",null,[p("dt",null,S(c.$t("admin.APP_MODERATION.APPEAL.REASON_IS")),1),p("dd",null,S(m(a).reason),1)])]))],8,WYe)}}}),jYe=se(qYe,[["__scopeId","data-v-88ea8757"]]),YYe={id:"error"},XYe={class:"error-content"},QYe=X({__name:"Error",props:{title:{},message:{},buttonText:{},path:{default:"/"}},setup(e){const t=e,{buttonText:n,title:a,message:s,path:i}=fe(t);return(o,r)=>(h(),v("div",YYe,[p("div",XYe,[p("h1",null,S(m(a)),1),p("p",null,S(m(s)),1),m(n)?(h(),v("button",{key:0,onClick:r[0]||(r[0]=u=>o.$router.push(m(i))),class:"upper"},S(m(n)),1)):L("",!0)])]))}}),ZYe=se(QYe,[["__scopeId","data-v-48ec856d"]]),Ui=X({__name:"NotFound",props:{target:{default:"PAGE"}},setup(e){const t=e,{target:n}=fe(t),a=Ie(),s=Ie(!1);function i(){a.value=setTimeout(()=>{s.value=!0},500)}return mt(()=>i()),ct(()=>{a.value&&clearTimeout(a.value)}),(o,r)=>s.value?(h(),B(ZYe,{key:0,title:"404",message:o.$t(`error.NOT_FOUND.${m(n)}`),"button-text":o.$t("common.HOME")},null,8,["message","button-text"])):L("",!0)}}),JYe={key:0,class:"user-actions"},eXe={key:0,class:"blocked-user"},tXe={class:"blocked"},nXe={key:1,class:"actions-buttons"},aXe={key:2},sXe={key:3,class:"follows-you"},iXe={key:1,class:"user-actions"},oXe={class:"follows-you"},rXe=X({__name:"UserRelationshipActions",props:{authUser:{},user:{},from:{},displayFollowsYou:{type:Boolean,default:!1}},emits:["updatedUser"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,user:i,displayFollowsYou:o}=fe(n),r=t,u=Le();function l(E,c){r("updatedUser",E),u.dispatch(ce.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"un":""}follow`,from:s.value})}function d(E,c){r("updatedUser",E),u.dispatch(ce.ACTIONS.UPDATE_RELATIONSHIP,{username:E,action:`${c?"":"un"}block`,from:s.value})}return(E,c)=>(h(),v(ue,null,[m(i).username!==m(a).username?(h(),v("div",JYe,[m(i).blocked?(h(),v("div",eXe,[p("div",tXe,S(E.$t("user.RELATIONSHIPS.BLOCKED")),1),p("button",{onClick:c[0]||(c[0]=T=>d(m(i).username,!1))},S(E.$t("buttons.UNBLOCK")),1)])):m(i).is_followed_by!=="pending"?(h(),v("div",nXe,[p("button",{onClick:c[1]||(c[1]=T=>l(m(i).username,m(i).is_followed_by==="true")),class:Ae({danger:m(i).is_followed_by==="true"})},S(E.$t(`buttons.${m(i).is_followed_by==="true"?"UN":""}FOLLOW`)),3),p("button",{onClick:c[2]||(c[2]=T=>d(m(i).username,!0))},S(E.$t("buttons.BLOCK")),1)])):(h(),v("div",aXe,[p("button",{onClick:c[3]||(c[3]=T=>l(m(i).username,!0))},S(E.$t("buttons.CANCEL_FOLLOW_REQUEST")),1)])),m(o)&&m(i).follows==="true"&&m(s)!=="notifications"?(h(),v("div",sXe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):L("",!0)])):L("",!0),m(i).username===m(a).username&&m(s)!=="userInfos"?(h(),v("div",iXe,[p("div",oXe,S(E.$t("user.YOU")),1)])):L("",!0)],64))}}),Zu=se(rXe,[["__scopeId","data-v-f72b5b8c"]]),uXe={class:"user-stats"},lXe={class:"user-stat"},cXe={class:"stat-number"},dXe={class:"stat-label"},EXe={class:"user-stat"},pXe={key:1,class:"stat-number"},TXe={class:"stat-label"},mXe={class:"user-stat"},_Xe={key:1,class:"stat-number"},fXe={class:"stat-label"},hXe=X({__name:"UserStats",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),{authUser:a}=Ke(),s=z(()=>a.value.username?n.value.username===a.value.username?!a.value.suspended_at:!0:!1);function i(o,r,u){return o.username===(r==null?void 0:r.username)&&u.includes("/profile")?"profile":`users/${o.username}`}return(o,r)=>{const u=j("router-link");return h(),v("div",uXe,[p("div",lXe,[p("span",cXe,S(m(n).nb_workouts),1),p("span",dXe,S(o.$t("workouts.WORKOUT",m(n).nb_workouts)),1)]),p("div",EXe,[s.value?(h(),B(u,{key:0,to:`/${i(m(n),m(a),o.$route.path)}/following`,class:"stat-number"},{default:Y(()=>[x(S(m(n).following),1)]),_:1},8,["to"])):(h(),v("span",pXe,S(m(n).following),1)),p("span",TXe,S(o.$t("user.RELATIONSHIPS.FOLLOWING",m(n).following)),1)]),p("div",mXe,[s.value?(h(),B(u,{key:0,to:`/${i(m(n),m(a),o.$route.path)}/followers`,class:"stat-number"},{default:Y(()=>[x(S(m(n).followers),1)]),_:1},8,["to"])):(h(),v("span",_Xe,S(m(n).followers),1)),p("span",fXe,S(o.$t("user.RELATIONSHIPS.FOLLOWER",m(n).followers)),1)])])}}}),Vp=se(hXe,[["__scopeId","data-v-9af0bb02"]]),SXe={class:"box"},AXe={class:"user-card"},OXe={class:"user-header"},IXe={class:"stats-role"},gXe={key:0,class:"role"},RXe={class:"user-role"},NXe=X({__name:"UserCard",props:{authUser:{},user:{},updatedUser:{},from:{},hideRelationship:{type:Boolean}},emits:["updatedUserRelationship"],setup(e,{emit:t}){const n=e,{authUser:a,from:s,hideRelationship:i,updatedUser:o,user:r}=fe(n),u=ut(),{authUserHasModeratorRights:l}=Ke(),d=t,{errorMessages:E}=qe(),c=z(()=>r.value.suspended_at?$t(r.value.suspended_at,a.value.timezone,a.value.date_format):null),T=z(()=>{var O;return l.value&&u.params.reportId!=((O=r.value.suspension_report_id)==null?void 0:O.toString())}),_=z(()=>r.value.role!=="user"?`user.ROLES.${r.value.role}`:"");function f(O){d("updatedUserRelationship",O)}return(O,A)=>{const R=j("router-link"),g=j("AlertMessage"),I=j("i18n-t"),N=j("ErrorMessage");return h(),v("div",SXe,[p("div",AXe,[p("div",OXe,[M(Qt,{user:m(r)},null,8,["user"]),M(R,{class:"user-name",to:O.$route.path.startsWith("/admin")?`/admin/users/${m(r).username}`:`/users/${m(r).username}?from=users`,title:m(r).username},{default:Y(()=>[x(S(m(r).username),1)]),_:1},8,["to","title"])]),p("div",IXe,[M(Vp,{user:m(r)},null,8,["user"]),_.value?(h(),v("div",gXe,[p("div",RXe,S(O.$t(_.value)),1)])):L("",!0)])]),m(i)!==!0?(h(),B(Zu,{key:0,authUser:m(a),user:m(r),from:m(s)?m(s):"userCard",displayFollowsYou:!0,onUpdatedUser:f},null,8,["authUser","user","from"])):L("",!0),"is_active"in m(r)&&!m(r).is_active?(h(),B(g,{key:1,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),"suspended_at"in m(r)&&m(r).suspended_at!==null?(h(),B(g,{key:2,message:"user.ACCOUNT_SUSPENDED_AT",param:c.value},mi({_:2},[T.value?{name:"additionalMessage",fn:Y(()=>[M(I,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[M(R,{to:`/admin/reports/${m(r).suspension_report_id}`},{default:Y(()=>[x(" #"+S(m(r).suspension_report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0),m(E)&&(m(o)&&m(o)===m(r).username||!m(o))?(h(),B(N,{key:3,message:m(E)},null,8,["message"])):L("",!0)])}}}),Hp=se(NXe,[["__scopeId","data-v-45957e2b"]]),LO="/img/workouts/mountains.svg",vXe=["alt"],yO=X({__name:"StaticMap",props:{workout:{},displayHover:{type:Boolean,default:!1}},setup(e){const t=e,{displayHover:n}=fe(t),a=`${nr()}workouts/map/${t.workout.map}`;return(s,i)=>{const o=j("router-link");return h(),v("div",{class:Ae(["static-map",{"display-hover":m(n)}])},[m(n)?(h(),v("img",{key:0,src:a,alt:s.$t("workouts.WORKOUT_MAP")},null,8,vXe)):(h(),B(o,{key:1,class:"bg-map-image",to:{name:"Workout",params:{workoutId:s.workout.id}},style:za({backgroundImage:`url(${a})`}),"aria-label":s.$t("workouts.WORKOUT_MAP"),onClick:i[0]||(i[0]=r=>s.$emit("workoutLinkClicked"))},null,8,["to","style","aria-label"])),i[1]||(i[1]=p("div",{class:"map-attribution"},[p("a",{class:"map-attribution-text",href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer"}," © OpenStreetMap ")],-1))],2)}}}),bXe={class:"timeline-workout workout-card"},CXe={class:"box"},PXe={class:"workout-card-title"},DXe={class:"workout-user-date"},LXe={class:"workout-user"},yXe={class:"workout-date-visibility"},$Xe=["datetime","title"],UXe={class:"workout-map"},kXe={class:"no-map"},wXe={class:"img"},MXe={class:"data"},WXe={key:0},FXe={class:"data"},zXe={key:0,class:"data elevation"},xXe=["alt"],BXe={class:"data-values"},GXe={key:1,class:"data altitude"},VXe={class:"data-values"},HXe=X({__name:"WorkoutCard",props:{user:{},useImperialUnits:{type:Boolean},dateFormat:{},timezone:{},workout:{default:()=>({})},sport:{default:()=>({})}},emits:["workoutLinkClicked"],setup(e,{emit:t}){const n=e,{dateFormat:a,sport:s,timezone:i,user:o,useImperialUnits:r,workout:u}=fe(n),{locale:l}=qe(),d=t,E=z(()=>$t(u.value.workout_date,i.value,a.value));function c(f){return f.with_gpx&&f.min_alt!==null&&f.max_alt!==null}function T(f){return f.ascent!==null&&f.descent!==null}function _(f){f.id&&(lt.push({name:"Workout",params:{workoutId:f.id}}),d("workoutLinkClicked"))}return(f,O)=>{var N;const A=j("router-link"),R=j("VisibilityIcon"),g=j("SportImage"),I=j("Distance");return h(),v("div",bXe,[p("div",CXe,[p("div",PXe,[p("div",DXe,[p("div",LXe,[M(Qt,{user:m(o)},null,8,["user"]),M(go,{user:m(o)},null,8,["user"])]),m(u).id?(h(),B(A,{key:0,class:"workout-title",to:{name:"Workout",params:{workoutId:m(u).id}},onClick:O[0]||(O[0]=b=>f.$emit("workoutLinkClicked"))},{default:Y(()=>[x(S(m(u).title),1)]),_:1},8,["to"])):L("",!0),p("div",yXe,[m(u).workout_date&&m(o)?(h(),v("time",{key:0,class:"workout-date",datetime:E.value,title:E.value},S(m(Ws)(new Date(m(u).workout_date),new Date,{addSuffix:!0,locale:m(l)})),9,$Xe)):L("",!0),m(u).workout_visibility?(h(),B(R,{key:1,visibility:m(u).workout_visibility},null,8,["visibility"])):L("",!0)])])]),p("div",UXe,[m(u).with_gpx?(h(),B(yO,{key:0,workout:m(u),onWorkoutLinkClicked:O[1]||(O[1]=b=>f.$emit("workoutLinkClicked"))},null,8,["workout"])):m(u).id?(h(),B(A,{key:1,to:{name:"Workout",params:{workoutId:m(u).id}},onClick:O[2]||(O[2]=b=>f.$emit("workoutLinkClicked"))},{default:Y(()=>[p("div",kXe,S(f.$t("workouts.NO_MAP")),1)]),_:1},8,["to"])):L("",!0)]),p("div",{class:Ae(["workout-data",{"without-elevation":!c(m(u))}]),onClick:O[3]||(O[3]=b=>_(m(u)))},[p("div",wXe,[(N=m(s))!=null&&N.label?(h(),B(g,{key:0,"sport-label":m(s).label,color:m(s).color},null,8,["sport-label","color"])):L("",!0)]),p("div",MXe,[O[4]||(O[4]=p("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1)),m(u)?(h(),v("span",WXe,S(m(u).moving),1)):L("",!0)]),p("div",FXe,[O[5]||(O[5]=p("i",{class:"fa fa-road","aria-hidden":"true"},null,-1)),m(u).id?(h(),B(I,{key:0,distance:m(u).distance,digits:3,unitFrom:"km",useImperialUnits:m(r)},null,8,["distance","useImperialUnits"])):L("",!0)]),c(m(u))?(h(),v("div",zXe,[p("img",{class:"mountains",src:LO,alt:f.$t("workouts.ELEVATION")},null,8,xXe),p("div",BXe,[m(u).id?(h(),B(I,{key:0,distance:m(u).min_alt,unitFrom:"m",displayUnit:!1,useImperialUnits:m(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[6]||(O[6]=x("/ ")),m(u).id?(h(),B(I,{key:1,distance:m(u).max_alt,unitFrom:"m",useImperialUnits:m(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0),T(m(u))?(h(),v("div",GXe,[O[9]||(O[9]=p("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1)),p("div",VXe,[O[7]||(O[7]=x(" +")),m(u).id?(h(),B(I,{key:0,distance:m(u).ascent,unitFrom:"m",displayUnit:!1,useImperialUnits:m(r)},null,8,["distance","useImperialUnits"])):L("",!0),O[8]||(O[8]=x("/- ")),m(u).id?(h(),B(I,{key:1,distance:m(u).descent,unitFrom:"m",useImperialUnits:m(r)},null,8,["distance","useImperialUnits"])):L("",!0)])])):L("",!0)],2)])])}}}),Vo=se(HXe,[["__scopeId","data-v-9f1da2f4"]]),KXe={key:0,class:"report-loading"},qXe={key:0,id:"admin-report",class:"admin-card"},jXe={key:0,class:"report-status"},YXe={class:"report-data"},XXe={class:"report-detail"},QXe={key:1,class:"deleted-object"},ZXe={key:2,class:"deleted-object"},JXe={key:1,class:"deleted-object"},eQe={key:2,class:"deleted-object"},tQe={key:1,class:"deleted-object"},nQe={key:1,class:"deleted-object"},aQe={class:"report-info"},sQe={key:0,class:"report-comment-user"},iQe={key:1,class:"deleted-object"},oQe={key:0},rQe={key:1},uQe={key:2},lQe={key:3},cQe={class:"resolver-user"},dQe={key:4},EQe={key:5},pQe={key:0,class:"report-comment"},TQe={class:"report-comment-info"},mQe={class:"report-comment-user"},_Qe=["title"],fQe={class:"report-comment-comment"},hQe={key:1,class:"report-action"},SQe=["title"],AQe=["onClick"],OQe={key:0,class:"report-action-note"},IQe={key:0,class:"no-notes"},gQe={key:0,class:"comment-textarea"},RQe={for:"report-comment"},NQe={class:"comment-buttons"},vQe=["disabled"],bQe=["disabled"],CQe={class:"action-loading"},PQe={key:0,class:"fa fa-spinner fa-pulse","aria-hidden":"true"},DQe={key:1,class:"actions-buttons"},LQe={key:1,class:"container"},yQe={key:2,class:"container"},$Qe=X({__name:"AdminReport",setup(e){const t=ut(),n=gn(),a=Le(),{t:s}=yt(),{errorMessages:i,locale:o}=qe(),{authUser:r,authUserSuccess:u,dateFormat:l}=Ke(),{sports:d}=nn(),E=Ie(""),c=Ie(null),T=Ie(""),_=Ie([]),f=z(()=>a.getters[De.GETTERS.REPORT]),O=z(()=>f.value.reported_comment||f.value.reported_workout),A=z(()=>a.getters[De.GETTERS.REPORT_LOADING]),R=z(()=>a.getters[De.GETTERS.REPORT_UPDATE_LOADING]),g=Ie(!1),I=z(()=>we()),N=z(()=>c.value!==null&&["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)),b=z(()=>{var Q,Se;return(Q=f.value.reported_user)!=null&&Q.suspended_at?$t((Se=f.value.reported_user)==null?void 0:Se.suspended_at,r.value.timezone,r.value.date_format):null}),C=z(()=>{var Q,Se;return t.params.reportId!=((Se=(Q=f.value.reported_user)==null?void 0:Q.suspension_report_id)==null?void 0:Se.toString())});function y(){a.dispatch(De.ACTIONS.GET_REPORT,{reportId:+t.params.reportId,loader:"REPORT"})}function D(Q=null){Te(),c.value=Q,g.value=!0}function U(Q){E.value=Q.value}function P(){g.value=!1,E.value="",c.value=null,a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)}function F(){const Q={reportId:f.value.id,comment:E.value};c.value&&["MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(c.value)&&(Q.resolved=c.value==="MARK_AS_RESOLVED"),a.dispatch(De.ACTIONS.UPDATE_REPORT,Q)}function Z(){switch(c.value){case"SEND_WARNING_EMAIL":He();break;case"SUSPEND_ACCOUNT":case"SUSPEND_CONTENT":Pe("suspension");break;case"UNSUSPEND_ACCOUNT":ee();break;case"UNSUSPEND_CONTENT":Ee();break;default:return F()}}function Oe(){switch(c.value){case"MARK_AS_RESOLVED":return`admin.APP_MODERATION.ACTIONS.${c.value}`;default:return"buttons.SUBMIT"}}function ee(){if(f.value.reported_user&&c.value){const Se={action_type:`user_${c.value==="SUSPEND_ACCOUNT"?"":"un"}suspension`,report_id:f.value.id,username:f.value.reported_user.username};E.value&&(Se.reason=E.value),a.dispatch(De.ACTIONS.SUBMIT_ADMIN_ACTION,Se)}}function Ee(){var Q;if(O.value&&c.value){const me={action_type:`${f.value.reported_comment?"comment":"workout"}_${(Q=c.value)!=null&&Q.startsWith("SUSPEND")?"":"un"}suspension`,report_id:f.value.id};f.value.reported_comment?me.comment_id=f.value.reported_comment.id:f.value.reported_workout&&(me.workout_id=f.value.reported_workout.id),E.value&&(me.reason=E.value),a.dispatch(De.ACTIONS.SUBMIT_ADMIN_ACTION,me)}}function _e(){Pe(""),c.value==="SUSPEND_CONTENT"?Ee():ee()}function Pe(Q){T.value=Q,Q!==""&&a.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function He(){var Se;const Q={action_type:"user_warning",report_id:f.value.id,username:(Se=f.value.reported_user)==null?void 0:Se.username};E.value&&(Q.reason=E.value),a.dispatch(De.ACTIONS.SUBMIT_ADMIN_ACTION,Q)}function Je(){n.go(-1),a.commit(De.MUTATIONS.EMPTY_REPORT)}function Ve(Q){return $t(Q,r.value.timezone,r.value.date_format)}function _t(Q,Se){return To(new Date(Q.created_at),new Date(Se.created_at))}function we(){return!f.value.report_actions&&!f.value.comments?[]:[...f.value.report_actions,...f.value.comments].sort(_t)}function ae(Q){_.value.includes(Q)?(_.value.splice(_.value.indexOf(Q),1),a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)):_.value.push(Q)}function ke(Q){a.dispatch(De.ACTIONS.PROCESS_APPEAL,{...Q,reportId:f.value.id})}function pt(){var ie,k;const Q=(ie=c.value)!=null&&ie.includes("SUSPEND")?(k=c.value)==null?void 0:k.split("_")[0]:c.value,Se=s(`admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.${Q}`);let me="";return Q&&(me=["ADD_COMMENT","MARK_AS_RESOLVED","MARK_AS_UNRESOLVED"].includes(Q)?"":` ${s("admin.APP_MODERATION.TEXTAREA_PLACEHOLDER.INFORMATION_VISIBLE_TO_USER")}`),`${Se}${me}`}function Te(){a.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),_.value=[]}return Ce(()=>f.value.comments,()=>{g.value=!1,E.value=""}),Ce(()=>t.params.reportId,()=>{y()}),Ce(()=>u.value,Q=>{Q&&Pe("")}),et(async()=>y()),ct(()=>a.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1)),(Q,Se)=>{var oe;const me=j("Modal"),ie=j("router-link"),k=j("i18n-t"),w=j("AlertMessage"),G=j("Card"),re=j("CustomTextArea"),pe=j("ErrorMessage");return A.value?(h(),v("div",KXe,[M(wl)])):(h(),v(ue,{key:1},[(oe=f.value)!=null&&oe.id?(h(),v("div",qXe,[T.value&&f.value.reported_user?(h(),B(me,{key:0,title:Q.$t("common.CONFIRMATION"),message:`admin.CONFIRM_${c.value}`,strongMessage:f.value.reported_user.username,onConfirmAction:_e,onCancelAction:Se[0]||(Se[0]=$=>Pe("")),onKeydown:Se[1]||(Se[1]=Ye($=>Pe(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),M(G,null,{title:Y(()=>[x(S(Q.$t("admin.APP_MODERATION.REPORT"))+" #"+S(f.value.id)+" ",1),f.value.resolved?(h(),v("span",jXe," ("+S(Q.$t("admin.APP_MODERATION.RESOLVED.TRUE"))+") ",1)):L("",!0)]),content:Y(()=>[p("div",YXe,[p("div",XXe,[M(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Q.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1)]),content:Y(()=>{var $,W,V;return[f.value.object_type==="comment"?(h(),v(ue,{key:0},[f.value.reported_comment?(h(),B(Fp,{key:0,"auth-user":m(r),comment:f.value.reported_comment,"comments-loading":null,"for-admin":!0},null,8,["auth-user","comment"])):(h(),v("span",QXe,S(Q.$t("admin.DELETED_COMMENT")),1)),f.value.reported_user?L("",!0):(h(),v("span",ZXe," ("+S(Q.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),f.value.object_type==="workout"?(h(),v(ue,{key:1},[f.value.reported_workout?(h(),B(Vo,{workout:f.value.reported_workout,sport:m(d).filter(q=>{var Re;return q.id===((Re=f.value.reported_workout)==null?void 0:Re.sport_id)})[0],user:f.value.reported_workout.user,useImperialUnits:m(r).imperial_units,dateFormat:m(l),timezone:m(r).timezone,key:f.value.reported_workout.id},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"])):(h(),v("span",JXe,S(Q.$t("admin.DELETED_WORKOUT")),1)),f.value.reported_user?(W=($=f.value.reported_workout)==null?void 0:$.suspension)!=null&&W.report_id?(h(),B(w,{key:3,message:"workouts.SUSPENDED_BY_ADMIN"},mi({_:2},[f.value.reported_workout.suspension.report_id!==parseInt(m(t).params.reportId)?{name:"additionalMessage",fn:Y(()=>[M(k,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[M(ie,{to:`/admin/reports/${f.value.reported_workout.suspension.report_id}`},{default:Y(()=>[x(" #"+S(f.value.reported_workout.suspension.report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1024)):L("",!0):(h(),v("span",eQe," ("+S(Q.$t("admin.DELETED_USER").toLocaleLowerCase())+") ",1))],64)):L("",!0),f.value.object_type==="user"?(h(),v(ue,{key:2},[f.value.reported_user?(h(),B(Hp,{key:0,authUser:m(r),user:f.value.reported_user,hideRelationship:!0},null,8,["authUser","user"])):(h(),v("span",tQe,S(Q.$t("admin.DELETED_USER")),1))],64)):((V=f.value.reported_user)==null?void 0:V.suspended_at)!==null?(h(),B(w,{key:3,message:"user.ACCOUNT_SUSPENDED_AT",param:b.value},mi({_:2},[C.value?{name:"additionalMessage",fn:Y(()=>[M(k,{keypath:"common.SEE_REPORT"},{default:Y(()=>{var q;return[M(ie,{to:`/admin/reports/${(q=f.value.reported_user)==null?void 0:q.suspension_report_id}`},{default:Y(()=>{var Re;return[x(S((Re=f.value.reported_user)==null?void 0:Re.suspension_report_id),1)]}),_:1},8,["to"])]}),_:1})]),key:"0"}:void 0]),1032,["param"])):L("",!0)]}),_:1}),M(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Q.$t("admin.APP_MODERATION.REPORT_NOTE"))+" ",1),f.value.reported_by?(h(),v(ue,{key:0},[M(ie,{class:"link-with-image",to:`/admin/users/${f.value.reported_by.username}`},{default:Y(()=>[x(S(f.value.reported_by.username),1)]),_:1},8,["to"]),x(" ("+S(Q.$t("admin.APP_MODERATION.REPORTER"))+") ",1)],64)):(h(),v("span",nQe,S(Q.$t("admin.DELETED_USER").toLocaleLowerCase()),1))]),content:Y(()=>[x(S(f.value.note),1)]),_:1})]),p("dl",aQe,[p("dt",null,S(Q.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))+":",1),p("dd",null,S(Ve(f.value.created_at)),1),p("dt",null,S(Q.$t("admin.APP_MODERATION.REPORTED_BY"))+":",1),p("dd",null,[f.value.reported_by?(h(),v("div",sQe,[M(Qt,{user:f.value.reported_by},null,8,["user"]),M(go,{user:f.value.reported_by},null,8,["user"])])):(h(),v("span",iQe,S(Q.$t("admin.DELETED_USER")),1))]),p("dt",null,S(Q.$t("admin.APP_MODERATION.STATUS"))+":",1),p("dd",null,S(Q.$t(`admin.APP_MODERATION.RESOLVED.${f.value.resolved?"TRUE":"FALSE"}`)),1),f.value.resolved_at?(h(),v("dt",oQe,S(Q.$t("admin.APP_MODERATION.RESOLVED_AT"))+": ",1)):L("",!0),f.value.resolved_at?(h(),v("dd",rQe,[p("time",null,S(Ve(f.value.resolved_at)),1)])):L("",!0),f.value.resolved_by?(h(),v("dt",uQe,S(Q.$t("admin.APP_MODERATION.RESOLVED_BY"))+": ",1)):L("",!0),f.value.resolved_by?(h(),v("dd",lQe,[p("div",cQe,[M(Qt,{user:f.value.resolved_by},null,8,["user"]),M(go,{user:f.value.resolved_by},null,8,["user"])])])):L("",!0),f.value.updated_at?(h(),v("dt",dQe,S(Q.$t("common.LAST_UPDATED_ON"))+": ",1)):L("",!0),f.value.updated_at?(h(),v("dd",EQe,[p("time",null,S(Ve(f.value.updated_at)),1)])):L("",!0)])]),M(G,{class:"report-action-and-comments"},{title:Y(()=>[x(S(Q.$t("admin.APP_MODERATION.NOTES_AND_ACTIONS")),1)]),content:Y(()=>[(h(!0),v(ue,null,be(I.value,$=>(h(),v("div",{key:$.id},["comment"in $&&!("action_type"in $)?(h(),v("div",pQe,[p("div",TQe,[p("div",mQe,[M(Qt,{user:$.user},null,8,["user"]),M(go,{user:$.user},null,8,["user"])]),p("div",{class:"report-comment-date",title:Ve($.created_at)},S(m(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:m(o)})),9,_Qe)]),p("div",fQe,S($.comment),1)])):L("",!0),"action_type"in $?(h(),v("div",hQe,[p("div",null,[Se[7]||(Se[7]=x(" • ")),M(k,{keypath:`admin.APP_MODERATION.REPORT_ACTIONS.${$.action_type}`},{default:Y(()=>[$.action_type.startsWith("user_")&&$.user?(h(),B(ie,{key:0,class:"user-name",to:`/admin/users/${$.user.username}`,title:$.user.username},{default:Y(()=>[x(S($.user.username),1)]),_:2},1032,["to","title"])):L("",!0),M(ie,{class:"user-name",to:`/admin/users/${$.moderator.username}`,title:$.moderator.username},{default:Y(()=>[x(S($.moderator.username),1)]),_:2},1032,["to","title"]),p("span",{class:"report-action-date",title:Ve($.created_at)},S(m(Ws)(new Date($.created_at),new Date,{addSuffix:!0,locale:m(o)})),9,SQe)]),_:2},1032,["keypath"]),$.appeal?(h(),v("button",{key:0,class:"appeal-button small transparent",onClick:W=>ae($.appeal.id)},S(Q.$t(`admin.APP_MODERATION.APPEAL.${_.value.includes($.appeal.id)?"HIDE":"SEE"}`)),9,AQe)):L("",!0)]),$.reason?(h(),v("div",OQe,[p("span",null,S(Q.$t("admin.APP_MODERATION.REASON"))+":",1),x(" "+S($.reason),1)])):L("",!0),$.appeal&&_.value.includes($.appeal.id)?(h(),B(jYe,{key:1,appeal:$.appeal,"auth-user":m(r),onUpdateAppeal:ke,onCloseAppeal:W=>ae($.appeal.id)},null,8,["appeal","auth-user","onCloseAppeal"])):L("",!0)])):L("",!0)]))),128)),I.value.length==0?(h(),v("div",IQe,S(Q.$t("common.NO_NOTES")),1)):L("",!0)]),_:1}),M(G,{class:"report-detail-card"},{title:Y(()=>[x(S(Q.$t("admin.ACTION",0)),1)]),content:Y(()=>[g.value?(h(),v("div",gQe,[p("form",{onSubmit:ve(Z,["prevent"])},[p("label",RQe,S(Q.$t(`admin.APP_MODERATION.ACTIONS.${c.value}`)),1),M(re,{class:"report-comment-textarea",name:"report-comment",required:N.value,placeholder:pt(),disabled:R.value,onUpdateValue:U},null,8,["required","placeholder","disabled"]),p("div",NQe,[p("button",{class:"confirm",type:"submit",disabled:R.value},S(Q.$t(Oe())),9,vQe),p("button",{class:"cancel",onClick:ve(P,["prevent"]),disabled:R.value},S(Q.$t("buttons.CANCEL")),9,bQe),p("div",CQe,[R.value?(h(),v("i",PQe)):L("",!0)])]),m(i)?(h(),B(pe,{key:0,message:m(i)},null,8,["message"])):L("",!0)],32)])):(h(),v("div",DQe,[p("button",{onClick:Se[2]||(Se[2]=$=>D("ADD_COMMENT"))},S(Q.$t("admin.APP_MODERATION.ACTIONS.ADD_COMMENT")),1),!f.value.resolved&&f.value.reported_user&&!f.value.is_reported_user_warned?(h(),v("button",{key:0,onClick:Se[3]||(Se[3]=$=>D("SEND_WARNING_EMAIL"))},S(Q.$t("admin.APP_MODERATION.ACTIONS.SEND_WARNING_EMAIL")),1)):L("",!0),!f.value.resolved&&O.value?(h(),v("button",{key:1,class:Ae({danger:O.value.suspended_at===null}),onClick:Se[4]||(Se[4]=$=>D(`${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`))},S(Q.$t(`admin.APP_MODERATION.ACTIONS.${O.value.suspended_at===null?"":"UN"}SUSPEND_CONTENT`)),3)):L("",!0),!f.value.resolved&&f.value.reported_user?(h(),v("button",{key:2,class:Ae({danger:f.value.reported_user.suspended_at===null}),onClick:Se[5]||(Se[5]=$=>D(`${f.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`))},S(Q.$t(`admin.APP_MODERATION.ACTIONS.${f.value.reported_user.suspended_at?"UN":""}SUSPEND_ACCOUNT`)),3)):L("",!0),p("button",{onClick:Se[6]||(Se[6]=$=>D(`MARK_AS_${f.value.resolved?"UN":""}RESOLVED`))},S(Q.$t(`admin.APP_MODERATION.ACTIONS.MARK_AS_${f.value.resolved?"UN":""}RESOLVED`)),1)]))]),_:1}),p("button",{onClick:ve(Je,["prevent"])},S(Q.$t("buttons.BACK")),1)]),_:1})])):A.value?(h(),v("div",LQe)):(h(),v("div",yQe,[M(Ui,{target:"REPORT"})]))],64))}}}),UQe=se($Qe,[["__scopeId","data-v-e9598d83"]]),kQe={class:"table-selects"},wQe=["value"],MQe=["value"],WQe=["value"],FQe=["value"],zQe=["value"],xQe=["value"],Kp=X({__name:"FilterSelects",props:{order_by:{},query:{},sort:{},message:{}},emits:["updateSelect"],setup(e,{emit:t}){const n=e,{order_by:a,query:s,sort:i,message:o}=fe(n),r=t,u=[10,25,50,100];function l(d){r("updateSelect",d.target.id,d.target.value)}return(d,E)=>(h(),v("div",kQe,[p("label",null,[x(S(d.$t("common.SELECTS.ORDER_BY.LABEL"))+": ",1),p("select",{name:"order_by",id:"order_by",value:m(s).order_by,onChange:l},[(h(!0),v(ue,null,be(m(a),c=>(h(),v("option",{value:c,key:c},S(d.$t(`${m(o)}.${c.toUpperCase()}`)),9,MQe))),128))],40,wQe)]),p("label",null,[x(S(d.$t("common.SELECTS.ORDER.LABEL"))+": ",1),p("select",{name:"order",id:"order",value:m(s).order,onChange:l},[(h(!0),v(ue,null,be(m(i),c=>(h(),v("option",{value:c,key:c},S(d.$t(`common.SELECTS.ORDER.${c.toUpperCase()}`)),9,FQe))),128))],40,WQe)]),Pt(d.$slots,"additionalFilters"),p("label",null,[x(S(d.$t("common.SELECTS.PER_PAGE.LABEL"))+": ",1),p("select",{name:"per_page",id:"per_page",value:m(s).per_page,onChange:l},[(h(),v(ue,null,be(u,c=>p("option",{value:c,key:c},S(c),9,xQe)),64))],40,zQe)])]))}}),Ml=["asc","desc"],Wl=1,BQe=10,Ho=(e,t)=>e&&typeof e=="string"&&+e>0?+e:t,Th=(e,t,n)=>e&&typeof e=="string"&&t.includes(e)?e:n,vi=(e,t,n,a)=>{const i=(a||{}).defaultSort||"asc",o={};return o.page=Ho(e.page,Wl),o.per_page=Ho(e.per_page,BQe),o.order=Th(e.order,Ml,i),o.order_by=Th(e.order_by,t,n),typeof e.q=="string"?o.q=e.q:delete o.q,typeof e.notes=="string"?o.notes=e.notes:delete o.notes,typeof e.description=="string"?o.description=e.description:delete o.description,typeof e.object_type=="string"?o.object_type=e.object_type:delete o.object_type,typeof e.resolved=="string"?o.resolved=e.resolved:delete o.resolved,o},GQe=["equipment_id","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"],Js=(e,t=1)=>Array.from({length:e-t+1},(n,a)=>t+a),VQe=(e,t)=>{if(e<0)return[];if(e<9)return Js(e);let n=[1,2];return t<4?n=n.concat([3,4,5]):t<6?n=n.concat(Js(t+2,3)):(n=n.concat(["..."]),t=e-2&&+n[n.length-1]{const u=j("router-link");return h(),v("nav",HQe,[p("ul",KQe,[p("li",{class:Ae(["page-prev",{disabled:!m(n).has_prev}])},[M(u,{class:"page-link",to:{path:m(a),query:i(m(n).page,-1)},disabled:!m(n).has_prev,tabindex:m(n).has_prev?0:-1},{default:Y(({navigate:l})=>[Pt(o.$slots,"default",{onClick:d=>m(n).has_next?l:null},()=>[x(S(o.$t("common.PREVIOUS"))+" ",1),r[0]||(r[0]=p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2),(h(!0),v(ue,null,be(m(VQe)(m(n).pages,m(n).page),l=>(h(),v("li",{key:l,class:Ae(["page",{active:l===m(n).page}])},[l==="..."?(h(),v("span",qQe," ... ")):(h(),B(u,{key:1,class:"page-link",to:{path:m(a),query:i(+l)}},{default:Y(()=>[x(S(l),1)]),_:2},1032,["to"]))],2))),128)),p("li",{class:Ae(["page-next",{disabled:!m(n).has_next}])},[M(u,{class:"page-link",to:{path:m(a),query:i(m(n).page,1)},disabled:!m(n).has_next,tabindex:m(n).has_next?0:-1},{default:Y(({navigate:l})=>[Pt(o.$slots,"default",{onClick:d=>m(n).has_next?l:null},()=>[x(S(o.$t("common.NEXT"))+" ",1),r[1]||(r[1]=p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1))],!0)]),_:3},8,["to","disabled","tabindex"])],2)])])}}}),oa=se(jQe,[["__scopeId","data-v-d7c0bddb"]]),YQe={id:"admin-reports",class:"admin-card"},XQe=["value"],QQe=["value"],ZQe=["value"],JQe={value:"true"},eZe={value:"false"},tZe={key:0,class:"no-reports"},nZe={key:1,class:"responsive-table"},aZe={class:"left-text"},sZe={class:"left-text"},iZe={class:"left-text"},oZe={class:"left-text"},rZe={class:"left-text"},uZe={class:"left-text"},lZe={class:"left-text"},cZe={class:"cell-heading"},dZe={key:1,class:"deleted-object"},EZe={class:"cell-heading"},pZe={key:0},TZe={class:"cell-heading"},mZe={key:1,class:"deleted-object"},_Ze={class:"cell-heading"},fZe={class:"cell-heading"},hZe={class:"cell-heading"},SZe={key:0},AZe=["onClick"],mh=20,_h="created_at",OZe=X({__name:"AdminReports",setup(e){const t=ut(),n=gn(),a=Le(),{errorMessages:s}=qe(),{authUser:i}=Ke(),o=["created_at","updated_at"],r={comment:"workouts.COMMENTS.COMMENT",user:"user.USER",workout:"workouts.WORKOUT"};let u=kt(vi(t.query,o,_h,{defaultSort:"desc"}));const l=z(()=>a.getters[De.GETTERS.REPORTS]),d=z(()=>a.getters[De.GETTERS.REPORTS_PAGINATION]);function E(R){a.dispatch(De.ACTIONS.GET_REPORTS,R)}function c(R){const g=R.target;g.value?u.object_type=g.value:delete u.object_type,n.push({path:"/admin/reports",query:u})}function T(R){const g=R.target;g.value?u.resolved=g.value:delete u.resolved,n.push({path:"/admin/reports",query:u})}function _(R,g){u[R]=g,R==="per_page"&&(u.page=1),n.push({path:"/admin/reports",query:u})}function f(R){return $t(R,i.value.timezone,i.value.date_format)}function O(R){return R=="user.USER"?"user.USER_PROFILE":R}function A(R){var I,N;let g;switch(R.object_type){case"workout":g=(I=R.reported_workout)==null?void 0:I.title;break;case"comment":g=((N=R.reported_comment)==null?void 0:N.text)||"";break;default:g=""}return g?g.length>mh?`${g.substring(0,mh-1)}…`:g:""}return Ce(()=>t.query,R=>{u=vi(R,o,_h,{query:u}),E(u)}),et(()=>E(u)),(R,g)=>{const I=j("router-link"),N=j("ErrorMessage"),b=j("Card");return h(),v("div",YQe,[M(b,null,{title:Y(()=>[x(S(R.$t("admin.APP_MODERATION.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:g[0]||(g[0]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1),M(Kp,{sort:m(Ml),order_by:o,query:m(u),message:"admin.APP_MODERATION.ORDER_BY",onUpdateSelect:_},{additionalFilters:Y(()=>[p("label",null,[x(S(R.$t("common.TYPE"))+": ",1),p("select",{name:"object_type",id:"object_type",value:m(u).object_type,onChange:c},[g[2]||(g[2]=p("option",{value:""},null,-1)),(h(!0),v(ue,null,be(Object.keys(r),C=>(h(),v("option",{value:C,key:C},S(R.$t(r[C])),9,QQe))),128))],40,XQe)]),p("label",null,[x(S(R.$t("admin.APP_MODERATION.STATUS"))+": ",1),p("select",{name:"resolved",id:"resolved",value:m(u).resolved,onChange:T},[g[3]||(g[3]=p("option",{value:""},null,-1)),p("option",JQe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("option",eZe,S(R.$t("admin.APP_MODERATION.RESOLVED.FALSE")),1)],40,ZQe)])]),_:1},8,["sort","query"]),l.value.length===0?(h(),v("div",tZe,S(R.$t("admin.APP_MODERATION.NO_REPORTS_FOUND")),1)):(h(),v("div",nZe,[p("table",null,[p("thead",null,[p("tr",null,[g[4]||(g[4]=p("th",{class:"left-text"},"#",-1)),p("th",aZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),p("th",sZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),p("th",iZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),p("th",oZe,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("th",rZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("th",uZe,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),p("th",lZe,S(R.$t("admin.ACTION")),1)])]),p("tbody",null,[(h(!0),v(ue,null,be(l.value,C=>(h(),v("tr",{key:C.created_at},[p("td",null,[M(I,{to:`/admin/reports/${C.id}`},{default:Y(()=>[x(S(C.id),1)]),_:2},1032,["to"])]),p("td",null,[p("span",cZe,S(R.$t("admin.APP_MODERATION.REPORTED_USER")),1),C.reported_user?(h(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_user.username}`},{default:Y(()=>[M(Qt,{user:C.reported_user},null,8,["user"]),x(" "+S(C.reported_user.username),1)]),_:2},1032,["to"])):(h(),v("span",dZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",EZe,S(R.$t("admin.APP_MODERATION.REPORTED_CONTENT")),1),x(" "+S(R.$t(O(r[C.object_type])))+" ",1),A(C)?(h(),v("span",pZe," ("+S(A(C))+") ",1)):L("",!0)]),p("td",null,[p("span",TZe,S(R.$t("admin.APP_MODERATION.REPORTED_BY")),1),C.reported_by?(h(),B(I,{key:0,class:"link-with-image",to:`/admin/users/${C.reported_by.username}`},{default:Y(()=>[M(Qt,{user:C.reported_by},null,8,["user"]),x(" "+S(C.reported_by.username),1)]),_:2},1032,["to"])):(h(),v("span",mZe,S(R.$t("admin.DELETED_USER")),1))]),p("td",null,[p("span",_Ze,S(Fe(R.$t("admin.APP_MODERATION.ORDER_BY.CREATED_AT"))),1),p("time",null,S(f(C.created_at)),1)]),p("td",null,[p("span",fZe,S(R.$t("admin.APP_MODERATION.RESOLVED.TRUE")),1),p("i",{class:Ae(`fa fa${C.resolved?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",null,[p("span",hZe,S(Fe(R.$t("common.LAST_UPDATED_ON"))),1),C.updated_at?(h(),v("time",SZe,S(f(C.updated_at)),1)):L("",!0)]),p("td",null,[p("button",{onClick:y=>R.$router.push(`/admin/reports/${C.id}`)},S(R.$t("admin.APP_MODERATION.VIEW_REPORT")),9,AZe)])]))),128))])]),d.value.page?(h(),B(oa,{key:0,path:"/admin/users",pagination:d.value,query:m(u)},null,8,["pagination","query"])):L("",!0),m(s)?(h(),B(N,{key:1,message:m(s)},null,8,["message"])):L("",!0),p("button",{onClick:g[1]||(g[1]=ve(C=>R.$router.push("/admin"),["prevent"]))},S(R.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),IZe=se(OZe,[["__scopeId","data-v-88c1fd48"]]),gZe={id:"admin-sports",class:"admin-card"},RZe={class:"responsive-table"},NZe={class:"text-left"},vZe={class:"text-left sport-action"},bZe={class:"text-center"},CZe={class:"cell-heading"},PZe={class:"sport-label"},DZe={class:"cell-heading"},LZe={class:"text-center"},yZe={class:"cell-heading"},$Ze={class:"sport-action"},UZe={class:"cell-heading"},kZe={class:"action-button"},wZe=["onClick"],MZe={key:0,class:"has-workouts"},WZe=X({__name:"AdminSports",setup(e){const t=Le(),{errorMessages:n}=qe(),{translatedSports:a}=nn();function s(i,o){t.dispatch(Ht.ACTIONS.UPDATE_SPORTS,{id:i,isActive:o})}return et(()=>t.dispatch(Ht.ACTIONS.GET_SPORTS,!0)),(i,o)=>{const r=j("SportImage"),u=j("ErrorMessage"),l=j("Card");return h(),v("div",gZe,[M(l,null,{title:Y(()=>[x(S(i.$t("admin.SPORTS.TITLE")),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:o[0]||(o[0]=ve(d=>i.$router.push("/admin"),["prevent"]))},S(i.$t("admin.BACK_TO_ADMIN")),1),p("div",RZe,[p("table",null,[p("thead",null,[p("tr",null,[o[2]||(o[2]=p("th",null,"#",-1)),p("th",null,S(i.$t("admin.SPORTS.TABLE.IMAGE")),1),p("th",NZe,S(i.$t("admin.SPORTS.TABLE.LABEL")),1),p("th",null,S(i.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("th",vZe,S(i.$t("admin.ACTION")),1)])]),p("tbody",null,[(h(!0),v(ue,null,be(m(a),d=>(h(),v("tr",{key:d.id},[p("td",bZe,[o[3]||(o[3]=p("span",{class:"cell-heading"},"id",-1)),x(" "+S(d.id),1)]),p("td",null,[p("span",CZe,S(i.$t("admin.SPORTS.TABLE.IMAGE")),1),M(r,{title:d.translatedLabel,"sport-label":d.label,color:d.color},null,8,["title","sport-label","color"])]),p("td",PZe,[p("span",DZe,S(i.$t("admin.SPORTS.TABLE.LABEL")),1),x(" "+S(d.translatedLabel),1)]),p("td",LZe,[p("span",yZe,S(i.$t("admin.SPORTS.TABLE.ACTIVE")),1),p("i",{class:Ae(`fa fa${d.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),p("td",$Ze,[p("span",UZe,S(i.$t("admin.ACTION")),1),p("div",kZe,[p("button",{class:Ae({danger:d.is_active}),onClick:E=>s(d.id,!d.is_active)},S(i.$t(`buttons.${d.is_active?"DIS":"EN"}ABLE`)),11,wZe),d.has_workouts?(h(),v("span",MZe,[o[4]||(o[4]=p("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1)),x(" "+S(i.$t("admin.SPORTS.TABLE.HAS_WORKOUTS")),1)])):L("",!0)])])]))),128))])]),m(n)?(h(),B(u,{key:0,message:m(n)},null,8,["message"])):L("",!0),p("button",{onClick:o[1]||(o[1]=ve(d=>i.$router.push("/admin"),["prevent"]))},S(i.$t("admin.BACK_TO_ADMIN")),1)])]),_:1})])}}}),FZe=se(WZe,[["__scopeId","data-v-f6f9d907"]]),zZe={class:"users-filters"},xZe={class:"search-username"},BZe=["placeholder"],GZe=X({__name:"UsersNameFilter",emits:["filterOnUsername"],setup(e,{emit:t}){const n=t,a=ut(),s=Ie(a.query.q?a.query.q:"");function i(){s.value!==""&&n("filterOnUsername",s)}function o(){s.value="",n("filterOnUsername",s.value)}return(r,u)=>(h(),v("div",zZe,[p("div",xZe,[We(p("input",{id:"username",name:"username","onUpdate:modelValue":u[0]||(u[0]=l=>s.value=l),onKeyup:Ye(i,["enter"]),placeholder:r.$t("user.FILTER_ON_USERNAME")},null,40,BZe),[[ot,s.value,void 0,{trim:!0}]]),s.value!==""?(h(),v("i",{key:0,class:"fa fa-times","aria-hidden":"true",onClick:o})):L("",!0)]),p("i",{class:Ae(["fa fa-search",{"fa-disabled":s.value===""}]),"aria-hidden":"true",onClick:i},null,2)]))}}),$O=se(GZe,[["__scopeId","data-v-359360da"]]),VZe={id:"admin-users",class:"admin-card"},HZe={key:0,class:"no-users"},KZe={key:1,class:"responsive-table"},qZe={class:"left-text"},jZe={class:"left-text"},YZe={class:"cell-heading"},XZe={class:"cell-heading"},QZe={class:"cell-heading"},ZZe={class:"text-center"},JZe={class:"cell-heading"},eJe={class:"text-center"},tJe={class:"cell-heading"},nJe={class:"text-center"},aJe={class:"cell-heading"},sJe={class:"text-center"},iJe={class:"cell-heading"},oJe={class:"text-center"},rJe={class:"cell-heading"},uJe={class:"roles"},lJe={key:0,class:"roles-buttons"},cJe=["onClick"],dJe={key:1},EJe=["disabled","onClick"],fh="created_at",pJe=X({__name:"AdminUsers",setup(e){const t=Le(),n=ut(),a=gn(),{errorMessages:s}=qe(),{authUser:i}=Ke(),o=["is_active","role","created_at","username","workouts_count"];let r=kt(vi(n.query,o,fh));const u=z(()=>t.getters[ce.GETTERS.USERS]),l=z(()=>t.getters[ce.GETTERS.USERS_PAGINATION]),d=z(()=>t.getters[ce.GETTERS.USERS_IS_SUCCESS]),E=Ie("");function c(g){t.dispatch(ce.ACTIONS.GET_USERS_FOR_ADMIN,g)}function T(g){A("q",g.value)}function _(g){return E.value===g}function f(g){switch(g){case"admin":return["moderator","user"];case"moderator":return["admin","user"];case"user":return["admin","moderator"];default:return[]}}function O(g,I){t.dispatch(ce.ACTIONS.UPDATE_USER,{username:g,role:I})}function A(g,I){r[g]=I,g==="per_page"&&(r.page=1),a.push({path:"/admin/users",query:r})}function R(g){return g.username===i.value.username||g.suspended_at!==null||g.role==="owner"}return Ce(()=>n.query,g=>{r=vi(g,o,fh,{query:r}),c(r)}),Ce(()=>d.value,g=>{g&&(E.value="")}),et(()=>c(r)),ct(()=>{t.dispatch(ce.ACTIONS.EMPTY_USERS),t.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(g,I)=>{const N=j("router-link"),b=j("ErrorMessage"),C=j("Card");return h(),v("div",VZe,[M(C,null,{title:Y(()=>[x(S(Fe(g.$t("user.USER",0))),1)]),content:Y(()=>[p("button",{class:"top-button",onClick:I[0]||(I[0]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1),M($O,{onFilterOnUsername:T}),M(Kp,{sort:m(Ml),order_by:o,query:m(r),message:"admin.USERS.SELECTS.ORDER_BY",onUpdateSelect:A},null,8,["sort","query"]),u.value.length===0?(h(),v("div",HZe,S(g.$t("user.NO_USERS_FOUND")),1)):(h(),v("div",KZe,[p("table",null,[p("thead",null,[p("tr",null,[I[3]||(I[3]=p("th",null,"#",-1)),p("th",qZe,S(g.$t("user.USERNAME")),1),p("th",jZe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("th",null,S(Fe(g.$t("workouts.WORKOUT",0))),1),p("th",null,S(g.$t("admin.ACTIVE")),1),p("th",null,S(g.$t("user.ROLE")),1),p("th",null,S(g.$t("user.SUSPENDED")),1),p("th",null,S(g.$t("admin.ACTION")),1)])]),p("tbody",null,[(h(!0),v(ue,null,be(u.value,y=>(h(),v("tr",{key:y.username},[p("td",null,[p("span",YZe,S(g.$t("user.PROFILE.PICTURE")),1),M(Qt,{user:y},null,8,["user"])]),p("td",null,[p("span",XZe,S(g.$t("user.USERNAME")),1),M(N,{to:`/admin/users/${y.username}`},{default:Y(()=>[x(S(y.username),1)]),_:2},1032,["to"]),m(s)&&E.value===y.username?(h(),B(b,{key:0,message:m(s)},null,8,["message"])):L("",!0)]),p("td",null,[p("span",QZe,S(g.$t("user.PROFILE.REGISTRATION_DATE")),1),p("time",null,S(m($t)(y.created_at,m(i).timezone,m(i).date_format)),1)]),p("td",ZZe,[p("span",JZe,S(Fe(g.$t("workouts.WORKOUT",0))),1),x(" "+S(y.nb_workouts),1)]),p("td",eJe,[p("span",tJe,S(g.$t("admin.ACTIVE")),1),p("i",{class:Ae(`fa fa${y.is_active?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",nJe,[p("span",aJe,S(g.$t("user.ROLE")),1),x(" "+S(g.$t(`user.ROLES.${y.role}`)),1)]),p("td",sJe,[p("span",iJe,S(g.$t("user.SUSPENDED")),1),p("i",{class:Ae(`fa fa${y.suspended_at!==null?"-check":""}-square-o`),"aria-hidden":"true"},null,2)]),p("td",oJe,[p("span",rJe,S(g.$t("admin.ACTION")),1),p("div",uJe,[_(y.username)?(h(),v("div",lJe,[(h(!0),v(ue,null,be(f(y.role),D=>(h(),v("button",{class:Ae({danger:y.role==="admin"||D==="user"}),key:D,onClick:U=>O(y.username,D)},S(g.$t(`admin.USERS.TABLE.CHANGE_TO_${D.toUpperCase()}`)),11,cJe))),128)),p("button",{onClick:I[1]||(I[1]=D=>E.value="")},S(g.$t("buttons.CANCEL")),1)])):(h(),v("div",dJe,[p("button",{disabled:R(y),onClick:D=>E.value=y.username},S(g.$t("admin.USERS.TABLE.CHANGE_ROLE")),9,EJe)]))])])]))),128))])]),l.value.page?(h(),B(oa,{key:0,path:"/admin/users",pagination:l.value,query:m(r)},null,8,["pagination","query"])):L("",!0),E.value===""&&m(s)?(h(),B(b,{key:1,message:m(s)},null,8,["message"])):L("",!0),p("button",{onClick:I[2]||(I[2]=ve(y=>g.$router.push("/admin"),["prevent"]))},S(g.$t("admin.BACK_TO_ADMIN")),1)]))]),_:1})])}}}),TJe=se(pJe,[["__scopeId","data-v-4934ef0c"]]),mJe={class:"box"},_Je={class:"user-header"},fJe={key:0,class:"follows-you"},hJe={key:1,class:"follows-you"},SJe={class:"user-details"},AJe={class:"user-name"},OJe={key:2,class:"user-role"},IJe=X({__name:"UserHeader",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=ut(),{displayOptions:s}=qe(),{authUser:i,authUserHasModeratorRights:o}=Ke(),r=z(()=>n.value.suspended_at?$t(n.value.suspended_at,s.value.timezone,s.value.dateFormat):""),u=z(()=>n.value.suspended_at!==null&&a.name!=="AuthUserAccountSuspension"&&n.value.username===(i==null?void 0:i.value.username)),l=z(()=>o.value&&n.value.suspension_report_id!==void 0),d=z(()=>n.value.role!=="user"?`user.ROLES.${n.value.role}`:"");return(E,c)=>{const T=j("router-link"),_=j("i18n-t"),f=j("AlertMessage");return h(),v("div",mJe,[p("div",_Je,[m(n).follows==="true"?(h(),v("div",fJe,S(E.$t("user.RELATIONSHIPS.FOLLOWS_YOU")),1)):m(n).username===m(i).username&&!E.$route.path.startsWith("/profile")?(h(),v("div",hJe,S(E.$t("user.YOU")),1)):L("",!0),M(Qt,{user:m(n)},null,8,["user"]),p("div",SJe,[p("div",AJe,S(m(n).username),1),M(Vp,{user:m(n)},null,8,["user"])]),d.value?(h(),v("div",OJe,S(E.$t(d.value)),1)):L("",!0)]),"suspended_at"in m(n)&&m(n).suspended_at!==null?(h(),B(f,{key:0,message:"user.ACCOUNT_SUSPENDED_AT",param:r.value},mi({_:2},[u.value||l.value?{name:"additionalMessage",fn:Y(()=>[u.value?(h(),B(T,{key:0,to:"/profile/suspension",class:"appeal-link"},{default:Y(()=>[x(S(E.$t("user.APPEAL")),1)]),_:1})):L("",!0),l.value?(h(),B(_,{key:1,keypath:"common.SEE_REPORT"},{default:Y(()=>[M(T,{to:`/admin/reports/${m(n).suspension_report_id}`},{default:Y(()=>[x(S(m(n).suspension_report_id),1)]),_:1},8,["to"])]),_:1})):L("",!0)]),key:"0"}:void 0]),1032,["param"])):L("",!0)])}}}),UO=se(IJe,[["__scopeId","data-v-12bd7069"]]),gJe={class:"profile-tabs"},RJe={class:"profile-tabs-links"},_E=X({__name:"UserProfileTabs",props:{tabs:{},selectedTab:{},edition:{type:Boolean}},setup(e){const t=e,{edition:n,selectedTab:a,tabs:s}=fe(t);mt(()=>{const o=document.getElementById(`tab-${s.value[0]}`);o&&o.focus()});function i(o){switch(o){case"ACCOUNT":case"PICTURE":case"PRIVACY-POLICY":return`/profile/edit/${o.toLocaleLowerCase()}`;case"APPS":case"BLOCKED-USERS":case"EQUIPMENTS":case"FOLLOW-REQUESTS":case"MODERATION":case"PREFERENCES":case"SPORTS":return`/profile${n.value?"/edit":""}/${o.toLocaleLowerCase()}`;default:case"PROFILE":return`/profile${n.value?"/edit":""}`}}return(o,r)=>{const u=j("router-link");return h(),v("div",gJe,[p("div",RJe,[(h(!0),v(ue,null,be(m(s),l=>(h(),B(u,{class:Ae(["profile-tab",{selected:l===m(a)}]),to:i(l),key:l},{default:Y(()=>[x(S(o.$t(`user.PROFILE.TABS.${l}`)),1)]),_:2},1032,["class","to"]))),128))])])}}}),NJe={id:"user-profile"},vJe={class:"box"},bJe=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=fe(t),s=Le(),i=z(()=>s.getters[K.GETTERS.IS_SUSPENDED]),o=z(()=>i.value?["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS","MODERATION"]:["PROFILE","PREFERENCES","SPORTS","EQUIPMENTS","APPS"]),r=z(()=>i.value?[]:["FOLLOW-REQUESTS","BLOCKED-USERS","MODERATION"]);return(u,l)=>{const d=j("router-view");return h(),v("div",NJe,[M(UO,{user:m(n)},null,8,["user"]),p("div",vJe,[M(_E,{tabs:o.value,selectedTab:m(a),edition:!1},null,8,["tabs","selectedTab"]),M(_E,{tabs:r.value,selectedTab:m(a),edition:!1},null,8,["tabs","selectedTab"]),M(d,{user:m(n)},null,8,["user"])])])}}}),CJe=se(bJe,[["__scopeId","data-v-4b475df4"]]),PJe={id:"user-moderation-detail"},DJe={id:"user-reports",class:"description-list"},LJe={key:0,id:"user-sanctions"},yJe={key:0},$Je={class:"last-sanctions"},UJe=X({__name:"UserAdminReports",props:{authUser:{},user:{}},setup(e){const t=e,{authUser:n,user:a}=fe(t),s=ut(),i=Le();let o=kt(d(s.query));const r=z(()=>i.getters[ce.GETTERS.USER_SANCTIONS]),u=z(()=>i.getters[ce.GETTERS.USER_SANCTIONS_LOADING]),l=z(()=>i.getters[ce.GETTERS.USER_SANCTIONS_PAGINATION]);function d(T){const _={};return T.page&&(_.page=Ho(T.page,Wl)),_}function E(T){if(T.updated_at)switch(T.approved){case!0:return"APPROVED";case!1:return"REJECTED";default:return"IN_PROGRESS"}return"IN_PROGRESS"}function c(T){i.dispatch(ce.ACTIONS.GET_USER_SANCTIONS,{username:a.value.username,...T})}return Ce(()=>s.query,async T=>{o=d(T),c(o)}),et(()=>c({})),ct(()=>i.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS,[])),(T,_)=>{const f=j("router-link");return h(),v("div",PJe,[p("div",DJe,[p("dl",null,[p("dt",null,S(T.$t("user.PROFILE.CREATED_REPORTS"))+":",1),p("dd",null,S(m(a).created_reports_count),1),p("dt",null,S(T.$t("user.PROFILE.REPORTS_FROM_OTHER_USERS"))+":",1),p("dd",null,S(m(a).reported_count),1)])]),m(a).sanctions_count?(h(),v("div",LJe,[p("strong",null,S(T.$t("user.PROFILE.LATEST_SANCTIONS_RECEIVED"))+":",1),p("div",null,S(T.$t("user.PROFILE.USER_RECEIVED_SANCTIONS",{count:m(a).sanctions_count})),1),u.value?(h(),v("div",yJe,[M(wl)])):(h(),v(ue,{key:1},[p("ul",$Je,[(h(!0),v(ue,null,be(r.value,O=>(h(),v("li",{key:O.id},[p("div",null,[x(S(T.$t(`user.PROFILE.SANCTIONS.${O.action_type}`,{date:m($t)(O.created_at,m(n).timezone,m(n).date_format)}))+" ",1),O.appeal?(h(),v("span",{key:0,class:Ae(["info-box appeal",{approved:E(O.appeal)==="APPROVED",rejected:E(O.appeal)==="REJECTED"}])},[p("i",{class:Ae(["fa",{"fa-info-circle":E(O.appeal)!=="REJECTED","fa-times":E(O.appeal)==="REJECTED"}]),"aria-hidden":"true"},null,2),x(" "+S(T.$t(`user.APPEAL_${E(O.appeal)}`)),1)],2)):L("",!0)]),M(f,{to:`/admin/reports/${O.report_id}`},{default:Y(()=>[x(S(T.$t("admin.APP_MODERATION.VIEW_REPORT"))+" #"+S(O.report_id),1)]),_:2},1032,["to"])]))),128))]),M(oa,{pagination:l.value,path:`/admin/users/${m(a).username}`,query:m(o)},null,8,["pagination","path","query"])],64))])):L("",!0)])}}}),kJe=se(UJe,[["__scopeId","data-v-bfe7e915"]]),wJe={id:"user-infos",class:"description-list"},MJe={key:1,class:"info-box success-message"},WJe={key:4,class:"email-form form-box"},FJe={class:"form-items",for:"email"},zJe={class:"form-items",for:"email"},xJe={class:"form-buttons"},BJe={class:"confirm",type:"submit"},GJe={key:5},VJe={key:0},HJe={key:1},KJe={key:2},qJe={key:3},jJe={key:4},YJe={key:5},XJe={key:6},QJe={key:7},ZJe={key:8},JJe={key:9},eet={key:10},tet={key:11,class:"user-bio"},net={key:0,class:"report-submitted"},aet={class:"info-box"},set={key:0},iet={key:0,class:"profile-buttons"},oet={key:1,class:"profile-buttons"},ret=X({__name:"UserInfos",props:{user:{},authUser:{},fromAdmin:{type:Boolean,default:!1}},setup(e){const t=e,{authUser:n,user:a,fromAdmin:s}=fe(t),i=Le(),{appConfig:o,appLanguage:r,displayOptions:u,errorMessages:l}=qe(),{authUserHasModeratorRights:d,authUserHasAdminRights:E,isAuthenticated:c}=Ke(),T=Ie(""),_=Ie(!1),f=Ie(!1),O=Ie(""),A=Ie(""),R=z(()=>i.getters[ce.GETTERS.USER_CURRENT_REPORTING]),g=z(()=>i.getters[De.GETTERS.REPORT_STATUS]),I=z(()=>a.value.created_at?$t(a.value.created_at,u.value.timezone,u.value.dateFormat):""),N=z(()=>a.value.birth_date?On(new Date(a.value.birth_date),`${fs(u.value.dateFormat,r.value)}`,{locale:zs[r.value]}):""),b=z(()=>i.getters[ce.GETTERS.USERS_IS_SUCCESS]);function C(Ee){T.value=Ee,Ee!==""&&i.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1)}function y(Ee){i.dispatch(ce.ACTIONS.DELETE_USER_ACCOUNT,{username:Ee})}function D(Ee){A.value="password-reset",i.dispatch(ce.ACTIONS.UPDATE_USER,{username:Ee,resetPassword:!0})}function U(Ee){i.dispatch(ce.ACTIONS.UPDATE_USER,{username:Ee,activate:!0})}function P(){Oe(),O.value=a.value.email_to_confirm?a.value.email_to_confirm:"",f.value=!0,A.value="email-update"}function F(){O.value="",f.value=!1}function Z(Ee){i.dispatch(ce.ACTIONS.UPDATE_USER,{username:Ee,new_email:O.value})}function Oe(){i.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),i.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1),i.commit(ce.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1),i.commit(De.MUTATIONS.SET_REPORT_STATUS,null),A.value=""}function ee(){i.commit(ce.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!0)}return Ce(()=>b.value,Ee=>{Ee&&(C(""),F())}),ct(()=>Oe()),(Ee,_e)=>{var Ve,_t,we,ae,ke,pt,Te;const Pe=j("Modal"),He=j("AlertMessage"),Je=j("ErrorMessage");return h(),v("div",wJe,[T.value?(h(),B(Pe,{key:0,title:Ee.$t("common.CONFIRMATION"),message:T.value==="delete"?"admin.CONFIRM_USER_ACCOUNT_DELETION":"admin.CONFIRM_USER_PASSWORD_RESET",strongMessage:m(a).username,onConfirmAction:_e[0]||(_e[0]=Q=>T.value==="delete"?y(m(a).username):D(m(a).username)),onCancelAction:_e[1]||(_e[1]=Q=>C("")),onKeydown:_e[2]||(_e[2]=Ye(Q=>C(""),["esc"]))},null,8,["title","message","strongMessage"])):L("",!0),b.value?(h(),v("div",MJe,S(Ee.$t(`admin.${A.value==="password-reset"?"PASSWORD_RESET":"USER_EMAIL_UPDATE"}_SUCCESSFUL`)),1)):L("",!0),m(d)&&!m(a).is_active?(h(),B(He,{key:2,message:"user.THIS_USER_ACCOUNT_IS_INACTIVE"})):L("",!0),m(l)&&!R.value?(h(),B(Je,{key:3,message:m(l)},null,8,["message"])):L("",!0),f.value?(h(),v("div",WJe,[p("form",{class:Ae({errors:_.value}),onSubmit:_e[5]||(_e[5]=ve(Q=>Z(m(a).username),["prevent"]))},[p("label",FJe,[x(S(Ee.$t("admin.CURRENT_EMAIL"))+" ",1),We(p("input",{id:"email",type:"email","onUpdate:modelValue":_e[3]||(_e[3]=Q=>m(a).email=Q),disabled:""},null,512),[[ot,m(a).email]])]),p("label",zJe,[x(S(Ee.$t("admin.NEW_EMAIL"))+"* ",1),We(p("input",{id:"new-email",type:"email",required:"","onUpdate:modelValue":_e[4]||(_e[4]=Q=>O.value=Q)},null,512),[[ot,O.value]])]),p("div",xJe,[p("button",BJe,S(Ee.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:ve(F,["prevent"])},S(Ee.$t("buttons.CANCEL")),1)])],34)])):(h(),v("div",GJe,[p("dl",null,[p("dt",null,S(Ee.$t("user.PROFILE.REGISTRATION_DATE"))+":",1),p("dd",null,[p("time",null,S(I.value),1)]),m(c)?(h(),v(ue,{key:0},[m(s)?(h(),v("dt",VJe,S(Ee.$t("user.EMAIL"))+":",1)):L("",!0),m(s)?(h(),v("dd",HJe,S(m(a).email),1)):L("",!0),m(a).first_name?(h(),v("dt",KJe,S(Ee.$t("user.PROFILE.FIRST_NAME"))+":",1)):L("",!0),m(a).first_name?(h(),v("dd",qJe,S(m(a).first_name),1)):L("",!0),m(a).last_name?(h(),v("dt",jJe,S(Ee.$t("user.PROFILE.LAST_NAME"))+":",1)):L("",!0),m(a).last_name?(h(),v("dd",YJe,S(m(a).last_name),1)):L("",!0),N.value?(h(),v("dt",XJe,S(Ee.$t("user.PROFILE.BIRTH_DATE"))+":",1)):L("",!0),N.value?(h(),v("dd",QJe,[p("time",null,S(N.value),1)])):L("",!0),m(a).location?(h(),v("dt",ZJe,S(Ee.$t("user.PROFILE.LOCATION"))+":",1)):L("",!0),m(a).location?(h(),v("dd",JJe,S(m(a).location),1)):L("",!0),m(a).bio?(h(),v("dt",eet,S(Ee.$t("user.PROFILE.BIO"))+":",1)):L("",!0),m(a).bio?(h(),v("dd",tet,S(m(a).bio),1)):L("",!0)],64)):L("",!0)]),g.value===`user-${m(a).username}-created`?(h(),v("div",net,[p("div",aet,[p("span",null,[_e[12]||(_e[12]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(Ee.$t("common.REPORT_SUBMITTED")),1)])])])):L("",!0),R.value?(h(),B(Wp,{key:1,"object-id":m(a).username,"object-type":"user"},null,8,["object-id"])):(h(),v(ue,{key:2},[m(n)&&m(d)&&m(s)?(h(),v("div",set,[M(kJe,{authUser:m(n),user:m(a)},null,8,["authUser","user"])])):L("",!0),m(c)?(h(),v(ue,{key:1},[m(s)?(h(),v("div",iet,[m(a).role!=="owner"&&m(E)?(h(),v(ue,{key:0},[((Ve=m(n))==null?void 0:Ve.username)!==m(a).username?(h(),v("button",{key:0,class:"danger",onClick:_e[6]||(_e[6]=ve(Q=>C("delete"),["prevent"]))},S(Ee.$t("admin.DELETE_USER")),1)):L("",!0),m(a).is_active?L("",!0):(h(),v("button",{key:1,onClick:_e[7]||(_e[7]=ve(Q=>U(m(a).username),["prevent"]))},S(Ee.$t("admin.ACTIVATE_USER_ACCOUNT")),1)),((_t=m(n))==null?void 0:_t.username)!==m(a).username?(h(),v("button",{key:2,onClick:ve(P,["prevent"])},S(Ee.$t("admin.UPDATE_USER_EMAIL")),1)):L("",!0),((we=m(n))==null?void 0:we.username)!==m(a).username&&m(o).is_email_sending_enabled?(h(),v("button",{key:3,onClick:_e[8]||(_e[8]=ve(Q=>C("reset"),["prevent"]))},S(Ee.$t("admin.RESET_USER_PASSWORD")),1)):L("",!0),(ae=m(n))!=null&&ae.username?(h(),B(Zu,{key:4,authUser:m(n),user:m(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0)],64)):L("",!0),p("button",{onClick:_e[9]||(_e[9]=Q=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)])):(h(),v("div",oet,[Ee.$route.path==="/profile"||m(a).username===((ke=m(n))==null?void 0:ke.username)?(h(),v("button",{key:0,onClick:_e[10]||(_e[10]=Q=>Ee.$router.push("/profile/edit"))},S(Ee.$t("user.PROFILE.EDIT")),1)):L("",!0),(pt=m(n))!=null&&pt.username?(h(),B(Zu,{key:1,authUser:m(n),user:m(a),from:"userInfos"},null,8,["authUser","user"])):L("",!0),Ee.$route.name==="User"&&m(a).username!==((Te=m(n))==null?void 0:Te.username)&&m(a).suspended_at===null&&g.value!==`user-${m(a).username}-created`?(h(),v("button",{key:2,onClick:ee},S(Ee.$t("user.REPORT")),1)):L("",!0),p("button",{onClick:_e[11]||(_e[11]=Q=>Ee.$router.go(-1))},S(Ee.$t("buttons.BACK")),1)]))],64)):L("",!0)],64))]))])}}}),kO=se(ret,[["__scopeId","data-v-7c182b65"]]),uet={id:"user-preferences",class:"description-list"},cet={class:"preferences-section"},det={class:"preferences-section"},Eet={class:"preferences-section"},pet={class:"info-box raw-speed-help"},Tet={class:"profile-buttons"},met=X({__name:"UserPreferences",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),{dateFormat:a,timezone:s}=Ke(),i=z(()=>n.value.language&&n.value.language in pi?pi[n.value.language]:pi.en),o=z(()=>n.value.weekm?"MONDAY":"SUNDAY"),r=z(()=>n.value.display_ascent?"DISPLAYED":"HIDDEN"),u=z(()=>n.value.use_dark_mode===!0?"DARK":n.value.use_dark_mode===!1?"LIGHT":"DEFAULT");return(l,d)=>(h(),v("div",uet,[p("div",cet,S(l.$t("user.PROFILE.INTERFACE")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.LANGUAGE"))+":",1),p("dd",null,S(i.value),1),p("dt",null,S(l.$t("user.PROFILE.THEME_MODE.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.THEME_MODE.VALUES.${u.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.TIMEZONE"))+":",1),p("dd",null,S(m(s)),1),p("dt",null,S(l.$t("user.PROFILE.DATE_FORMAT"))+":",1),p("dd",null,S(m(a)),1),p("dt",null,S(l.$t("user.PROFILE.FIRST_DAY_OF_WEEK"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.${o.value}`)),1)]),p("div",det,S(l.$t("user.PROFILE.TABS.ACCOUNT")),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.FOLLOW_REQUESTS_APPROVAL.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.FOLLOW_REQUESTS_APPROVAL.${m(n).manually_approves_followers?"MANUALLY":"AUTOMATICALLY"}`)),1),p("dt",null,S(l.$t("user.PROFILE.PROFILE_IN_USERS_DIRECTORY.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.PROFILE_IN_USERS_DIRECTORY.${m(n).hide_profile_in_users_directory?"HIDDEN":"DISPLAYED"}`)),1)]),p("div",Eet,S(l.$t("workouts.WORKOUT",0)),1),p("dl",null,[p("dt",null,S(l.$t("user.PROFILE.UNITS.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.UNITS.${m(n).imperial_units?"IMPERIAL":"METRIC"}`)),1),p("dt",null,S(l.$t("user.PROFILE.ASCENT_DATA"))+":",1),p("dd",null,S(l.$t(`common.${r.value}`)),1),p("dt",null,S(l.$t("user.PROFILE.ELEVATION_CHART_START.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.ELEVATION_CHART_START.${m(n).start_elevation_at_zero?"ZERO":"MIN_ALT"}`)),1),p("dt",null,S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL"))+":",1),p("dd",null,S(l.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${m(n).use_raw_gpx_speed?"RAW_SPEED":"FILTERED_SPEED"}`)),1),p("div",pet,[p("span",null,[d[2]||(d[2]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(l.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("dl",null,[p("dt",null,S(l.$t("visibility_levels.WORKOUTS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${m(n).workouts_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.ANALYSIS_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${m(n).analysis_visibility}`)),1),p("dt",null,S(l.$t("visibility_levels.MAP_VISIBILITY"))+":",1),p("dd",null,S(l.$t(`visibility_levels.LEVELS.${m(n).map_visibility}`)),1)]),p("div",Tet,[p("button",{onClick:d[0]||(d[0]=E=>l.$router.push("/profile/edit/preferences"))},S(l.$t("user.PROFILE.EDIT_PREFERENCES")),1),p("button",{onClick:d[1]||(d[1]=E=>l.$router.push("/"))},S(l.$t("common.HOME")),1)])]))}}),_et=se(met,[["__scopeId","data-v-545b27a5"]]),fet={class:"users-list"},het={key:0},Aet={class:"user-name"},Oet={key:0,class:"blocked-user"},Iet=["onClick"],get={key:1,class:"follow-requests-list-actions"},Ret=["onClick"],Net=["onClick"],vet={key:1,class:"no-users-list"},bet={class:"profile-buttons"},Cet=X({__name:"UsersList",props:{itemType:{}},setup(e){const t=e,{itemType:n}=fe(t),a=ut(),s=Le(),i={page:1},o=z(()=>s.getters[K.GETTERS[n.value==="follow-requests"?"FOLLOW_REQUESTS":"BLOCKED_USERS"]]),r=z(()=>s.getters[ce.GETTERS.USERS_PAGINATION]);function u(c){s.dispatch(K.ACTIONS[n.value==="follow-requests"?"GET_FOLLOW_REQUESTS":"GET_BLOCKED_USERS"],c)}function l(c,T){s.dispatch(K.ACTIONS.UPDATE_FOLLOW_REQUESTS,{username:c,action:T,getFollowRequests:!0})}function d(c,T){const _={username:c,action:"unblock",from:n.value,payload:E(a.query)};s.dispatch(ce.ACTIONS.UPDATE_RELATIONSHIP,_)}function E(c){return i.page=c.page?+c.page:1,i}return Ce(()=>a.query,c=>{a.path==="/profile/follow-requests"&&s.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS,E(c)),a.path==="/profile/blocked-users"&&s.dispatch(K.ACTIONS.GET_BLOCKED_USERS,E(c))}),et(()=>u(E(a.query))),ct(()=>{s.commit(K.MUTATIONS[n.value==="follow-requests"?"UPDATE_FOLLOW_REQUESTS":"UPDATE_BLOCKED_USERS"],[])}),(c,T)=>{const _=j("router-link");return h(),v("div",fet,[o.value.length>0?(h(),v("div",het,[(h(!0),v(ue,null,be(o.value,f=>(h(),v("div",{key:f.username,class:"box item"},[M(Qt,{user:f},null,8,["user"]),p("div",Aet,[M(_,{to:`/users/${f.username}?from=users`},{default:Y(()=>[x(S(f.username),1)]),_:2},1032,["to"])]),f.blocked?(h(),v("div",Oet,[p("button",{onClick:O=>d(f.username)},S(c.$t("buttons.UNBLOCK")),9,Iet)])):(h(),v("div",get,[p("button",{onClick:O=>l(f.username,"accept")},[T[1]||(T[1]=p("i",{class:"fa fa-check","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.ACCEPT")),1)],8,Ret),p("button",{onClick:O=>l(f.username,"reject"),class:"danger"},[T[2]||(T[2]=p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)),x(" "+S(c.$t("buttons.REJECT")),1)],8,Net)]))]))),128))])):(h(),v("p",vet,S(c.$t(m(n)==="follow-requests"?"user.RELATIONSHIPS.NO_FOLLOW_REQUESTS":"user.NO_USERS_FOUND")),1)),r.value.total>0?(h(),B(oa,{key:2,path:`/profile/${m(n)}`,pagination:r.value,query:{}},null,8,["path","pagination"])):L("",!0),p("div",bet,[p("button",{onClick:T[0]||(T[0]=f=>c.$router.push("/"))},S(c.$t("common.HOME")),1)])])}}}),hh=se(Cet,[["__scopeId","data-v-b29d1311"]]),Pet={id:"user-profile-edition",class:"center-card"},Det=X({__name:"index",props:{user:{},tab:{}},setup(e){const t=e,{user:n,tab:a}=fe(t),{isAuthUserSuspended:s}=Ke(),i=z(()=>s.value?["PROFILE","ACCOUNT","PICTURE","PREFERENCES","PRIVACY-POLICY"]:["PROFILE","ACCOUNT","PICTURE","PREFERENCES","SPORTS","EQUIPMENTS","PRIVACY-POLICY"]);return(o,r)=>{const u=j("router-view"),l=j("Card");return h(),v("div",Pet,[M(l,null,{title:Y(()=>[x(S(o.$t(`user.PROFILE.${m(a)}_EDITION`)),1)]),content:Y(()=>[M(_E,{tabs:i.value,selectedTab:m(a),edition:!0},null,8,["tabs","selectedTab"]),M(u,{user:m(n)},null,8,["user"])]),_:1})])}}}),Ro=new Map,Let=e=>{const{method:t,url:n,params:a={},data:s={}}=e;return[t,n,JSON.stringify(a),JSON.stringify(s)].join("")},bi=e=>{const t=Let(e);if(Ro.has(t)){const n=Ro.get(t)||{};n==null||n.abort(),Ro.delete(t)}return t},as=Gt.create({baseURL:nr()});as.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=bi(e);return Ro.set(n,t),e},e=>Promise.reject(e));as.interceptors.response.use(e=>(bi(e.config),e),e=>(e.message!=="canceled"&&e.response&&bi(e.response.config),Promise.reject(e)));const wO=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`users/${t.username}`).then(n=>{n.status===204?t.fromAdmin?lt.push("/admin/users"):e.dispatch(K.ACTIONS.LOGOUT).then(()=>lt.push("/")):ne(e,null)}).catch(n=>ne(e,n))},Sh=(e,t,n=!1)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!0),n&&(t.with_inactive="true",t.with_hidden="true",t.with_suspended="true"),Ne.get("users",{params:t}).then(a=>{a.data.status==="success"?(e.commit(ce.MUTATIONS.UPDATE_USERS,a.data.data.users),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!1))},yet={[ce.ACTIONS.EMPTY_USER](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USER,{})},[ce.ACTIONS.EMPTY_USERS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USERS,[]),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ce.ACTIONS.EMPTY_RELATIONSHIPS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USER_RELATIONSHIPS,[]),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,{})},[ce.ACTIONS.GET_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t}`).then(n=>{n.data.status==="success"?e.commit(ce.MUTATIONS.UPDATE_USER,n.data.data.users[0]):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ce.ACTIONS.GET_USER_SANCTIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!0);const{username:n,...a}=t;Ne.get(`users/${n}/sanctions`,{params:a}).then(s=>{s.data.status==="success"?(e.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS,s.data.data.sanctions),e.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION,s.data.pagination)):ne(e,null)}).catch(s=>ne(e,s)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING,!1))},[ce.ACTIONS.GET_USER_WORKOUTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!0),Ne.get(`users/${t}/workouts`).then(n=>{n.data.status==="success"?e.commit(ce.MUTATIONS.UPDATE_USER_WORKOUTS,n.data.data.workouts):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING,!1))},[ce.ACTIONS.GET_USERS](e,t){Sh(e,t,!1)},[ce.ACTIONS.GET_USERS_FOR_ADMIN](e,t){Sh(e,t,!0)},[ce.ACTIONS.UPDATE_USER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n={};t.role!==void 0&&(n.role=t.role),t.resetPassword&&(n.reset_password=t.resetPassword),"activate"in t&&t.activate!==void 0&&(n.activate=t.activate),t.new_email!==void 0&&(n.new_email=t.new_email),Ne.patch(`users/${t.username}`,n).then(a=>{a.data.status==="success"?(e.commit(ce.MUTATIONS.UPDATE_USER_IN_USERS,a.data.data.users[0]),(t.resetPassword||t.new_email||t.role)&&e.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!0),(t.activate||t.new_email)&&e.commit(ce.MUTATIONS.UPDATE_USER,a.data.data.users[0])):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ce.ACTIONS.UPDATE_RELATIONSHIP](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.post(`users/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?Ne.get(`users/${t.username}`).then(a=>{if(a.data.status==="success"){if(t.from==="blocked-users"){e.dispatch(K.ACTIONS.GET_BLOCKED_USERS,t.payload);return}e.commit(t.from==="userInfos"?ce.MUTATIONS.UPDATE_USER:t.from==="userCard"?ce.MUTATIONS.UPDATE_USER_IN_USERS:ce.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS,a.data.data.users[0]),e.dispatch(K.ACTIONS.GET_USER_PROFILE)}else ne(e,null)}):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ce.ACTIONS.GET_RELATIONSHIPS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!0),Ne.get(`users/${t.username}/${t.relationship}`,{params:{page:t.page}}).then(n=>{n.data.status==="success"?(e.commit(ce.MUTATIONS.UPDATE_USER_RELATIONSHIPS,n.data.data[t.relationship]),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(ce.MUTATIONS.UPDATE_USERS_LOADING,!1))},[ce.ACTIONS.DELETE_USER_ACCOUNT](e,t){wO(e,{username:t.username,fromAdmin:!0})}},$r=e=>{localStorage.removeItem("authToken"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.EMPTY_USER_STATS),e.commit(Mt.MUTATIONS.EMPTY_USER_SPORT_STATS),e.commit(K.MUTATIONS.CLEAR_AUTH_USER_TOKEN),e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,[]),e.commit(ce.MUTATIONS.UPDATE_USERS,[]),e.commit(J.MUTATIONS.EMPTY_WORKOUTS),e.commit(J.MUTATIONS.EMPTY_WORKOUT),lt.push("/login")},$et={[K.ACTIONS.CHECK_AUTH_USER](e){window.localStorage.authToken&&!e.getters[K.GETTERS.IS_AUTHENTICATED]&&(e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,window.localStorage.authToken),e.dispatch(K.ACTIONS.GET_USER_PROFILE,!0)),!window.localStorage.authToken&&e.getters[K.GETTERS.IS_AUTHENTICATED]&&$r(e)},[K.ACTIONS.CONFIRM_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/confirm",{token:t.token}).then(n=>{if(n.data.status==="success"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE).then(()=>lt.push("/"))}else ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.CONFIRM_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),as.post("/auth/email/update",{token:t.token}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0),t.refreshUser&&e.dispatch(K.ACTIONS.GET_USER_PROFILE).then(()=>lt.push("/profile/edit/account")),lt.push("/profile/edit/account")):ne(e,null)}).catch(n=>{ne(e,n)})},[K.ACTIONS.GET_USER_PROFILE](e,t=!1){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/profile").then(n=>{if(n.data.status==="success"){const a=e.getters[K.GETTERS.IS_PROFILE_NOT_LOADED];e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),n.data.data.accepted_privacy_policy||e.dispatch(te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY),e.commit(ce.MUTATIONS.UPDATE_USER_IN_USERS,n.data.data),(a||t)&&(n.data.data.language&&e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode)),e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.dispatch(Ht.ACTIONS.GET_SPORTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENTS),e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES),n.data.data.suspended_at===null?kn.dispatch(Et.ACTIONS.GET_UNREAD_STATUS):!lt.currentRoute.value.path.startsWith("/profile")&&!lt.currentRoute.value.meta.allowedToSuspendedUser&<.push("/profile")}else ne(e,null),$r(e)}).catch(n=>{n.message!=="canceled"&&(ne(e,n),$r(e))})},[K.ACTIONS.GET_ACCOUNT_SUSPENSION](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/account/suspension").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_ACCOUNT_SUSPENSION,t.data.user_suspension):ne(e,null)}).catch(t=>{t.message!=="canceled"&&ne(e,t)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("follow-requests",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_FOLLOW_REQUESTS,n.data.data.follow_requests),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.LOGIN_OR_REGISTER](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!1),as.post(`/auth/${t.actionType}`,t.formData).then(n=>{if(n.data.status==="success")if(t.actionType==="login"){const a=n.data.auth_token;window.localStorage.setItem("authToken",a),e.commit(K.MUTATIONS.UPDATE_AUTH_TOKEN,a),e.dispatch(K.ACTIONS.GET_USER_PROFILE,!0).then(()=>lt.push(typeof t.redirectUrl=="string"?t.redirectUrl:"/"))}else lt.push("/login").then(()=>e.commit(K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS,!0));else ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.LOGOUT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/logout").then(t=>{t.data.status==="success"?$r(e):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1);const n=t.actionType==="user_suspension"?"auth/account/suspension/appeal":`auth/account/sanctions/${t.actionId}/appeal`;Ne.post(n,{text:t.text}).then(a=>{a.data.status==="success"?e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`follow-requests/${t.username}/${t.action}`).then(n=>{n.data.status==="success"?t.getFollowRequests&&e.dispatch(K.ACTIONS.GET_FOLLOW_REQUESTS).then(()=>e.dispatch(K.ACTIONS.GET_USER_PROFILE)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PROFILE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_ACCOUNT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),Ne.patch("auth/profile/edit/account",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.UPDATE_USER_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.post("auth/profile/edit/preferences",t).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_AUTH_USER_PROFILE,n.data.data),e.commit(te.MUTATIONS.UPDATE_DISPLAY_OPTIONS,n.data.data),e.commit(te.MUTATIONS.UPDATE_DARK_MODE,n.data.data.use_dark_mode),e.dispatch(te.ACTIONS.UPDATE_APPLICATION_LANGUAGE,n.data.data.language).then(()=>lt.push("/profile/preferences"))):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.RESET_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete(`auth/profile/reset/sports/${t.sportId}`).then(n=>{n.status===204?(e.dispatch(Ht.ACTIONS.GET_SPORTS),t.fromSport&<.push(`/profile/sports/${t.sportId}`)):ne(e,null)}).catch(n=>{ne(e,n),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_SPORT_PREFERENCES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0);const{fromSport:n,...a}=t;Ne.post("auth/profile/edit/sports",a).then(s=>{s.data.status==="success"?(e.dispatch(Ht.ACTIONS.GET_SPORTS),n&<.push(`/profile/sports/${a.sport_id}`)):ne(e,null)}).catch(s=>{ne(e,s),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)})},[K.ACTIONS.UPDATE_USER_PICTURE](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),!t.picture)throw new Error("No file part");const n=new FormData;n.append("file",t.picture),Ne.post("auth/picture",n,{headers:{"content-type":"multipart/form-data"}}).then(a=>{a.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE).then(()=>lt.push("/profile")):ne(e,null)}).catch(a=>ne(e,a)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.DELETE_ACCOUNT](e,t){wO(e,t)},[K.ACTIONS.DELETE_PICTURE](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.delete("auth/picture").then(t=>{t.status===204?e.dispatch(K.ACTIONS.GET_USER_PROFILE).then(()=>lt.push("/profile")):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.SEND_PASSWORD_RESET_REQUEST](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/reset-request",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESEND_ACCOUNT_CONFIRMATION_EMAIL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/account/resend-confirmation",t).then(n=>{n.data.status==="success"?lt.push("/account-confirmation/email-sent"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.RESET_USER_PASSWORD](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),as.post("auth/password/update",t).then(n=>{n.data.status==="success"?lt.push("/password-reset/password-updated"):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.ACCEPT_PRIVACY_POLICY](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/privacy-policy",{accepted_policy:t}).then(n=>{n.data.status==="success"?e.dispatch(K.ACTIONS.GET_USER_PROFILE).then(()=>lt.push("/profile")):ne(e,null)}).catch(n=>ne(e,n))},[K.ACTIONS.REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("auth/account/export/request").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_REQUEST_DATA_EXPORT](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("auth/account/export").then(t=>{t.data.status==="success"?e.commit(K.MUTATIONS.SET_EXPORT_REQUEST,t.data.request):ne(e,null)}).catch(t=>ne(e,t))},[K.ACTIONS.GET_BLOCKED_USERS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get("auth/blocked-users",{params:t}).then(n=>{n.data.status==="success"?(e.commit(K.MUTATIONS.UPDATE_BLOCKED_USERS,n.data.blocked_users),e.commit(ce.MUTATIONS.UPDATE_USERS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))},[K.ACTIONS.GET_USER_SANCTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!0),Ne.get(`auth/account/sanctions/${t}`).then(n=>{n.data.status==="success"?e.commit(K.MUTATIONS.SET_USER_SANCTION,n.data.sanction):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)}).finally(()=>e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1))}},Uet={[K.GETTERS.AUTH_TOKEN]:e=>e.authToken,[K.GETTERS.AUTH_USER_PROFILE]:e=>e.authUserProfile,[K.GETTERS.BLOCKED_USERS]:e=>e.blockedUsers,[K.GETTERS.FOLLOW_REQUESTS]:e=>e.followRequests,[K.GETTERS.EXPORT_REQUEST]:e=>e.exportRequest,[K.GETTERS.IS_AUTHENTICATED]:e=>e.authToken!==null,[K.GETTERS.HAS_ADMIN_RIGHTS]:e=>e.authUserProfile&&["admin","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_MODERATOR_RIGHTS]:e=>e.authUserProfile&&["admin","moderator","owner"].includes(e.authUserProfile.role),[K.GETTERS.HAS_OWNER_RIGHTS]:e=>e.authUserProfile&&e.authUserProfile.role==="owner",[K.GETTERS.IS_REGISTRATION_SUCCESS]:e=>e.isRegistrationSuccess,[K.GETTERS.IS_SUCCESS]:e=>e.isSuccess,[K.GETTERS.IS_SUSPENDED]:e=>e.authUserProfile&&e.authUserProfile.suspended_at!==null,[K.GETTERS.IS_PROFILE_LOADED]:e=>{var t;return((t=e.authUserProfile)==null?void 0:t.username)!==void 0},[K.GETTERS.USER_LOADING]:e=>e.loading,[K.GETTERS.IS_PROFILE_NOT_LOADED]:e=>e.authUserProfile.username===void 0,[K.GETTERS.ACCOUNT_SUSPENSION]:e=>e.userReportAction,[K.GETTERS.USER_SANCTION]:e=>e.userReportAction},ket={[K.MUTATIONS.CLEAR_AUTH_USER_TOKEN](e){e.authToken=null,e.authUserProfile={}},[K.MUTATIONS.UPDATE_AUTH_TOKEN](e,t){e.authToken=t},[K.MUTATIONS.UPDATE_AUTH_USER_PROFILE](e,t){e.authUserProfile=t},[K.MUTATIONS.UPDATE_IS_REGISTRATION_SUCCESS](e,t){e.isRegistrationSuccess=t},[K.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[K.MUTATIONS.UPDATE_FOLLOW_REQUESTS](e,t){e.followRequests=t},[K.MUTATIONS.UPDATE_USER_LOADING](e,t){e.loading=t},[K.MUTATIONS.SET_EXPORT_REQUEST](e,t){e.exportRequest=t},[K.MUTATIONS.UPDATE_BLOCKED_USERS](e,t){e.blockedUsers=t},[K.MUTATIONS.SET_ACCOUNT_SUSPENSION](e,t){e.userReportAction=t},[K.MUTATIONS.SET_USER_SANCTION](e,t){e.userReportAction=t}},wet={authToken:null,authUserProfile:{},isSuccess:!1,isRegistrationSuccess:!1,loading:!1,exportRequest:null,followRequests:[],blockedUsers:[],userReportAction:{}},Met={state:wet,actions:$et,getters:Uet,mutations:ket},Wet={[xe.ACTIONS.ADD_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("equipments",{description:t.description,equipment_type_id:t.equipmentTypeId,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{if(n.data.status==="created"){if(n.data.data.equipments.length>0){const a=n.data.data.equipments[0];e.commit(xe.MUTATIONS.ADD_EQUIPMENT,a),lt.push(`/profile/equipments/${a.id}`)}e.dispatch(Ht.ACTIONS.GET_SPORTS),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)}else ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.DELETE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`equipments/${t.id}${t.force?"?force":""}`).then(()=>{e.commit(xe.MUTATIONS.REMOVE_EQUIPMENT,t.id),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push("/profile/equipments")}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`equipments/${t}`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]):ne(e,null)}).catch(n=>ne(e,n))},[xe.ACTIONS.GET_EQUIPMENTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipments").then(t=>{t.data.status==="success"?e.commit(xe.MUTATIONS.SET_EQUIPMENTS,t.data.data.equipments):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.GET_EQUIPMENT_TYPES](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("equipment-types").then(t=>{t.data.status==="success"?(e.commit(xe.MUTATIONS.SET_EQUIPMENT_TYPES,t.data.data.equipment_types),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(t=>ne(e,t))},[xe.ACTIONS.REFRESH_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.post(`equipments/${t}/refresh`).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),lt.push(`/profile/equipments/${t}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipments/${t.id}`,{description:t.description,equipment_type_id:t.equipmentTypeId,is_active:t.isActive,label:t.label,default_for_sport_ids:t.defaultForSportIds}).then(n=>{n.data.status==="success"?n.data.data.equipments.length>0&&(e.commit(xe.MUTATIONS.UPDATE_EQUIPMENT,n.data.data.equipments[0]),e.dispatch(Ht.ACTIONS.GET_SPORTS),lt.push(`/profile/equipments/${t.id}`)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))},[xe.ACTIONS.UPDATE_EQUIPMENT_TYPE](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(xe.MUTATIONS.SET_LOADING,!0),Ne.patch(`equipment-types/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(xe.MUTATIONS.SET_LOADING,!1))}},Fet={[xe.GETTERS.EQUIPMENTS]:e=>e.equipments,[xe.GETTERS.EQUIPMENT_TYPES]:e=>e.equipmentTypes,[xe.GETTERS.LOADING]:e=>e.loading},zet={[xe.MUTATIONS.ADD_EQUIPMENT](e,t){e.equipments.push(t)},[xe.MUTATIONS.REMOVE_EQUIPMENT](e,t){e.equipments=e.equipments.filter(n=>n.id!=t)},[xe.MUTATIONS.SET_EQUIPMENTS](e,t){e.equipments=t},[xe.MUTATIONS.SET_EQUIPMENT_TYPES](e,t){e.equipmentTypes=t},[xe.MUTATIONS.SET_LOADING](e,t){e.loading=t},[xe.MUTATIONS.UPDATE_EQUIPMENT](e,t){const n=e.equipments.findIndex(a=>a.id===t.id);n!==-1&&(e.equipments[n]=t)}},xet={equipments:[],equipmentTypes:[],loading:!1},Bet={state:xet,actions:Wet,getters:Fet,mutations:zet},Get={[Et.ACTIONS.GET_UNREAD_STATUS](e){Ne.get("notifications/unread").then(t=>{t.data.status==="success"&&e.commit(Et.MUTATIONS.UPDATE_UNREAD_STATUS,t.data.unread)}).catch(t=>ne(e,t))},[Et.ACTIONS.GET_NOTIFICATION_TYPES](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications/types",{params:t}).then(n=>{n.data.status==="success"?e.commit(Et.MUTATIONS.UPDATE_TYPES,n.data.notification_types):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.GET_NOTIFICATIONS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("notifications",{params:t}).then(n=>{n.data.status==="success"?(e.commit(Et.MUTATIONS.UPDATE_NOTIFICATIONS,n.data.notifications),e.commit(Et.MUTATIONS.UPDATE_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})},[Et.ACTIONS.MARK_ALL_AS_READ](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={};t.type&&(n.type=t.type),Ne.post("notifications/mark-all-as-read",n).then(a=>{a.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(a=>{a.message!=="canceled"&&ne(e,a)})},[Et.ACTIONS.UPDATE_STATUS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`notifications/${t.notificationId}`,{read_status:t.markedAsRead}).then(n=>{n.data.status==="success"?(e.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,t.currentQuery),e.dispatch(Et.ACTIONS.GET_UNREAD_STATUS)):ne(e,null)}).catch(n=>{n.message!=="canceled"&&ne(e,n)})}},Vet={[Et.GETTERS.NOTIFICATIONS]:e=>e.notifications,[Et.GETTERS.PAGINATION]:e=>e.pagination,[Et.GETTERS.TYPES]:e=>e.types,[Et.GETTERS.UNREAD_STATUS]:e=>e.unread},Het={[Et.MUTATIONS.UPDATE_NOTIFICATIONS](e,t){e.notifications=t},[Et.MUTATIONS.UPDATE_PAGINATION](e,t){e.pagination=t},[Et.MUTATIONS.UPDATE_TYPES](e,t){e.types=t},[Et.MUTATIONS.UPDATE_UNREAD_STATUS](e,t){e.unread=t},[Et.MUTATIONS.EMPTY_NOTIFICATIONS](e){e.notifications=[],e.pagination={}}},Ket={notifications:[],unread:!1,pagination:{},types:[]},qet={state:Ket,actions:Get,getters:Vet,mutations:Het},Ah=(e,t)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(t).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client):ne(e,null)}).catch(n=>ne(e,n))},jet={[st.ACTIONS.AUTHORIZE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n=new FormData;n.set("client_id",t.client_id),n.set("response_type",t.response_type),n.set("scope",t.scope),n.set("confirm","true"),t.state&&n.set("state",t.state),t.code_challenge&&n.set("code_challenge",t.code_challenge),t.code_challenge_method&&n.set("code_challenge_method",t.code_challenge_method),Ne.post("oauth/authorize",n,{headers:{"Content-Type":"multipart/form-data"}}).then(a=>{a.status==200&&a.data.redirect_url?window.location.href=a.data.redirect_url:ne(e,null)}).catch(a=>ne(e,a))},[st.ACTIONS.CREATE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post("oauth/apps",t).then(n=>{n.data.status==="created"?(e.commit(st.MUTATIONS.SET_CLIENT,n.data.data.client),lt.push(`/profile/apps/${n.data.data.client.id}/created`)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.DELETE_CLIENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.delete(`oauth/apps/${t}`).then(n=>{n.status===204?e.dispatch(st.ACTIONS.GET_CLIENTS).then(()=>lt.push("/profile/apps")):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.GET_CLIENT_BY_CLIENT_ID](e,t){Ah(e,`oauth/apps/${t}`)},[st.ACTIONS.GET_CLIENT_BY_ID](e,t){Ah(e,`oauth/apps/${t}/by_id`)},[st.ACTIONS.GET_CLIENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("oauth/apps",{params:t}).then(n=>{n.data.status==="success"?(e.commit(st.MUTATIONS.SET_CLIENTS,n.data.data.clients),e.commit(st.MUTATIONS.SET_CLIENTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[st.ACTIONS.REVOKE_ALL_TOKENS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1),Ne.post(`oauth/apps/${t}/revoke`).then(n=>{n.data.status==="success"?e.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!0):ne(e,null)}).catch(n=>ne(e,n))}},Yet={[st.GETTERS.CLIENT]:e=>e.client,[st.GETTERS.CLIENTS]:e=>e.clients,[st.GETTERS.CLIENTS_PAGINATION]:e=>e.pagination,[st.GETTERS.REVOCATION_SUCCESSFUL]:e=>e.revocationSuccessful},Xet={[st.MUTATIONS.SET_CLIENT](e,t){e.client=t},[st.MUTATIONS.EMPTY_CLIENT](e){e.client={}},[st.MUTATIONS.SET_CLIENTS](e,t){e.clients=t},[st.MUTATIONS.SET_CLIENTS_PAGINATION](e,t){e.pagination=t},[st.MUTATIONS.SET_REVOCATION_SUCCESSFUL](e,t){e.revocationSuccessful=t}},Qet={client:{},clients:[],pagination:{},revocationSuccessful:!1},Zet={state:Qet,actions:jet,getters:Yet,mutations:Xet},Jet={[De.ACTIONS.EMPTY_REPORTS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(De.MUTATIONS.EMPTY_REPORT),e.commit(De.MUTATIONS.SET_REPORTS,[]),e.commit(De.MUTATIONS.SET_REPORTS_PAGINATION,{})},[De.ACTIONS.GET_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(De.MUTATIONS[`SET_${t.loader}_LOADING`],!0),Ne.get(`reports/${t.reportId}`).then(n=>{n.data.status==="success"?e.commit(De.MUTATIONS.SET_REPORT,n.data.report):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(De.MUTATIONS[`SET_${t.loader}_LOADING`],!1))},[De.ACTIONS.GET_REPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports",{params:t}).then(n=>{n.data.status==="success"?(e.commit(De.MUTATIONS.SET_REPORTS,n.data.reports),e.commit(De.MUTATIONS.SET_REPORTS_PAGINATION,n.data.pagination)):ne(e,null)}).catch(n=>ne(e,n))},[De.ACTIONS.PROCESS_APPEAL](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const{appealId:n,reportId:a,...s}=t;Ne.patch(`appeals/${n}`,s).then(i=>{i.data.status==="success"?e.dispatch(De.ACTIONS.GET_REPORT,{reportId:a,loader:"REPORT_UPDATE"}):ne(e,null)}).catch(i=>{ne(e,i)})},[De.ACTIONS.SUBMIT_ADMIN_ACTION](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!1),e.commit(De.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{report_id:n,...a}=t;Ne.post(`reports/${n}/actions`,a).then(s=>{s.data.status==="success"?(e.commit(De.MUTATIONS.SET_REPORT,s.data.report),e.commit(ce.MUTATIONS.UPDATE_IS_SUCCESS,!0)):ne(e,null)}).catch(s=>{ne(e,s)}).finally(()=>e.commit(De.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[De.ACTIONS.SUBMIT_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(De.MUTATIONS.SET_REPORT_STATUS,"loading"),Ne.post("reports",t).then(n=>{n.data.status==="created"?(e.commit(De.MUTATIONS.SET_REPORT_STATUS,`${t.object_type}-${t.object_id}-created`),t.object_type==="comment"&&e.commit(J.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}),t.object_type==="workout"&&e.commit(J.MUTATIONS.SET_CURRENT_REPORTING,!1),t.object_type==="user"&&e.commit(ce.MUTATIONS.UPDATE_USER_CURRENT_REPORTING,!1)):(e.commit(De.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(n=>{ne(e,n),e.commit(De.MUTATIONS.SET_REPORT_STATUS,null)})},[De.ACTIONS.UPDATE_REPORT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(De.MUTATIONS.SET_REPORT_UPDATE_LOADING,!0);const{reportId:n,...a}=t;Ne.patch(`reports/${n}`,a).then(s=>{s.data.status==="success"?e.commit(De.MUTATIONS.SET_REPORT,s.data.report):(e.commit(De.MUTATIONS.SET_REPORT_STATUS,null),ne(e,null))}).catch(s=>{ne(e,s),e.commit(De.MUTATIONS.SET_REPORT_STATUS,null)}).finally(()=>e.commit(De.MUTATIONS.SET_REPORT_UPDATE_LOADING,!1))},[De.ACTIONS.GET_UNRESOLVED_REPORTS_STATUS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("reports/unresolved").then(t=>{t.data.status==="success"?e.commit(De.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS,t.data.unresolved):ne(e,null)}).catch(t=>ne(e,t))}},ett={[De.GETTERS.UNRESOLVED_REPORTS_STATUS]:e=>e.unresolved,[De.GETTERS.REPORT]:e=>e.report,[De.GETTERS.REPORT_LOADING]:e=>e.reportLoading,[De.GETTERS.REPORT_STATUS]:e=>e.reportStatus,[De.GETTERS.REPORT_UPDATE_LOADING]:e=>e.reportUpdateLoading,[De.GETTERS.REPORTS]:e=>e.reports,[De.GETTERS.REPORTS_PAGINATION]:e=>e.pagination},ttt={[De.MUTATIONS.EMPTY_REPORT](e){e.report={}},[De.MUTATIONS.SET_REPORT](e,t){e.report=t},[De.MUTATIONS.SET_REPORT_LOADING](e,t){e.reportLoading=t},[De.MUTATIONS.SET_REPORT_STATUS](e,t){e.reportStatus=t},[De.MUTATIONS.SET_REPORT_UPDATE_LOADING](e,t){e.reportUpdateLoading=t},[De.MUTATIONS.SET_REPORTS](e,t){e.reports=t},[De.MUTATIONS.SET_REPORTS_PAGINATION](e,t){e.pagination=t},[De.MUTATIONS.SET_UNRESOLVED_REPORTS_STATUS](e,t){e.unresolved=t}},ntt={unresolved:!1,report:{},reports:[],pagination:{},reportStatus:null,reportLoading:!1,reportUpdateLoading:!1},att={state:ntt,actions:Jet,getters:ett,mutations:ttt},{locale:stt}=$i.global,itt={[te.ACTIONS.GET_APPLICATION_CONFIG](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!0),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,t.data.data):ne(e,null)}).catch(t=>ne(e,t)).finally(()=>e.commit(te.MUTATIONS.UPDATE_APPLICATION_LOADING,!1))},[te.ACTIONS.GET_APPLICATION_STATS](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("stats/all").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_STATS,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY](e){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get("config").then(t=>{t.data.status==="success"?e.commit(te.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY,t.data.data):ne(e,null)}).catch(t=>ne(e,t))},[te.ACTIONS.UPDATE_APPLICATION_CONFIG](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch("config",t).then(n=>{n.data.status==="success"?(e.commit(te.MUTATIONS.UPDATE_APPLICATION_CONFIG,n.data.data),lt.push("/admin/application")):ne(e,null)}).catch(n=>ne(e,n))},[te.ACTIONS.UPDATE_APPLICATION_LANGUAGE](e,t){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",t),e.commit(te.MUTATIONS.UPDATE_LANG,t),stt.value=t}},ott={[te.GETTERS.APP_CONFIG]:e=>e.application.config,[te.GETTERS.APP_LOADING]:e=>e.appLoading,[te.GETTERS.APP_STATS]:e=>e.application.statistics,[te.GETTERS.DARK_MODE]:e=>e.darkMode,[te.GETTERS.ERROR_MESSAGES]:e=>e.errorMessages,[te.GETTERS.LANGUAGE]:e=>e.language,[te.GETTERS.LOCALE]:e=>e.locale,[te.GETTERS.DISPLAY_OPTIONS]:e=>e.application.displayOptions},rtt={[te.MUTATIONS.EMPTY_ERROR_MESSAGES](e){e.errorMessages=null},[te.MUTATIONS.SET_ERROR_MESSAGES](e,t){e.errorMessages=t},[te.MUTATIONS.UPDATE_APPLICATION_CONFIG](e,t){e.application.config=t},[te.MUTATIONS.UPDATE_APPLICATION_LOADING](e,t){e.appLoading=t},[te.MUTATIONS.UPDATE_APPLICATION_PRIVACY_POLICY](e,t){e.application.config.privacy_policy=t.privacy_policy,e.application.config.privacy_policy_date=t.privacy_policy_date},[te.MUTATIONS.UPDATE_APPLICATION_STATS](e,t){e.application.statistics=t},[te.MUTATIONS.UPDATE_LANG](e,t){t in zs?(e.language=t,e.locale=zs[t]):(e.language="en",e.locale=or)},[te.MUTATIONS.UPDATE_DARK_MODE](e,t){e.darkMode=t},[te.MUTATIONS.UPDATE_DISPLAY_OPTIONS](e,t){e.application.displayOptions={...e.application.displayOptions,dateFormat:t.date_format,displayAscent:t.display_ascent,timezone:t.timezone,useImperialUnits:t.imperial_units}}},utt={root:!0,language:"en",locale:or,errorMessages:null,application:{statistics:{sports:0,uploads_dir_size:0,users:0,workouts:0},displayOptions:{dateFormat:"MM/dd/yyyy",displayAscent:!0,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:"Europe/Paris",useImperialUnits:!1}},appLoading:!1,darkMode:null},ltt={[Ht.ACTIONS.GET_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`sports${t?"?check_workouts=true":""}`).then(n=>{n.data.status==="success"?(e.commit(Ht.MUTATIONS.SET_SPORTS,n.data.data.sports),e.commit(K.MUTATIONS.UPDATE_USER_LOADING,!1)):ne(e,null)}).catch(n=>ne(e,n))},[Ht.ACTIONS.UPDATE_SPORTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.patch(`sports/${t.id}`,{is_active:t.isActive}).then(n=>{n.data.status==="success"?e.dispatch(Ht.ACTIONS.GET_SPORTS):ne(e,null)}).catch(n=>ne(e,n))}},ctt={[Ht.GETTERS.SPORTS]:e=>e.sports},dtt={[Ht.MUTATIONS.SET_SPORTS](e,t){e.sports=t}},Ett={sports:[]},ptt={state:Ett,actions:ltt,getters:ctt,mutations:dtt},Ttt={[Mt.ACTIONS.GET_USER_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`stats/${t.username}/by_time`,{params:t.params}).then(n=>{n.data.status==="success"?e.commit(Mt.MUTATIONS.UPDATE_USER_STATS,n.data.data.statistics):ne(e,null)}).catch(n=>ne(e,n))},[Mt.ACTIONS.GET_USER_SPORT_STATS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!0),Ne.get(`stats/${t.username}/by_sport`,{params:{sport_id:t.sportId}}).then(n=>{n.data.status==="success"?(e.commit(Mt.MUTATIONS.UPDATE_USER_SPORT_STATS,n.data.data.statistics),e.commit(Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS,n.data.data.total_workouts)):ne(e,null)}).catch(n=>ne(e,n)).finally(()=>e.commit(Mt.MUTATIONS.UPDATE_STATS_LOADING,!1))}},mtt={[Mt.GETTERS.USER_SPORT_STATS]:e=>e.sportStatistics,[Mt.GETTERS.USER_STATS]:e=>e.statistics,[Mt.GETTERS.STATS_LOADING]:e=>e.loading,[Mt.GETTERS.TOTAL_WORKOUTS]:e=>e.totalWorkouts},_tt={[Mt.MUTATIONS.UPDATE_USER_STATS](e,t){e.statistics=t},[Mt.MUTATIONS.EMPTY_USER_STATS](e){e.statistics={}},[Mt.MUTATIONS.EMPTY_USER_SPORT_STATS](e){e.sportStatistics={},e.totalWorkouts=0},[Mt.MUTATIONS.UPDATE_USER_SPORT_STATS](e,t){e.sportStatistics=t},[Mt.MUTATIONS.UPDATE_STATS_LOADING](e,t){e.loading=t},[Mt.MUTATIONS.UPDATE_TOTAL_WORKOUTS](e,t){e.totalWorkouts=t}},ftt={statistics:{},sportStatistics:{},totalWorkouts:0,loading:!1},htt={state:ftt,actions:Ttt,getters:mtt,mutations:_tt},Stt={[ce.GETTERS.USER]:e=>e.user,[ce.GETTERS.USER_CURRENT_REPORTING]:e=>e.currentReporting,[ce.GETTERS.USER_RELATIONSHIPS]:e=>e.user_relationships,[ce.GETTERS.USER_SANCTIONS]:e=>e.userSanctions.sanctions,[ce.GETTERS.USER_SANCTIONS_LOADING]:e=>e.userSanctions.loading,[ce.GETTERS.USER_SANCTIONS_PAGINATION]:e=>e.userSanctions.pagination,[ce.GETTERS.USER_WORKOUTS]:e=>e.userWorkouts.workouts,[ce.GETTERS.USER_WORKOUTS_LOADING]:e=>e.userWorkouts.loading,[ce.GETTERS.USERS]:e=>e.users,[ce.GETTERS.USERS_IS_SUCCESS]:e=>e.isSuccess,[ce.GETTERS.USERS_LOADING]:e=>e.loading,[ce.GETTERS.USERS_PAGINATION]:e=>e.pagination},Att={[ce.MUTATIONS.UPDATE_USER](e,t){e.user=t},[ce.MUTATIONS.UPDATE_USER_IN_USERS](e,t){e.users=e.users.map(n=>n.username===t.username?t:n)},[ce.MUTATIONS.UPDATE_USER_IN_RELATIONSHIPS](e,t){e.user_relationships=e.user_relationships.map(n=>n.username===t.username?t:n)},[ce.MUTATIONS.UPDATE_USER_RELATIONSHIPS](e,t){e.user_relationships=t},[ce.MUTATIONS.UPDATE_USER_SANCTIONS](e,t){e.userSanctions.sanctions=t},[ce.MUTATIONS.UPDATE_USER_SANCTIONS_LOADING](e,t){e.userSanctions.loading=t},[ce.MUTATIONS.UPDATE_USER_SANCTIONS_PAGINATION](e,t){e.userSanctions.pagination=t},[ce.MUTATIONS.UPDATE_USERS](e,t){e.users=t},[ce.MUTATIONS.UPDATE_USERS_LOADING](e,t){e.loading=t},[ce.MUTATIONS.UPDATE_USERS_PAGINATION](e,t){e.pagination=t},[ce.MUTATIONS.UPDATE_IS_SUCCESS](e,t){e.isSuccess=t},[ce.MUTATIONS.UPDATE_USER_CURRENT_REPORTING](e,t){e.currentReporting=t},[ce.MUTATIONS.UPDATE_USER_WORKOUTS](e,t){e.userWorkouts.workouts=t},[ce.MUTATIONS.UPDATE_USER_WORKOUTS_LOADING](e,t){e.userWorkouts.loading=t}},Ott={user:{},userSanctions:{sanctions:[],loading:!1,pagination:{}},userWorkouts:{workouts:[],loading:!1},user_relationships:[],users:[],loading:!1,isSuccess:!1,pagination:{},currentReporting:!1},Itt={state:Ott,actions:yet,getters:Stt,mutations:Att},Ur=(e,t,n)=>{e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(n.match("TIMELINE")?"timeline":"workouts",{params:t}).then(a=>{a.data.status==="success"?(e.commit(J.MUTATIONS[n],a.data.data.workouts),[Ma.SET_USER_WORKOUTS,Ma.SET_TIMELINE_WORKOUTS,Ma.ADD_TIMELINE_WORKOUTS].includes(n)&&e.commit(J.MUTATIONS.SET_WORKOUTS_PAGINATION,a.data.pagination)):ne(e,null)}).catch(a=>ne(e,a))},MO=(e,t,n)=>{n?e.dispatch(J.ACTIONS.GET_WORKOUT_COMMENTS,n):e.dispatch(J.ACTIONS.GET_WORKOUT_COMMENT,t)},Oh=(e,t,n=!1)=>{Ne.post(`comments/${t.id}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&MO(e,t.id,t.workout_id)}).catch(a=>{ne(e,a)})},Ih=(e,t,n=!1)=>{Ne.post(`workouts/${t}/like${n?"/undo":""}`).then(a=>{a.data.status==="success"&&e.commit(J.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0])}).catch(a=>{ne(e,a)})},gtt={[J.ACTIONS.GET_CALENDAR_WORKOUTS](e,t){e.commit(J.MUTATIONS.EMPTY_CALENDAR_WORKOUTS),Ur(e,t,Ma.SET_CALENDAR_WORKOUTS)},[J.ACTIONS.GET_AUTH_USER_WORKOUTS](e,t){Ur(e,t,Ma.SET_USER_WORKOUTS)},[J.ACTIONS.GET_TIMELINE_WORKOUTS](e,t){Ur(e,t,Ma.SET_TIMELINE_WORKOUTS)},[J.ACTIONS.GET_MORE_TIMELINE_WORKOUTS](e,t){Ur(e,t,Ma.ADD_TIMELINE_WORKOUTS)},[J.ACTIONS.GET_WORKOUT_DATA](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!0);const n=t.segmentId?`/segment/${t.segmentId}`:"";Ne.get(`workouts/${t.workoutId}`).then(a=>{const s=a.data.data.workouts[0];if(a.data.status==="success"){if(t.segmentId&&(s.segments.length===0||!s.segments[+t.segmentId-1]))throw new Error("WORKOUT_NOT_FOUND");e.commit(J.MUTATIONS.SET_WORKOUT,a.data.data.workouts[0]),a.data.data.workouts[0].with_analysis&&Ne.get(`workouts/${t.workoutId}/chart_data${n}`).then(i=>{i.data.status==="success"&&e.commit(J.MUTATIONS.SET_WORKOUT_CHART_DATA,i.data.data.chart_data)}),a.data.data.workouts[0].with_gpx&&Ne.get(`workouts/${t.workoutId}/gpx${n}`).then(i=>{i.data.status==="success"&&e.commit(J.MUTATIONS.SET_WORKOUT_GPX,i.data.data.gpx)}),t.segmentId||e.dispatch(J.ACTIONS.GET_WORKOUT_COMMENTS,a.data.data.workouts[0].id)}else e.commit(J.MUTATIONS.EMPTY_WORKOUT),ne(e,null)}).catch(a=>{e.commit(J.MUTATIONS.EMPTY_WORKOUT),ne(e,a)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!1))},[J.ACTIONS.DELETE_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.delete(`workouts/${t.workoutId}`).then(()=>{e.commit(J.MUTATIONS.EMPTY_WORKOUT),e.dispatch(K.ACTIONS.GET_USER_PROFILE),lt.push("/")}).catch(n=>{ne(e,n)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!1))},[J.ACTIONS.EDIT_WORKOUT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.patch(`workouts/${t.workoutId}`,t.data).then(()=>{e.dispatch(K.ACTIONS.GET_USER_PROFILE),e.dispatch(J.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.workoutId}).then(()=>{lt.push({name:"Workout",params:{workoutId:t.workoutId}})})}).catch(n=>{ne(e,n)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!1))},[J.ACTIONS.EDIT_WORKOUT_CONTENT](e,t){e.commit(J.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!0),e.commit(J.MUTATIONS.SET_WORKOUT_CONTENT_TYPE,t.contentType),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES);const n={[t.contentType==="NOTES"?"notes":"description"]:t.content};Ne.patch(`workouts/${t.workoutId}`,n).then(a=>{const s=a.data.data.workouts[0];e.commit(J.MUTATIONS.SET_WORKOUT_CONTENT,s)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_CONTENT_LOADING,!1))},[J.ACTIONS.ADD_WORKOUT](e,t){if(e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!0),!t.file)throw new Error("No file part");const n=t.notes.replace(/"/g,'\\"'),a=t.description.replace(/"/g,'\\"'),s=t.title.replace(/"/g,'\\"'),i=new FormData;i.append("file",t.file),i.append("data",`{"sport_id": ${t.sport_id}, "notes": "${n}", "description": "${a}", "title": "${s}", "equipment_ids": [${t.equipment_ids.map(o=>`"${o}"`).join(",")}], "workout_visibility": "${t.workout_visibility}", "map_visibility": "${t.map_visibility}"}`),Ne.post("workouts",i,{headers:{"content-type":"multipart/form-data"}}).then(o=>{if(o.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE);const r=o.data.data.workouts[0];lt.push(o.data.data.workouts.length===1?`/workouts/${r.id}`:"/")}}).catch(o=>{ne(e,o)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!1))},[J.ACTIONS.ADD_WORKOUT_WITHOUT_GPX](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!0),Ne.post("workouts/no_gpx",t).then(n=>{if(n.data.status==="created"){e.dispatch(K.ACTIONS.GET_USER_PROFILE);const a=n.data.data.workouts[0];lt.push(`/workouts/${a.id}`)}}).catch(n=>{ne(e,n)}).finally(()=>e.commit(J.MUTATIONS.SET_WORKOUT_LOADING,!1))},[J.ACTIONS.ADD_COMMENT](e,t){e.commit(J.MUTATIONS.SET_COMMENT_LOADING,"new");const n={text:t.text,text_visibility:t.text_visibility};e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.post(`/workouts/${t.workout_id}/comments`,n).then(a=>{a.data.status==="created"?(e.dispatch(J.ACTIONS.GET_WORKOUT_COMMENTS,t.workout_id),e.commit(J.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{})):ne(e,null)}).catch(a=>{ne(e,a),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null)})},[J.ACTIONS.GET_WORKOUT_COMMENT](e,t){e.commit(J.MUTATIONS.SET_COMMENT_LOADING,"loading"),e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/comments/${t}`).then(n=>{n.data.status==="success"?(e.commit(J.MUTATIONS.SET_WORKOUT_COMMENTS,[n.data.comment]),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n)}).finally(()=>e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null))},[J.ACTIONS.GET_WORKOUT_COMMENTS](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),Ne.get(`/workouts/${t}/comments`).then(n=>{n.data.status==="success"?(e.commit(J.MUTATIONS.SET_WORKOUT_COMMENTS,n.data.data.comments),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null)):ne(e,null)}).catch(n=>{ne(e,n.status===500?null:n,"error when getting comments")}).finally(()=>e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null))},[J.ACTIONS.DELETE_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,"delete"),Ne.delete(`comments/${t.commentId}`).then(n=>{n.status===204&&(t.workoutId?e.dispatch(J.ACTIONS.GET_WORKOUT_COMMENTS,t.workoutId):lt.push("/"))}).catch(n=>{ne(e,n)})},[J.ACTIONS.EDIT_WORKOUT_COMMENT](e,t){e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,t.id),Ne.patch(`comments/${t.id}`,{text:t.text}).then(n=>{n.data.status==="success"&&(MO(e,t.id,t.workout_id),e.commit(J.MUTATIONS.SET_CURRENT_COMMENT_EDITION,{}))}).catch(n=>{ne(e,n),e.commit(J.MUTATIONS.SET_COMMENT_LOADING,null)})},[J.ACTIONS.LIKE_COMMENT](e,t){Oh(e,t)},[J.ACTIONS.UNDO_LIKE_COMMENT](e,t){Oh(e,t,!0)},[J.ACTIONS.LIKE_WORKOUT](e,t){Ih(e,t)},[J.ACTIONS.UNDO_LIKE_WORKOUT](e,t){Ih(e,t,!0)},[J.ACTIONS.MAKE_APPEAL](e,t){const n=`${t.objectType}_${t.objectId}`;e.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),e.commit(J.MUTATIONS.SET_APPEAL_LOADING,n),e.commit(J.MUTATIONS.SET_SUCCESS,null),Ne.post(`${t.objectType}s/${t.objectId}/suspension/appeal`,{text:t.text}).then(a=>{a.data.status==="success"&&e.commit(J.MUTATIONS.SET_SUCCESS,n)}).catch(a=>{ne(e,a)}).finally(()=>e.commit(J.MUTATIONS.SET_APPEAL_LOADING,null))}},Rtt={[J.GETTERS.APPEAL_LOADING]:e=>e.appealLoading,[J.GETTERS.CALENDAR_WORKOUTS]:e=>e.calendar_workouts,[J.GETTERS.CURRENT_REPORTING]:e=>e.workoutData.currentReporting,[J.GETTERS.SUCCESS]:e=>e.success,[J.GETTERS.TIMELINE_WORKOUTS]:e=>e.timeline_workouts,[J.GETTERS.AUTH_USER_WORKOUTS]:e=>e.user_workouts,[J.GETTERS.WORKOUT_CONTENT_EDITION]:e=>e.workoutContent,[J.GETTERS.WORKOUT_DATA]:e=>e.workoutData,[J.GETTERS.WORKOUTS_PAGINATION]:e=>e.pagination},Ntt={[J.MUTATIONS.ADD_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=e.timeline_workouts.concat(t)},[J.MUTATIONS.SET_APPEAL_LOADING](e,t){e.appealLoading=t},[J.MUTATIONS.SET_CALENDAR_WORKOUTS](e,t){e.calendar_workouts=t},[J.MUTATIONS.SET_SUCCESS](e,t){e.success=t},[J.MUTATIONS.SET_TIMELINE_WORKOUTS](e,t){e.timeline_workouts=t},[J.MUTATIONS.SET_USER_WORKOUTS](e,t){e.user_workouts=t},[J.MUTATIONS.SET_WORKOUTS_PAGINATION](e,t){e.pagination=t},[J.MUTATIONS.SET_WORKOUT](e,t){e.workoutData.workout=t},[J.MUTATIONS.SET_WORKOUT_CHART_DATA](e,t){e.workoutData.chartData=t},[J.MUTATIONS.SET_WORKOUT_GPX](e,t){e.workoutData.gpx=t},[J.MUTATIONS.SET_WORKOUT_LOADING](e,t){e.workoutData.loading=t},[J.MUTATIONS.SET_WORKOUT_CONTENT](e,t){e.workoutData.workout=t},[J.MUTATIONS.SET_WORKOUT_CONTENT_LOADING](e,t){e.workoutContent.loading=t},[J.MUTATIONS.SET_WORKOUT_CONTENT_TYPE](e,t){e.workoutContent.contentType=t},[J.MUTATIONS.EMPTY_CALENDAR_WORKOUTS](e){e.calendar_workouts=[]},[J.MUTATIONS.EMPTY_WORKOUTS](e){e.calendar_workouts=[],e.user_workouts=[],e.timeline_workouts=[]},[J.MUTATIONS.EMPTY_WORKOUT](e){e.workoutData={gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1}},[J.MUTATIONS.SET_WORKOUT_COMMENTS](e,t){e.workoutData.comments=t},[J.MUTATIONS.ADD_WORKOUT_COMMENT](e,t){e.workoutData.comments.push(t)},[J.MUTATIONS.SET_COMMENT_LOADING](e,t){e.workoutData.commentsLoading=t},[J.MUTATIONS.SET_CURRENT_COMMENT_EDITION](e,t){e.workoutData.currentCommentEdition=t},[J.MUTATIONS.SET_CURRENT_REPORTING](e,t){e.workoutData.currentReporting=t}},vtt={calendar_workouts:[],timeline_workouts:[],pagination:{},user_workouts:[],workoutData:{gpx:"",loading:!1,workout:{},chartData:[],comments:[],commentsLoading:null,currentCommentEdition:{},currentReporting:!1},workoutContent:{loading:!1,contentType:""},success:null,appealLoading:null},btt={state:vtt,actions:gtt,getters:Rtt,mutations:Ntt},Ctt={authUserModule:Met,equipmentModule:Bet,notificationsModule:qet,oAuthModule:Zet,reportsModule:att,sportsModule:ptt,statsModule:htt,usersModule:Itt,workoutsModule:btt},Ptt={state:utt,actions:itt,getters:ott,mutations:rtt,modules:Ctt},kn=g2(Ptt),Ne=Gt.create({baseURL:nr()});Ne.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=bi(e);Ro.set(n,t);const a=kn.getters[K.GETTERS.AUTH_TOKEN];if(a){const s=`Bearer ${a}`;e.headers&&e.headers.Authorization!==s&&(e.headers.Authorization=`Bearer ${a}`)}return e},e=>Promise.reject(e));Ne.interceptors.response.use(e=>(bi(e.config),e),e=>(e.message!=="canceled"&&e.response&&bi(e.response.config),Promise.reject(e)));const fE=(e,t)=>e.push.apply(e,t),Ci=e=>e.sort((t,n)=>t.i-n.i||t.j-n.j),gh=e=>{const t={};let n=1;return e.forEach(a=>{t[a]=n,n+=1}),t};var Dtt={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};const Rh=2050,Nh=1e3,Ltt=Dtt,ytt=10,$tt=1e4,WO=10,FO=50,zO=20,xO=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Utt=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,ktt=/^[A-Z\xbf-\xdf]+$/,BO=/^[^a-z\xdf-\xff]+$/,wtt=/^[a-z\xdf-\xff]+$/,Mtt=/^[^A-Z\xbf-\xdf]+$/,Wtt=/[a-z\xdf-\xff]/,Ftt=/[A-Z\xbf-\xdf]/,ztt=/[^A-Za-z\xbf-\xdf]/gi,xtt=/^\d+$/,qp=new Date().getFullYear(),Btt={recentYear:/19\d\d|200\d|201\d|202\d/g},GO=[" ",",",";",":","|","/","\\","_",".","-"],Gtt=GO.length;class Vtt{match({password:t}){const n=[...this.getMatchesWithoutSeparator(t),...this.getMatchesWithSeparator(t)],a=this.filterNoise(n);return Ci(a)}getMatchesWithSeparator(t){const n=[],a=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let s=0;s<=Math.abs(t.length-6);s+=1)for(let i=s+5;i<=s+9&&!(i>=t.length);i+=1){const o=t.slice(s,+i+1||9e9),r=a.exec(o);if(r!=null){const u=this.mapIntegersToDayMonthYear([parseInt(r[1],10),parseInt(r[3],10),parseInt(r[4],10)]);u!=null&&n.push({pattern:"date",token:o,i:s,j:i,separator:r[2],year:u.year,month:u.month,day:u.day})}}return n}getMatchesWithoutSeparator(t){const n=[],a=/^\d{4,8}$/,s=i=>Math.abs(i.year-qp);for(let i=0;i<=Math.abs(t.length-4);i+=1)for(let o=i+3;o<=i+7&&!(o>=t.length);o+=1){const r=t.slice(i,+o+1||9e9);if(a.exec(r)){const u=[],l=r.length;if(Ltt[l].forEach(([E,c])=>{const T=this.mapIntegersToDayMonthYear([parseInt(r.slice(0,E),10),parseInt(r.slice(E,c),10),parseInt(r.slice(c),10)]);T!=null&&u.push(T)}),u.length>0){let E=u[0],c=s(u[0]);u.slice(1).forEach(T=>{const _=s(T);_{let a=!1;const s=t.length;for(let i=0;i=n.j){a=!0;break}}return!a})}mapIntegersToDayMonthYear(t){if(t[1]>31||t[1]<=0)return null;let n=0,a=0,s=0;for(let i=0,o=t.length;i99&&rRh)return null;r>31&&(a+=1),r>12&&(n+=1),r<=0&&(s+=1)}return a>=2||n===3||s>=2?null:this.getDayMonth(t)}getDayMonth(t){const n=[[t[2],t.slice(0,2)],[t[0],t.slice(1,3)]],a=n.length;for(let s=0;s=1&&i<=31&&o>=1&&o<=12)return{day:i,month:o}}return null}twoToFourDigitYear(t){return t>99?t:t>50?t+1900:t+2e3}}const ya=new Uint32Array(65536),Htt=(e,t)=>{const n=e.length,a=t.length,s=1<{const n=t.length,a=e.length,s=[],i=[],o=Math.ceil(n/32),r=Math.ceil(a/32);for(let _=0;_>>R&1,N=s[R/32|0]>>>R&1,b=g|_,C=((g|N)&f)+f^f|g|N;let y=_|~(C|f),D=f&C;y>>>31^I&&(i[R/32|0]^=1<>>31^N&&(s[R/32|0]^=1<>>_&1,A=s[_/32|0]>>>_&1,R=f|l,g=((f|A)&d)+d^d|f|A;let I=l|~(g|d),N=d&g;T+=I>>>a-1&1,T-=N>>>a-1&1,I>>>31^O&&(i[_/32|0]^=1<<_),N>>>31^A&&(s[_/32|0]^=1<<_),I=I<<1|O,N=N<<1|A,d=N|~(R|I),l=I&R}for(let _=E;_{if(e.length{const a=e.length<=t.length,s=e.length<=n;return a||s?Math.ceil(e.length/4):n},Ytt=(e,t,n)=>{let a=0;const s=Object.keys(t).find(i=>{const o=jtt(e,i,n);if(Math.abs(e.length-i.length)>o)return!1;const r=qtt(e,i),u=r<=o;return u&&(a=r),u});return s?{levenshteinDistance:a,levenshteinDistanceEntry:s}:{}};var vh={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]},ud={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",topHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};class Ko{constructor(t=[]){this.parents=t,this.children=new Map}addSub(t,...n){const a=t.charAt(0);this.children.has(a)||this.children.set(a,new Ko([...this.parents,a]));let s=this.children.get(a);for(let i=1;i(Object.entries(e).forEach(([n,a])=>{a.forEach(s=>{t.addSub(s,n)})}),t);class Xtt{constructor(){this.matchers={},this.l33tTable=vh,this.trieNodeRoot=bh(vh,new Ko),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=ud,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(t={}){t.l33tTable&&(this.l33tTable=t.l33tTable,this.trieNodeRoot=bh(t.l33tTable,new Ko)),t.dictionary&&(this.dictionary=t.dictionary,this.setRankedDictionaries()),t.translations&&this.setTranslations(t.translations),t.graphs&&(this.graphs=t.graphs),t.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=t.useLevenshteinDistance),t.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=t.levenshteinThreshold),t.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=t.l33tMaxSubstitutions),t.maxLength!==void 0&&(this.maxLength=t.maxLength)}setTranslations(t){if(this.checkCustomTranslations(t))this.translations=t;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(t){let n=!0;return Object.keys(ud).forEach(a=>{if(a in t){const s=a;Object.keys(ud[s]).forEach(i=>{i in t[s]||(n=!1)})}else n=!1}),n}setRankedDictionaries(){const t={},n={};Object.keys(this.dictionary).forEach(a=>{t[a]=gh(this.dictionary[a]),n[a]=this.getRankedDictionariesMaxWordSize(this.dictionary[a])}),this.rankedDictionaries=t,this.rankedDictionariesMaxWordSize=n}getRankedDictionariesMaxWordSize(t){const n=t.map(a=>typeof a!="string"?a.toString().length:a.length);return n.length===0?0:n.reduce((a,s)=>Math.max(a,s),-1/0)}buildSanitizedRankedDictionary(t){const n=[];return t.forEach(a=>{const s=typeof a;(s==="string"||s==="number"||s==="boolean")&&n.push(a.toString().toLowerCase())}),gh(n)}extendUserInputsDictionary(t){this.dictionary.userInputs||(this.dictionary.userInputs=[]);const n=[...this.dictionary.userInputs,...t];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(n),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(n)}addMatcher(t,n){this.matchers[t]?console.info(`Matcher ${t} already exists`):this.matchers[t]=n}}const Ge=new Xtt;class Qtt{constructor(t){this.defaultMatch=t}match({password:t}){const n=t.split("").reverse().join("");return this.defaultMatch({password:n}).map(a=>({...a,token:a.token.split("").reverse().join(""),reversed:!0,i:t.length-1-a.j,j:t.length-1-a.i}))}}class Ztt{constructor({substr:t,limit:n,trieRoot:a}){this.buffer=[],this.finalPasswords=[],this.substr=t,this.limit=n,this.trieRoot=a}getAllPossibleSubsAtIndex(t){const n=[];let a=this.trieRoot;for(let s=t;s=this.limit)return;if(a===this.substr.length){t===n&&this.finalPasswords.push({password:this.buffer.join(""),changes:i});return}const u=[...this.getAllPossibleSubsAtIndex(a)];let l=!1;for(let d=a+u.length-1;d>=a;d-=1){const E=u[d-a];if(E.isTerminal()){if(o===E.parents.join("")&&r>=3)continue;l=!0;const c=E.subs;for(const T of c){this.buffer.push(T);const _=i.concat({i:s,letter:T,substitution:E.parents.join("")});if(this.helper({onlyFullSub:t,isFullSub:n,index:d+1,subIndex:s+T.length,changes:_,lastSubLetter:E.parents.join(""),consecutiveSubCount:o===E.parents.join("")?r+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!t||!l){const d=this.substr.charAt(a);this.buffer.push(d),this.helper({onlyFullSub:t,isFullSub:n&&!l,index:a+1,subIndex:s+1,changes:i,lastSubLetter:o,consecutiveSubCount:r}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}}const Jtt=(e,t,n)=>new Ztt({substr:e,limit:t,trieRoot:n}).getAll(),ent=(e,t,n)=>{const s=e.changes.filter(l=>l.il-d.letter.length+d.substitution.length,t),i=e.changes.filter(l=>l.i>=t&&l.i<=n),o=i.reduce((l,d)=>l-d.letter.length+d.substitution.length,n-t+s),r=[],u=[];return i.forEach(l=>{r.findIndex(E=>E.letter===l.letter&&E.substitution===l.substitution)<0&&(r.push({letter:l.letter,substitution:l.substitution}),u.push(`${l.substitution} -> ${l.letter}`))}),{i:s,j:o,subs:r,subDisplay:u.join(", ")}};class tnt{constructor(t){this.defaultMatch=t}isAlreadyIncluded(t,n){return t.some(a=>Object.entries(a).every(([s,i])=>s==="subs"||i===n[s]))}match({password:t}){const n=[],a=Jtt(t,Ge.l33tMaxSubstitutions,Ge.trieNodeRoot);let s=!1,i=!0;return a.forEach(o=>{if(s)return;const r=this.defaultMatch({password:o.password,useLevenshtein:i});i=!1,r.forEach(u=>{s||(s=u.i===0&&u.j===t.length-1);const l=ent(o,u.i,u.j),d=t.slice(l.i,+l.j+1||9e9),E={...u,l33t:!0,token:d,...l},c=this.isAlreadyIncluded(n,E);d.toLowerCase()!==u.matchedWord&&!c&&n.push(E)})}),n.filter(o=>o.token.length>1)}}class nnt{constructor(){this.l33t=new tnt(this.defaultMatch),this.reverse=new Qtt(this.defaultMatch)}match({password:t}){const n=[...this.defaultMatch({password:t}),...this.reverse.match({password:t}),...this.l33t.match({password:t})];return Ci(n)}defaultMatch({password:t,useLevenshtein:n=!0}){const a=[],s=t.length,i=t.toLowerCase();return Object.keys(Ge.rankedDictionaries).forEach(o=>{const r=Ge.rankedDictionaries[o],u=Ge.rankedDictionariesMaxWordSize[o],l=Math.min(u,s);for(let d=0;d{const i=n[s];i.lastIndex=0;let o;for(;o=i.exec(t);)if(o){const r=o[0];a.push({pattern:"regex",token:r,i:o.index,j:o.index+o[0].length-1,regexName:s,regexMatch:o})}}),Ci(a)}}var qs={nCk(e,t){let n=e;if(t>n)return 0;if(t===0)return 1;let a=1;for(let s=1;s<=t;s+=1)a*=n,a/=s,n-=1;return a},log10(e){return e===0?0:Math.log(e)/Math.log(10)},log2(e){return Math.log(e)/Math.log(2)},factorial(e){let t=1;for(let n=2;n<=e;n+=1)t*=n;return t}},snt=({token:e})=>{let t=ytt**e.length;t===Number.POSITIVE_INFINITY&&(t=Number.MAX_VALUE);let n;return e.length===1?n=WO+1:n=FO+1,Math.max(t,n)},int=({year:e,separator:t})=>{let a=Math.max(Math.abs(e-qp),zO)*365;return t&&(a*=4),a};const ont=e=>{const t=e.split(""),n=t.filter(o=>o.match(Ftt)).length,a=t.filter(o=>o.match(Wtt)).length;let s=0;const i=Math.min(n,a);for(let o=1;o<=i;o+=1)s+=qs.nCk(n+a,o);return s};var rnt=e=>{const t=e.replace(ztt,"");if(t.match(Mtt)||t.toLowerCase()===t)return 1;const n=[xO,Utt,BO],a=n.length;for(let s=0;s{let n=0,a=e.indexOf(t);for(;a>=0;)n+=1,a=e.indexOf(t,a+t.length);return n},unt=({sub:e,token:t})=>{const n=t.toLowerCase(),a=Ch(n,e.substitution),s=Ch(n,e.letter);return{subbedCount:a,unsubbedCount:s}};var lnt=({l33t:e,subs:t,token:n})=>{if(!e)return 1;let a=1;return t.forEach(s=>{const{subbedCount:i,unsubbedCount:o}=unt({sub:s,token:n});if(i===0||o===0)a*=2;else{const r=Math.min(o,i);let u=0;for(let l=1;l<=r;l+=1)u+=qs.nCk(o+i,l);a*=u}}),a},cnt=({rank:e,reversed:t,l33t:n,subs:a,token:s,dictionaryName:i})=>{const o=e,r=rnt(s),u=lnt({l33t:n,subs:a,token:s}),l=t&&2||1;let d;return i==="diceware"?d=6**5/2:d=o*r*u*l,{baseGuesses:o,uppercaseVariations:r,l33tVariations:u,calculation:d}},dnt=({regexName:e,regexMatch:t,token:n})=>{const a={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(e in a)return a[e]**n.length;switch(e){case"recentYear":return Math.max(Math.abs(parseInt(t[0],10)-qp),zO)}return 0},Ent=({baseGuesses:e,repeatCount:t})=>e*t,pnt=({token:e,ascending:t})=>{const n=e.charAt(0);let a=0;return["a","A","z","Z","0","1","9"].includes(n)?a=4:n.match(/\d/)?a=10:a=26,t||(a*=2),a*e.length};const Tnt=e=>{let t=0;return Object.keys(e).forEach(n=>{const a=e[n];t+=a.filter(s=>!!s).length}),t/=Object.entries(e).length,t},mnt=({token:e,graph:t,turns:n})=>{const a=Object.keys(Ge.graphs[t]).length,s=Tnt(Ge.graphs[t]);let i=0;const o=e.length;for(let r=2;r<=o;r+=1){const u=Math.min(n,r-1);for(let l=1;l<=u;l+=1)i+=qs.nCk(r-1,l-1)*a*s**l}return i};var _nt=({graph:e,token:t,shiftedCount:n,turns:a})=>{let s=mnt({token:t,graph:e,turns:a});if(n){const i=t.length-n;if(n===0||i===0)s*=2;else{let o=0;for(let r=1;r<=Math.min(n,i);r+=1)o+=qs.nCk(n+i,r);s*=o}}return Math.round(s)},fnt=()=>Gtt;const hnt=(e,t)=>{let n=1;return e.token.lengthPh[e]?Ph[e](t):Ge.matchers[e]&&"scoring"in Ge.matchers[e]?Ge.matchers[e].scoring(t):0;var Ant=(e,t)=>{const n={};if("guesses"in e&&e.guesses!=null)return e;const a=hnt(e,t),s=Snt(e.pattern,e);let i=0;typeof s=="number"?i=s:e.pattern==="dictionary"&&(i=s.calculation,n.baseGuesses=s.baseGuesses,n.uppercaseVariations=s.uppercaseVariations,n.l33tVariations=s.l33tVariations);const o=Math.max(i,a);return{...e,...n,guesses:o,guessesLog10:qs.log10(o)}};const Un={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(e,t){const n=[];for(let a=0;a1&&(s*=this.optimal.pi[a.i-1][t-1]);let i=qs.factorial(t)*s;this.excludeAdditive||(i+=$tt**(t-1));let o=!1;Object.keys(this.optimal.g[n]).forEach(r=>{const u=this.optimal.g[n][r];parseInt(r,10)<=t&&u<=i&&(o=!0)}),o||(this.optimal.g[n][t]=i,this.optimal.m[n][t]=a,this.optimal.pi[n][t]=s)},bruteforceUpdate(e){let t=this.makeBruteforceMatch(0,e);this.update(t,1);for(let n=1;n<=e;n+=1){t=this.makeBruteforceMatch(n,e);const a=this.optimal.m[n-1];Object.keys(a).forEach(s=>{a[s].pattern!=="bruteforce"&&this.update(t,parseInt(s,10)+1)})}},unwind(e){const t=[];let n=e-1,a=0,s=1/0;const i=this.optimal.g[n];for(i&&Object.keys(i).forEach(o=>{const r=i[o];r=0;){const o=this.optimal.m[n][a];t.unshift(o),n=o.i-1,a-=1}return t}};var hE={mostGuessableMatchSequence(e,t,n=!1){Un.password=e,Un.excludeAdditive=n;const a=e.length;let s=Un.fillArray(a,"array");t.forEach(u=>{s[u.j].push(u)}),s=s.map(u=>u.sort((l,d)=>l.i-d.i)),Un.optimal={m:Un.fillArray(a,"object"),pi:Un.fillArray(a,"object"),g:Un.fillArray(a,"object")};for(let u=0;u{l.i>0?Object.keys(Un.optimal.m[l.i-1]).forEach(d=>{Un.update(l,parseInt(d,10)+1)}):Un.update(l,1)}),Un.bruteforceUpdate(u);const i=Un.unwind(a),o=i.length,r=this.getGuesses(e,o);return{password:e,guesses:r,guessesLog10:qs.log10(r),sequence:i}},getGuesses(e,t){const n=e.length;let a=0;return e.length===0?a=1:a=Un.optimal.g[n-1][t],a}};class Ont{match({password:t,omniMatch:n}){const a=[];let s=0;for(;so instanceof Promise)?Promise.all(a):a}normalizeMatch(t,n,a,s){const i={pattern:"repeat",i:a.index,j:n,token:a[0],baseToken:t,baseGuesses:0,repeatCount:a[0].length/t.length};return s instanceof Promise?s.then(o=>({...i,baseGuesses:o})):{...i,baseGuesses:s}}getGreedyMatch(t,n){const a=/(.+)\1+/g;return a.lastIndex=n,a.exec(t)}getLazyMatch(t,n){const a=/(.+?)\1+/g;return a.lastIndex=n,a.exec(t)}setMatchToken(t,n){const a=/^(.+?)\1+$/;let s,i="";if(n&&t[0].length>n[0].length){s=t;const o=a.exec(s[0]);o&&(i=o[1])}else s=n,s&&(i=s[1]);return{match:s,baseToken:i}}getBaseGuesses(t,n){const a=n.match(t);return a instanceof Promise?a.then(i=>hE.mostGuessableMatchSequence(t,i).guesses):hE.mostGuessableMatchSequence(t,a).guesses}}class Int{constructor(){this.MAX_DELTA=5}match({password:t}){const n=[];if(t.length===1)return[];let a=0,s=null;const i=t.length;for(let o=1;o1||Math.abs(a)===1){const o=Math.abs(a);if(o>0&&o<=this.MAX_DELTA){const r=s.slice(t,+n+1||9e9),{sequenceName:u,sequenceSpace:l}=this.getSequence(r);return i.push({pattern:"sequence",i:t,j:n,token:s.slice(t,+n+1||9e9),sequenceName:u,sequenceSpace:l,ascending:a>0})}}return null}getSequence(t){let n="unicode",a=26;return wtt.test(t)?(n="lower",a=26):ktt.test(t)?(n="upper",a=26):xtt.test(t)&&(n="digits",a=10),{sequenceName:n,sequenceSpace:a}}}class gnt{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:t}){const n=[];return Object.keys(Ge.graphs).forEach(a=>{const s=Ge.graphs[a];fE(n,this.helper(t,s,a))}),Ci(n)}checkIfShifted(t,n,a){return!t.includes("keypad")&&this.SHIFTED_RX.test(n.charAt(a))?1:0}helper(t,n,a){let s;const i=[];let o=0;const r=t.length;for(;o2&&i.push({pattern:"spatial",i:o,j:u-1,token:t.slice(o,u),graph:a,turns:d,shiftedCount:s}),o=u;break}}}return i}}const Rnt=new RegExp(`[${GO.join("")}]`);class Ju{static getMostUsedSeparatorChar(t){const n=[...t.split("").filter(s=>Rnt.test(s)).reduce((s,i)=>{const o=s.get(i);return o?s.set(i,o+1):s.set(i,1),s},new Map).entries()].sort(([s,i],[o,r])=>r-i);if(!n.length)return;const a=n[0];if(!(a[1]<2))return a[0]}static getSeparatorRegex(t){return new RegExp(`([^${t} -])(${t})(?!${t})`,"g")}match({password:t}){const n=[];if(t.length===0)return n;const a=Ju.getMostUsedSeparatorChar(t);if(a===void 0)return n;const s=Ju.getSeparatorRegex(a);for(const i of t.matchAll(s)){if(i.index===void 0)continue;const o=i.index+1;n.push({pattern:"separator",token:a,i:o,j:o})}return n}}class Nnt{constructor(){this.matchers={date:Vtt,dictionary:nnt,regex:ant,repeat:Ont,sequence:Int,spatial:gnt,separator:Ju}}match(t){const n=[],a=[];return[...Object.keys(this.matchers),...Object.keys(Ge.matchers)].forEach(i=>{if(!this.matchers[i]&&!Ge.matchers[i])return;const o=this.matchers[i]?this.matchers[i]:Ge.matchers[i].Matching,u=new o().match({password:t,omniMatch:this});u instanceof Promise?(u.then(l=>{fE(n,l)}),a.push(u)):fE(n,u)}),a.length>0?new Promise((i,o)=>{Promise.all(a).then(()=>{i(Ci(n))}).catch(r=>{o(r)})}):Ci(n)}}const VO=1,HO=VO*60,KO=HO*60,qO=KO*24,jO=qO*31,YO=jO*12,vnt=YO*100,ld={second:VO,minute:HO,hour:KO,day:qO,month:jO,year:YO,century:vnt};class bnt{translate(t,n){let a=t;n!==void 0&&n!==1&&(a+="s");const{timeEstimation:s}=Ge.translations;return s[a].replace("{base}",`${n}`)}estimateAttackTimes(t){const n={onlineThrottling100PerHour:t/.027777777777777776,onlineNoThrottling10PerSecond:t/10,offlineSlowHashing1e4PerSecond:t/1e4,offlineFastHashing1e10PerSecond:t/1e10},a={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(n).forEach(s=>{const i=n[s];a[s]=this.displayTime(i)}),{crackTimesSeconds:n,crackTimesDisplay:a,score:this.guessesToScore(t)}}guessesToScore(t){return t<1005?0:t<1000005?1:t<100000005?2:t<1e10+5?3:4}displayTime(t){let n="centuries",a;const s=Object.keys(ld),i=s.findIndex(o=>t-1&&(n=s[i-1],i!==0?a=Math.round(t/ld[n]):n="ltSecond"),this.translate(n,a)}}var Cnt=()=>null,Pnt=()=>({warning:Ge.translations.warnings.dates,suggestions:[Ge.translations.suggestions.dates]});const Dnt=(e,t)=>{let n=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?n=Ge.translations.warnings.topTen:e.rank<=100?n=Ge.translations.warnings.topHundred:n=Ge.translations.warnings.common:e.guessesLog10<=4&&(n=Ge.translations.warnings.similarToCommon),n},Lnt=(e,t)=>{let n=null;return t&&(n=Ge.translations.warnings.wordByItself),n},ynt=(e,t)=>t?Ge.translations.warnings.namesByThemselves:Ge.translations.warnings.commonNames,$nt=(e,t)=>{let n=null;const a=e.dictionaryName,s=a==="lastnames"||a.toLowerCase().includes("firstnames");return a==="passwords"?n=Dnt(e,t):a.includes("wikipedia")?n=Lnt(e,t):s?n=ynt(e,t):a==="userInputs"&&(n=Ge.translations.warnings.userInputs),n};var Unt=(e,t)=>{const n=$nt(e,t),a=[],s=e.token;return s.match(xO)?a.push(Ge.translations.suggestions.capitalization):s.match(BO)&&s.toLowerCase()!==s&&a.push(Ge.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&a.push(Ge.translations.suggestions.reverseWords),e.l33t&&a.push(Ge.translations.suggestions.l33t),{warning:n,suggestions:a}},knt=e=>e.regexName==="recentYear"?{warning:Ge.translations.warnings.recentYears,suggestions:[Ge.translations.suggestions.recentYears,Ge.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},wnt=e=>{let t=Ge.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ge.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ge.translations.suggestions.repeated]}},Mnt=()=>({warning:Ge.translations.warnings.sequences,suggestions:[Ge.translations.suggestions.sequences]}),Wnt=e=>{let t=Ge.translations.warnings.keyPattern;return e.turns===1&&(t=Ge.translations.warnings.straightRow),{warning:t,suggestions:[Ge.translations.suggestions.longerKeyboardPattern]}},Fnt=()=>null;const Dh={warning:null,suggestions:[]};class znt{constructor(){this.matchers={bruteforce:Cnt,date:Pnt,dictionary:Unt,regex:knt,repeat:wnt,sequence:Mnt,spatial:Wnt,separator:Fnt},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(Ge.translations.suggestions.useWords,Ge.translations.suggestions.noNeed)}getFeedback(t,n){if(n.length===0)return this.defaultFeedback;if(t>2)return Dh;const a=Ge.translations.suggestions.anotherWord,s=this.getLongestMatch(n);let i=this.getMatchFeedback(s,n.length===1);return i!=null?i.suggestions.unshift(a):i={warning:null,suggestions:[a]},i}getLongestMatch(t){let n=t[0];return t.slice(1).forEach(s=>{s.token.length>n.token.length&&(n=s)}),n}getMatchFeedback(t,n){return this.matchers[t.pattern]?this.matchers[t.pattern](t,n):Ge.matchers[t.pattern]&&"feedback"in Ge.matchers[t.pattern]?Ge.matchers[t.pattern].feedback(t,n):Dh}}const XO=()=>new Date().getTime(),xnt=(e,t,n)=>{const a=new znt,s=new bnt,i=hE.mostGuessableMatchSequence(t,e),o=XO()-n,r=s.estimateAttackTimes(i.guesses);return{calcTime:o,...i,...r,feedback:a.getFeedback(r.score,i.sequence)}},Bnt=(e,t)=>new Nnt().match(e),Gnt=(e,t)=>{const n=XO(),a=Bnt(e);if(a instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return xnt(a,e,n)},Vnt="modulepreload",Hnt=function(e){return"/"+e},Lh={},xt=function(t,n,a){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),r=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Hnt(u),u in Lh)return;Lh[u]=!0;const l=u.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const E=document.createElement("link");if(E.rel=l?"stylesheet":Vnt,l||(E.as="script"),E.crossOrigin="",E.href=u,r&&E.setAttribute("nonce",r),document.head.appendChild(E),l)return new Promise((c,T)=>{E.addEventListener("load",c),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o}return s.then(o=>{for(const r of o||[])r.status==="rejected"&&i(r.reason);return t().catch(i)})},Knt=async e=>{switch(e){case"fr":return await xt(()=>import("./password.fr-LQIeIoMk.js"),[]);case"de":return await xt(()=>import("./password.de-SDMVbHi1.js"),[]);case"it":return await xt(()=>import("./password.it-CReO5S7F.js"),[]);case"es":return await xt(()=>import("./password.es-es-DLU3Rh6X.js"),[]);case"pl":return await xt(()=>import("./password.pl-T3z7Kg0O.js"),[]);case"cs":return await xt(()=>import("./password.cs-CLn3Tyh5.js"),[]);default:return await xt(()=>import("./password.en-BDtqNyGO.js"),[])}},yh=async e=>{const t=await xt(()=>import("./password.common-bdamX4EN.js"),[]),n=await Knt(e),a={graphs:t.adjacencyGraphs,dictionary:{...t.dictionary,...n.dictionary}};Ge.setOptions(a)},qnt=e=>{switch(e){case 2:return"AVERAGE";case 3:return"GOOD";case 4:return"STRONG";default:return"WEAK"}},jnt={class:"password-strength"},Ynt={for:"password-strength",class:"visually-hidden"},Xnt=["value"],Qnt={key:0,class:"password-strength-details"},Znt={class:"password-strength-value"},Jnt={key:0,class:"info-box"},eat={class:"password-feedback"},tat=X({__name:"PasswordStength",props:{password:{}},setup(e){const t=e,{password:n}=fe(t),a=Le(),{appLanguage:s}=qe(),i=z(()=>a.getters[K.GETTERS.IS_SUCCESS]),o=Ie(0),r=Ie(""),u=Ie([]),l=Ie("0% 100%");et(async()=>await yh(s.value));function d(E){const c=Gnt(E);o.value=c.score,r.value=qnt(o.value),u.value=c.feedback.suggestions,l.value=o.value*100/4+"% 100%"}return Ce(()=>s.value,async E=>{await yh(E)}),Ce(()=>n.value,async E=>{i.value?r.value="":d(E)}),(E,c)=>(h(),v("div",jnt,[p("label",Ynt,S(E.$t("user.PASSWORD_STRENGTH.LABEL")),1),p("input",{id:"password-strength",class:Ae(["password-slider",`strength-${o.value}`]),style:za({backgroundSize:l.value}),type:"range",value:o.value,min:"0",max:"4",step:"1",tabindex:-1,autocomplete:"off"},null,14,Xnt),r.value?(h(),v("div",Qnt,[p("span",Znt,S(E.$t("user.PASSWORD_STRENGTH.LABEL"))+": "+S(E.$t(`user.PASSWORD_STRENGTH.${r.value}`)),1),u.value.length>0?(h(),v("div",Jnt,[p("ul",eat,[(h(!0),v(ue,null,be(u.value,T=>(h(),v("li",{key:T},S(E.$t(`user.PASSWORD_STRENGTH.SUGGESTIONS.${T}`)),1))),128))])])):L("",!0)])):L("",!0)]))}}),nat=se(tat,[["__scopeId","data-v-dee3cf5a"]]),aat={class:"password-input"},sat=["id","disabled","placeholder","required","type","autocomplete"],iat={class:"show-password"},oat={key:0,class:"form-info"},rat=X({__name:"PasswordInput",props:{checkStrength:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:"password"},password:{default:""},placeholder:{},required:{type:Boolean,default:!1},autocomplete:{}},emits:["updatePassword","passwordError"],setup(e,{emit:t}){const n=e,{autocomplete:a,checkStrength:s,disabled:i,id:o,password:r,placeholder:u,required:l}=fe(n),d=t,E=Ie(!1),c=Ie("");function T(){E.value=!E.value}function _(O){d("updatePassword",O.target.value)}function f(){d("passwordError")}return Ce(()=>r.value,O=>{O===""&&(c.value="",E.value=!1)}),(O,A)=>(h(),v("div",aat,[We(p("input",{id:m(o),disabled:m(i),placeholder:m(u),required:m(l),type:E.value?"text":"password","onUpdate:modelValue":A[0]||(A[0]=R=>c.value=R),minlength:"8",onInput:_,onInvalid:f,autocomplete:m(a)},null,40,sat),[[mN,c.value]]),p("div",iat,[p("button",{class:"transparent",onClick:ve(T,["prevent"]),type:"button"},[x(S(O.$t(`user.${E.value?"HIDE":"SHOW"}_PASSWORD`))+" ",1),p("i",{class:Ae(["fa",`fa-eye${E.value?"-slash":""}`]),"aria-hidden":"true"},null,2)])]),m(s)?(h(),v("div",oat,[A[1]||(A[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(O.$t("user.PASSWORD_INFO")),1)])):L("",!0),m(s)?(h(),B(nat,{key:1,password:c.value},null,8,["password"])):L("",!0)]))}}),SE=se(rat,[["__scopeId","data-v-56852c2e"]]),uat={id:"user-infos-edition"},lat={class:"profile-form form-box"},cat={key:1,class:"info-box success-message"},dat={class:"form-items",for:"email"},Eat=["disabled"],pat={class:"form-items",for:"password-field"},Tat={class:"form-items",for:"new-password-field"},mat={class:"form-buttons"},_at={class:"confirm",type:"submit"},fat={class:"data-export"},hat={class:"info-box"},Sat={key:0,class:"data-export-archive"},Aat={key:1},Oat={key:2},Iat=X({__name:"UserAccountEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{appConfig:s,errorMessages:i}=qe(),{authUserLoading:o,authUserSuccess:r}=Ke(),u=kt({email:"",password:"",new_password:""}),l=Ie(!1),d=Ie(!1),E=Ie(!1),c=Ie(!1),T=z(()=>a.getters[K.GETTERS.EXPORT_REQUEST]),_=z(()=>g());function f(){d.value=!0}function O(U){u.email=U.email}function A(U){u.password=U}function R(U){u.new_password=U}function g(){return T.value?$t(T.value.created_at,n.value.timezone,n.value.date_format,!0,null,!0):null}function I(){return _.value?xD(new Date(_.value),VD(new Date,1)):!0}function N(){const U={email:u.email,password:u.password};u.new_password&&(U.new_password=u.new_password),l.value=u.email!==n.value.email,a.dispatch(K.ACTIONS.UPDATE_USER_ACCOUNT,U)}function b(U){E.value=U}function C(U){a.dispatch(K.ACTIONS.DELETE_ACCOUNT,{username:U})}function y(){a.dispatch(K.ACTIONS.REQUEST_DATA_EXPORT)}async function D(U){c.value=!0,await Ne.get(`/auth/account/export/${U}`,{responseType:"blob"}).then(P=>{const F=window.URL.createObjectURL(new Blob([P.data],{type:"application/zip"})),Z=document.createElement("a");Z.href=F,Z.setAttribute("download",U),document.body.appendChild(Z),Z.click()}).finally(()=>c.value=!1)}return Ce(()=>r.value,async U=>{U&&(A(""),R(""),O(n.value),d.value=!1)}),Ce(()=>n.value.email,async()=>{O(n.value)}),mt(()=>{t.user&&(a.dispatch(K.ACTIONS.GET_REQUEST_DATA_EXPORT),O(t.user))}),ct(()=>{a.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(U,P)=>{const F=j("Modal"),Z=j("ErrorMessage");return h(),v("div",uat,[E.value?(h(),B(F,{key:0,title:U.$t("common.CONFIRMATION"),message:U.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:P[0]||(P[0]=Oe=>C(m(n).username)),onCancelAction:P[1]||(P[1]=Oe=>b(!1)),onKeydown:P[2]||(P[2]=Ye(Oe=>b(!1),["esc"]))},null,8,["title","message"])):L("",!0),p("div",lat,[m(i)?(h(),B(Z,{key:0,message:m(i)},null,8,["message"])):L("",!0),m(r)?(h(),v("div",cat,S(U.$t(`user.PROFILE.SUCCESSFUL_${l.value&&m(s).is_email_sending_enabled?"EMAIL_":""}UPDATE`)),1)):L("",!0),p("form",{class:Ae({errors:d.value}),onSubmit:ve(N,["prevent"])},[p("label",dat,[x(S(U.$t("user.EMAIL"))+"* ",1),We(p("input",{id:"email","onUpdate:modelValue":P[3]||(P[3]=Oe=>u.email=Oe),disabled:m(o),required:!0,onInvalid:f,autocomplete:"email"},null,40,Eat),[[ot,u.email]])]),p("label",pat,[x(S(U.$t("user.CURRENT_PASSWORD"))+"* ",1),M(SE,{id:"password-field",disabled:m(o),password:u.password,required:!0,onUpdatePassword:A,onPasswordError:f,autocomplete:"current-password"},null,8,["disabled","password"])]),p("label",Tat,[x(S(U.$t("user.NEW_PASSWORD"))+" ",1),M(SE,{id:"new-password-field",disabled:m(o),checkStrength:!0,password:u.new_password,isSuccess:!1,onUpdatePassword:R,onPasswordError:f,autocomplete:"new-password"},null,8,["disabled","password"])]),p("div",mat,[p("button",_at,S(U.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:P[4]||(P[4]=ve(Oe=>U.$router.push("/profile"),["prevent"]))},S(U.$t("buttons.CANCEL")),1),p("button",{class:"danger",onClick:P[5]||(P[5]=ve(Oe=>b(!0),["prevent"]))},S(U.$t("buttons.DELETE_MY_ACCOUNT")),1),I()?(h(),v("button",{key:0,class:"confirm",onClick:ve(y,["prevent"])},S(U.$t("buttons.REQUEST_DATA_EXPORT")),1)):L("",!0)])],34),p("div",fat,[p("span",hat,[P[7]||(P[7]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(U.$t("user.EXPORT_REQUEST.ONLY_ONE_EXPORT_PER_DAY")),1)]),T.value?(h(),v("div",Sat,[x(S(U.$t("user.EXPORT_REQUEST.DATA_EXPORT"))+" ("+S(_.value)+"): ",1),T.value.status==="successful"?(h(),v("span",{key:0,class:"archive-link",onClick:P[6]||(P[6]=ve(Oe=>D(T.value.file_name),["prevent"]))},[P[8]||(P[8]=p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),x(" "+S(U.$t("user.EXPORT_REQUEST.DOWNLOAD_ARCHIVE"))+" ("+S(m(Qu)(T.value.file_size))+") ",1)])):(h(),v("span",Aat,S(U.$t(`user.EXPORT_REQUEST.STATUS.${T.value.status}`)),1)),c.value?(h(),v("span",Oat,[x(S(U.$t("user.EXPORT_REQUEST.GENERATING_LINK"))+" ",1),P[9]||(P[9]=p("i",{class:"fa fa-spinner fa-pulse","aria-hidden":"true"},null,-1))])):L("",!0)])):L("",!0)])])])}}}),gat=se(Iat,[["__scopeId","data-v-881b0d2d"]]),Rat={id:"user-infos-edition"},Nat={class:"profile-form form-box"},vat={class:"form-items",for:"registrationDate"},bat=["value"],Cat={class:"form-items",for:"first_name"},Pat=["disabled"],Dat={class:"form-items",for:"last_name"},Lat={class:"form-items",for:"birth_date"},yat=["disabled"],$at={class:"form-items",for:"location"},Uat=["disabled"],kat={class:"form-items"},wat={class:"form-buttons"},Mat={class:"confirm",type:"submit"},Wat=X({__name:"UserInfosEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),{authUserLoading:i}=Ke(),o=kt({first_name:"",last_name:"",birth_date:"",location:"",bio:""}),r=z(()=>n.value.created_at?$t(n.value.created_at,n.value.timezone,n.value.date_format):"");function u(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?On(new Date(E.birth_date),"yyyy-MM-dd"):"",o.location=E.location?E.location:"",o.bio=E.bio?E.bio:""}function l(E){o.bio=E.value}function d(){a.dispatch(K.ACTIONS.UPDATE_USER_PROFILE,o)}return mt(()=>{n.value&&u(n.value)}),(E,c)=>{const T=j("ErrorMessage"),_=j("CustomTextArea");return h(),v("div",Rat,[p("div",Nat,[m(s)?(h(),B(T,{key:0,message:m(s)},null,8,["message"])):L("",!0),p("form",{onSubmit:ve(d,["prevent"])},[p("label",vat,[x(S(E.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),p("input",{id:"registrationDate",value:r.value,disabled:""},null,8,bat)]),p("label",Cat,[x(S(E.$t("user.PROFILE.FIRST_NAME"))+" ",1),We(p("input",{id:"first_name","onUpdate:modelValue":c[0]||(c[0]=f=>o.first_name=f),disabled:m(i)},null,8,Pat),[[ot,o.first_name]])]),p("label",Dat,[x(S(E.$t("user.PROFILE.LAST_NAME"))+" ",1),We(p("input",{id:"last_name","onUpdate:modelValue":c[1]||(c[1]=f=>o.last_name=f)},null,512),[[ot,o.last_name]])]),p("label",Lat,[x(S(E.$t("user.PROFILE.BIRTH_DATE"))+" ",1),We(p("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":c[2]||(c[2]=f=>o.birth_date=f),disabled:m(i)},null,8,yat),[[ot,o.birth_date]])]),p("label",$at,[x(S(E.$t("user.PROFILE.LOCATION"))+" ",1),We(p("input",{id:"location","onUpdate:modelValue":c[3]||(c[3]=f=>o.location=f),disabled:m(i)},null,8,Uat),[[ot,o.location]])]),p("label",kat,[x(S(E.$t("user.PROFILE.BIO"))+" ",1),M(_,{name:"bio",charLimit:200,input:o.bio,disabled:m(i),onUpdateValue:l},null,8,["input","disabled"])]),p("div",wat,[p("button",Mat,S(E.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:c[4]||(c[4]=ve(f=>E.$router.push("/profile"),["prevent"]))},S(E.$t("buttons.CANCEL")),1)])],32)])])}}}),Fat=se(Wat,[["__scopeId","data-v-74879b02"]]),zat={id:"user-picture-edition"},xat={class:"user-picture-form"},Bat={class:"picture-help"},Gat={class:"info-box"},Vat={class:"picture-buttons"},Hat=["disabled"],Kat=X({__name:"UserPictureEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{appConfig:s,errorMessages:i}=qe(),o=Ie(null),r=z(()=>s.value.max_single_file_size?Qu(s.value.max_single_file_size):"");function u(){a.dispatch(K.ACTIONS.DELETE_PICTURE)}function l(E){E.target.files!==null&&(o.value=E.target.files[0])}function d(){o.value&&a.dispatch(K.ACTIONS.UPDATE_USER_PICTURE,{picture:o.value})}return(E,c)=>{const T=j("ErrorMessage");return h(),v("div",zat,[p("div",xat,[m(i)?(h(),B(T,{key:0,message:m(i)},null,8,["message"])):L("",!0),M(Qt,{user:m(n)},null,8,["user"]),p("form",{onSubmit:ve(d,["prevent"])},[p("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:l},null,32),p("div",Bat,[p("span",Gat,[c[1]||(c[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("workouts.MAX_SIZE"))+": "+S(r.value),1)])]),p("div",Vat,[p("button",{type:"submit",disabled:!o.value},S(E.$t("user.PROFILE.PICTURE_UPDATE")),9,Hat),m(n).picture?(h(),v("button",{key:0,class:"danger",onClick:u},S(E.$t("user.PROFILE.PICTURE_REMOVE")),1)):L("",!0),p("button",{class:"cancel",onClick:c[0]||(c[0]=_=>E.$router.push("/profile"))},S(E.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32)])])}}}),qat=se(Kat,[["__scopeId","data-v-0a8e1dca"]]),$h=["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"],jat={id:"tz-dropdown"},Yat=["value","disabled","aria-expanded"],Xat=["aria-label"],Qat=["id","onClick","onMouseover","autofocus"],Zat=X({__name:"TimezoneDropdown",props:{input:{},disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup(e,{emit:t}){const n=e,{input:a,disabled:s}=fe(n),i=t,o=Ie(a.value),r=Ie(!1),u=Ie(0),l=z(()=>a.value?$h.filter(I=>d(I)):$h);function d(I){return I.toLowerCase().match(o.value.toLowerCase())}function E(I){u.value=I}function c(I){l.value.length>I&&(o.value=l.value[I],i("updateTimezone",o.value),r.value=!1)}function T(I){I.preventDefault(),l.value.length>0&&c(u.value)}function _(I){I.preventDefault(),r.value=!0,o.value=I.target.value.trim()}function f(){c(u.value)}function O(I){const N=document.getElementById(`tz-dropdown-item-${I}`);N&&(N.focus(),N.scrollIntoView({behavior:"smooth",block:"nearest"}))}function A(){r.value=!0,u.value=u.value===null?0:u.value+=1,u.value>=l.value.length&&(u.value=0),O(u.value)}function R(){r.value=!0,u.value=u.value===null?l.value.length-1:u.value-=1,u.value<=-1&&(u.value=l.value.length-1),O(u.value)}function g(){r.value&&(r.value=!1,o.value=a.value)}return Ce(()=>n.input,I=>{o.value=I}),(I,N)=>(h(),v("div",jat,[p("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:o.value,disabled:m(s),required:"",role:"combobox","aria-autocomplete":"list","aria-controls":"tz-dropdown-list","aria-expanded":r.value,onKeydown:[N[0]||(N[0]=Ye(b=>g(),["esc"])),Ye(T,["enter"]),N[2]||(N[2]=Ye(b=>A(),["down"])),N[3]||(N[3]=Ye(b=>R(),["up"]))],onInput:_,onBlur:N[1]||(N[1]=b=>f())},null,40,Yat),r.value?(h(),v("ul",{key:0,class:"tz-dropdown-list",id:"tz-dropdown-list",role:"listbox",tabindex:"-1","aria-label":I.$t("user.PROFILE.TIMEZONE",0)},[(h(!0),v(ue,null,be(l.value,(b,C)=>(h(),v("li",{key:b,id:`tz-dropdown-item-${C}`,class:Ae(["tz-dropdown-item",{focus:C===u.value}]),onClick:y=>c(C),onMouseover:y=>E(C),autofocus:C===u.value,role:"option"},S(b),43,Qat))),128))],8,Xat)):L("",!0)]))}}),Jat=se(Zat,[["__scopeId","data-v-de57165c"]]),est={id:"user-preferences-edition"},tst={class:"profile-form form-box"},nst={class:"preferences-section"},ast={class:"form-items"},sst=["disabled"],ist=["value"],ost={class:"form-items"},rst=["disabled"],ust=["value"],lst={class:"form-items"},cst={class:"form-items"},dst=["disabled"],Est=["value"],pst={class:"form-items form-checkboxes"},Tst={class:"checkboxes-label"},mst={class:"checkboxes"},_st=["id","name","checked","disabled","onInput"],fst={class:"checkbox-label"},hst={class:"preferences-section"},Sst={class:"form-items form-checkboxes"},Ast={class:"checkboxes-label"},Ost={class:"checkboxes"},Ist=["id","name","checked","disabled","onInput"],gst={class:"checkbox-label"},Rst={class:"form-items form-checkboxes"},Nst={class:"checkboxes-label"},vst={class:"checkboxes"},bst=["id","name","checked","disabled","onInput"],Cst={class:"checkbox-label"},Pst={class:"preferences-section"},Dst={class:"form-items form-checkboxes"},Lst={class:"checkboxes-label"},yst={class:"checkboxes"},$st=["id","name","checked","disabled","onInput"],Ust={class:"checkbox-label"},kst={class:"form-items form-checkboxes"},wst={class:"checkboxes-label"},Mst={class:"checkboxes"},Wst=["id","name","checked","disabled","onInput"],Fst={class:"checkbox-label"},zst={class:"form-items form-checkboxes"},xst={class:"checkboxes-label"},Bst={class:"checkboxes"},Gst=["id","name","checked","disabled","onInput"],Vst={class:"checkbox-label"},Hst={class:"form-items form-checkboxes"},Kst={class:"checkboxes-label"},qst={class:"checkboxes"},jst=["id","name","checked","disabled","onInput"],Yst={class:"checkbox-label"},Xst={class:"info-box raw-speed-help"},Qst={class:"form-items"},Zst=["disabled"],Jst=["value"],eit={class:"form-items"},tit=["disabled"],nit=["value"],ait={class:"form-items"},sit=["disabled"],iit=["value"],oit={class:"form-buttons"},rit={class:"confirm",type:"submit"},uit=X({__name:"UserPreferencesEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),{authUserLoading:i}=Ke(),o=[{label:"SUNDAY",value:!1},{label:"MONDAY",value:!0}],r=[{label:"METRIC",value:!1},{label:"IMPERIAL",value:!0}],u=[{label:"DISPLAYED",value:!0},{label:"HIDDEN",value:!1}],l=[{label:"ZERO",value:!0},{label:"MIN_ALT",value:!1}],d=[{label:"FILTERED_SPEED",value:!1},{label:"RAW_SPEED",value:!0}],E=[{label:"DARK",value:!0},{label:"DEFAULT",value:null},{label:"LIGHT",value:!1}],c=[{label:"MANUALLY",value:!0},{label:"AUTOMATICALLY",value:!1}],T=[{label:"HIDDEN",value:!0},{label:"DISPLAYED",value:!1}],_=kt({analysis_visibility:"private",date_format:"dd/MM/yyyy",display_ascent:!0,hide_profile_in_users_directory:!0,imperial_units:!1,language:"en",manually_approves_followers:!0,map_visibility:"private",start_elevation_at_zero:!1,timezone:"Europe/Paris",use_dark_mode:!1,use_raw_gpx_speed:!1,weekm:!1,workouts_visibility:"private"}),f=z(()=>fBe(new Date().toUTCString(),n.value.timezone,_.language)),O=z(()=>gO()),A=z(()=>Xu(_.workouts_visibility)),R=z(()=>Xu(_.analysis_visibility));function g(y){_.analysis_visibility=y.analysis_visibility?y.analysis_visibility:"private",_.display_ascent=y.display_ascent,_.start_elevation_at_zero=y.start_elevation_at_zero?y.start_elevation_at_zero:!1,_.use_raw_gpx_speed=y.use_raw_gpx_speed?y.use_raw_gpx_speed:!1,_.imperial_units=y.imperial_units?y.imperial_units:!1,_.language=y.language&&y.language in pi?y.language:"en",_.manually_approves_followers="manually_approves_followers"in y?y.manually_approves_followers:!0,_.map_visibility=y.map_visibility?y.map_visibility:"private",_.timezone=y.timezone?y.timezone:"Europe/Paris",_.date_format=y.date_format?y.date_format:"dd/MM/yyyy",_.weekm=y.weekm?y.weekm:!1,_.use_dark_mode=y.use_dark_mode,_.workouts_visibility=y.workouts_visibility?y.workouts_visibility:"private",_.hide_profile_in_users_directory=y.hide_profile_in_users_directory}function I(){a.dispatch(K.ACTIONS.UPDATE_USER_PREFERENCES,_)}function N(y,D){_[y]=D}function b(){_.analysis_visibility=Yu(_.analysis_visibility,_.workouts_visibility),C()}function C(){_.map_visibility=Yu(_.map_visibility,_.analysis_visibility)}return mt(()=>{n.value&&g(n.value)}),(y,D)=>{const U=j("ErrorMessage");return h(),v("div",est,[p("div",tst,[m(s)?(h(),B(U,{key:0,message:m(s)},null,8,["message"])):L("",!0),p("form",{onSubmit:ve(I,["prevent"])},[p("div",nst,S(y.$t("user.PROFILE.INTERFACE")),1),p("label",ast,[x(S(y.$t("user.PROFILE.LANGUAGE"))+" ",1),We(p("select",{id:"language","onUpdate:modelValue":D[0]||(D[0]=P=>_.language=P),disabled:m(i)},[(h(!0),v(ue,null,be(m(aE),P=>(h(),v("option",{value:P.value,key:P.value},S(P.label),9,ist))),128))],8,sst),[[Jt,_.language]])]),p("label",ost,[x(S(y.$t("user.PROFILE.THEME_MODE.LABEL"))+" ",1),We(p("select",{id:"use_dark_mode","onUpdate:modelValue":D[1]||(D[1]=P=>_.use_dark_mode=P),disabled:m(i)},[(h(),v(ue,null,be(E,P=>p("option",{value:P.value,key:P.label},S(y.$t(`user.PROFILE.THEME_MODE.VALUES.${P.label}`)),9,ust)),64))],8,rst),[[Jt,_.use_dark_mode]])]),p("label",lst,[x(S(y.$t("user.PROFILE.TIMEZONE"))+" ",1),M(Jat,{input:_.timezone,disabled:m(i),onUpdateTimezone:D[2]||(D[2]=P=>N("timezone",P))},null,8,["input","disabled"])]),p("label",cst,[x(S(y.$t("user.PROFILE.DATE_FORMAT"))+" ",1),We(p("select",{id:"date_format","onUpdate:modelValue":D[3]||(D[3]=P=>_.date_format=P),disabled:m(i)},[(h(!0),v(ue,null,be(f.value,P=>(h(),v("option",{value:P.value,key:P.value},S(P.label),9,Est))),128))],8,dst),[[Jt,_.date_format]])]),p("div",pst,[p("span",Tst,S(y.$t("user.PROFILE.FIRST_DAY_OF_WEEK")),1),p("div",mst,[(h(),v(ue,null,be(o,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.weekm,disabled:m(i),onInput:F=>N("weekm",P.value)},null,40,_st),p("span",fst,S(y.$t(`user.PROFILE.${P.label}`)),1)])),64))])]),p("div",hst,S(y.$t("user.PROFILE.TABS.ACCOUNT")),1),p("div",Sst,[p("span",Ast,S(y.$t("user.PROFILE.FOLLOW_REQUESTS_APPROVAL.LABEL")),1),p("div",Ost,[(h(),v(ue,null,be(c,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.manually_approves_followers,disabled:m(i),onInput:F=>N("manually_approves_followers",P.value)},null,40,Ist),p("span",gst,S(y.$t(`user.PROFILE.FOLLOW_REQUESTS_APPROVAL.${P.label}`)),1)])),64))])]),p("div",Rst,[p("span",Nst,S(y.$t("user.PROFILE.PROFILE_IN_USERS_DIRECTORY.LABEL")),1),p("div",vst,[(h(),v(ue,null,be(T,P=>p("label",{key:P.label},[p("input",{type:"radio",id:`hide_profile_${P.label}`,name:`hide_profile_${P.label}`,checked:P.value===_.hide_profile_in_users_directory,disabled:m(i),onInput:F=>N("hide_profile_in_users_directory",P.value)},null,40,bst),p("span",Cst,S(y.$t(`user.PROFILE.PROFILE_IN_USERS_DIRECTORY.${P.label}`)),1)])),64))])]),p("div",Pst,S(y.$t("workouts.WORKOUT",0)),1),p("div",Dst,[p("span",Lst,S(y.$t("user.PROFILE.UNITS.LABEL")),1),p("div",yst,[(h(),v(ue,null,be(r,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.imperial_units,disabled:m(i),onInput:F=>N("imperial_units",P.value)},null,40,$st),p("span",Ust,S(y.$t(`user.PROFILE.UNITS.${P.label}`)),1)])),64))])]),p("div",kst,[p("span",wst,S(y.$t("user.PROFILE.ASCENT_DATA")),1),p("div",Mst,[(h(),v(ue,null,be(u,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.display_ascent,disabled:m(i),onInput:F=>N("display_ascent",P.value)},null,40,Wst),p("span",Fst,S(y.$t(`common.${P.label}`)),1)])),64))])]),p("div",zst,[p("span",xst,S(y.$t("user.PROFILE.ELEVATION_CHART_START.LABEL")),1),p("div",Bst,[(h(),v(ue,null,be(l,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.start_elevation_at_zero,disabled:m(i),onInput:F=>N("start_elevation_at_zero",P.value)},null,40,Gst),p("span",Vst,S(y.$t(`user.PROFILE.ELEVATION_CHART_START.${P.label}`)),1)])),64))])]),p("div",Hst,[p("span",Kst,S(y.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL")),1),p("div",qst,[(h(),v(ue,null,be(d,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.use_raw_gpx_speed,disabled:m(i),onInput:F=>N("use_raw_gpx_speed",P.value)},null,40,jst),p("span",Yst,S(y.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${P.label}`)),1)])),64))]),p("div",Xst,[p("span",null,[D[8]||(D[8]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(y.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("label",Qst,[x(S(y.$t("visibility_levels.WORKOUTS_VISIBILITY"))+" ",1),We(p("select",{id:"workouts_visibility","onUpdate:modelValue":D[4]||(D[4]=P=>_.workouts_visibility=P),disabled:m(i),onChange:b},[(h(!0),v(ue,null,be(O.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,Jst))),128))],40,Zst),[[Jt,_.workouts_visibility]])]),p("label",eit,[x(S(y.$t("visibility_levels.ANALYSIS_VISIBILITY"))+" ",1),We(p("select",{id:"analysis_visibility","onUpdate:modelValue":D[5]||(D[5]=P=>_.analysis_visibility=P),disabled:m(i),onChange:C},[(h(!0),v(ue,null,be(A.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,nit))),128))],40,tit),[[Jt,_.analysis_visibility]])]),p("label",ait,[x(S(y.$t("visibility_levels.MAP_VISIBILITY"))+" ",1),We(p("select",{id:"map_visibility","onUpdate:modelValue":D[6]||(D[6]=P=>_.map_visibility=P),disabled:m(i)},[(h(!0),v(ue,null,be(R.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,iit))),128))],8,sit),[[Jt,_.map_visibility]])]),p("div",oit,[p("button",rit,S(y.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:D[7]||(D[7]=ve(P=>y.$router.push("/profile/preferences"),["prevent"]))},S(y.$t("buttons.CANCEL")),1)])],32)])])}}}),lit=se(uit,[["__scopeId","data-v-a2dba7d8"]]),cit={class:"privacy-policy-text"},dit={class:"last-update"},Eit=["innerHTML"],pit=["innerHTML"],Tit=X({__name:"PrivacyPolicy",setup(e){const{appConfig:t}=qe(),{dateFormat:n,timezone:a}=Ke(),s=["DATA_COLLECTED","INFORMATION_USAGE","INFORMATION_PROTECTION","INFORMATION_DISCLOSURE","SITE_USAGE_BY_CHILDREN","YOUR_CONSENT","ACCOUNT_DELETION","CHANGES_TO_OUR_PRIVACY_POLICY"],i=z(()=>o());function o(){return $t(t.value.privacy_policy_date,a.value,n.value,!1)}return(r,u)=>(h(),v("div",cit,[p("h1",null,S(Fe(r.$t("privacy_policy.TITLE"))),1),p("p",dit,[x(S(r.$t("privacy_policy.LAST_UPDATE"))+": ",1),p("time",null,S(i.value),1)]),m(t).privacy_policy?(h(),v("div",{key:0,innerHTML:m(Go)(m(t).privacy_policy)},null,8,Eit)):(h(),v(ue,{key:1},be(s,l=>(h(),v(ue,{key:l},[p("h2",null,S(r.$t(`privacy_policy.CONTENT.${l}.TITLE`)),1),p("p",{innerHTML:m(Go)(r.$t(`privacy_policy.CONTENT.${l}.CONTENT`))},null,8,pit)],64))),64))]))}}),QO=se(Tit,[["__scopeId","data-v-4c6083e4"]]),mit={id:"user-privacy-policy"},_it={key:1},fit={class:"policy-content"},hit={for:"accepted_policy",class:"accepted_policy"},Sit={class:"form-buttons"},Ait={class:"confirm",type:"submit"},Oit=X({__name:"UserPrivacyPolicyValidation",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),i=Ie(!1),o=Ie(!1);function r(){a.dispatch(K.ACTIONS.ACCEPT_PRIVACY_POLICY,i.value)}function u(){o.value=!0}return(l,d)=>{const E=j("ErrorMessage"),c=j("router-link"),T=j("i18n-t");return h(),v("div",mit,[m(s)?(h(),B(E,{key:0,message:m(s)},null,8,["message"])):L("",!0),m(n).accepted_privacy_policy?(h(),v("div",_it,[p("p",null,[M(T,{keypath:"user.YOU_HAVE_ACCEPTED_PRIVACY_POLICY"},{default:Y(()=>[M(c,{to:"/privacy-policy"},{default:Y(()=>[x(S(l.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})]),p("button",{class:"cancel",onClick:d[0]||(d[0]=_=>l.$router.push("/profile"))},S(l.$t("user.PROFILE.BACK_TO_PROFILE")),1)])):(h(),v("form",{key:2,class:Ae({errors:o.value}),onSubmit:d[3]||(d[3]=ve(_=>r(),["prevent"]))},[p("div",fit,[M(QO)]),p("label",hit,[We(p("input",{type:"checkbox",id:"accepted_policy",required:"","onUpdate:modelValue":d[1]||(d[1]=_=>i.value=_),onInvalid:u},null,544),[[dl,i.value]]),p("span",null,[M(T,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:Y(()=>[x(S(l.$t("privacy_policy.TITLE")),1)]),_:1})])]),M(c,{to:"/profile/edit/account"},{default:Y(()=>[x(S(l.$t("user.I_WANT_TO_DELETE_MY_ACCOUNT")),1)]),_:1}),p("div",Sit,[p("button",Ait,S(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:d[2]||(d[2]=_=>l.$router.push("/profile"))},S(l.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],34))])}}}),Iit=se(Oit,[["__scopeId","data-v-ac974385"]]),git={key:0},Rit={key:1},Nit={key:2},vit={class:"no-suspension"},bit=X({__name:"UserAccountSuspension",setup(e){const t=Le(),{authUserLoading:n,authUserSuccess:a}=Ke(),s=Ie(""),i=z(()=>t.getters[K.GETTERS.ACCOUNT_SUSPENSION]);function o(){t.dispatch(K.ACTIONS.GET_ACCOUNT_SUSPENSION)}function r(u){s.value=u,t.dispatch(K.ACTIONS.APPEAL,{actionId:i.value.id,actionType:"user_suspension",text:u})}return mt(()=>o()),ct(()=>{t.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),t.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(u,l)=>{const d=j("Loader");return m(n)&&!s.value?(h(),v("div",git,[M(d)])):i.value.id?(h(),v("div",Rit,[p("div",null,S(u.$t("user.YOUR_ACCOUNT_HAS_BEEN_SUSPENDED"))+".",1),M(bl,{"report-action":i.value,success:m(a),loading:m(n),onSubmitForm:r},{additionalButtons:Y(()=>[p("button",{onClick:l[0]||(l[0]=E=>u.$router.push("/profile"))},S(u.$t("user.PROFILE.BACK_TO_PROFILE")),1)]),_:1},8,["report-action","success","loading"])])):(h(),v("div",Nit,[p("div",vit,S(u.$t("user.ACTIVE_ACCOUNT")),1),p("button",{onClick:l[1]||(l[1]=E=>u.$router.push("/profile"))},S(u.$t("user.PROFILE.BACK_TO_PROFILE")),1)]))}}}),Cit=se(bit,[["__scopeId","data-v-2a9aa8c5"]]),Pit=["equipments:read","equipments:write","follow:read","follow:write","notifications:read","notifications:write","profile:read","profile:write","reports:read","reports:write","users:read","users:write","workouts:read","workouts:write"],Dit=["application:write"],Lit={id:"new-oauth2-app"},yit={id:"new-oauth2-title"},$it={id:"apps-form"},Uit={class:"form-items"},kit={class:"form-item"},wit={for:"app-name"},Mit={class:"form-item"},Wit={for:"app-description"},Fit={class:"form-item"},zit={for:"app-url"},xit={class:"form-item"},Bit={for:"app-redirect-uri"},Git={class:"form-item-scope"},Vit={class:"form-item-scope-label"},Hit={class:"scope-label"},Kit=["name","checked","onChange"],qit=["innerHTML"],jit={class:"form-buttons"},Yit=["disabled"],Xit=X({__name:"AddUserApp",setup(e){const t=Le(),{errorMessages:n}=qe(),{authUserHasAdminRights:a}=Ke(),s=kt({client_name:"",client_uri:"",client_description:"",description:"",redirect_uri:""}),i=kt([]),o=z(()=>d(a.value,Dit,Pit));function r(){const E={client_name:s.client_name,client_description:s.client_description,client_uri:s.client_uri,redirect_uris:[s.redirect_uri],scope:i.sort().join(" ")};t.dispatch(st.ACTIONS.CREATE_CLIENT,E)}function u(E){s.client_description=E.value}function l(E){const c=i.indexOf(E);c>-1?i.splice(c,1):i.push(E)}function d(E,c,T){const _=[...T];return E&&_.push(...c),_.sort()}return(E,c)=>{const T=j("CustomTextArea"),_=j("ErrorMessage");return h(),v("div",Lit,[p("h1",yit,S(E.$t("oauth2.ADD_A_NEW_APP")),1),p("div",$it,[p("form",{onSubmit:ve(r,["prevent"])},[p("div",Uit,[p("div",kit,[p("label",wit,S(E.$t("oauth2.APP.NAME"))+"*",1),We(p("input",{id:"app-name",type:"text",required:"","onUpdate:modelValue":c[0]||(c[0]=f=>s.client_name=f)},null,512),[[ot,s.client_name]])]),p("div",Mit,[p("label",Wit,S(E.$t("oauth2.APP.DESCRIPTION")),1),M(T,{name:"app-description",charLimit:200,input:s.description,onUpdateValue:u},null,8,["input"])]),p("div",Fit,[p("label",zit,S(E.$t("oauth2.APP.URL"))+"*",1),We(p("input",{id:"app-url",type:"text",required:"","onUpdate:modelValue":c[1]||(c[1]=f=>s.client_uri=f)},null,512),[[ot,s.client_uri]])]),p("div",xit,[p("label",Bit,S(E.$t("oauth2.APP.REDIRECT_URL"))+"* ",1),We(p("input",{id:"app-redirect-uri",type:"text",required:"","onUpdate:modelValue":c[2]||(c[2]=f=>s.redirect_uri=f)},null,512),[[ot,s.redirect_uri]])]),p("div",Git,[p("div",Vit,S(E.$t("oauth2.APP.SCOPE.LABEL"))+"* ",1),(h(!0),v(ue,null,be(o.value,f=>(h(),v("div",{class:"form-item-scope-checkboxes",key:f},[p("label",Hit,[p("input",{type:"checkbox",name:f,checked:i.includes(f),onChange:O=>l(f)},null,40,Kit),p("code",null,S(f),1)]),p("p",{class:"scope-description",innerHTML:E.$t(`oauth2.APP.SCOPE.${f}_DESCRIPTION`)},null,8,qit)]))),128))])]),m(n)?(h(),B(_,{key:0,message:m(n)},null,8,["message"])):L("",!0),p("div",jit,[p("button",{class:"confirm",type:"submit",disabled:i.length===0},S(E.$t("buttons.SUBMIT")),9,Yit),p("button",{class:"cancel",onClick:c[3]||(c[3]=ve(()=>E.$router.push("/profile/apps"),["prevent"]))},S(E.$t("buttons.CANCEL")),1)])],32)])])}}}),Qit=se(Xit,[["__scopeId","data-v-f0f43085"]]),Zit={id:"authorize-oauth2-app"},Jit={key:0},eot={id:"authorize-oauth2-title"},tot={class:"oauth2-access description-list"},not={class:"client-scope"},aot=["innerHTML"],sot={class:"authorize-oauth2-buttons"},iot={key:1},oot={class:"no-app"},rot=X({__name:"AuthorizeUserApp",setup(e){const t=ut(),n=Le(),{errorMessages:a}=qe(),s=z(()=>n.getters[st.GETTERS.CLIENT]);function i(){t.query.client_id&&typeof t.query.client_id=="string"&&n.dispatch(st.ACTIONS.GET_CLIENT_BY_CLIENT_ID,t.query.client_id)}function o(){n.dispatch(st.ACTIONS.AUTHORIZE_CLIENT,{client_id:`${t.query.client_id}`,redirect_uri:`${t.query.redirect_uri}`,response_type:`${t.query.response_type}`,scope:`${t.query.scope}`,state:`${t.query.state?t.query.state:""}`,code_challenge:`${t.query.code_challenge?t.query.code_challenge:""}`,code_challenge_method:`${t.query.code_challenge_method?t.query.code_challenge_method:""}`})}return et(()=>i()),(r,u)=>{const l=j("router-link"),d=j("i18n-t"),E=j("ErrorMessage");return h(),v("div",Zit,[s.value.client_id?(h(),v("div",Jit,[p("h1",eot,[M(d,{keypath:"oauth2.AUTHORIZE_APP"},{default:Y(()=>[M(l,{to:{name:"UserApp",params:{id:s.value.id}}},{default:Y(()=>[x(S(s.value.name),1)]),_:1},8,["to"])]),_:1})]),m(a)?(h(),B(E,{key:0,message:m(a)},null,8,["message"])):L("",!0),p("div",tot,[p("p",null,S(r.$t("oauth2.APP_REQUESTING_ACCESS")),1),p("dl",null,[(h(!0),v(ue,null,be(s.value.scope.split(" "),c=>(h(),v(ue,{key:c},[p("dt",not,[p("code",null,S(c),1)]),p("dd",{innerHTML:r.$t(`oauth2.APP.SCOPE.${c}_DESCRIPTION`)},null,8,aot)],64))),128))]),p("div",sot,[p("button",{class:"danger",onClick:o},S(r.$t("buttons.AUTHORIZE")),1),p("button",{class:"cancel",onClick:u[0]||(u[0]=c=>r.$router.push("/profile/apps"))},S(r.$t("buttons.CANCEL")),1)])])])):(h(),v("div",iot,[p("p",oot,S(r.$t("oauth2.NO_APP")),1),p("button",{onClick:u[1]||(u[1]=c=>r.$router.push("/profile/apps"))},S(r.$t("buttons.BACK")),1)]))])}}}),uot=se(rot,[["__scopeId","data-v-6462d75b"]]),lot={id:"oauth2-apps"},cot=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le();return ct(()=>{a.commit(st.MUTATIONS.SET_CLIENTS,[])}),(s,i)=>{const o=j("router-view");return h(),v("div",lot,[M(o,{authUser:m(n)},null,8,["authUser"])])}}}),dot={id:"oauth2-app",class:"description-list"},Eot={key:1},pot={key:0,class:"info-box success-message"},Tot=["title"],mot={key:0},_ot={key:1,class:"app-secret"},fot=["title"],hot={class:"client-scopes"},Sot={class:"app-buttons"},Aot={key:2},Oot={class:"no-app"},Iot=X({__name:"UserApp",props:{authUser:{},afterCreation:{type:Boolean,default:!1}},setup(e){const t=e,{afterCreation:n,authUser:a}=fe(t),s=ut(),i=Le(),o=Ie(!1),r=Ie(""),u=Ie(!1),l=Ie(!1),d=Ie(!1),E=z(()=>i.getters[st.GETTERS.CLIENT]),c=z(()=>i.getters[st.GETTERS.REVOCATION_SUCCESSFUL]);function T(){!n.value&&s.params.id&&typeof s.params.id=="string"&&i.dispatch(st.ACTIONS.GET_CLIENT_BY_ID,+s.params.id)}function _(g){r.value=g?"oauth2.APP_DELETION_CONFIRMATION":"oauth2.TOKENS_REVOCATION_CONFIRMATION",f(!0)}function f(g){o.value=g,g||(r.value="")}function O(g){r.value==="oauth2.APP_DELETION_CONFIRMATION"?i.dispatch(st.ACTIONS.DELETE_CLIENT,g):i.dispatch(st.ACTIONS.REVOKE_ALL_TOKENS,g)}function A(){navigator.clipboard.writeText(E.value.client_id),u.value=!0,l.value=!1,setTimeout(()=>{u.value=!1},3e3)}function R(){E.value.client_secret&&(navigator.clipboard.writeText(E.value.client_secret),l.value=!0,u.value=!1,setTimeout(()=>{l.value=!1},3e3))}return Ce(()=>c.value,g=>{g&&f(!1)}),et(()=>{T(),navigator.clipboard&&(d.value=!0)}),ct(()=>{i.commit(st.MUTATIONS.EMPTY_CLIENT),i.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1)}),(g,I)=>{const N=j("Modal");return h(),v("div",dot,[o.value?(h(),B(N,{key:0,title:g.$t("common.CONFIRMATION"),message:g.$t(r.value),onConfirmAction:I[0]||(I[0]=b=>O(E.value.id)),onCancelAction:I[1]||(I[1]=b=>f(!1)),onKeydown:I[2]||(I[2]=Ye(b=>f(!1),["esc"]))},null,8,["title","message"])):L("",!0),E.value&&E.value.client_id?(h(),v("div",Eot,[m(n)||c.value?(h(),v("div",pot,S(g.$t(m(n)?"oauth2.APP_CREATED_SUCCESSFULLY":"oauth2.TOKENS_REVOKED")),1)):L("",!0),p("dl",null,[p("dt",null,S(g.$t("oauth2.APP.CLIENT_ID"))+":",1),p("dd",null,[x(S(E.value.client_id)+" ",1),m(n)&&d.value?(h(),v("i",{key:0,class:Ae(`fa fa-${u.value?"check":"copy"}`),"aria-hidden":"true",title:g.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:A},null,10,Tot)):L("",!0)]),m(n)&&E.value.client_secret?(h(),v("dt",mot,S(g.$t("oauth2.APP.CLIENT_SECRET"))+": ",1)):L("",!0),m(n)&&E.value.client_secret?(h(),v("dd",_ot,[x(S(E.value.client_secret)+" ",1),d.value?(h(),v("i",{key:0,class:Ae(`fa fa-${l.value?"check":"copy"}`),"aria-hidden":"true",title:g.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:R},null,10,fot)):L("",!0)])):L("",!0),p("dt",null,S(Fe(g.$t("oauth2.APP.ISSUE_AT")))+":",1),p("dd",null,[p("time",null,S(m($t)(E.value.issued_at,m(a).timezone,m(a).date_format)),1)]),p("dt",null,S(g.$t("oauth2.APP.NAME"))+":",1),p("dd",null,S(E.value.name),1),p("dt",null,S(g.$t("oauth2.APP.DESCRIPTION"))+":",1),p("dd",{class:Ae({"no-description":!E.value.client_description})},S(E.value.client_description?E.value.client_description:g.$t("common.NO_DESCRIPTION")),3),p("dt",null,S(g.$t("oauth2.APP.URL"))+":",1),p("dd",null,S(E.value.website),1),p("dt",null,S(g.$t("oauth2.APP.REDIRECT_URL"))+":",1),p("dd",null,S(E.value.redirect_uris.length>0?E.value.redirect_uris[0]:""),1),p("dt",null,S(g.$t("oauth2.APP.SCOPE.LABEL"))+":",1),p("dd",hot,[(h(!0),v(ue,null,be(E.value.scope.split(" "),b=>(h(),v("span",{class:"client-scope",key:b},[p("code",null,S(b),1)]))),128))])]),p("div",Sot,[p("button",{class:"danger",onClick:I[3]||(I[3]=b=>_(!1))},S(g.$t("oauth2.REVOKE_ALL_TOKENS")),1),p("button",{class:"danger",onClick:I[4]||(I[4]=b=>_(!0))},S(g.$t("oauth2.DELETE_APP")),1),p("button",{onClick:I[5]||(I[5]=b=>g.$router.push("/profile/apps"))},S(g.$t("buttons.BACK")),1)])])):(h(),v("div",Aot,[p("p",Oot,S(g.$t("oauth2.NO_APP")),1),p("button",{onClick:I[6]||(I[6]=b=>g.$router.push("/profile/apps"))},S(g.$t("buttons.BACK")),1)]))])}}}),Uh=se(Iot,[["__scopeId","data-v-7371d7c1"]]),got={id:"oauth2-apps-list"},Rot={class:"apps-list"},Not={key:0},vot={class:"app-issued-at"},bot={key:1,class:"no-apps"},Cot={class:"app-list-buttons"},Pot=X({__name:"UserAppsList",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),s=ut();let i=u(s.query);const o=z(()=>a.getters[st.GETTERS.CLIENTS]),r=z(()=>a.getters[st.GETTERS.CLIENTS_PAGINATION]);function u(d){const E={};return d.page&&(E.page=Ho(d.page,Wl)),E}function l(d){a.dispatch(st.ACTIONS.GET_CLIENTS,d)}return Ce(()=>s.query,async d=>{i=u(d),l(i)}),et(()=>{l(i)}),(d,E)=>{const c=j("router-link");return h(),v("div",got,[p("h1",Rot,S(d.$t("oauth2.APPS_LIST")),1),o.value.length>0?(h(),v("ul",Not,[(h(!0),v(ue,null,be(o.value,T=>(h(),v("li",{key:T.client_id},[M(c,{to:{name:"UserApp",params:{id:T.id}}},{default:Y(()=>[x(S(T.name),1)]),_:2},1032,["to"]),p("span",vot,[x(S(d.$t("oauth2.APP.ISSUE_AT"))+" ",1),p("time",null,S(m($t)(T.issued_at,m(n).timezone,m(n).date_format)),1)])]))),128))])):(h(),v("div",bot,S(d.$t("oauth2.NO_APPS")),1)),o.value.length>0?(h(),B(oa,{key:2,pagination:r.value,path:"/profile/apps",query:m(i)},null,8,["pagination","query"])):L("",!0),p("div",Cot,[m(n).suspended_at?L("",!0):(h(),v("button",{key:0,onClick:E[0]||(E[0]=T=>d.$router.push("/profile/apps/new"))},S(d.$t("oauth2.NEW_APP")),1)),p("button",{onClick:E[1]||(E[1]=T=>d.$router.push("/"))},S(d.$t("common.HOME")),1)])])}}}),Dot=se(Pot,[["__scopeId","data-v-018b8e7c"]]);function cd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Lot(e){return(...t)=>!e(...t)}function yot(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function ZO(e,t,n,a){return t?e.filter(s=>yot(a(s,n),t)).sort((s,i)=>a(s,n).length-a(i,n).length):e}function $ot(e){return e.filter(t=>!t.$isLabel)}function dd(e,t){return n=>n.reduce((a,s)=>s[e]&&s[e].length?(a.push({$groupLabel:s[t],$isLabel:!0}),a.concat(s[e])):a,[])}function Uot(e,t,n,a,s){return i=>i.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const r=ZO(o[n],e,t,s);return r.length?{[a]:o[a],[n]:r}:[]})}const kh=(...e)=>t=>e.reduce((n,a)=>a(n),t);var kot={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return cd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):ZO(n,t,this.label,this.customLabel):n=this.groupValues?dd(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Lot(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return kh(Uot(t,n,this.groupValues,this.groupLabel,this.customLabel),dd(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return kh(dd(this.groupValues,this.groupLabel),$ot)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(cd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return cd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(s=>s[this.trackBy]):t[this.groupValues],a=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",a)}else{let n=t[this.groupValues].filter(a=>!(this.isOptionDisabled(a)||this.isSelected(a)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const a=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",a)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},wot={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(a=>a[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},JO={name:"vue-multiselect",mixins:[kot,wot],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Mot={ref:"tags",class:"multiselect__tags"},Wot={class:"multiselect__tags-wrap"},Fot={class:"multiselect__spinner"},zot={key:0},xot={class:"multiselect__option"},Bot={class:"multiselect__option"},Got=x("No elements found. Consider changing the search query."),Vot={class:"multiselect__option"},Hot=x("List is empty.");function Kot(e,t,n,a,s,i){return h(),B("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=Ye(ve(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=Ye(ve(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=Ye(ve(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=Ye(o=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[Pt(e.$slots,"caret",{toggle:e.toggle},()=>[M("div",{onMousedown:t[1]||(t[1]=ve(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Pt(e.$slots,"clear",{search:e.search}),M("div",Mot,[Pt(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:i.visibleValues,isOpen:e.isOpen},()=>[We(M("div",Wot,[(h(!0),B(ue,null,be(i.visibleValues,(o,r)=>Pt(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(h(),B("span",{class:"multiselect__tag",key:r},[M("span",{textContent:S(e.getOptionLabel(o))},null,8,["textContent"]),M("i",{tabindex:"1",onKeypress:Ye(ve(u=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:ve(u=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[xi,i.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Pt(e.$slots,"limit",{key:0},()=>[M("strong",{class:"multiselect__strong",textContent:S(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):L("v-if",!0)]),M(LT,{name:"multiselect__loading"},{default:Y(()=>[Pt(e.$slots,"loading",{},()=>[We(M("div",Fot,null,512),[[xi,n.loading]])])]),_:3}),e.searchable?(h(),B("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:n.required,style:i.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=ve(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=ve(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=Ye(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=Ye(ve(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=Ye(ve(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=Ye(ve(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=Ye(ve(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-controls"])):L("v-if",!0),i.isSingleLabelVisible?(h(),B("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=ve((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Pt(e.$slots,"singleLabel",{option:i.singleValue},()=>[x(S(e.currentOptionLabel),1)])],32)):L("v-if",!0),i.isPlaceholderVisible?(h(),B("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=ve((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Pt(e.$slots,"placeholder",{},()=>[x(S(e.placeholder),1)])],32)):L("v-if",!0)],512),M(LT,{name:"multiselect"},{default:Y(()=>[We(M("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=ve(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[M("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Pt(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(h(),B("li",zot,[M("span",xot,[Pt(e.$slots,"maxElements",{},()=>[x("Maximum of "+S(e.max)+" options selected. First remove a selected option to select another.",1)])])])):L("v-if",!0),!e.max||e.internalValue.length(h(),B("li",{class:"multiselect__element",key:r,"aria-selected":e.isSelected(o),id:e.id+"-"+r,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?L("v-if",!0):(h(),B("span",{key:0,class:[e.optionHighlight(r,o),"multiselect__option"],onClick:ve(u=>e.select(o),["stop"]),onMouseenter:ve(u=>e.pointerSet(r),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[Pt(e.$slots,"option",{option:o,search:e.search,index:r},()=>[M("span",null,S(e.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(h(),B("span",{key:1,"data-select":e.groupSelect&&i.selectGroupLabelText,"data-deselect":e.groupSelect&&i.deselectGroupLabelText,class:[e.groupHighlight(r,o),"multiselect__option"],onMouseenter:ve(u=>e.groupSelect&&e.pointerSet(r),["self"]),onMousedown:ve(u=>e.selectGroup(o),["prevent"])},[Pt(e.$slots,"option",{option:o,search:e.search,index:r},()=>[M("span",null,S(e.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):L("v-if",!0)],8,["aria-selected","id","role"]))),128)):L("v-if",!0),We(M("li",null,[M("span",Bot,[Pt(e.$slots,"noResult",{search:e.search},()=>[Got])])],512),[[xi,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),We(M("li",null,[M("span",Vot,[Pt(e.$slots,"noOptions",{},()=>[Hot])])],512),[[xi,n.showNoOptions&&(e.options.length===0||i.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Pt(e.$slots,"afterList")],12,["id","aria-multiselectable"])],36),[[xi,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}JO.render=Kot;const qot=X({__name:"SportsMultiSelect",props:{sports:{},name:{},equipmentSports:{default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["updatedValues"],setup(e,{emit:t}){const n=e,{equipmentSports:a,name:s,sports:i}=fe(n),o=t,r=Ie([]);function u(l){o("updatedValues",l.map(d=>d.id))}return Ce(()=>a.value,async l=>{r.value=l,u(l)}),et(()=>{a.value&&(r.value=a.value)}),(l,d)=>m(i)?(h(),B(m(JO),{key:0,placeholder:"",id:m(s),name:m(s),disabled:l.disabled,modelValue:r.value,"onUpdate:modelValue":[d[0]||(d[0]=E=>r.value=E),u],multiple:!0,options:m(i),taggable:!0,label:"translatedLabel","track-by":"id",selectLabel:l.$t("workouts.MULTISELECT.selectLabel"),selectedLabel:l.$t("workouts.MULTISELECT.selectedLabel"),deselectLabel:l.$t("workouts.MULTISELECT.deselectLabel")},null,8,["id","name","disabled","modelValue","options","selectLabel","selectedLabel","deselectLabel"])):L("",!0)}}),jot=se(qot,[["__scopeId","data-v-016d8e47"]]);function jp(){const e=ut(),t=Le(),{t:n}=yt(),a=z(()=>u(s.value)),s=z(()=>t.getters[xe.GETTERS.EQUIPMENTS]),i=z(()=>t.getters[xe.GETTERS.LOADING]),o=z(()=>t.getters[xe.GETTERS.EQUIPMENT_TYPES]),r=z(()=>CO(o.value,n));function u(l){if(!e.params.id)return null;const d=l.filter(E=>e.params.id?E.id===e.params.id:null);return d.length===0?null:d[0]}return{equipment:a,equipments:s,equipmentTypes:o,translatedEquipmentTypes:r,equipmentsLoading:i}}const Yot={id:"new-equipment"},Xot={key:0,id:"new-equipment-title"},Qot={id:"equipment-form"},Zot={class:"form-items"},Jot={class:"form-item"},ert={for:"equipment-label"},trt={class:"equipment-label-help"},nrt={class:"info-box"},art={class:"form-item"},srt={for:"equipment-type-id"},irt=["value"],ort={key:0,class:"equipment-warning"},rrt={class:"info-box"},urt={class:"form-item"},lrt={for:"equipment-description"},crt={key:1,class:"form-item-checkbox"},drt={for:"equipment-active"},Ert={class:"form-item"},prt={for:"equipment-sports"},Trt={class:"form-buttons"},mrt=["disabled"],_rt=["disabled"],frt=X({__name:"EquipmentEdition",props:{translatedEquipmentTypes:{},equipmentsLoading:{type:Boolean}},setup(e){const t=e,{equipmentsLoading:n,translatedEquipmentTypes:a}=fe(t),s=Le(),i=ut(),{t:o}=yt(),{errorMessages:r}=qe(),{equipment:u}=jp(),l=kt({id:"",label:"",description:"",equipmentTypeId:0,isActive:!0,defaultForSportIds:[]}),d=Ie(!1),E=z(()=>ia(s.getters[Ht.GETTERS.SPORTS],o)),c=z(()=>a.value.filter(b=>b.id===l.equipmentTypeId)),T=z(()=>c.value.length>0?E.value.filter(b=>PO[c.value[0].label].includes(b.label)):[]),_=Ie([]),f=z(()=>a.value.filter(b=>{var C;return b.is_active||((C=u.value)==null?void 0:C.equipment_type.id)===b.id}));function O(b){_.value=ia(E.value,o,"all").filter(C=>b.default_for_sport_ids.includes(C.id))}function A(b){l.id=b.id,l.label=b.label,l.description=b.description?b.description:"",l.equipmentTypeId=b.equipment_type.id,l.isActive=b.is_active,O(b)}function R(){s.dispatch(xe.ACTIONS[l.id?"UPDATE_EQUIPMENT":"ADD_EQUIPMENT"],l)}function g(b){l.description=b}function I(){d.value=!0}function N(b){l.defaultForSportIds=b}return Ce(()=>u.value,b=>{i.params.id&&(b!=null&&b.id)&&A(b)}),Ce(()=>l.equipmentTypeId,b=>{u.value&&b===u.value.equipment_type.id?O(u.value):_.value=[]}),mt(()=>{var C;const b=document.getElementById("equipment-label");b==null||b.focus(),i.params.id&&i.params.id&&(C=u.value)!=null&&C.id&&A(u.value)}),(b,C)=>{var U,P;const y=j("CustomTextArea"),D=j("ErrorMessage");return h(),v("div",Yot,[l.id?L("",!0):(h(),v("h1",Xot,S(b.$t("equipments.ADD_A_NEW_EQUIPMENT")),1)),p("div",Qot,[p("form",{class:Ae({errors:d.value}),onSubmit:ve(R,["prevent"])},[p("div",Zot,[p("div",Jot,[p("label",ert,S(Fe(b.$t("common.LABEL")))+"* ",1),We(p("input",{id:"equipment-label",maxlength:"50",type:"text",required:"",onInvalid:I,"onUpdate:modelValue":C[0]||(C[0]=F=>l.label=F)},null,544),[[ot,l.label]]),p("div",trt,[p("span",nrt,[C[4]||(C[4]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("equipments.50_CHARACTERS_MAX")),1)])])]),p("div",art,[p("label",srt,S(Fe(b.$t("equipments.EQUIPMENT_TYPE")))+"* ",1),We(p("select",{id:"equipment-type-id",required:"",onInvalid:I,"onUpdate:modelValue":C[1]||(C[1]=F=>l.equipmentTypeId=F)},[(h(!0),v(ue,null,be(f.value,F=>(h(),v("option",{value:F.id,key:F.id},S(F.translatedLabel)+" "+S(F.is_active?"":`(${b.$t("common.INACTIVE")})`),9,irt))),128))],544),[[Jt,l.equipmentTypeId]])]),(U=m(u))!=null&&U.workouts_count&&l.equipmentTypeId!==((P=m(u))==null?void 0:P.equipment_type.id)?(h(),v("div",ort,[p("span",rrt,[C[5]||(C[5]=p("i",{class:"fa fa-exclamation-triangle warning","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("equipments.ALL_WORKOUTS_ASSOCIATIONS_REMOVED")),1)])])):L("",!0),p("div",urt,[p("label",lrt,S(b.$t("common.DESCRIPTION")),1),M(y,{name:"equipment-description",charLimit:200,input:l.description,onUpdateValue:g},null,8,["input"])]),l.id?(h(),v("div",crt,[p("label",drt,S(Fe(b.$t("common.ACTIVE"))),1),We(p("input",{id:"equipment-active",name:"equipment-active",type:"checkbox","onUpdate:modelValue":C[2]||(C[2]=F=>l.isActive=F)},null,512),[[dl,l.isActive]])])):L("",!0),p("div",Ert,[p("label",prt,S(Fe(b.$t("equipments.DEFAULT_FOR_SPORTS",0))),1),M(jot,{sports:T.value,name:"equipment-sports",equipmentSports:_.value,disabled:!l.equipmentTypeId,onUpdatedValues:N},null,8,["sports","equipmentSports","disabled"])])]),m(r)?(h(),B(D,{key:0,message:m(r)},null,8,["message"])):L("",!0),p("div",Trt,[p("button",{class:"confirm",type:"submit",disabled:m(n)},S(b.$t("buttons.SUBMIT")),9,mrt),p("button",{class:"cancel",disabled:m(n),onClick:C[3]||(C[3]=ve(()=>{var F;return b.$router.push((F=m(u))!=null&&F.id?b.$route.query.fromEdition?"/profile/edit/equipments":`/profile/equipments/${m(u).id}`:"/profile/equipments")},["prevent"]))},S(b.$t("buttons.CANCEL")),9,_rt)])],34)])])}}}),wh=se(frt,[["__scopeId","data-v-a596b0f9"]]),hrt={key:0,id:"user-equipments"},Mh=X({__name:"index",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,{user:n}=fe(t),a=ut(),s=Le(),{equipments:i,translatedEquipmentTypes:o,equipmentsLoading:r}=jp();return Ce(()=>a.name,u=>{u==="UserEquipmentsList"&&s.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),et(()=>{s.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES),s.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),(u,l)=>{const d=j("router-view");return m(o)?(h(),v("div",hrt,[M(d,{authUser:m(n),equipments:m(i),translatedEquipmentTypes:m(o),isEdition:u.isEdition,equipmentsLoading:m(r)},null,8,["authUser","equipments","translatedEquipmentTypes","isEdition","equipmentsLoading"])])):L("",!0)}}}),Srt=(e,t=!1)=>{let n="0";t&&(n=String(Math.floor(e/86400)),e%=86400);const a=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;const s=String(Math.floor(e/60)).padStart(2,"0"),i=String(e%60).padStart(2,"0");return t?`${n==="0"?"":`${n}d `}${a==="00"?"":`${a}h `}${s}m ${i}s`:`${a==="00"?"":`${a}:`}${s}:${i}`},Yp=(e,t)=>{const n=e.match(/day/g)?e.split(", ")[1]:e;return{days:e.match(/day/g)?`${e.split(" ")[0]} ${e.match(/days/g)?t("common.DAY",2):t("common.DAY",1)}`:`0 ${t("common.DAY",2)},`,duration:`${n.split(":")[0]}h ${n.split(":")[1]}min`}},AE=(e,t)=>{if(e.match(/day/g)){const n=Yp(e,t);return`${n.days}, ${n.duration}`}return e},Art={key:0,id:"user-equipment",class:"description-list"},Ort={class:"equipment-type"},Irt={key:0,class:"equipment-description"},grt={key:1,class:"no-description"},Rrt={class:"duration-detail"},Nrt={class:"sports-list"},vrt={class:"equipment-buttons"},brt=["disabled"],Crt=["disabled"],Prt=["disabled"],Drt=["disabled"],Lrt={key:1},yrt={class:"no-equipment"},$rt=["disabled"],Urt=X({__name:"UserEquipment",props:{authUser:{},equipmentsLoading:{type:Boolean}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),{t:s}=yt(),{errorMessages:i}=qe(),{equipment:o}=jp(),{sportColors:r,sports:u}=nn(),l=Ie(!1),d=z(()=>ia(u.value,s,"all",n.value.sports_list).filter(_=>{var f;return o.value?(f=o.value)==null?void 0:f.default_for_sport_ids.includes(_.id):!1}));function E(_){l.value=_}function c(){var _,f;if((_=o.value)!=null&&_.id){const O={id:o.value.id};((f=o.value)==null?void 0:f.workouts_count)>0&&(O.force=!0),a.dispatch(xe.ACTIONS.DELETE_EQUIPMENT,O)}}function T(_){a.dispatch(xe.ACTIONS.REFRESH_EQUIPMENT,_)}return et(()=>{a.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),(_,f)=>{const O=j("Modal"),A=j("EquipmentTypeImage"),R=j("router-link"),g=j("Distance"),I=j("SportImage"),N=j("ErrorMessage");return m(o)?(h(),v("div",Art,[l.value?(h(),B(O,{key:0,title:_.$t("common.CONFIRMATION"),message:"user.PROFILE.EQUIPMENTS.CONFIRM_EQUIPMENT_DELETION",strongMessage:m(o).label,warning:m(o).workouts_count>0?_.$t("user.PROFILE.EQUIPMENTS.EQUIPMENT_ASSOCIATED_WITH_WORKOUTS"):"",onConfirmAction:c,onCancelAction:f[0]||(f[0]=b=>E(!1)),onKeydown:f[1]||(f[1]=Ye(b=>E(!1),["esc"]))},null,8,["title","strongMessage","warning"])):L("",!0),p("dl",null,[p("dt",null,S(Fe(_.$t("common.LABEL"))),1),p("dd",null,S(m(o).label),1),p("dt",null,S(Fe(_.$t("equipments.EQUIPMENT_TYPE"))),1),p("dd",Ort,[M(A,{title:_.$t(`equipment_types.${m(o).equipment_type.label}.LABEL`),"equipment-type-label":m(o).equipment_type.label},null,8,["title","equipment-type-label"]),p("span",null,S(_.$t(`equipment_types.${m(o).equipment_type.label}.LABEL`))+" "+S(m(o).equipment_type.is_active?"":`(${_.$t("common.INACTIVE")})`),1)]),p("dt",null,S(_.$t("common.DESCRIPTION")),1),p("dd",null,[m(o).description?(h(),v("span",Irt,S(m(o).description),1)):(h(),v("span",grt,S(_.$t("common.NO_DESCRIPTION")),1))]),p("dt",null,S(Fe(_.$t("workouts.WORKOUT",0))),1),p("dd",null,[m(o).workouts_count?(h(),B(R,{key:0,to:`/workouts?equipment_id=${m(o).id}`},{default:Y(()=>[x(S(m(o).workouts_count),1)]),_:1},8,["to"])):(h(),v(ue,{key:1},[x(S(m(o).workouts_count),1)],64))]),p("dt",null,S(Fe(_.$t("workouts.TOTAL_DISTANCE",0))),1),p("dd",null,[M(g,{distance:m(o).total_distance,unitFrom:"km",digits:2,displayUnit:!1,useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"]),p("span",null,S(m(n).imperial_units?"miles":"km"),1)]),p("dt",null,S(Fe(_.$t("workouts.TOTAL_DURATION",0))),1),p("dd",null,[x(S(m(AE)(m(o).total_moving,_.$t))+" ",1),m(o).total_duration!==m(o).total_moving?(h(),v(ue,{key:0},[f[7]||(f[7]=x(" (")),p("span",Rrt,S(_.$t("common.TOTAL_DURATION_WITH_PAUSES"))+": ",1),x(" "+S(m(AE)(m(o).total_duration,_.$t))+") ",1)],64)):L("",!0)]),p("dt",null,S(Fe(_.$t("common.ACTIVE",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${m(o).is_active?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),m(o).default_for_sport_ids.length>0?(h(),v(ue,{key:0},[p("dt",null,S(Fe(_.$t("equipments.DEFAULT_FOR_SPORTS",0))),1),p("dd",Nrt,[(h(!0),v(ue,null,be(d.value,b=>(h(),v("span",{class:Ae(["sport-badge",{inactive:!b.is_active_for_user}]),key:b.label},[M(I,{title:b.translatedLabel,"sport-label":b.label,color:b.color?b.color:m(r)[b.label]},null,8,["title","sport-label","color"]),M(R,{to:`/profile/sports/${b.id}?fromEquipmentId=${m(o).id}`},{default:Y(()=>[x(S(b.translatedLabel)+" "+S(b.is_active_for_user?"":`(${_.$t("common.INACTIVE")})`),1)]),_:2},1032,["to"])],2))),128))])],64)):L("",!0)]),m(i)?(h(),B(N,{key:1,message:m(i)},null,8,["message"])):L("",!0),p("div",vrt,[m(n).suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:f[2]||(f[2]=b=>_.$router.push(`/profile/edit/equipments/${m(o).id}`)),disabled:_.equipmentsLoading},S(_.$t("buttons.EDIT")),9,brt),p("button",{disabled:_.equipmentsLoading,onClick:f[3]||(f[3]=b=>T(m(o).id))},S(_.$t("buttons.REFRESH_TOTALS")),9,Crt),p("button",{class:"danger",onClick:f[4]||(f[4]=b=>l.value=!0),disabled:_.equipmentsLoading},S(_.$t("buttons.DELETE")),9,Prt)],64)),p("button",{disabled:_.equipmentsLoading,onClick:f[5]||(f[5]=b=>_.$router.push(_.$route.query.fromWorkoutId?`/workouts/${_.$route.query.fromWorkoutId}`:_.$route.query.fromSportId?`/profile/sports/${_.$route.query.fromSportId}`:"/profile/equipments"))},S(_.$t("buttons.BACK")),9,Drt)])])):(h(),v("div",Lrt,[p("p",yrt,S(_.$t("equipments.NO_EQUIPMENT")),1),p("button",{onClick:f[6]||(f[6]=b=>_.$router.push("/profile/equipments")),disabled:_.equipmentsLoading},S(_.$t("buttons.BACK")),9,$rt)]))}}}),krt=se(Urt,[["__scopeId","data-v-a3438555"]]),wrt={id:"user-equipments-list"},Mrt={key:0,class:"mobile-display"},Wrt={key:1,class:"equipments-list"},Frt={key:3},zrt={class:"responsive-table"},xrt={class:"text-left"},Brt={class:"text-left"},Grt={class:"text-left"},Vrt={class:"text-left"},Hrt={key:0},Krt={class:"equipment-label"},qrt={class:"cell-heading"},jrt={class:"column"},Yrt={class:"cell-heading"},Xrt={class:"column"},Qrt={class:"cell-heading"},Zrt={class:"active"},Jrt={class:"cell-heading"},eut={key:0,class:"action-buttons"},tut={class:"cell-heading"},nut=["onClick"],aut={class:"equipments-list-buttons"},sut=X({__name:"UserEquipmentsList",props:{equipments:{},translatedEquipmentTypes:{},authUser:{},isEdition:{type:Boolean}},setup(e){const t=e,{authUser:n,isEdition:a,equipments:s,translatedEquipmentTypes:i}=fe(t),o=z(()=>r(s.value));function r(u){const l={};return u.map(d=>{d.equipment_type.id in l?l[d.equipment_type.id].push(d):l[d.equipment_type.id]=[d]}),l}return(u,l)=>{const d=j("EquipmentTypeImage"),E=j("router-link"),c=j("Distance");return h(),v("div",wrt,[m(s).length>0?(h(),v("div",Mrt,[m(a)?L("",!0):(h(),v("button",{key:0,onClick:l[0]||(l[0]=T=>u.$router.push("/profile/edit/equipments"))},S(u.$t("equipments.EDIT_EQUIPMENTS")),1)),m(a)?L("",!0):(h(),v("button",{key:1,onClick:l[1]||(l[1]=T=>u.$router.push("/profile/equipments/new"))},S(u.$t("equipments.NEW_EQUIPMENT")),1)),m(a)?(h(),v("button",{key:2,onClick:l[2]||(l[2]=T=>u.$router.push("/profile/equipments"))},S(u.$t("buttons.BACK")),1)):(h(),v("button",{key:3,onClick:l[3]||(l[3]=T=>u.$router.push("/"))},S(u.$t("common.HOME")),1))])):L("",!0),m(a)?L("",!0):(h(),v("h1",Wrt,S(u.$t("user.PROFILE.EQUIPMENTS.YOUR_EQUIPMENTS")),1)),m(s).length===0?(h(),v("p",{key:2,class:Ae(["no-equipments",{edition:m(a)}])},S(u.$t("equipments.NO_EQUIPMENTS")),3)):(h(),v("div",Frt,[(h(!0),v(ue,null,be(m(i),T=>(h(),v(ue,{key:T.label},[o.value[T.id]?(h(),v(ue,{key:0},[p("h2",null,[M(d,{title:T.translatedLabel,"equipment-type-label":T.label},null,8,["title","equipment-type-label"]),x(" "+S(T.translatedLabel)+" "+S(T.is_active?"":`(${u.$t("common.INACTIVE")})`),1)]),p("div",zrt,[p("table",null,[p("thead",null,[p("tr",null,[p("th",xrt,S(u.$t("common.LABEL")),1),p("th",Brt,S(u.$t("workouts.WORKOUT",0)),1),p("th",Grt,S(Fe(u.$t("workouts.TOTAL_DISTANCE"))),1),p("th",Vrt,S(u.$t("common.ACTIVE")),1),m(a)&&!m(n).suspended_at?(h(),v("th",Hrt,S(u.$t("common.ACTION")),1)):L("",!0),l[8]||(l[8]=p("th",null,null,-1))])]),p("tbody",null,[(h(!0),v(ue,null,be(o.value[T.id].sort(m(Gp)),_=>(h(),v("tr",{key:_.label},[p("td",Krt,[p("span",qrt,S(u.$t("common.LABEL")),1),M(E,{to:{name:"Equipment",params:{id:_.id}}},{default:Y(()=>[x(S(_.label),1)]),_:2},1032,["to"])]),p("td",jrt,[p("span",Yrt,S(u.$t("workouts.WORKOUT",0)),1),_.workouts_count?(h(),B(E,{key:0,to:`/workouts?equipment_id=${_.id}`},{default:Y(()=>[x(S(_.workouts_count),1)]),_:2},1032,["to"])):(h(),v(ue,{key:1},[x(S(_.workouts_count),1)],64))]),p("td",Xrt,[p("span",Qrt,S(u.$t("workouts.TOTAL_DISTANCE",0)),1),M(c,{distance:_.total_distance,unitFrom:"km",digits:2,displayUnit:!1,useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"]),p("span",null,S(m(n).imperial_units?"miles":"km"),1)]),p("td",Zrt,[p("span",Jrt,S(u.$t("common.ACTIVE")),1),p("i",{class:Ae(`fa fa${_.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),m(a)&&!m(n).suspended_at?(h(),v("td",eut,[p("span",tut,S(u.$t("user.PROFILE.SPORT.ACTION")),1),p("button",{onClick:f=>u.$router.push(`/profile/edit/equipments/${_.id}${m(a)?"?fromEdition=true":""}`)},S(u.$t("buttons.EDIT")),9,nut)])):L("",!0)]))),128))])])])],64)):L("",!0)],64))),128))])),p("div",aut,[!m(a)&&!m(n).suspended_at&&m(s).length>0?(h(),v("button",{key:0,onClick:l[4]||(l[4]=T=>u.$router.push("/profile/edit/equipments"))},S(u.$t("equipments.EDIT_EQUIPMENTS")),1)):L("",!0),!m(a)&&!m(n).suspended_at?(h(),v("button",{key:1,onClick:l[5]||(l[5]=T=>u.$router.push("/profile/equipments/new"))},S(u.$t("equipments.NEW_EQUIPMENT")),1)):L("",!0),m(a)?(h(),v("button",{key:2,onClick:l[6]||(l[6]=T=>u.$router.push("/profile/equipments"))},S(u.$t("buttons.BACK")),1)):(h(),v("button",{key:3,onClick:l[7]||(l[7]=T=>u.$router.push("/"))},S(u.$t("common.HOME")),1))])])}}}),Wh=se(sut,[["__scopeId","data-v-235c4af3"]]),iut=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t);return(a,s)=>{const i=j("router-view");return h(),v("div",null,[M(i,{authUser:m(n)},null,8,["authUser"])])}}}),out={key:0,class:"notification-object"},rut={class:"box comment-box"},uut=X({__name:"CommentForUser",props:{comment:{},displayObjectName:{type:Boolean},action:{}},setup(e){const t=e,{comment:n,displayObjectName:a}=fe(t),{authUser:s}=Ke();return(i,o)=>(h(),v(ue,null,[m(a)?(h(),v("div",out,S(i.$t("workouts.COMMENTS.COMMENT"))+": ",1)):L("",!0),p("div",rut,[M(Fp,{comment:m(n),authUser:m(s),"display-appeal":!1,"hide-suspension-appeal":m(a),"comments-loading":"null","for-notification":!0,action:i.action,onCommentLinkClicked:o[0]||(o[0]=r=>i.$emit("commentLinkClicked"))},null,8,["comment","authUser","hide-suspension-appeal","action"])])],64))}}),Xp=se(uut,[["__scopeId","data-v-ed2176b7"]]),lut={class:"appeal-action"},cut=X({__name:"WorkoutActionAppeal",props:{action:{},workout:{},displaySuspensionMessage:{type:Boolean,default:!1}},setup(e){const t=e,{workout:n}=fe(t),{appealLoading:a,displayAppealForm:s,success:i,submitAppeal:o,cancelAppeal:r}=Tp(),u=z(()=>`workout_${n.value.id}`);return(l,d)=>(h(),v("div",lut,[p("div",{class:Ae({suspended:l.displaySuspensionMessage,"info-box":l.displaySuspensionMessage})},[l.displaySuspensionMessage?(h(),v(ue,{key:0},[d[4]||(d[4]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(l.$t("workouts.SUSPENDED_BY_ADMIN")),1)],64)):L("",!0),l.displaySuspensionMessage&&!m(i)&&!m(s)?(h(),v("button",{key:1,class:"transparent appeal-button",onClick:d[0]||(d[0]=E=>s.value=u.value)},S(l.$t("user.APPEAL")),1)):L("",!0)],2),m(s)?(h(),B(bl,{key:0,"report-action":l.action,success:m(i)===u.value,loading:m(a)===u.value,onSubmitForm:d[2]||(d[2]=E=>m(o)(E,"workout",m(n).id)),onHideMessage:d[3]||(d[3]=E=>s.value=null)},{cancelButton:Y(()=>[p("button",{onClick:d[1]||(d[1]=E=>m(r)())},S(l.$t("buttons.CANCEL")),1)]),_:1},8,["report-action","success","loading"])):L("",!0)]))}}),eI=se(cut,[["__scopeId","data-v-a3f01233"]]),dut={key:0,class:"notification-object"},Eut=X({__name:"WorkoutForUser",props:{action:{default:null},displayAppeal:{type:Boolean},displayObjectName:{type:Boolean},workout:{},reportId:{}},setup(e){const t=e,{action:n,displayAppeal:a,displayObjectName:s,reportId:i,workout:o}=fe(t),{getWorkoutSport:r}=nn(),{dateFormat:u,imperialUnits:l,timezone:d}=Ke(),E=z(()=>r(o.value)),c=z(()=>{var T,_,f;return o.value.suspended===!0&&n.value!==null&&(!n.value.appeal||((T=n.value.appeal)==null?void 0:T.approved)===!1||((_=n.value.appeal)==null?void 0:_.approved)===null&&!((f=n.value.appeal)!=null&&f.updated_at))&&a.value});return(T,_)=>{var R;const f=j("router-link"),O=j("i18n-t"),A=j("AlertMessage");return h(),v(ue,null,[m(s)?(h(),v("div",dut,S(T.$t("workouts.WORKOUT"))+": ",1)):L("",!0),M(Vo,{workout:m(o),sport:E.value,user:m(o).user,useImperialUnits:m(l),dateFormat:m(u),timezone:m(d),onWorkoutLinkClicked:_[0]||(_[0]=g=>T.$emit("workoutLinkClicked"))},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"]),m(n)&&c.value?(h(),B(eI,{key:1,action:m(n),workout:m(o),"display-suspension-message":m(n).action_type==="workout_suspension"},null,8,["action","workout","display-suspension-message"])):(R=m(o).suspension)!=null&&R.report_id?(h(),B(A,{key:2,message:"workouts.SUSPENDED_BY_ADMIN"},mi({_:2},[m(o).suspension.report_id!==m(i)?{name:"additionalMessage",fn:Y(()=>[M(O,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[M(f,{to:`/admin/reports/${m(o).suspension.report_id}`},{default:Y(()=>[x(" #"+S(m(o).suspension.report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1024)):L("",!0)],64)}}}),Qp=se(Eut,[["__scopeId","data-v-bb831628"]]),put={id:"user-sanction"},Tut={key:0},mut={key:1},_ut={key:2},fut={class:"no-warning"},hut={class:"buttons"},Sut=X({__name:"UserSanctionDetail",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),s=ut(),{authUserLoading:i,authUserSuccess:o}=Ke(),r=Ie(""),u=z(()=>a.getters[K.GETTERS.USER_SANCTION]);function l(){a.dispatch(K.ACTIONS.GET_USER_SANCTION,s.params.action_id)}function d(E){r.value=E,a.dispatch(K.ACTIONS.APPEAL,{actionId:u.value.id,actionType:"user_warning",text:E})}return mt(()=>l()),ct(()=>{a.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),a.commit(K.MUTATIONS.SET_USER_SANCTION,{})}),(E,c)=>{const T=j("Loader");return h(),v("div",put,[m(i)&&!r.value?(h(),v("div",Tut,[M(T)])):u.value.id?(h(),v("div",mut,[p("h1",null,S(E.$t(`user.PROFILE.SANCTIONS.${u.value.action_type}`,{date:m($t)(u.value.created_at,m(n).timezone,m(n).date_format)})),1),u.value.comment?(h(),B(Xp,{key:0,"display-object-name":!0,comment:u.value.comment},null,8,["comment"])):u.value.workout?(h(),B(Qp,{key:1,action:u.value,"display-appeal":!1,"display-object-name":!0,workout:u.value.workout},null,8,["action","workout"])):L("",!0),M(bl,{"report-action":u.value,success:m(o),loading:m(i),"can-appeal":u.value.action_type!=="user_suspension"&&!m(n).suspended_at,onSubmitForm:d},null,8,["report-action","success","loading","can-appeal"])])):(h(),v("div",_ut,[p("div",fut,S(E.$t("user.NO_WARNING_FOUND")),1)])),p("div",hut,[p("button",{onClick:c[0]||(c[0]=_=>E.$router.push("/profile/moderation"))},S(E.$t("buttons.BACK")),1),m(n).suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:c[1]||(c[1]=_=>E.$router.push("/"))},S(E.$t("common.HOME")),1),p("button",{onClick:c[2]||(c[2]=_=>E.$router.push("/notifications"))},S(E.$t("notifications.NOTIFICATIONS",0)),1)],64))])])}}}),Aut=se(Sut,[["__scopeId","data-v-f297e854"]]),Out={id:"user-moderation"},Iut={key:0,id:"user-sanctions"},gut={key:0},Rut={class:"last-sanctions"},Nut={key:1},vut={class:"no-sanctions"},but=X({__name:"UserSanctionsList",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=ut(),s=Le(),{displayOptions:i}=qe();let o=kt(d(a.query));const r=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS]),u=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS_LOADING]),l=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS_PAGINATION]);function d(T){const _={};return T.page&&(_.page=Ho(T.page,Wl)),_}function E(T){if(T.updated_at)switch(T.approved){case!0:return"APPROVED";case!1:return"REJECTED";default:return"IN_PROGRESS"}return"IN_PROGRESS"}function c(T){s.dispatch(ce.ACTIONS.GET_USER_SANCTIONS,{username:n.value.username,...T})}return Ce(()=>a.query,async T=>{o=d(T),c(o)}),et(()=>c({})),ct(()=>s.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS,[])),(T,_)=>{const f=j("router-link");return h(),v("div",Out,[p("h1",null,S(T.$t("user.PROFILE.SANCTIONS_RECEIVED")),1),m(n).sanctions_count?(h(),v("div",Iut,[u.value?(h(),v("div",gut,[M(wl)])):(h(),v(ue,{key:1},[p("ul",Rut,[(h(!0),v(ue,null,be(r.value,O=>(h(),v("li",{key:O.id},[p("div",null,[M(f,{to:`/profile/moderation/sanctions/${O.id}`},{default:Y(()=>[x(S(T.$t(`user.PROFILE.SANCTIONS.${O.action_type}`,{date:m($t)(O.created_at,m(i).timezone,m(i).dateFormat)})),1)]),_:2},1032,["to"]),O.appeal?(h(),v("span",{key:0,class:Ae(["info-box appeal",{approved:E(O.appeal)==="APPROVED",rejected:E(O.appeal)==="REJECTED"}])},[p("i",{class:Ae(["fa",{"fa-info-circle":E(O.appeal)!=="REJECTED","fa-times":E(O.appeal)==="REJECTED"}]),"aria-hidden":"true"},null,2),x(" "+S(T.$t(`user.PROFILE.SANCTION_APPEAL.${E(O.appeal)}`)),1)],2)):L("",!0)])]))),128))]),M(oa,{pagination:l.value,path:"/profile/moderation",query:m(o)},null,8,["pagination","query"])],64))])):(h(),v("div",Nut,[p("p",vut,S(T.$t("user.PROFILE.NO_SANCTIONS")),1)])),p("div",null,[p("button",{onClick:_[0]||(_[0]=O=>T.$router.push("/"))},S(T.$t("common.HOME")),1)])])}}}),Cut=se(but,[["__scopeId","data-v-bb47e769"]]),Put={class:"relationships"},Dut={key:0},Lut={class:"user-relationships"},yut={key:1,class:"no-relationships"},$ut={class:"profile-buttons"},Uut=X({__name:"UserRelationships",props:{user:{},relationship:{}},setup(e){const t=e,{relationship:n,user:a}=fe(t),s=Le(),i=ut(),{authUser:o}=Ke(),r=z(()=>({username:a.value.username,relationship:n.value,page:1})),u=z(()=>s.getters[ce.GETTERS.USER_RELATIONSHIPS]),l=z(()=>s.getters[ce.GETTERS.USERS_PAGINATION]);function d(E){s.dispatch(ce.ACTIONS.GET_RELATIONSHIPS,E)}return Ce(()=>i.path,E=>{r.value.page=l.value.page,r.value.relationship=E.includes("following")?"following":"followers",d(r.value)}),Ce(()=>i.query,(E,c)=>{E.page!==c.page&&(r.value.page=E.page?+E.page:1,d(r.value))}),Ce(()=>a.value.following,()=>{d(r.value)}),Ce(()=>a.value.followers,()=>{d(r.value)}),et(()=>d(r.value)),ct(()=>{s.dispatch(ce.ACTIONS.EMPTY_RELATIONSHIPS)}),(E,c)=>(h(),v("div",Put,[u.value.length>0?(h(),v("div",Dut,[p("div",Lut,[(h(!0),v(ue,null,be(u.value,T=>(h(),B(Hp,{key:T.username,authUser:m(o),user:T,from:"relationship"},null,8,["authUser","user"]))),128))]),M(oa,{path:`/profile/${m(n)}`,pagination:l.value,query:{}},null,8,["path","pagination"])])):(h(),v("p",yut,S(E.$t(`user.RELATIONSHIPS.NO_${m(n).toUpperCase()}`)),1)),p("div",$ut,[p("button",{onClick:c[0]||(c[0]=T=>E.$route.path.startsWith("/profile")?E.$router.push("/profile"):E.$router.push(`/users/${m(a).username}`))},S(E.$t("user.PROFILE.BACK_TO_PROFILE")),1)])]))}}),kr=se(Uut,[["__scopeId","data-v-2a9a43ae"]]),kut={id:"users-sports"},Fh=X({__name:"index",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,{user:n,isEdition:a}=fe(t),s=Le(),{t:i}=yt(),{sports:o}=nn(),r=z(()=>ia(o.value,i,"is_active",n.value.sports_list));return ct(()=>{s.commit(st.MUTATIONS.SET_CLIENTS,[])}),(u,l)=>{const d=j("router-view");return h(),v("div",kut,[M(d,{authUser:m(n),isEdition:m(a),translatedSports:r.value},null,8,["authUser","isEdition","translatedSports"])])}}}),wut=X({__name:"EquipmentBadge",props:{equipment:{},workoutId:{},sportId:{}},setup(e){const t=e,{equipment:n,sportId:a,workoutId:s}=fe(t);return(i,o)=>{var l;const r=j("EquipmentTypeImage"),u=j("router-link");return h(),B(u,{class:Ae(["equipment-badge",{inactive:!m(n).is_active}]),to:{name:"Equipment",params:{id:m(n).id},query:{fromWorkoutId:m(s),fromSportId:(l=m(a))==null?void 0:l.toString()}}},{default:Y(()=>[M(r,{title:i.$t(`equipment_types.${m(n).equipment_type.label}.LABEL`),"equipment-type-label":m(n).equipment_type.label},null,8,["title","equipment-type-label"]),p("span",null,S(m(n).label)+" "+S(m(n).is_active?"":`(${i.$t("common.INACTIVE")})`),1)]),_:1},8,["class","to"])}}}),tI=se(wut,[["__scopeId","data-v-35b40eb3"]]),Mut={key:0,id:"user-sport",class:"description-list"},Wut={class:"sport-equipments"},Fut={key:0,class:"no-equipments"},zut={class:"sport-buttons"},xut=["disabled"],But={key:1},Gut={class:"no-sport"},Vut=X({__name:"UserSport",props:{authUser:{},translatedSports:{}},setup(e){const t=e,{translatedSports:n}=fe(t),a=ut(),{errorMessages:s}=qe(),{displayModal:i,sportColors:o,resetSport:r,updateDisplayModal:u}=nn(),{authUserLoading:l}=Ke(),d=z(()=>E(n.value));function E(c){if(!a.params.id)return null;const T=c.filter(_=>a.params.id?_.id===+a.params.id:null);return T.length===0?null:T[0]}return Ce(()=>l.value,c=>{!c&&!s.value&&u(!1)}),(c,T)=>{const _=j("Modal"),f=j("SportImage"),O=j("Distance");return d.value?(h(),v("div",Mut,[m(i)?(h(),B(_,{key:0,title:c.$t("common.CONFIRMATION"),message:c.$t(`user.PROFILE.SPORT.CONFIRM_SPORT_RESET${d.value.default_equipments.length>0?"_WITH_EQUIPMENTS":""}`),onConfirmAction:T[0]||(T[0]=A=>m(r)(d.value.id,!0)),onCancelAction:T[1]||(T[1]=A=>m(u)(!1)),onKeydown:T[2]||(T[2]=Ye(A=>m(u)(!1),["esc"]))},null,8,["title","message"])):L("",!0),p("dl",null,[p("dt",null,S(Fe(c.$t("workouts.SPORT",1))),1),p("dd",null,S(d.value.translatedLabel),1),p("dt",null,S(Fe(c.$t("user.PROFILE.SPORT.COLOR"))),1),p("dd",null,[M(f,{title:d.value.translatedLabel,"sport-label":d.value.label,color:d.value.color?d.value.color:m(o)[d.value.label]},null,8,["title","sport-label","color"])]),p("dt",null,S(Fe(c.$t("workouts.WORKOUT",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${c.authUser.sports_list.includes(d.value.id)?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),p("dt",null,S(Fe(c.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD"))),1),p("dd",null,[M(O,{distance:d.value.stopped_speed_threshold,unitFrom:"km",speed:!0,useImperialUnits:c.authUser.imperial_units},null,8,["distance","useImperialUnits"])]),p("dt",null,S(Fe(c.$t("common.ACTIVE",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${d.value.is_active_for_user?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),p("dt",null,S(c.$t("user.PROFILE.SPORT.DEFAULT_EQUIPMENTS",1)),1),p("dd",Wut,[(h(!0),v(ue,null,be(d.value.default_equipments,A=>(h(),B(tI,{equipment:A,"sport-id":d.value.id,key:A.label},null,8,["equipment","sport-id"]))),128)),d.value.default_equipments.length===0?(h(),v("div",Fut,S(c.$t("equipments.NO_EQUIPMENTS")),1)):L("",!0)])]),p("div",zut,[c.authUser.suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:T[3]||(T[3]=A=>c.$router.push(`/profile/edit/sports/${d.value.id}`))},S(c.$t("buttons.EDIT")),1),p("button",{disabled:m(l),class:"danger",onClick:T[4]||(T[4]=ve(A=>m(u)(!0),["prevent"]))},S(c.$t("buttons.RESET")),9,xut)],64)),p("button",{onClick:T[5]||(T[5]=A=>c.$router.push(m(a).query.fromEquipmentId?`/profile/equipments/${m(a).query.fromEquipmentId}`:"/profile/sports"))},S(c.$t("buttons.BACK")),1)])])):(h(),v("div",But,[p("p",Gut,S(c.$t("user.NO_SPORT_FOUND")),1),p("button",{onClick:T[6]||(T[6]=A=>c.$router.push("/profile/sports"))},S(c.$t("buttons.BACK")),1)]))}}}),Hut=se(Vut,[["__scopeId","data-v-fbec81b5"]]),Kut={key:0,id:"sport-edition"},qut={class:"form-items"},jut={class:"form-item"},Yut={for:"sport-label"},Xut={class:"form-item"},Qut={for:"sport-color"},Zut=["disabled"],Jut={class:"form-item"},elt={for:"sport-threshold"},tlt=["disabled"],nlt={class:"form-item-checkbox"},alt={for:"equipment-active"},slt=["checked","disabled"],ilt={class:"form-item"},olt={for:"sport-default-equipment"},rlt=["disabled"],ult={value:""},llt=["value"],clt={class:"form-buttons"},dlt=["disabled"],Elt=["disabled"],plt=X({__name:"UserSportEdition",props:{authUser:{},translatedSports:{}},setup(e){const t=e,{authUser:n,translatedSports:a}=fe(t),{t:s}=yt(),i=Le(),o=ut(),{errorMessages:r}=qe(),{defaultColor:u,defaultEquipmentId:l,sportColors:d,sportPayload:E,updateIsActive:c,updateSport:T}=nn(),{authUserLoading:_}=Ke(),f=Ie(!1),O=z(()=>g(a.value)),A=z(()=>i.getters[xe.GETTERS.EQUIPMENTS]),R=z(()=>A.value&&O.value?DO(A.value,s,"withIncludedIds",O.value,O.value.default_equipments.map(C=>C.id)):[]);function g(C){if(!o.params.id)return null;const y=C.filter(D=>o.params.id?D.id===+o.params.id:null);return y.length===0?null:y[0]}function I(C,y=!1){C!==null&&(E.sport_id=C.id,E.color=C.color?C.color:d?d[C.label]:u,E.is_active=C.is_active_for_user,E.stopped_speed_threshold=+`${n.value.imperial_units?Yt(C.stopped_speed_threshold,"km","mi",2):parseFloat(C.stopped_speed_threshold.toFixed(2))}`,E.fromSport=!0,y&&(l.value=C.default_equipments.length>0?C.default_equipments[0].id:""))}function N(){E.default_equipment_ids=l.value?[l.value]:[],T(n.value)}function b(){f.value=!0}return Ce(()=>O.value,C=>{o.params.id&&(C!=null&&C.id)&&I(C,!0)}),mt(()=>{var y;const C=document.getElementById("sport-color");C==null||C.focus(),o.params.id&&o.params.id&&(y=O.value)!=null&&y.id&&I(O.value,!0)}),(C,y)=>{const D=j("ErrorMessage");return O.value?(h(),v("div",Kut,[p("form",{class:Ae({errors:f.value}),onSubmit:ve(N,["prevent"])},[p("div",qut,[p("div",jut,[p("label",Yut,S(Fe(C.$t("workouts.SPORT",1))),1),x(" "+S(O.value.translatedLabel),1)]),p("div",Xut,[p("label",Qut,S(Fe(C.$t("user.PROFILE.SPORT.COLOR"))),1),We(p("input",{id:"sport-color",name:"sport-color",class:"sport-color",type:"color",required:"","onUpdate:modelValue":y[0]||(y[0]=U=>m(E).color=U),disabled:m(_),onInvalid:b},null,40,Zut),[[ot,m(E).color]])]),p("div",Jut,[p("label",elt,S(Fe(C.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")))+" ("+S(`${m(n).imperial_units?"mi":"km"}/h`)+")* ",1),We(p("input",{id:"sport-threshold",name:"sport-threshold",class:"threshold-input",type:"number",min:"0",step:"0.1",required:"","onUpdate:modelValue":y[1]||(y[1]=U=>m(E).stopped_speed_threshold=U),disabled:m(_),onInvalid:b},null,40,tlt),[[ot,m(E).stopped_speed_threshold]])]),p("div",nlt,[p("label",alt,S(Fe(C.$t("common.ACTIVE"))),1),p("input",{id:"equipment-active",name:"equipment-active",type:"checkbox",checked:O.value.is_active_for_user,onChange:y[2]||(y[2]=(...U)=>m(c)&&m(c)(...U)),disabled:m(_)},null,40,slt)]),p("div",ilt,[p("label",olt,S(C.$t("user.PROFILE.SPORT.DEFAULT_EQUIPMENTS",1)),1),We(p("select",{id:"sport-default-equipment",onInvalid:b,disabled:m(_),"onUpdate:modelValue":y[3]||(y[3]=U=>Kt(l)?l.value=U:null)},[p("option",ult,S(C.$t("equipments.NO_EQUIPMENTS")),1),(h(!0),v(ue,null,be(R.value,U=>(h(),v("option",{value:U.id,key:U.id},S(U.label),9,llt))),128))],40,rlt),[[Jt,m(l)]])])]),m(r)?(h(),B(D,{key:0,message:m(r)},null,8,["message"])):L("",!0),p("div",clt,[p("button",{class:"confirm",type:"submit",disabled:m(_)},S(C.$t("buttons.SUBMIT")),9,dlt),p("button",{class:"cancel",onClick:y[4]||(y[4]=ve(()=>{var U;return C.$router.push(`/profile/sports/${(U=O.value)==null?void 0:U.id}`)},["prevent"])),disabled:m(_)},S(C.$t("buttons.CANCEL")),9,Elt)])],34)])):L("",!0)}}}),Tlt=se(plt,[["__scopeId","data-v-aaa31377"]]),mlt={id:"user-sport-preferences"},_lt={key:1,class:"responsive-table"},flt={class:"mobile-display"},hlt={key:0,class:"profile-buttons mobile-display"},Slt={key:1,class:"profile-buttons"},Alt={class:"text-left"},Olt={class:"threshold"},Ilt={key:0},glt={class:"cell-heading"},Rlt={class:"cell-heading"},Nlt={key:2,class:"disabled-message"},vlt={key:3,class:"fa fa-refresh fa-spin fa-fw"},blt={class:"cell-heading"},Clt={class:"cell-heading"},Plt={class:"cell-heading"},Dlt=["checked"],Llt={class:"cell-heading"},ylt={key:1},$lt={key:0,class:"action-buttons"},Ult={class:"cell-heading"},klt=["onClick"],wlt={key:1,class:"edition-buttons"},Mlt=["disabled"],Wlt=["disabled"],Flt=["disabled"],zlt={key:0,class:"profile-buttons"},xlt={key:1,class:"profile-buttons"},Blt=X({__name:"UserSportPreferences",props:{authUser:{},translatedSports:{},isEdition:{type:Boolean}},setup(e){const t=e,{authUser:n,isEdition:a,translatedSports:s}=fe(t),i=Le(),{errorMessages:o}=qe(),{defaultColor:r,displayModal:u,sportColors:l,sportPayload:d,resetSport:E,updateDisplayModal:c,updateIsActive:T,updateSport:_}=nn(),{authUserLoading:f}=Ke(),O=Ie(!1);function A(I){I!==null?(d.sport_id=I.id,d.color=I.color?I.color:l?l[I.label]:r,d.is_active=I.is_active_for_user,d.stopped_speed_threshold=+`${n.value.imperial_units?Yt(I.stopped_speed_threshold,"km","mi",2):parseFloat(I.stopped_speed_threshold.toFixed(2))}`,O.value=I.default_equipments.length>0):g()}function R(I){return d.sport_id===I}function g(){d.sport_id=0,d.color=null,d.is_active=!0,d.stopped_speed_threshold=1,O.value=!1,i.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)}return Ce(()=>f.value,I=>{!I&&!o.value&&(g(),c(!1))}),(I,N)=>{const b=j("Modal"),C=j("SportImage"),y=j("router-link"),D=j("ErrorMessage"),U=j("Distance");return h(),v("div",mlt,[m(u)?(h(),B(b,{key:0,title:I.$t("common.CONFIRMATION"),message:I.$t(`user.PROFILE.SPORT.CONFIRM_SPORT_RESET${O.value?"_WITH_EQUIPMENTS":""}`),onConfirmAction:N[0]||(N[0]=P=>m(E)(m(d).sport_id)),onCancelAction:N[1]||(N[1]=P=>m(c)(!1)),onKeydown:N[2]||(N[2]=Ye(P=>m(c)(!1),["esc"]))},null,8,["title","message"])):L("",!0),m(s).length>0?(h(),v("div",_lt,[p("div",flt,[m(a)?(h(),v("div",hlt,[p("button",{class:"cancel",onClick:N[3]||(N[3]=ve(P=>I.$router.push("/profile/sports"),["prevent"]))},S(I.$t("buttons.BACK")),1)])):(h(),v("div",Slt,[p("button",{onClick:N[4]||(N[4]=P=>I.$router.push("/profile/edit/sports"))},S(I.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:N[5]||(N[5]=P=>I.$router.push("/"))},S(I.$t("common.HOME")),1)]))]),p("table",null,[p("thead",null,[p("tr",null,[p("th",null,S(I.$t("user.PROFILE.SPORT.COLOR")),1),p("th",Alt,S(I.$t("workouts.SPORT",0)),1),p("th",null,S(I.$t("workouts.WORKOUT",0)),1),p("th",null,S(I.$t("equipments.EQUIPMENT",0)),1),p("th",null,S(I.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),p("th",null,[p("div",Olt,[p("span",null,S(I.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),p("span",null," ("+S(`${m(n).imperial_units?"mi":"km"}/h`)+") ",1)])]),m(a)&&!m(n).suspended_at?(h(),v("th",Ilt,S(I.$t("user.PROFILE.SPORT.ACTION")),1)):L("",!0)])]),p("tbody",null,[(h(!0),v(ue,null,be(m(s),P=>(h(),v("tr",{key:P.id},[p("td",null,[p("span",glt,S(I.$t("user.PROFILE.SPORT.COLOR")),1),R(P.id)?We((h(),v("input",{key:0,class:"sport-color",type:"color","onUpdate:modelValue":N[6]||(N[6]=F=>m(d).color=F)},null,512)),[[ot,m(d).color]]):(h(),B(C,{key:1,title:P.translatedLabel,"sport-label":P.label,color:P.color?P.color:m(l)[P.label]},null,8,["title","sport-label","color"]))]),p("td",{class:Ae(["sport-label",{"disabled-sport":!P.is_active}])},[p("span",Rlt,S(I.$t("user.PROFILE.SPORT.LABEL")),1),R(P.id)?(h(),v(ue,{key:0},[x(S(P.translatedLabel),1)],64)):(h(),B(y,{key:1,to:`/profile/sports/${P.id}`},{default:Y(()=>[x(S(P.translatedLabel),1)]),_:2},1032,["to"])),P.is_active?L("",!0):(h(),v("span",Nlt," ("+S(I.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),m(f)&&R(P.id)?(h(),v("i",vlt)):L("",!0),m(o)&&m(d).sport_id===P.id?(h(),B(D,{key:4,message:m(o)},null,8,["message"])):L("",!0)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",blt,S(I.$t("workouts.WORKOUT",0)),1),p("i",{class:Ae(`fa fa${m(n).sports_list.includes(P.id)?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Clt,S(I.$t("equipments.EQUIPMENT",0)),1),p("i",{class:Ae(`fa fa${P.default_equipments.length>0?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Plt,S(I.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),R(P.id)&&P.is_active?(h(),v("input",{key:0,type:"checkbox",checked:P.is_active_for_user,onChange:N[7]||(N[7]=(...F)=>m(T)&&m(T)(...F))},null,40,Dlt)):(h(),v("i",{key:1,class:Ae(`fa fa${P.is_active_for_user?"-check":""}`),"aria-hidden":"true"},null,2))],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Llt,S(I.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD"))+" "+S(`${m(n).imperial_units?"mi":"km"}/h`),1),R(P.id)&&P.is_active?We((h(),v("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1","onUpdate:modelValue":N[8]||(N[8]=F=>m(d).stopped_speed_threshold=F)},null,512)),[[ot,m(d).stopped_speed_threshold]]):(h(),v("span",ylt,[M(U,{distance:P.stopped_speed_threshold,unitFrom:"km",speed:!0,useImperialUnits:m(n).imperial_units,displayUnit:!1},null,8,["distance","useImperialUnits"])]))],2),m(a)&&!m(n).suspended_at?(h(),v("td",$lt,[p("span",Ult,S(I.$t("user.PROFILE.SPORT.ACTION")),1),m(d).sport_id===0?(h(),v("button",{key:0,onClick:F=>A(P)},S(I.$t("buttons.EDIT")),9,klt)):L("",!0),R(P.id)?(h(),v("div",wlt,[p("button",{disabled:m(f),onClick:N[9]||(N[9]=ve(F=>m(_)(m(n)),["prevent"]))},S(I.$t("buttons.SUBMIT")),9,Mlt),p("button",{disabled:m(f),class:"warning",onClick:N[10]||(N[10]=ve(F=>m(c)(!0),["prevent"]))},S(I.$t("buttons.RESET")),9,Wlt),p("button",{disabled:m(f),onClick:N[11]||(N[11]=F=>A(null))},S(I.$t("buttons.CANCEL")),9,Flt)])):L("",!0)])):L("",!0)]))),128))])]),m(a)?(h(),v("div",zlt,[p("button",{class:"cancel",onClick:N[12]||(N[12]=ve(P=>I.$router.push("/profile/sports"),["prevent"]))},S(I.$t("buttons.BACK")),1)])):(h(),v("div",xlt,[m(n).suspended_at?L("",!0):(h(),v("button",{key:0,onClick:N[13]||(N[13]=P=>I.$router.push("/profile/edit/sports"))},S(I.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1)),p("button",{onClick:N[14]||(N[14]=P=>I.$router.push("/"))},S(I.$t("common.HOME")),1)]))])):L("",!0)])}}}),zh=se(Blt,[["__scopeId","data-v-2f0e6a61"]]),Glt={class:"about-text"},Vlt=["innerHTML"],Hlt=["href"],Klt={href:"https://github.com/SamR1/FitTrackee",target:"_blank",rel:"noopener noreferrer"},qlt={key:0},jlt=["href"],Ylt={key:1},Xlt=["href"],Qlt={class:"about-instance"},Zlt=["innerHTML"],Jlt=X({__name:"About",setup(e){const{appConfig:t,appLanguage:n}=qe(),a=z(()=>i()),s=z(()=>o());function i(){const r={};return t.value.weatherProvider==="visualcrossing"&&(r.name="Visual Crossing",r.url="https://www.visualcrossing.com"),r}function o(){let r="https://samr1.github.io/FitTrackee/";return n.value==="fr"&&(r+="fr/"),r}return(r,u)=>{const l=j("i18n-t");return h(),v("div",Glt,[p("div",null,[p("p",{class:"error-message",innerHTML:r.$t("about.FITTRACKEE_DESCRIPTION")},null,8,Vlt),p("p",null,[u[0]||(u[0]=p("i",{class:"fa fa-book fa-padding","aria-hidden":"true"},null,-1)),p("a",{class:"documentation-link",href:s.value,target:"_blank",rel:"noopener noreferrer"},S(Fe(r.$t("common.DOCUMENTATION"))),9,Hlt)]),p("p",null,[u[1]||(u[1]=p("i",{class:"fa fa-github fa-padding","aria-hidden":"true"},null,-1)),p("a",Klt,S(r.$t("about.SOURCE_CODE")),1)]),p("p",null,[u[3]||(u[3]=p("i",{class:"fa fa-balance-scale fa-padding","aria-hidden":"true"},null,-1)),M(l,{keypath:"about.FITTRACKEE_LICENSE"},{default:Y(()=>u[2]||(u[2]=[p("a",{href:"https://choosealicense.com/licenses/agpl-3.0/",target:"_blank",rel:"noopener noreferrer"},"AGPLv3",-1)])),_:1})]),m(t).admin_contact?(h(),v("div",qlt,[u[4]||(u[4]=p("i",{class:"fa fa-envelope-o fa-padding","aria-hidden":"true"},null,-1)),p("a",{href:`mailto:${m(t).admin_contact}`},S(r.$t("about.CONTACT_ADMIN")),9,jlt)])):L("",!0),a.value&&a.value.name?(h(),v("div",Ylt,[x(S(r.$t("about.WEATHER_DATA_FROM"))+" ",1),p("a",{href:a.value.url,target:"_blank",rel:"nofollow noopener"},S(a.value.name),9,Xlt)])):L("",!0),m(t).about?(h(),v(ue,{key:2},[p("p",Qlt,S(r.$t("about.ABOUT_THIS_INSTANCE")),1),p("div",{innerHTML:m(Go)(m(t).about)},null,8,Zlt)],64)):L("",!0)])])}}}),ect=se(Jlt,[["__scopeId","data-v-28993d11"]]),tct={},nct={id:"bike"};function act(e,t){return h(),v("div",nct,t[0]||(t[0]=[p("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,-1)]))}const nI=se(tct,[["render",act],["__scopeId","data-v-dc181e30"]]),sct={id:"about",class:"view"},ict={class:"container"},oct={class:"container-sub"},rct={class:"container-sub about-details"},uct=X({__name:"AboutView",setup(e){return(t,n)=>(h(),v("div",sct,[p("div",ict,[p("div",oct,[M(nI)]),p("div",rct,[M(ect)])])]))}}),lct=se(uct,[["__scopeId","data-v-ef9c7198"]]),cct={id:"admin",class:"view"},dct={key:0,class:"container"},Ect={key:1,class:"container"},pct=X({__name:"AdminView",setup(e){const t=Le(),{authUserHasModeratorRights:n,authUserHasAdminRights:a,authUserLoading:s}=Ke();return et(()=>{n.value&&t.dispatch(te.ACTIONS.GET_APPLICATION_STATS)}),(i,o)=>{const r=j("router-view");return h(),v("div",cct,[m(s)?L("",!0):(h(),v("div",dct,[(i.$route.meta.minimumRole==="moderator"?m(n):m(a))?(h(),B(r,{key:0})):(h(),v("div",Ect,[M(Ui)])),o[0]||(o[0]=p("div",{id:"bottom"},null,-1))]))])}}}),Tct=se(pct,[["__scopeId","data-v-580b02ed"]]),mct={},_ct={class:"no-workouts box"};function fct(e,t){const n=j("router-link");return h(),v("div",_ct,[p("div",null,[x(S(e.$t("workouts.NO_WORKOUTS"))+" ",1),M(n,{to:"/workouts/add"},{default:Y(()=>[x(S(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)]),_:1})])])}const Zp=se(mct,[["render",fct],["__scopeId","data-v-b0c91cc6"]]),os={ligthMode:{text:"#666",line:"rgba(0, 0, 0, 0.1)"},darkMode:{text:"#a1a1a1",line:"#3f3f3f"}},hct=(e,t,n,a=!1)=>{const s={speed:{label:t("workouts.SPEED"),backgroundColor:["transparent"],borderColor:[a?"#5f5c97":"#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:t("workouts.ELEVATION"),backgroundColor:[a?"#303030":"#e5e5e5"],borderColor:[a?"#222222":"#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},i=[],o=[],r=[];return e.map(u=>{i.push(Zr("km",u.distance,n)),o.push(u.duration),s.speed.data.push(Zr("km",u.speed,n)),u.elevation!==void 0&&s.elevation.data.push(Zr("m",u.elevation,n)),r.push({latitude:u.latitude,longitude:u.longitude})}),{distance_labels:i,duration_labels:o,datasets:s,coordinates:r}},Sct=e=>{const t=e.length;if(t===0)return{};const n={};return e.map(a=>{n[a.sport_id]||(n[a.sport_id]={count:0,percentage:0}),n[a.sport_id].count+=1,n[a.sport_id].percentage=n[a.sport_id].count/t}),n},qo={order:"desc",order_by:"workout_date"},Act={id:"timeline"},Oct={class:"section-title"},Ict={key:0},gct={key:1},Rct={key:1,class:"more-workouts"},wr=5,Nct=X({__name:"Timeline",props:{sports:{},authUser:{}},setup(e){const t=e,{sports:n,authUser:a}=fe(t),{dateFormat:s}=Ke(),i=Le(),o=Ie(1),r=z(()=>a.value.nb_workouts>=wr?wr:a.value.nb_workouts),u=z(()=>i.getters[J.GETTERS.TIMELINE_WORKOUTS]),l=z(()=>i.getters[J.GETTERS.WORKOUTS_PAGINATION]),d=z(()=>i.getters[K.GETTERS.IS_SUSPENDED]);function E(){d.value||i.dispatch(J.ACTIONS.GET_TIMELINE_WORKOUTS,{page:o.value,per_page:wr,...qo})}function c(){d.value||(o.value+=1,i.dispatch(J.ACTIONS.GET_MORE_TIMELINE_WORKOUTS,{page:o.value,per_page:wr,...qo}))}return et(()=>E()),ct(()=>i.commit(J.MUTATIONS.SET_WORKOUTS_PAGINATION,{})),(T,_)=>(h(),v("div",Act,[p("div",Oct,S(T.$t("workouts.LATEST_WORKOUTS")),1),m(a).nb_workouts>0&&u.value.length===0?(h(),v("div",Ict,[(h(!0),v(ue,null,be([...Array(r.value).keys()],f=>(h(),B(Vo,{user:m(a),useImperialUnits:m(a).imperial_units,dateFormat:m(s),timezone:m(a).timezone,key:f},null,8,["user","useImperialUnits","dateFormat","timezone"]))),128))])):(h(),v("div",gct,[(h(!0),v(ue,null,be(u.value,f=>(h(),B(Vo,{workout:f,sport:u.value.length>0?m(n).filter(O=>O.id===f.sport_id)[0]:null,user:f.user,useImperialUnits:m(a).imperial_units,dateFormat:m(s),timezone:m(a).timezone,key:f.id},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"]))),128)),u.value.length===0?(h(),B(Zp,{key:0})):L("",!0),l.value.has_next?(h(),v("div",Rct,[p("button",{onClick:c},S(T.$t("workouts.LOAD_MORE_WORKOUT")),1)])):L("",!0)]))]))}}),vct=se(Nct,[["__scopeId","data-v-bab374a4"]]),bct=["title"],aI=X({__name:"CalendarWorkout",props:{displayHARecord:{type:Boolean},workout:{},sportLabel:{},sportColor:{}},setup(e){const t=e,{displayHARecord:n,workout:a,sportLabel:s,sportColor:i}=fe(t);return(o,r)=>{const u=j("SportImage"),l=j("router-link");return h(),B(l,{class:"calendar-workout",to:{name:"Workout",params:{workoutId:m(a).id}}},{default:Y(()=>[M(u,{"sport-label":m(s),title:m(a).title,color:m(i)},null,8,["sport-label","title","color"]),p("sup",null,[m(a).records.length>0?(h(),v("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:m(a).records.filter(d=>m(n)?!0:d.record_type!=="HA").map(d=>` ${o.$t(`workouts.RECORD_${d.record_type}`)}`)[0]},null,8,bct)):L("",!0)])]),_:1},8,["to"])}}}),Cct={class:"donut-chart"},Pct={height:"34",width:"34",viewBox:"0 0 34 34"},Dct=["stroke","stroke-dashoffset","transform"],xh=16,Bh=16,Gh=14,Lct=X({__name:"DonutChart",props:{colors:{},datasets:{}},setup(e){const t=e,{colors:n,datasets:a}=fe(t);let s=-90;const i=2*Math.PI*Gh;function o(u,l){return l-u*l}function r(u,l){const d=`rotate(${s}, ${xh}, ${Bh})`;return s=l*360+s,d}return(u,l)=>(h(),v("div",Cct,[(h(),v("svg",Pct,[(h(!0),v(ue,null,be(Object.entries(m(a)),(d,E)=>(h(),v("g",{key:E},[p("circle",{cx:xh,cy:Bh,r:Gh,fill:"transparent",stroke:m(n)[+d[0]],"stroke-dashoffset":o(d[1].percentage,i),"stroke-dasharray":i,"stroke-width":"3","stroke-opacity":"0.8",transform:r(E,d[1].percentage)},null,8,Dct)]))),128))]))]))}}),yct={class:"calendar-workouts-chart"},$ct=["id"],Uct={class:"workouts-count"},kct={key:0,class:"workouts-pane"},wct=["id"],Mct=X({__name:"CalendarWorkoutsChart",props:{colors:{},datasets:{},sports:{},workouts:{},displayHARecord:{type:Boolean},index:{}},setup(e){const t=e,{colors:n,datasets:a,index:s,sports:i,workouts:o}=fe(t);let r=0;const u=Ie(!0);function l(){const c=document.getElementById(`workouts-pane-${s.value}`);return c!=null&&c.children&&(c==null?void 0:c.children.length)>0?c:null}async function d(c){var _;c.preventDefault(),c.stopPropagation(),u.value=!u.value,await ln();const T=l();u.value?(_=document.getElementById(`workouts-donut-${s.value}`))==null||_.focus():(T==null?void 0:T.children[0]).focus()}function E(c){if(!u.value){if(!u.value&&(c.key==="Tab"||c.keyCode===9)){c.preventDefault(),c.stopPropagation();const T=l();T&&(c.shiftKey?(r-=1,r<0&&(r=T.children.length-1)):(r+=1,r>=T.children.length&&(r=0)),T.children[r].focus())}c.key==="Escape"&&d(c)}}return mt(()=>{document.addEventListener("keydown",E)}),ct(()=>{document.removeEventListener("keydown",E)}),(c,T)=>{const _=aR("click-outside");return h(),v("div",yct,[p("button",{class:"workouts-chart transparent",id:`workouts-donut-${m(s)}`,onClick:d},[p("div",Uct,S(m(o).length),1),M(Lct,{datasets:m(a),colors:m(n)},null,8,["datasets","colors"])],8,$ct),u.value?L("",!0):(h(),v("div",kct,[We((h(),v("div",{class:"more-workouts",id:`workouts-pane-${m(s)}`},[p("button",{class:"calendar-more-close transparent",onClick:d},T[0]||(T[0]=[p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)])),(h(!0),v(ue,null,be(m(o),(f,O)=>(h(),B(aI,{key:O,displayHARecord:c.displayHARecord,workout:f,sportLabel:m(xp)(f,m(i)),sportColor:m(Bp)(f,m(i))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))],8,wct)),[[_,d]])]))])}}}),Vh=se(Mct,[["__scopeId","data-v-fda2985a"]]),Wct={class:"calendar-workouts"},Fct={class:"desktop-display"},zct={key:0,class:"workouts-display"},xct={key:1,class:"donut-display"},Bct={class:"mobile-display"},Gct={key:0,class:"donut-display"},Hh=6,Vct=X({__name:"CalendarWorkouts",props:{displayHARecord:{type:Boolean},workouts:{},sports:{},index:{}},setup(e){const t=e,{displayHARecord:n,index:a,sports:s,workouts:i}=fe(t),o=z(()=>Sct(t.workouts)),r=z(()=>uje(t.sports));return(u,l)=>(h(),v("div",Wct,[p("div",Fct,[m(i).length<=Hh?(h(),v("div",zct,[(h(!0),v(ue,null,be(m(i).slice(0,Hh),(d,E)=>(h(),B(aI,{key:E,displayHARecord:m(n),workout:d,sportLabel:m(xp)(d,m(s)),sportColor:m(Bp)(d,m(s))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])):(h(),v("div",xct,[M(Vh,{workouts:m(i),sports:m(s),datasets:o.value,colors:r.value,displayHARecord:m(n),index:m(a)},null,8,["workouts","sports","datasets","colors","displayHARecord","index"])]))]),p("div",Bct,[m(i).length>0?(h(),v("div",Gct,[M(Vh,{workouts:m(i),sports:m(s),datasets:o.value,colors:r.value,displayHARecord:m(n),index:m(a)},null,8,["workouts","sports","datasets","colors","displayHARecord","index"])])):L("",!0)])]))}}),Hct={class:"calendar-cells"},Kct={class:"calendar-cell-day"},qct=X({__name:"CalendarCells",props:{currentDay:{},displayHARecord:{type:Boolean},endDate:{},sports:{},startDate:{},timezone:{},weekStartingMonday:{type:Boolean},workouts:{}},setup(e){const t=e,{currentDay:n,displayHARecord:a,endDate:s,sports:i,startDate:o,timezone:r,weekStartingMonday:u,workouts:l}=fe(t),d=Ie([]);function E(){d.value=[];let _=o.value;for(;_<=s.value;){const f=[];for(let O=0;O<7;O++)f.push(_),_=ar(_,1);d.value.push(f)}}function c(_){return u.value?[5,6].includes(_):[0,6].includes(_)}function T(_,f){return f?f.filter(O=>_1(vl(O.workout_date,r.value),_)).reverse():[]}return Ce(()=>t.currentDay,()=>E()),mt(()=>E()),(_,f)=>(h(),v("div",Hct,[(h(!0),v(ue,null,be(d.value,(O,A)=>(h(),v("div",{class:"calendar-row",key:A},[(h(!0),v(ue,null,be(O,(R,g)=>(h(),v("div",{class:Ae(["calendar-cell",{"disabled-cell":!m(BD)(R,m(n)),"week-end":c(g),today:m(GD)(R)}]),key:g},[M(Vct,{workouts:T(R,m(l)),sports:m(i),displayHARecord:m(a),index:g},null,8,["workouts","sports","displayHARecord","index"]),p("div",Kct,S(m(On)(R,"d")),1)],2))),128))]))),128))]))}}),jct={class:"calendar-days"},Yct=X({__name:"CalendarDays",props:{startDate:{},localeOptions:{}},setup(e){const t=e,n=[];for(let a=0;a<7;a++)n.push(ar(t.startDate,a));return(a,s)=>(h(),v("div",jct,[(h(),v(ue,null,be(n,(i,o)=>p("div",{class:"calendar-day",key:o},S(m(On)(i,a.localeOptions.code==="eu"?"EEEEEE.":"EEE",{locale:a.localeOptions})),1)),64))]))}}),Xct={class:"calendar-header"},Qct=["aria-label"],Zct={class:"calendar-month"},Jct=["aria-label"],edt=X({__name:"CalendarHeader",props:{day:{},localeOptions:{}},emits:["displayNextMonth","displayPreviousMonth"],setup(e,{emit:t}){const n=e,{day:a,localeOptions:s}=fe(n),i=t;return(o,r)=>(h(),v("div",Xct,[p("button",{class:"calendar-arrow calendar-arrow-left transparent",onClick:r[0]||(r[0]=u=>i("displayPreviousMonth")),"aria-label":o.$t("common.PREVIOUS")},r[2]||(r[2]=[p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)]),8,Qct),p("div",Zct,[p("span",null,S(m(On)(m(a),"MMM yyyy",{locale:m(s)})),1)]),p("button",{class:"calendar-arrow calendar-arrow-right transparent",onClick:r[1]||(r[1]=u=>i("displayNextMonth")),"aria-label":o.$t("common.NEXT")},r[3]||(r[3]=[p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)]),8,Jct)]))}}),tdt={id:"user-calendar"},ndt={class:"section-title"},adt={class:"calendar-card box"},Kh="yyyy-MM-dd",sdt=X({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:a}=fe(t),s=Le(),{locale:i}=qe(),{isAuthUserSuspended:o}=Ke(),r=Ie(new Date),u=Ie(H_(r.value,a.value.weekm)),l=z(()=>s.getters[J.GETTERS.CALENDAR_WORKOUTS]);function d(){if(!o.value){u.value=H_(r.value,t.user.weekm);const T={from:On(u.value.start,Kh),to:On(u.value.end,Kh),page:1,per_page:100,...qo};s.dispatch(J.ACTIONS.GET_CALENDAR_WORKOUTS,T)}}function E(){r.value=Ai(r.value,1),d()}function c(){r.value=wo(r.value,1),d()}return et(()=>d()),(T,_)=>(h(),v("div",tdt,[p("div",ndt,S(T.$t("workouts.MY_WORKOUTS")),1),p("div",adt,[M(edt,{day:r.value,"locale-options":m(i),onDisplayNextMonth:E,onDisplayPreviousMonth:c},null,8,["day","locale-options"]),M(Yct,{"start-date":u.value.start,"locale-options":m(i)},null,8,["start-date","locale-options"]),M(qct,{currentDay:r.value,displayHARecord:m(a).display_ascent,"end-date":u.value.end,sports:m(n),"start-date":u.value.start,timezone:m(a).timezone,workouts:l.value,weekStartingMonday:m(a).weekm},null,8,["currentDay","displayHARecord","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])]))}}),sI={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},idt={ariaLabel:{type:String},ariaDescribedby:{type:String}},odt={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...sI,...idt},rdt=RS[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function ei(e){return Yo(e)?dt(e):e}function udt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Yo(t)?new Proxy(e,{}):e}function ldt(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function iI(e,t){e.labels=t}function oI(e,t,n){const a=[];e.datasets=t.map(s=>{const i=e.datasets.find(o=>o[n]===s[n]);return!i||!s.data||a.includes(i)?{...s}:(a.push(i),Object.assign(i,s),i)})}function cdt(e,t){const n={labels:[],datasets:[]};return iI(n,e.labels),oI(n,e.datasets,t),n}const ddt=X({props:odt,setup(e,t){let{expose:n,slots:a}=t;const s=Ie(null),i=il(null);n({chart:i});const o=()=>{if(!s.value)return;const{type:l,data:d,options:E,plugins:c,datasetIdKey:T}=e,_=cdt(d,T),f=udt(_,d);i.value=new gE(s.value,{type:l,data:f,options:{...E},plugins:c})},r=()=>{const l=dt(i.value);l&&(e.destroyDelay>0?setTimeout(()=>{l.destroy(),i.value=null},e.destroyDelay):(l.destroy(),i.value=null))},u=l=>{l.update(e.updateMode)};return mt(o),ct(r),Ce([()=>e.options,()=>e.data],(l,d)=>{let[E,c]=l,[T,_]=d;const f=dt(i.value);if(!f)return;let O=!1;if(E){const A=ei(E),R=ei(T);A&&A!==R&&(ldt(f,A),O=!0)}if(c){const A=ei(c.labels),R=ei(_.labels),g=ei(c.datasets),I=ei(_.datasets);A!==R&&(iI(f.config.data,A),O=!0),g&&g!==I&&(oI(f.config.data,g,e.datasetIdKey),O=!0)}O&&ln(()=>{u(f)})},{deep:!0}),()=>bn("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:s},[bn("p",{},[a.default?a.default():""])])}});function rI(e,t){return gE.register(t),X({props:sI,setup(n,a){let{expose:s}=a;const i=il(null),o=r=>{i.value=r==null?void 0:r.chart};return s({chart:i}),()=>bn(ddt,rdt({ref:o},{type:e,...n}))}})}const Edt=rI("bar",u0),pdt=rI("line",l0),to=(e,t,n,a=!0,s="km")=>{const i=n?vn[s].defaultTarget:s;switch(e){case"average_speed":return`${t.toFixed(2)} ${i}/h`;case"average_duration":case"total_duration":return Srt(t,a);case"average_distance":case"average_ascent":case"average_descent":case"total_distance":case"total_ascent":case"total_descent":return`${t.toFixed(2)} ${i}`;default:return t.toString()}},Tdt=X({__name:"Chart",props:{datasets:{},labels:{},displayedData:{},displayedSportIds:{},fullStats:{type:Boolean},useImperialUnits:{type:Boolean},label:{}},setup(e){const t=e,{datasets:n,labels:a,displayedData:s,displayedSportIds:i,fullStats:o,useImperialUnits:r}=fe(t),{t:u}=yt(),{darkTheme:l}=qe(),d=z(()=>({color:l.value?os.darkMode.line:os.ligthMode.line})),E=z(()=>({color:l.value?os.darkMode.text:os.ligthMode.text})),c=z(()=>s.value!=="average_workouts"&&s.value.startsWith("average")),T=z(()=>({labels:a.value,datasets:JSON.parse(JSON.stringify(n.value))})),_=z(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:o.value?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1,...d.value},border:{...d.value},ticks:{...E.value}},y:{stacked:!s.value.startsWith("average"),grid:{drawOnChartArea:!1,...d.value},border:{...d.value},ticks:{maxTicksLimit:6,callback:function(R){return to(s.value,+R,r.value,!1,A(s.value))},...E.value},afterFit:function(R){R.width=o.value?90:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(R){return c.value&&R.dataset.backgroundColor?R.dataset.backgroundColor[0]:E.value.color},rotation:function(R){return o.value&&R.chart.chartArea.width<580?310:0},display:function(R){return o.value&&R.chart.chartArea.width<300?!1:c.value?i.value.length==1?"auto":!1:!0},formatter:function(R,g){if(s.value.startsWith("average"))return to(s.value,R,r.value,!1);{const I=g.chart.data.datasets.map(N=>N.data[g.dataIndex]).reduce((N,b)=>O(N,b),0);return g.datasetIndex===i.value.length-1&&I>0?to(s.value,I,r.value,!1,A(s.value)):null}}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:c.value?"nearest":"average"},filter:function(R){return R.formattedValue!=="0"},callbacks:{label:function(R){let g=s.value==="average_workouts"?u("workouts.WORKOUT",0):u(`sports.${R.dataset.label}.LABEL`)||"";return g&&(g+=": "),R.parsed.y!==null&&(g+=to(s.value,R.parsed.y,r.value,!0,A(s.value))),g},footer:function(R){if(s.value.startsWith("average"))return"";let g=0;return R.map(I=>{g+=I.parsed.y}),`${u("common.TOTAL")}: `+to(s.value,g,r.value,!0,A(s.value))}}}}}));function f(R){return isNaN(R)?0:+R}function O(R,g){return f(R)+f(g)}function A(R){return R.includes("scent")?"m":"km"}return(R,g)=>(h(),v("div",{class:Ae(["bar-chart",{minimal:!m(o)}])},[M(m(Edt),{data:T.value,options:_.value,"aria-label":R.label},null,8,["data","options","aria-label"])],2))}}),mdt=se(Tdt,[["__scopeId","data-v-f96e822f"]]),{locale:el}=$i.global,uI={week:{api:"yyyy-MM-dd",chart:"MM/dd/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},_dt=["average_ascent","average_descent","average_distance","average_duration","average_speed","total_workouts","total_duration","total_distance","total_ascent","total_descent"],fdt=(e,t)=>{const n=[];for(let a=pBe(e.duration,e.start,t);a<=e.end;a=TBe(e.duration,a))n.push(a);return n},ma=(e,t,n=!1)=>{const a={label:e,backgroundColor:[t],data:[]};return n?(a.type="line",a.borderColor=[t],a.spanGaps=!0):a.type="bar",a},hdt=e=>{const t={average_ascent:[],average_descent:[],average_distance:[],average_duration:[],average_speed:[],average_workouts:[],total_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map(n=>{const a=n.color?n.color:zp[n.label];t.average_ascent.push(ma(n.label,a,!0)),t.average_descent.push(ma(n.label,a,!0)),t.average_distance.push(ma(n.label,a,!0)),t.average_duration.push(ma(n.label,a,!0)),t.average_speed.push(ma(n.label,a,!0)),t.total_workouts.push(ma(n.label,a)),t.total_distance.push(ma(n.label,a)),t.total_duration.push(ma(n.label,a)),t.total_ascent.push(ma(n.label,a)),t.total_descent.push(ma(n.label,a))}),t},Sdt=(e,t,n)=>{switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":case"average_distance":case"average_ascent":case"average_descent":return Zr(["average_speed","total_distance","average_distance"].includes(e)?"km":"m",t,n);default:case"total_workouts":case"total_duration":case"average_duration":return t}},OE=(e,t,n,a)=>On(e,t==="week"?fs(n,el.value):a,{locale:zs[el.value]}),Adt=(e,t,n,a,s,i,o)=>{const r=fdt(e,t),u=uI[e.duration],l=n.filter(T=>a.includes(T.id)),d=[],E=hdt(l),c={};return l.map(T=>c[T.label]=T.id),r.map(T=>{const _=On(T,u.api),f=OE(T,e.duration,o,u.chart);On(T,e.duration==="week"?fs(o,el.value):u.chart,{locale:zs[el.value]}),d.push(f),_dt.map(O=>{E[O].map(A=>{A.data.push(_ in s&&c[A.label]in s[_]?Sdt(O,s[_][c[A.label]][O],i):O.startsWith("average")?null:0)})})}),{labels:d,datasets:E}},Odt=(e,t,n,a)=>{const s=n?1:0,i=t==="year"?JE(Vd(e,9)):t==="week"?Il(wo(e,2),{weekStartsOn:s}):ir(wo(e,11)),o=t==="year"?f1(e):t==="week"?ep(e,{weekStartsOn:s}):sr(e);return{duration:t,end:o,start:i,statsType:a}},Idt=(e,t,n)=>{const{duration:a,start:s,end:i}=e,o=n?1:0;return{duration:a,end:a==="year"?f1(t?Vd(i,1):Tu(i,1)):a==="week"?ep(t?Zm(i,1):Gd(i,1),{weekStartsOn:o}):sr(t?wo(i,1):Ai(i,1)),start:a==="year"?JE(t?Vd(s,1):Tu(s,1)):a==="week"?Il(t?Zm(s,1):Gd(s,1),{weekStartsOn:o}):ir(t?wo(s,1):Ai(s,1)),statsType:e.statsType}},qh=e=>{const t=e.reduce((a,s)=>(a||0)+(s||0),0);return+(e.length?(t||0)/e.length:0).toFixed(1)},gdt=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:n{const n=[],a={label:"workouts_average",backgroundColor:[],data:[]};let s=[];const i=e.map(o=>(o.label=t(`sports.${o.label}.LABEL`),o)).sort(gdt);for(const o of i)a.data.push(qh(o.data)),a.backgroundColor.push(o.backgroundColor[0]),n.push(o.label),s.length>0?s=s.map((r,u)=>r+(o.data[u]||0)):s=o.data.map(r=>r||0);return{labels:n,datasets:{workouts_average:[a]},workoutsAverage:qh(s)}},Ndt={class:"stats-chart"},vdt={key:0},bdt={key:1},Cdt={class:"chart-radio"},Pdt=["value","checked","disabled"],Ddt=["value","checked","disabled"],Ldt=["value","checked","disabled"],ydt={key:0},$dt=["checked","disabled"],Udt={key:1},kdt=["value","checked","disabled"],wdt={key:2},Mdt=["value","checked","disabled"],Wdt={class:"workouts-average"},Fdt={key:0,class:"info-box"},zdt=X({__name:"index",props:{sports:{},user:{},chartParams:{},displayedSportIds:{default:()=>[]},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},selectedTimeFrame:{default:null}},setup(e){const t=e,{sports:n,user:a,chartParams:s,displayedSportIds:i,fullStats:o,hideChartIfNoData:r,isDisabled:u}=fe(t),l=Le(),{t:d}=yt(),E=Ie("total_distance"),c=z(()=>l.getters[Mt.GETTERS.USER_STATS]),T=z(()=>uI[s.value.duration].chart),_=z(()=>OE(s.value.start,s.value.duration,a.value.date_format,T.value)),f=z(()=>OE(s.value.end,s.value.duration,a.value.date_format,T.value)),O=z(()=>Adt(s.value,a.value.weekm,n.value,i.value,c.value,a.value.imperial_units,a.value.date_format)),A=z(()=>O.value.datasets[E.value]),R=z(()=>O.value.labels),g=z(()=>Object.keys(c.value).length===0),I=z(()=>s.value.statsType),N=z(()=>Rdt(O.value.datasets.total_workouts,d));function b(D){a.value.suspended_at||l.dispatch(Mt.ACTIONS.GET_USER_STATS,{username:a.value.username,params:D})}function C(D){E.value=D.target.value}function y(D,U){return{from:On(D.start,"yyyy-MM-dd"),to:On(D.end,"yyyy-MM-dd"),time:D.duration==="week"?`week${U.weekm?"m":""}`:D.duration,type:I.value}}return Ce(()=>s.value,async D=>{b(y(D,a.value))}),Ce(()=>I.value,async D=>{E.value=D==="total"&&E.value==="average_speed"?"total_distance":`${I.value}_${E.value.split("_")[1]}`}),et(()=>b(y(s.value,a.value))),(D,U)=>(h(),v("div",Ndt,[m(r)&&g.value?(h(),v("div",vdt,S(D.$t("workouts.NO_WORKOUTS")),1)):(h(),v("div",bdt,[p("div",Cdt,[p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_distance`,checked:E.value===`${I.value}_distance`,disabled:m(u),onClick:C},null,8,Pdt),x(" "+S(D.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_duration`,checked:E.value===`${I.value}_duration`,disabled:m(u),onClick:C},null,8,Ddt),x(" "+S(D.$t("workouts.DURATION")),1)]),p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_workouts`,checked:E.value===`${I.value}_workouts`,disabled:m(u),onClick:C},null,8,Ldt),x(" "+S(D.$t("workouts.WORKOUT",2)),1)]),m(o)&&I.value==="average"?(h(),v("label",ydt,[p("input",{type:"radio",name:"value_type",value:"average_speed",checked:E.value==="average_speed",disabled:m(u),onClick:C},null,8,$dt),x(" "+S(D.$t("workouts.SPEED")),1)])):L("",!0),m(o)?(h(),v("label",Udt,[p("input",{type:"radio",name:"value_type",value:`${I.value}_ascent`,checked:E.value===`${I.value}_ascent`,disabled:m(u),onClick:C},null,8,kdt),x(" "+S(D.$t("workouts.ASCENT")),1)])):L("",!0),m(o)?(h(),v("label",wdt,[p("input",{type:"radio",name:"value_type",value:`${I.value}_descent`,checked:E.value===`${I.value}_descent`,disabled:m(u),onClick:C},null,8,Mdt),x(" "+S(D.$t("workouts.DESCENT")),1)])):L("",!0)]),R.value.length>0||N.value.labels.length>0?(h(),B(mdt,{key:0,datasets:E.value==="average_workouts"?N.value.datasets.workouts_average:A.value,labels:E.value==="average_workouts"?N.value.labels:R.value,displayedData:E.value,displayedSportIds:m(i),fullStats:m(o),useImperialUnits:m(a).imperial_units,label:D.$t(`statistics.STATISTICS_CHARTS.${m(s).duration}`)+` (${_.value} - ${f.value})`},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits","label"])):L("",!0),p("div",Wdt,[E.value==="average_workouts"&&D.selectedTimeFrame?(h(),v("div",Fdt,[U[0]||(U[0]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(D.$t("statistics.DATES"))+": "+S(_.value)+" - "+S(f.value)+", "+S(D.$t("statistics.WORKOUTS_AVERAGE"))+": "+S(N.value.workoutsAverage)+"/"+S(D.$t(`statistics.TIME_FRAMES.${D.selectedTimeFrame}`)),1)])):L("",!0)])]))]))}}),lI=se(zdt,[["__scopeId","data-v-f61443a0"]]),xdt={class:"user-month-stats"},Bdt={class:"section-title"},Gdt={class:"box"},Vdt=X({__name:"UserMonthStats",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:a}=fe(t),s=new Date,i={duration:"week",start:ir(s),end:sr(s),statsType:"total"},o=z(()=>n.value.map(r=>r.id));return(r,u)=>(h(),v("div",xdt,[p("div",Bdt,[u[0]||(u[0]=p("i",{class:"fa fa-calendar custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(r.$t("dashboard.THIS_MONTH")),1)]),p("div",Gdt,[M(lI,{sports:m(n),user:m(a),"chart-params":i,"displayed-sport-ids":o.value,"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])])]))}}),Hdt=se(Vdt,[["__scopeId","data-v-f5b0f1af"]]),Kdt={class:"record"},qdt={class:"record-type"},jdt={class:"record-value"},Ydt={class:"record-date"},Xdt=X({__name:"SportRecordsTable",props:{record:{}},setup(e){const t=e,{record:n}=fe(t);return(a,s)=>{const i=j("router-link");return h(),v("div",Kdt,[p("span",qdt,S(Fe(m(n).label)),1),p("span",jdt,S(m(n).value),1),p("span",Ydt,[M(i,{to:{name:"Workout",params:{workoutId:m(n).workout_id}}},{default:Y(()=>[p("time",null,S(m(n).workout_date),1)]),_:1},8,["to"])])])}}}),cI=se(Xdt,[["__scopeId","data-v-f8125b68"]]),{locale:Qdt}=$i.global,Zdt=(e,t,n,a)=>{const s="km",i=n?vn[s].defaultTarget:s,o="m",r=n?vn[o].defaultTarget:o;let u;switch(e.record_type){case"AS":case"MS":u=`${Yt(+e.value,s,i,2)} ${i}/h`;break;case"FD":u=`${Yt(+e.value,s,i,3)} ${i}`;break;case"HA":u=`${Yt(+e.value,o,r,2)} ${r}`;break;case"LD":u=e.value;break;default:throw new Error(`Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "${e.record_type}"`)}return{id:e.id,record_type:e.record_type,sport_id:e.sport_id,value:u,user:e.user,workout_date:$t(e.workout_date,t,a,!1),workout_id:e.workout_id}},dI=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:n(i=fs(i,Qdt.value),e.filter(r=>s?!0:r.record_type!=="HA").reduce((r,u)=>{const l=t.find(d=>d.id===u.sport_id);return l&&l.label&&(o===null||l.id===o)&&(r[l.translatedLabel]===void 0&&(r[l.translatedLabel]={label:l.label,color:l.color,records:[]}),r[l.translatedLabel].records.push(Zdt(u,n,a,i))),r},{})),Jdt={class:"records-card"},eEt=X({__name:"RecordsCard",props:{records:{},sportTranslatedLabel:{}},setup(e){const t=e,{records:n,sportTranslatedLabel:a}=fe(t),s=Le(),{t:i}=yt(),o=z(()=>s.getters[te.GETTERS.LANGUAGE]),r=z(()=>o.value==="bg");function u(l){const d=[];return l.map(E=>{d.push({...E,label:i(`workouts.RECORD_${E.record_type}`)})}),d.sort(dI)}return(l,d)=>{const E=j("SportImage"),c=j("Card");return h(),v("div",Jdt,[M(c,null,{title:Y(()=>[M(E,{"sport-label":m(n).label,color:m(n).color},null,8,["sport-label","color"]),x(" "+S(m(a)),1)]),content:Y(()=>[(h(!0),v(ue,null,be(u(m(n).records),T=>(h(),B(cI,{class:Ae({"max-width":r.value}),record:T,key:T.id},null,8,["class","record"]))),128))]),_:1})])}}}),tEt=se(eEt,[["__scopeId","data-v-7ab88f3c"]]),nEt={class:"user-records-section"},aEt={class:"section-title"},sEt={class:"title"},iEt={class:"user-records"},oEt={key:0,class:"no-records"},rEt=X({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{user:n}=fe(t),{t:a}=yt(),s=z(()=>EI(n.value.records,ia(t.sports,a),n.value.timezone,n.value.imperial_units,n.value.display_ascent,n.value.date_format));return(i,o)=>(h(),v("div",nEt,[p("div",aEt,[o[0]||(o[0]=p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),p("span",sEt,S(i.$t("workouts.RECORD",2)),1)]),p("div",iEt,[Object.keys(s.value).length===0?(h(),v("div",oEt,S(i.$t("workouts.NO_RECORDS")),1)):L("",!0),(h(!0),v(ue,null,be(Object.keys(s.value).sort(),r=>(h(),B(tEt,{sportTranslatedLabel:r,records:s.value[r],key:r,useImperialUnits:m(n).imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"]))),128))])]))}}),uEt=se(rEt,[["__scopeId","data-v-e0d23747"]]),lEt={id:"user-stats"},Ed="km",pd="m",cEt=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),{t:a}=yt(),s=z(()=>Yp(n.value.total_duration,a)),i=z(()=>n.value.imperial_units?vn[Ed].defaultTarget:Ed),o=z(()=>n.value.imperial_units?Yt(n.value.total_distance,Ed,i.value,2):parseFloat(n.value.total_distance.toFixed(2))),r=z(()=>n.value.imperial_units?vn[pd].defaultTarget:pd),u=z(()=>n.value.imperial_units?Yt(n.value.total_ascent,pd,r.value,2):parseFloat(n.value.total_ascent.toFixed(2)));return(l,d)=>(h(),v("div",lEt,[M(wa,{icon:"calendar",value:m(n).nb_workouts,text:l.$t("workouts.WORKOUT",m(n).nb_workouts)},null,8,["value","text"]),M(wa,{icon:"road",value:o.value,text:i.value==="mi"?"miles":i.value},null,8,["value","text"]),m(n).display_ascent?(h(),B(wa,{key:0,icon:"location-arrow",value:u.value,text:r.value==="ft"?"feet":r.value},null,8,["value","text"])):L("",!0),M(wa,{icon:"clock-o",value:s.value.days,text:s.value.duration},null,8,["value","text"]),m(n).display_ascent?L("",!0):(h(),B(wa,{key:1,icon:"tags",value:m(n).nb_sports,text:l.$t("workouts.SPORT",m(n).nb_sports)},null,8,["value","text"]))]))}}),dEt={class:"privacy-policy-message"},EEt=X({__name:"PrivacyPolicyToAccept",props:{isPrivacyUpdated:{type:Boolean}},setup(e){const t=e,{isPrivacyUpdated:n}=fe(t);return(a,s)=>{const i=j("router-link"),o=j("i18n-t");return h(),v("div",dEt,[p("span",null,[M(o,{keypath:`user.${m(n)?"LAST_":""}PRIVACY_POLICY_TO_VALIDATE`},{default:Y(()=>[M(i,{to:"/profile/edit/privacy-policy",class:"policy-link"},{default:Y(()=>[x(S(a.$t("user.REVIEW")),1)]),_:1})]),_:1},8,["keypath"])])])}}}),pEt=se(EEt,[["__scopeId","data-v-1653c054"]]),TEt={key:0,id:"dashboard",class:"view"},mEt={class:"container mobile-menu"},_Et={class:"box"},fEt={key:0,class:"container privacy-policy-message"},hEt={class:"container"},SEt={class:"container dashboard-container"},AEt={class:"left-container dashboard-sub-container"},OEt={class:"right-container dashboard-sub-container"},IEt={key:1,class:"app-loading"},gEt=X({__name:"Dashboard",setup(e){const t=Le(),{authUser:n}=Ke(),{sports:a}=nn(),s=Ie("calendar");function i(o){s.value=o}return et(()=>t.dispatch(K.ACTIONS.GET_USER_PROFILE)),(o,r)=>{const u=j("Loader");return m(n).username&&m(a).length>0?(h(),v("div",TEt,[p("div",mEt,[p("div",_Et,[p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="calendar"}]),onClick:r[0]||(r[0]=l=>i("calendar"))},r[4]||(r[4]=[p("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="chart"}]),onClick:r[1]||(r[1]=l=>i("chart"))},r[5]||(r[5]=[p("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="timeline"}]),onClick:r[2]||(r[2]=l=>i("timeline"))},r[6]||(r[6]=[p("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="records"}]),onClick:r[3]||(r[3]=l=>i("records"))},r[7]||(r[7]=[p("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1)]),2)])]),m(n).accepted_privacy_policy!==!0?(h(),v("div",fEt,[M(pEt,{"is-privacy-updated":m(n).accepted_privacy_policy===!1},null,8,["is-privacy-updated"])])):L("",!0),p("div",hEt,[M(cEt,{user:m(n)},null,8,["user"])]),p("div",SEt,[p("div",AEt,[M(Hdt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="chart"})},null,8,["sports","user","class"]),M(uEt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="records"})},null,8,["sports","user","class"])]),p("div",OEt,[M(sdt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="calendar"})},null,8,["sports","user","class"]),M(vct,{sports:m(a),authUser:m(n),class:Ae({"is-hidden":s.value!=="timeline"})},null,8,["sports","authUser","class"])])]),r[8]||(r[8]=p("div",{id:"bottom"},null,-1))])):(h(),v("div",IEt,[M(u)]))}}}),REt=se(gEt,[["__scopeId","data-v-3dd07f41"]]),NEt={class:"not-found view"},vEt=X({__name:"NotFoundView",setup(e){return(t,n)=>(h(),v("div",NEt,[M(Ui)]))}}),bEt={key:0,class:"follow-request"},CEt={class:"follow-request-user"},PEt={class:"user-name"},DEt={key:0,class:"follow-request-actions"},LEt={key:1,class:"follow-request-actions"},yEt=X({__name:"RelationshipDetail",props:{authUser:{},notification:{}},emits:["updatedUserRelationship","userLinkClicked"],setup(e,{emit:t}){const n=e,{authUser:a,notification:s}=fe(n),i=t,o=Le();function r(u,l){o.dispatch(K.ACTIONS.UPDATE_FOLLOW_REQUESTS,{username:u,action:l}),i("updatedUserRelationship")}return(u,l)=>{const d=j("router-link");return m(s).from?(h(),v("div",bEt,[p("div",CEt,[M(Qt,{user:m(s).from},null,8,["user"]),p("div",PEt,[M(d,{to:`/users/${m(s).from.username}`,onClick:l[0]||(l[0]=E=>u.$emit("userLinkClicked"))},{default:Y(()=>[x(S(m(s).from.username),1)]),_:1},8,["to"])])]),m(s).type==="follow_request"?(h(),v("div",DEt,[p("button",{onClick:l[1]||(l[1]=E=>r(m(s).from.username,"accept"))},[l[4]||(l[4]=p("i",{class:"fa fa-check","aria-hidden":"true"},null,-1)),x(" "+S(u.$t("buttons.ACCEPT")),1)]),p("button",{onClick:l[2]||(l[2]=E=>r(m(s).from.username,"reject")),class:"danger"},[l[5]||(l[5]=p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)),x(" "+S(u.$t("buttons.REJECT")),1)])])):(h(),v("div",LEt,[M(Zu,{authUser:m(a),user:m(s).from,from:"notifications",displayFollowsYou:!0,onUpdatedUser:l[3]||(l[3]=()=>i("updatedUserRelationship"))},null,8,["authUser","user"])]))])):L("",!0)}}}),$Et=se(yEt,[["__scopeId","data-v-dc09ab49"]]),UEt={class:"report-notification"},kEt={key:0,class:"reported-workout"},wEt={key:1,class:"reported-comment"},MEt={key:2,class:"reported-user"},WEt={class:"user-name"},FEt={key:3,class:"reported-user"},zEt={class:"deleted-object"},xEt={class:"report-button"},BEt=X({__name:"ReportNotification",props:{report:{}},emits:["reportButtonClicked"],setup(e,{emit:t}){const n=e,{report:a}=fe(n),s=t,i=gn();function o(r){i.push(`/admin/reports/${r}`),s("reportButtonClicked")}return(r,u)=>{const l=j("router-link");return h(),v("div",UEt,[m(a).reported_workout?(h(),v("div",kEt,[M(Qp,{"display-appeal":!1,"display-object-name":!0,workout:m(a).reported_workout,"report-id":m(a).id},null,8,["workout","report-id"])])):m(a).reported_comment?(h(),v("div",wEt,[M(Xp,{"display-object-name":!0,comment:m(a).reported_comment},null,8,["comment"])])):m(a).reported_user?(h(),v("div",MEt,[M(Qt,{user:m(a).reported_user},null,8,["user"]),p("div",WEt,[M(l,{to:`/users/${m(a).reported_user.username}`},{default:Y(()=>[x(S(m(a).reported_user.username),1)]),_:1},8,["to"])])])):(h(),v("div",FEt,[p("span",zEt,S(r.$t("admin.DELETED_USER")),1)])),p("div",xEt,[p("button",{onClick:u[0]||(u[0]=d=>o(m(a).id))},S(r.$t("admin.APP_MODERATION.VIEW_REPORT"))+" #"+S(m(a).id),1)])])}}}),GEt=se(BEt,[["__scopeId","data-v-ff0a4948"]]),VEt={class:"notification-data-button"},HEt={class:"notification-date"},KEt=["title"],qEt={class:"hidden-content"},jEt={key:0},YEt={class:"notification-reason"},XEt={key:5,class:"auth-user"},QEt={class:"user-name"},ZEt={key:6},JEt={key:0,class:"info-box appeal-in-progress"},ept=X({__name:"NotificationDetail",props:{authUser:{},notification:{}},emits:["reload","updateReadStatus"],setup(e,{emit:t}){const n=e,{authUser:a,notification:s}=fe(n),i=t,{locale:o}=qe(),r=z(()=>_(s.value.type));function u(){i("reload")}function l(f,O){i("updateReadStatus",{notificationId:f,markedAsRead:O})}function d(f){f.marked_as_read||l(f.id,!0)}function E(f){return["comment_like","comment_suspension","comment_unsuspension","mention","user_warning","user_warning_lifting","workout_comment"].includes(f)&&s.value.comment!==void 0}function c(f){return["account_creation","follow","follow_request","follow_request_approved"].includes(f)}function T(f){var O;switch(f){case"account_creation":return"notifications.SIGN_UP";case"comment_like":return"notifications.LIKED_YOUR_COMMENT";case"comment_suspension":return"notifications.YOUR_COMMENT_HAS_BEEN_SUSPENDED";case"comment_unsuspension":return"notifications.YOUR_COMMENT_HAS_BEEN_UNSUSPENDED";case"follow":return"user.RELATIONSHIPS.FOLLOWS_YOU";case"follow_request":return"notifications.SEND_FOLLOW_REQUEST_TO_YOU";case"follow_request_approved":return"notifications.ACCEPTED_FOLLOW_REQUEST";case"mention":return"notifications.MENTIONED_YOU";case"suspension_appeal":return"notifications.APPEALED_SUSPENSION";case"user_warning":return"notifications.YOU_RECEIVED_A_WARNING";case"user_warning_appeal":return"notifications.APPEALED_USER_WARNING";case"user_warning_lifting":return"notifications.YOUR_WARNING_HAS_BEEN_LIFTED";case"workout_comment":return"notifications.COMMENTED_YOUR_WORKOUT";case"workout_like":return"notifications.LIKED_YOUR_WORKOUT";case"workout_suspension":return"notifications.YOUR_WORKOUT_HAS_BEEN_SUSPENDED";case"workout_unsuspension":return"notifications.YOUR_WORKOUT_HAS_BEEN_UNSUSPENDED";case"report":return`notifications.REPORTED_USER_${(O=s.value.report)!=null&&O.object_type?s.value.report.object_type.toUpperCase():""}`;default:return""}}function _(f){switch(f){case"follow":case"follow_request":case"follow_request_approved":return"user-plus";case"mention":return"at";case"comment_suspension":case"comment_unsuspension":case"report":case"suspension_appeal":case"user_warning":case"user_warning_appeal":case"user_warning_lifting":case"workout_suspension":case"workout_unsuspension":return"flag";case"comment_like":case"workout_like":return"heart";default:return"comment"}}return(f,O)=>{const A=j("router-link"),R=j("Card");return m(s).id?(h(),B(R,{key:0,class:Ae(["notification-card",{read:m(s).marked_as_read}])},{title:Y(()=>[p("div",null,[p("i",{class:Ae([`fa-${r.value}`,"fa notification-icon"]),"aria-hidden":"true"},null,2),m(s).from?(h(),B(A,{key:0,to:`/users/${m(s).from.username}`},{default:Y(()=>[x(S(m(s).from.username),1)]),_:1},8,["to"])):L("",!0),x(" "+S(f.$t(T(m(s).type))),1)]),p("div",VEt,[p("div",HEt,S(m(Ws)(new Date(m(s).created_at),new Date,{addSuffix:!0,locale:m(o)})),1),p("button",{class:"mark-action",title:f.$t(`notifications.MARK_AS_${m(s).marked_as_read?"UN":""}READ`),onClick:O[0]||(O[0]=()=>l(m(s).id,!m(s).marked_as_read))},[p("span",qEt,S(f.$t(`notifications.MARK_AS_${m(s).marked_as_read?"UN":""}READ`)),1),p("i",{class:Ae(["fa",`fa-eye${m(s).marked_as_read?"-slash":""}`]),"aria-hidden":"true"},null,2)],8,KEt)])]),content:Y(()=>{var g,I,N,b,C,y;return[(g=m(s).report_action)!=null&&g.reason?(h(),v("div",jEt,[p("span",YEt,S(f.$t("admin.APP_MODERATION.REASON"))+": ",1),x(" "+S(m(s).report_action.reason),1)])):L("",!0),E(m(s).type)&&m(s).comment?(h(),B(Xp,{key:1,"display-object-name":m(s).type.startsWith("user_warning"),comment:m(s).comment,action:m(s).report_action,onCommentLinkClicked:O[1]||(O[1]=D=>d(m(s)))},null,8,["display-object-name","comment","action"])):c(m(s).type)?(h(),B($Et,{key:2,notification:m(s),authUser:m(a),onUpdatedUserRelationship:u,onUserLinkClicked:O[2]||(O[2]=D=>d(m(s)))},null,8,["notification","authUser"])):["report","suspension_appeal","user_warning_appeal"].includes(m(s).type)&&m(s).report?(h(),B(GEt,{key:3,report:m(s).report,onReportButtonClicked:O[3]||(O[3]=D=>d(m(s)))},null,8,["report"])):m(s).workout?(h(),B(Qp,{key:4,action:m(s).report_action,"display-appeal":m(s).type!=="user_warning","display-object-name":m(s).type.startsWith("user_warning"),workout:m(s).workout,onWorkoutLinkClicked:O[4]||(O[4]=D=>d(m(s)))},null,8,["action","display-appeal","display-object-name","workout"])):L("",!0),((I=m(s).report_action)==null?void 0:I.action_type)==="user_warning_lifting"&&!m(s).comment&&!m(s).workout?(h(),v("div",XEt,[M(Qt,{user:m(a)},null,8,["user"]),p("div",QEt,[M(A,{to:`/users/${m(a).username}`},{default:Y(()=>[x(S(m(a).username),1)]),_:1},8,["to"])])])):L("",!0),((N=m(s).report_action)==null?void 0:N.action_type)==="user_warning"?(h(),v("div",ZEt,[((C=(b=m(s).report_action)==null?void 0:b.appeal)==null?void 0:C.approved)===null?(h(),v("div",JEt,[p("span",null,[O[6]||(O[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(f.$t("user.APPEAL_IN_PROGRESS")),1)])])):(y=m(s).report_action)!=null&&y.appeal?L("",!0):(h(),B(A,{key:1,class:"appeal-link",to:`profile/moderation/sanctions/${m(s).report_action.id}`,onClick:O[5]||(O[5]=D=>d(m(s)))},{default:Y(()=>[x(S(f.$t("user.APPEAL")),1)]),_:1},8,["to"]))])):L("",!0)]}),_:1},8,["class"])):L("",!0)}}}),tpt=se(ept,[["__scopeId","data-v-c0558938"]]),npt={key:0,id:"notifications"},apt={key:0,class:"no-notifications box"},spt=X({__name:"Notifications",setup(e){const t=Le(),n=ut(),{authUser:a,isAuthUserSuspended:s}=Ke();let i=kt(u(n.query));const o=z(()=>t.getters[Et.GETTERS.NOTIFICATIONS]),r=z(()=>t.getters[Et.GETTERS.PAGINATION]);function u(T){const _={};return"page"in T&&T.page&&(_.page=+T.page),"type"in T&&T.type&&(_.type=T.type),"status"in T&&T.status==="unread"&&(_.status="unread"),_}function l(){setTimeout(()=>{d(i)},500)}function d(T){s.value||t.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,T)}function E(T){t.dispatch(Et.ACTIONS.UPDATE_STATUS,{...T,currentQuery:i})}function c(){t.dispatch(Et.ACTIONS.MARK_ALL_AS_READ,i)}return Ce(()=>n.query,T=>{i=u(T),d(i)}),Ce(()=>s.value,T=>{T||d(i)}),et(()=>d(i)),ct(()=>{t.commit(Et.MUTATIONS.EMPTY_NOTIFICATIONS)}),(T,_)=>m(a).username?(h(),v("div",npt,[o.value.length===0?(h(),v("div",apt,S(T.$t("notifications.NO_NOTIFICATIONS")),1)):(h(),v(ue,{key:1},[p("button",{class:"mark-all-action",onClick:c},S(T.$t("notifications.MARK_ALL_AS_READ")),1),(h(!0),v(ue,null,be(o.value,f=>(h(),B(tpt,{key:f.id,"auth-user":m(a),notification:f,onReload:l,onUpdateReadStatus:E},null,8,["auth-user","notification"]))),128)),r.value.page?(h(),B(oa,{key:0,path:"/notifications",pagination:r.value,query:m(i)},null,8,["pagination","query"])):L("",!0)],64))])):L("",!0)}}),ipt=se(spt,[["__scopeId","data-v-a25ddea4"]]),opt={class:"notifications-filters"},rpt={class:"box"},upt={class:"form"},lpt={class:"form-all-items"},cpt={class:"form-items-group"},dpt={class:"status-title"},Ept={class:"status-radio"},ppt=["checked"],Tpt=["checked"],mpt={class:"form-items-group"},_pt={class:"form-item"},fpt={for:"notification-labels"},hpt=["disabled","value"],Spt={value:""},Apt=["value"],Opt=X({__name:"NotificationsFilters",setup(e){const t=ut(),n=gn(),a=Le(),{t:s}=yt(),{authUserHasModeratorRights:i,isAuthUserSuspended:o}=Ke(),r=z(()=>a.getters[Et.GETTERS.TYPES]),u=z(()=>A());let l=Object.assign({},t.query);const d=Ie(E(t.query));function E(R){return"status"in R?R.status:null}function c(R){d.value=R,l.status=R,_()}function T(R){const g=R.target;g.value===""?delete l[g.name]:l[g.name]=g.value,_()}function _(){"page"in l&&(l.page="1"),n.push({path:"/notifications",query:l})}function f(R,g){return R.label>g.label?1:R.label!["report","suspension_appeal","user_warning_appeal"].includes(g)||i.value).map(g=>{R.push({label:s(`notifications.TYPES.${g}`),value:g})}),R.sort(f)}return Ce(()=>t.query,R=>{l=Object.assign({},R),d.value=E(R),O()}),et(()=>O()),ct(()=>{a.commit(Et.MUTATIONS.UPDATE_TYPES,[])}),(R,g)=>(h(),v("div",opt,[p("div",rpt,[p("form",upt,[p("div",lpt,[p("div",cpt,[p("span",dpt,S(R.$t("notifications.STATUS")),1),p("div",Ept,[p("label",null,[p("input",{type:"radio",name:"duration",checked:d.value==="unread",onClick:g[0]||(g[0]=I=>c("unread"))},null,8,ppt),x(" "+S(R.$t("notifications.UNREAD")),1)]),p("label",null,[p("input",{type:"radio",name:"all",checked:d.value!=="unread",onClick:g[1]||(g[1]=I=>c("all"))},null,8,Tpt),x(" "+S(R.$t("notifications.ALL")),1)])])]),p("div",mpt,[p("div",_pt,[p("label",fpt,S(R.$t("notifications.TYPES.LABEL")),1),p("select",{class:"notification-labels",id:"notification-labels",name:"type",disabled:u.value.length===0,value:R.$route.query.type,onChange:T},[u.value.length>0?(h(),v(ue,{key:0},[p("option",Spt,S(R.$t("notifications.TYPES.ALL")),1),g[2]||(g[2]=p("option",{disabled:""},"──────",-1))],64)):L("",!0),(h(!0),v(ue,null,be(u.value,I=>(h(),v("option",{value:I.value,key:I.value},S(I.label),9,Apt))),128))],40,hpt)])])])])])]))}}),Ipt=se(Opt,[["__scopeId","data-v-6cb336ec"]]),gpt={id:"notifications",class:"view items-list-view"},Rpt={class:"container items-list-container"},Npt={class:"display-filters"},vpt={class:"list-container"},bpt=X({__name:"NotificationsView",setup(e){const t=Ie(!0);function n(){t.value=!t.value}return(a,s)=>(h(),v("div",gpt,[p("div",Rpt,[p("div",{class:Ae(["filters-container",{hidden:t.value}])},[M(Ipt)],2),p("div",Npt,[p("div",{onClick:n},[p("i",{class:Ae(`fa fa-caret-${t.value?"down":"up"}`),"aria-hidden":"true"},null,2),p("span",null,S(a.$t(`workouts.${t.value?"DISPLAY":"HIDE"}_FILTERS`)),1)])]),p("div",vpt,[M(ipt)])])]))}}),Cpt={id:"privacy-policy",class:"view"},Ppt={class:"container"},Dpt=X({__name:"PrivacyPolicyView",setup(e){const t=Le();return et(()=>{t.dispatch(te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY)}),(n,a)=>(h(),v("div",Cpt,[p("div",Ppt,[M(QO)]),a[0]||(a[0]=p("div",{id:"bottom"},null,-1))]))}}),Lpt={class:"chart-menu"},ypt=["disabled","aria-label"],$pt={class:"time-frames custom-checkboxes-group"},Upt={class:"time-frames-checkboxes custom-checkboxes"},kpt=["id","name","checked","onInput","disabled"],wpt=["id","tabindex","onKeydown"],Mpt=["disabled","aria-label"],Wpt={class:"stats-type"},Fpt={class:"stats-type-radio"},zpt=["checked","disabled"],xpt=["checked","disabled"],Bpt=X({__name:"StatsMenu",props:{isDisabled:{type:Boolean}},emits:["arrowClick","statsTypeUpdate","timeFrameUpdate"],setup(e,{emit:t}){const n=e,{isDisabled:a}=fe(n),s=t,i=["week","month","year"],o=Ie("month"),r=Ie("total");function u(d){o.value=d,s("timeFrameUpdate",d)}function l(d){r.value=d.target.value,s("statsTypeUpdate",r.value)}return(d,E)=>(h(),v(ue,null,[p("div",Lpt,[p("button",{class:"chart-arrow transparent",onClick:E[0]||(E[0]=c=>s("arrowClick",!0)),onKeydown:E[1]||(E[1]=Ye(c=>s("arrowClick",!0),["enter"])),disabled:m(a),"aria-label":d.$t("common.PREVIOUS")},E[4]||(E[4]=[p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)]),40,ypt),p("div",$pt,[p("div",Upt,[(h(),v(ue,null,be(i,c=>p("div",{class:"time-frame custom-checkbox",key:c},[p("label",null,[p("input",{type:"radio",id:c,name:c,checked:o.value===c,onInput:T=>u(c),disabled:m(a)},null,40,kpt),p("span",{id:`frame-${c}`,tabindex:m(a)?-1:0,role:"button",onKeydown:Ye(T=>u(c),["enter"])},S(d.$t(`statistics.TIME_FRAMES.${c}`)),41,wpt)])])),64))])]),p("button",{class:"chart-arrow transparent",onClick:E[2]||(E[2]=c=>s("arrowClick",!1)),onKeydown:E[3]||(E[3]=Ye(c=>s("arrowClick",!1),["enter"])),disabled:m(a),"aria-label":d.$t("common.NEXT")},E[5]||(E[5]=[p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)]),40,Mpt)]),p("div",Wpt,[p("div",Fpt,[p("label",null,[p("input",{type:"radio",name:"stats_type",value:"total",checked:r.value==="total",disabled:m(a),onClick:l},null,8,zpt),x(" "+S(d.$t("common.TOTAL")),1)]),p("label",null,[p("input",{type:"radio",name:"stats_type",value:"average",checked:r.value==="average",disabled:m(a),onClick:l},null,8,xpt),x(" "+S(d.$t("statistics.AVERAGE")),1)])])])],64))}}),Gpt=se(Bpt,[["__scopeId","data-v-dacfdeb2"]]),Vpt={class:"sports-menu"},Hpt=["id","name","checked","onInput","onKeyup"],Kpt={class:"sport-label"},qpt=X({__name:"StatsSportsMenu",props:{userSports:{},selectedSportIds:{default:()=>[]}},emits:["selectedSportIdsUpdate"],setup(e,{emit:t}){const n=e,{selectedSportIds:a,userSports:s}=fe(n),i=t,{t:o}=yt(),{sportColors:r}=nn(),u=z(()=>ia(s.value,o));function l(d){i("selectedSportIdsUpdate",d)}return(d,E)=>{const c=j("SportImage");return h(),v("div",Vpt,[(h(!0),v(ue,null,be(u.value,T=>(h(),v("label",{type:"checkbox",key:T.id,style:za({color:T.color?T.color:m(r)[T.label]})},[p("input",{type:"checkbox",id:`${T.id}`,name:T.label,checked:m(a).includes(T.id),onInput:_=>l(T.id),onKeyup:Ye(ve(_=>l(T.id),["prevent"]),["space"])},null,40,Hpt),M(c,{"sport-label":T.label,color:T.color},null,8,["sport-label","color"]),p("span",Kpt,S(T.translatedLabel),1)],4))),128))])}}}),jpt={key:0,id:"user-statistics"},Ypt=X({__name:"index",props:{sports:{},user:{},isDisabled:{type:Boolean}},setup(e){const t=e,{sports:n,user:a}=fe(t),{t:s}=yt(),i=Ie("month"),o=Ie("total"),r=Ie(c(i.value,o.value)),u=Ie(_(n.value)),l=z(()=>ia(t.sports,s));function d(O){i.value=O,r.value=c(O,o.value)}function E(O){o.value=O,r.value=c(i.value,O)}function c(O,A){return Odt(new Date,O,t.user.weekm,A)}function T(O){r.value=Idt(r.value,O,t.user.weekm)}function _(O){return O.map(A=>A.id)}function f(O){u.value.includes(O)?u.value=u.value.filter(A=>A!==O):u.value.push(O)}return Ce(()=>t.sports,O=>{u.value=_(O)}),(O,A)=>l.value?(h(),v("div",jpt,[M(Gpt,{onStatsTypeUpdate:E,onTimeFrameUpdate:d,onArrowClick:T,isDisabled:O.isDisabled},null,8,["isDisabled"]),M(lI,{sports:m(n),user:m(a),chartParams:r.value,"displayed-sport-ids":u.value,fullStats:!0,isDisabled:O.isDisabled,selectedTimeFrame:i.value},null,8,["sports","user","chartParams","displayed-sport-ids","isDisabled","selectedTimeFrame"]),M(qpt,{"selected-sport-ids":u.value,"user-sports":m(n),onSelectedSportIdsUpdate:f},null,8,["selected-sport-ids","user-sports"])])):L("",!0)}}),Xpt=se(Ypt,[["__scopeId","data-v-f9158924"]]),Qpt={class:"sport-stat-card"},Zpt={class:"stat-content"},Jpt={class:"stat-icon"},eTt={class:"stat-details"},tTt={class:"stat-label"},nTt={class:"stat-values"},aTt={key:0,class:"fa fa-refresh fa-spin fa-fw"},sTt={key:1,class:"stat-huge"},iTt={key:2,class:"stat"},oTt={key:0,class:"stat-average"},rTt={key:0},ti=X({__name:"SportStatCard",props:{icon:{},text:{default:""},totalValue:{},label:{},loading:{type:Boolean}},setup(e){const t=e,{icon:n,loading:a,text:s,totalValue:i}=fe(t);return(o,r)=>(h(),v("div",Qpt,[p("div",Zpt,[p("div",Jpt,[p("i",{class:Ae(["fa",`fa-${m(n)}`])},null,2)]),p("div",eTt,[p("div",tTt,S(o.label),1),p("div",nTt,[m(a)?(h(),v("i",aTt)):(h(),v("span",sTt,S(m(i)?m(i):""),1)),m(s)?(h(),v("span",iTt,S(m(s)),1)):L("",!0)]),["calendar","tachometer"].includes(m(n))?L("",!0):(h(),v("div",oTt,[m(a)?(h(),v("div",rTt,r[0]||(r[0]=[p("i",{class:"fa fa-refresh fa-spin fa-fw"},null,-1)]))):Pt(o.$slots,"average",{key:1})]))])])]))}}),uTt={id:"sport-statistics"},lTt={for:"sport"},cTt=["value"],dTt={key:0,class:"sport-statistics"},ETt={class:"sport-img-label"},pTt={class:"sport-label"},TTt={class:"label"},mTt={class:"statistics"},_Tt={key:0,class:"statistics-workouts-count"},fTt={key:1,class:"statistics-workouts-count"},hTt={class:"statistics"},STt={class:"records"},ATt={class:"label"},OTt=X({__name:"SportStatistics",props:{sports:{},authUser:{}},setup(e){const t=e,{authUser:n,sports:a}=fe(t),s=ut(),i=gn(),o=Le(),{t:r}=yt(),u=z(()=>ia(a.value,r,"all")),l=z(()=>u.value.map(C=>C.id)),d=z(()=>s.query.sport_id&&l.value.includes(+s.query.sport_id)?+s.query.sport_id:l.value[0]),E=z(()=>EI(n.value.records,u.value,n.value.timezone,n.value.imperial_units,n.value.display_ascent,n.value.date_format,d.value)),c=z(()=>u.value.find(C=>C.id===d.value)),T=z(()=>o.getters.USER_SPORT_STATS[d.value]),_=z(()=>o.getters.TOTAL_WORKOUTS),f=z(()=>n.value.imperial_units?vn.km.defaultTarget:"km"),O=z(()=>n.value.imperial_units?vn.m.defaultTarget:"m"),A=z(()=>o.getters.STATS_LOADING),R=z(()=>T.value?Yp(T.value.total_duration,r):{days:"",duration:""});function g(C,y){if(C===void 0)return"";const D=n.value.imperial_units?vn[y].defaultTarget:y;return n.value.imperial_units?Yt(C,y,D,2):C}function I(){o.dispatch(Mt.ACTIONS.GET_USER_SPORT_STATS,{username:n.value.username,sportId:d.value})}function N(C){var D,U;const y=[];return(D=c.value)!=null&&D.translatedLabel&&C[(U=c.value)==null?void 0:U.translatedLabel].records.map(P=>{y.push({...P,label:r(`workouts.RECORD_${P.record_type}`)})}),y.sort(dI)}function b(C){i.push({path:"/statistics",query:{chart:"by_sport",sport_id:C.target.value}})}return Ce(()=>s.query,()=>{I()}),et(()=>I()),(C,y)=>{var P,F,Z,Oe,ee,Ee;const D=j("SportImage"),U=j("Distance");return h(),v("div",uTt,[p("label",lTt,S(C.$t("workouts.SPORT",1))+": ",1),We(p("select",{id:"sport","onUpdate:modelValue":y[0]||(y[0]=_e=>d.value=_e),onChange:b},[(h(!0),v(ue,null,be(u.value,_e=>(h(),v("option",{value:_e.id,key:_e.id},S(_e.translatedLabel),9,cTt))),128))],544),[[Jt,d.value]]),c.value?(h(),v("div",dTt,[p("div",ETt,[M(D,{"sport-label":c.value.label,color:c.value.color},null,8,["sport-label","color"]),p("div",pTt,S(c.value.translatedLabel),1)]),p("div",null,[p("div",TTt,[y[1]||(y[1]=p("i",{class:"fa fa-line-chart custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(C.$t("statistics.STATISTICS",0)),1)]),p("div",mTt,[M(ti,{icon:"calendar",loading:A.value,"total-value":_.value,label:C.$t("workouts.WORKOUT",0)},null,8,["loading","total-value","label"])]),T.value&&T.value.total_workouts<_.value?(h(),v("div",_Tt,S(C.$t("statistics.STATISTICS_ON_LAST_WORKOUTS",{count:T.value.total_workouts})),1)):(h(),v("div",fTt,S(C.$t("statistics.STATISTICS_ON_ALL_WORKOUTS")),1)),p("div",hTt,[M(ti,{icon:"road",loading:A.value,"total-value":g((P=T.value)==null?void 0:P.total_distance,"km"),text:f.value,label:C.$t("workouts.DISTANCE")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_distance,unitFrom:"km",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"]),M(ti,{icon:"clock-o",loading:A.value,"total-value":R.value.days,text:R.value.duration,label:C.$t("workouts.DURATION")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),p("span",null,S(T.value?m(AE)(T.value.average_duration,C.$t):""),1)]),_:1},8,["loading","total-value","text","label"]),M(ti,{icon:"tachometer",loading:A.value,"total-value":g((F=T.value)==null?void 0:F.average_speed,"km"),text:`${f.value}/h`,label:C.$t("workouts.AVE_SPEED")},null,8,["loading","total-value","text","label"]),((Z=T.value)==null?void 0:Z.total_ascent)!==null?(h(),B(ti,{key:0,icon:"location-arrow",loading:A.value,"total-value":g((Oe=T.value)==null?void 0:Oe.total_ascent,"m"),text:O.value,label:C.$t("workouts.ASCENT")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_ascent,unitFrom:"m",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"])):L("",!0),((ee=T.value)==null?void 0:ee.total_descent)!==null?(h(),B(ti,{key:1,icon:"location-arrow fa-rotate-90",loading:A.value,"total-value":g((Ee=T.value)==null?void 0:Ee.total_descent,"m"),text:O.value,label:C.$t("workouts.DESCENT")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_descent,unitFrom:"m",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"])):L("",!0)])]),p("div",STt,[p("div",ATt,[y[2]||(y[2]=p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(C.$t("workouts.RECORD",0)),1)]),p("div",null,[(h(!0),v(ue,null,be(N(E.value),_e=>(h(),B(cI,{record:_e,key:_e.id},null,8,["record"]))),128))])])])):L("",!0)])}}}),ITt=se(OTt,[["__scopeId","data-v-dad31bfb"]]),gTt={id:"statistics",class:"view"},RTt={key:0,class:"container"},NTt=["value"],vTt=X({__name:"StatisticsView",setup(e){const t=ut(),n=gn(),{authUser:a}=Ke(),{sports:s}=nn(),i=["by_time","by_sport"],o=Ie("by_time"),r=z(()=>s.value.filter(d=>a.value.sports_list.includes(d.id))),u=z(()=>a.value.nb_workouts===0);function l(d){n.push({path:"/statistics",query:{chart:d.target.value}})}return et(()=>{o.value=t.query.chart&&i.includes(t.query.chart)?t.query.chart:"by_time"}),mt(()=>{if(!u.value){const d=document.getElementById("stats-type");d==null||d.focus()}}),(d,E)=>{const c=j("Card");return h(),v("div",gTt,[m(a).username?(h(),v("div",RTt,[M(c,null,{title:Y(()=>[x(S(d.$t("statistics.STATISTICS"))+" ",1),r.value.length>0?We((h(),v("select",{key:0,class:"stats-types",name:"stats-type",id:"stats-type","onUpdate:modelValue":E[0]||(E[0]=T=>o.value=T),onChange:l},[(h(),v(ue,null,be(i,T=>p("option",{value:T,key:T},S(d.$t(`statistics.STATISTICS_TYPES.${T}`)),9,NTt)),64))],544)),[[Jt,o.value]]):L("",!0)]),content:Y(()=>[d.$route.query.chart!=="by_sport"?(h(),B(Xpt,{key:0,class:Ae({"stats-disabled":u.value}),user:m(a),sports:r.value,isDisabled:u.value},null,8,["class","user","sports","isDisabled"])):r.value.length>0?(h(),B(ITt,{key:1,sports:r.value,authUser:m(a)},null,8,["sports","authUser"])):L("",!0)]),_:1}),m(a).nb_workouts===0?(h(),B(Zp,{key:0})):L("",!0)])):L("",!0)])}}}),bTt=se(vTt,[["__scopeId","data-v-94133818"]]),CTt={name:"EmailSent"},PTt={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 345.834 345.834",style:{"enable-background":"new 0 0 345.834 345.834"},"xml:space":"preserve"};function DTt(e,t,n,a,s,i){return h(),v("svg",PTt,t[0]||(t[0]=[p("g",null,[p("path",{d:`M339.798,260.429c0.13-0.026,0.257-0.061,0.385-0.094c0.109-0.028,0.219-0.051,0.326-0.084 +])(${t})(?!${t})`,"g")}match({password:t}){const n=[];if(t.length===0)return n;const a=Ju.getMostUsedSeparatorChar(t);if(a===void 0)return n;const s=Ju.getSeparatorRegex(a);for(const i of t.matchAll(s)){if(i.index===void 0)continue;const o=i.index+1;n.push({pattern:"separator",token:a,i:o,j:o})}return n}}class Nnt{constructor(){this.matchers={date:Vtt,dictionary:nnt,regex:ant,repeat:Ont,sequence:Int,spatial:gnt,separator:Ju}}match(t){const n=[],a=[];return[...Object.keys(this.matchers),...Object.keys(Ge.matchers)].forEach(i=>{if(!this.matchers[i]&&!Ge.matchers[i])return;const o=this.matchers[i]?this.matchers[i]:Ge.matchers[i].Matching,u=new o().match({password:t,omniMatch:this});u instanceof Promise?(u.then(l=>{fE(n,l)}),a.push(u)):fE(n,u)}),a.length>0?new Promise((i,o)=>{Promise.all(a).then(()=>{i(Ci(n))}).catch(r=>{o(r)})}):Ci(n)}}const VO=1,HO=VO*60,KO=HO*60,qO=KO*24,jO=qO*31,YO=jO*12,vnt=YO*100,ld={second:VO,minute:HO,hour:KO,day:qO,month:jO,year:YO,century:vnt};class bnt{translate(t,n){let a=t;n!==void 0&&n!==1&&(a+="s");const{timeEstimation:s}=Ge.translations;return s[a].replace("{base}",`${n}`)}estimateAttackTimes(t){const n={onlineThrottling100PerHour:t/.027777777777777776,onlineNoThrottling10PerSecond:t/10,offlineSlowHashing1e4PerSecond:t/1e4,offlineFastHashing1e10PerSecond:t/1e10},a={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(n).forEach(s=>{const i=n[s];a[s]=this.displayTime(i)}),{crackTimesSeconds:n,crackTimesDisplay:a,score:this.guessesToScore(t)}}guessesToScore(t){return t<1005?0:t<1000005?1:t<100000005?2:t<1e10+5?3:4}displayTime(t){let n="centuries",a;const s=Object.keys(ld),i=s.findIndex(o=>t-1&&(n=s[i-1],i!==0?a=Math.round(t/ld[n]):n="ltSecond"),this.translate(n,a)}}var Cnt=()=>null,Pnt=()=>({warning:Ge.translations.warnings.dates,suggestions:[Ge.translations.suggestions.dates]});const Dnt=(e,t)=>{let n=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?n=Ge.translations.warnings.topTen:e.rank<=100?n=Ge.translations.warnings.topHundred:n=Ge.translations.warnings.common:e.guessesLog10<=4&&(n=Ge.translations.warnings.similarToCommon),n},Lnt=(e,t)=>{let n=null;return t&&(n=Ge.translations.warnings.wordByItself),n},ynt=(e,t)=>t?Ge.translations.warnings.namesByThemselves:Ge.translations.warnings.commonNames,$nt=(e,t)=>{let n=null;const a=e.dictionaryName,s=a==="lastnames"||a.toLowerCase().includes("firstnames");return a==="passwords"?n=Dnt(e,t):a.includes("wikipedia")?n=Lnt(e,t):s?n=ynt(e,t):a==="userInputs"&&(n=Ge.translations.warnings.userInputs),n};var Unt=(e,t)=>{const n=$nt(e,t),a=[],s=e.token;return s.match(xO)?a.push(Ge.translations.suggestions.capitalization):s.match(BO)&&s.toLowerCase()!==s&&a.push(Ge.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&a.push(Ge.translations.suggestions.reverseWords),e.l33t&&a.push(Ge.translations.suggestions.l33t),{warning:n,suggestions:a}},knt=e=>e.regexName==="recentYear"?{warning:Ge.translations.warnings.recentYears,suggestions:[Ge.translations.suggestions.recentYears,Ge.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},wnt=e=>{let t=Ge.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ge.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ge.translations.suggestions.repeated]}},Mnt=()=>({warning:Ge.translations.warnings.sequences,suggestions:[Ge.translations.suggestions.sequences]}),Wnt=e=>{let t=Ge.translations.warnings.keyPattern;return e.turns===1&&(t=Ge.translations.warnings.straightRow),{warning:t,suggestions:[Ge.translations.suggestions.longerKeyboardPattern]}},Fnt=()=>null;const Dh={warning:null,suggestions:[]};class znt{constructor(){this.matchers={bruteforce:Cnt,date:Pnt,dictionary:Unt,regex:knt,repeat:wnt,sequence:Mnt,spatial:Wnt,separator:Fnt},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(Ge.translations.suggestions.useWords,Ge.translations.suggestions.noNeed)}getFeedback(t,n){if(n.length===0)return this.defaultFeedback;if(t>2)return Dh;const a=Ge.translations.suggestions.anotherWord,s=this.getLongestMatch(n);let i=this.getMatchFeedback(s,n.length===1);return i!=null?i.suggestions.unshift(a):i={warning:null,suggestions:[a]},i}getLongestMatch(t){let n=t[0];return t.slice(1).forEach(s=>{s.token.length>n.token.length&&(n=s)}),n}getMatchFeedback(t,n){return this.matchers[t.pattern]?this.matchers[t.pattern](t,n):Ge.matchers[t.pattern]&&"feedback"in Ge.matchers[t.pattern]?Ge.matchers[t.pattern].feedback(t,n):Dh}}const XO=()=>new Date().getTime(),xnt=(e,t,n)=>{const a=new znt,s=new bnt,i=hE.mostGuessableMatchSequence(t,e),o=XO()-n,r=s.estimateAttackTimes(i.guesses);return{calcTime:o,...i,...r,feedback:a.getFeedback(r.score,i.sequence)}},Bnt=(e,t)=>new Nnt().match(e),Gnt=(e,t)=>{const n=XO(),a=Bnt(e);if(a instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return xnt(a,e,n)},Vnt="modulepreload",Hnt=function(e){return"/"+e},Lh={},xt=function(t,n,a){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),r=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Hnt(u),u in Lh)return;Lh[u]=!0;const l=u.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const E=document.createElement("link");if(E.rel=l?"stylesheet":Vnt,l||(E.as="script"),E.crossOrigin="",E.href=u,r&&E.setAttribute("nonce",r),document.head.appendChild(E),l)return new Promise((c,T)=>{E.addEventListener("load",c),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o}return s.then(o=>{for(const r of o||[])r.status==="rejected"&&i(r.reason);return t().catch(i)})},Knt=async e=>{switch(e){case"fr":return await xt(()=>import("./password.fr-LQIeIoMk.js"),[]);case"de":return await xt(()=>import("./password.de-SDMVbHi1.js"),[]);case"it":return await xt(()=>import("./password.it-CReO5S7F.js"),[]);case"es":return await xt(()=>import("./password.es-es-DLU3Rh6X.js"),[]);case"pl":return await xt(()=>import("./password.pl-T3z7Kg0O.js"),[]);case"cs":return await xt(()=>import("./password.cs-CLn3Tyh5.js"),[]);default:return await xt(()=>import("./password.en-BDtqNyGO.js"),[])}},yh=async e=>{const t=await xt(()=>import("./password.common-bdamX4EN.js"),[]),n=await Knt(e),a={graphs:t.adjacencyGraphs,dictionary:{...t.dictionary,...n.dictionary}};Ge.setOptions(a)},qnt=e=>{switch(e){case 2:return"AVERAGE";case 3:return"GOOD";case 4:return"STRONG";default:return"WEAK"}},jnt={class:"password-strength"},Ynt={for:"password-strength",class:"visually-hidden"},Xnt=["value"],Qnt={key:0,class:"password-strength-details"},Znt={class:"password-strength-value"},Jnt={key:0,class:"info-box"},eat={class:"password-feedback"},tat=X({__name:"PasswordStength",props:{password:{}},setup(e){const t=e,{password:n}=fe(t),a=Le(),{appLanguage:s}=qe(),i=z(()=>a.getters[K.GETTERS.IS_SUCCESS]),o=Ie(0),r=Ie(""),u=Ie([]),l=Ie("0% 100%");et(async()=>await yh(s.value));function d(E){const c=Gnt(E);o.value=c.score,r.value=qnt(o.value),u.value=c.feedback.suggestions,l.value=o.value*100/4+"% 100%"}return Ce(()=>s.value,async E=>{await yh(E)}),Ce(()=>n.value,async E=>{i.value?r.value="":d(E)}),(E,c)=>(h(),v("div",jnt,[p("label",Ynt,S(E.$t("user.PASSWORD_STRENGTH.LABEL")),1),p("input",{id:"password-strength",class:Ae(["password-slider",`strength-${o.value}`]),style:za({backgroundSize:l.value}),type:"range",value:o.value,min:"0",max:"4",step:"1",tabindex:-1,autocomplete:"off"},null,14,Xnt),r.value?(h(),v("div",Qnt,[p("span",Znt,S(E.$t("user.PASSWORD_STRENGTH.LABEL"))+": "+S(E.$t(`user.PASSWORD_STRENGTH.${r.value}`)),1),u.value.length>0?(h(),v("div",Jnt,[p("ul",eat,[(h(!0),v(ue,null,be(u.value,T=>(h(),v("li",{key:T},S(E.$t(`user.PASSWORD_STRENGTH.SUGGESTIONS.${T}`)),1))),128))])])):L("",!0)])):L("",!0)]))}}),nat=se(tat,[["__scopeId","data-v-dee3cf5a"]]),aat={class:"password-input"},sat=["id","disabled","placeholder","required","type","autocomplete"],iat={class:"show-password"},oat={key:0,class:"form-info"},rat=X({__name:"PasswordInput",props:{checkStrength:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:"password"},password:{default:""},placeholder:{},required:{type:Boolean,default:!1},autocomplete:{}},emits:["updatePassword","passwordError"],setup(e,{emit:t}){const n=e,{autocomplete:a,checkStrength:s,disabled:i,id:o,password:r,placeholder:u,required:l}=fe(n),d=t,E=Ie(!1),c=Ie("");function T(){E.value=!E.value}function _(O){d("updatePassword",O.target.value)}function f(){d("passwordError")}return Ce(()=>r.value,O=>{O===""&&(c.value="",E.value=!1)}),(O,A)=>(h(),v("div",aat,[We(p("input",{id:m(o),disabled:m(i),placeholder:m(u),required:m(l),type:E.value?"text":"password","onUpdate:modelValue":A[0]||(A[0]=R=>c.value=R),minlength:"8",onInput:_,onInvalid:f,autocomplete:m(a)},null,40,sat),[[mN,c.value]]),p("div",iat,[p("button",{class:"transparent",onClick:ve(T,["prevent"]),type:"button"},[x(S(O.$t(`user.${E.value?"HIDE":"SHOW"}_PASSWORD`))+" ",1),p("i",{class:Ae(["fa",`fa-eye${E.value?"-slash":""}`]),"aria-hidden":"true"},null,2)])]),m(s)?(h(),v("div",oat,[A[1]||(A[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(O.$t("user.PASSWORD_INFO")),1)])):L("",!0),m(s)?(h(),B(nat,{key:1,password:c.value},null,8,["password"])):L("",!0)]))}}),SE=se(rat,[["__scopeId","data-v-56852c2e"]]),uat={id:"user-infos-edition"},lat={class:"profile-form form-box"},cat={key:1,class:"info-box success-message"},dat={class:"form-items",for:"email"},Eat=["disabled"],pat={class:"form-items",for:"password-field"},Tat={class:"form-items",for:"new-password-field"},mat={class:"form-buttons"},_at={class:"confirm",type:"submit"},fat={class:"data-export"},hat={class:"info-box"},Sat={key:0,class:"data-export-archive"},Aat={key:1},Oat={key:2},Iat=X({__name:"UserAccountEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{appConfig:s,errorMessages:i}=qe(),{authUserLoading:o,authUserSuccess:r}=Ke(),u=kt({email:"",password:"",new_password:""}),l=Ie(!1),d=Ie(!1),E=Ie(!1),c=Ie(!1),T=z(()=>a.getters[K.GETTERS.EXPORT_REQUEST]),_=z(()=>g());function f(){d.value=!0}function O(U){u.email=U.email}function A(U){u.password=U}function R(U){u.new_password=U}function g(){return T.value?$t(T.value.created_at,n.value.timezone,n.value.date_format,!0,null,!0):null}function I(){return _.value?xD(new Date(_.value),VD(new Date,1)):!0}function N(){const U={email:u.email,password:u.password};u.new_password&&(U.new_password=u.new_password),l.value=u.email!==n.value.email,a.dispatch(K.ACTIONS.UPDATE_USER_ACCOUNT,U)}function b(U){E.value=U}function C(U){a.dispatch(K.ACTIONS.DELETE_ACCOUNT,{username:U})}function y(){a.dispatch(K.ACTIONS.REQUEST_DATA_EXPORT)}async function D(U){c.value=!0,await Ne.get(`/auth/account/export/${U}`,{responseType:"blob"}).then(P=>{const F=window.URL.createObjectURL(new Blob([P.data],{type:"application/zip"})),Z=document.createElement("a");Z.href=F,Z.setAttribute("download",U),document.body.appendChild(Z),Z.click()}).finally(()=>c.value=!1)}return Ce(()=>r.value,async U=>{U&&(A(""),R(""),O(n.value),d.value=!1)}),Ce(()=>n.value.email,async()=>{O(n.value)}),mt(()=>{t.user&&(a.dispatch(K.ACTIONS.GET_REQUEST_DATA_EXPORT),O(t.user))}),ct(()=>{a.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(U,P)=>{const F=j("Modal"),Z=j("ErrorMessage");return h(),v("div",uat,[E.value?(h(),B(F,{key:0,title:U.$t("common.CONFIRMATION"),message:U.$t("user.CONFIRM_ACCOUNT_DELETION"),onConfirmAction:P[0]||(P[0]=Oe=>C(m(n).username)),onCancelAction:P[1]||(P[1]=Oe=>b(!1)),onKeydown:P[2]||(P[2]=Ye(Oe=>b(!1),["esc"]))},null,8,["title","message"])):L("",!0),p("div",lat,[m(i)?(h(),B(Z,{key:0,message:m(i)},null,8,["message"])):L("",!0),m(r)?(h(),v("div",cat,S(U.$t(`user.PROFILE.SUCCESSFUL_${l.value&&m(s).is_email_sending_enabled?"EMAIL_":""}UPDATE`)),1)):L("",!0),p("form",{class:Ae({errors:d.value}),onSubmit:ve(N,["prevent"])},[p("label",dat,[x(S(U.$t("user.EMAIL"))+"* ",1),We(p("input",{id:"email","onUpdate:modelValue":P[3]||(P[3]=Oe=>u.email=Oe),disabled:m(o),required:!0,onInvalid:f,autocomplete:"email"},null,40,Eat),[[ot,u.email]])]),p("label",pat,[x(S(U.$t("user.CURRENT_PASSWORD"))+"* ",1),M(SE,{id:"password-field",disabled:m(o),password:u.password,required:!0,onUpdatePassword:A,onPasswordError:f,autocomplete:"current-password"},null,8,["disabled","password"])]),p("label",Tat,[x(S(U.$t("user.NEW_PASSWORD"))+" ",1),M(SE,{id:"new-password-field",disabled:m(o),checkStrength:!0,password:u.new_password,isSuccess:!1,onUpdatePassword:R,onPasswordError:f,autocomplete:"new-password"},null,8,["disabled","password"])]),p("div",mat,[p("button",_at,S(U.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:P[4]||(P[4]=ve(Oe=>U.$router.push("/profile"),["prevent"]))},S(U.$t("buttons.CANCEL")),1),p("button",{class:"danger",onClick:P[5]||(P[5]=ve(Oe=>b(!0),["prevent"]))},S(U.$t("buttons.DELETE_MY_ACCOUNT")),1),I()?(h(),v("button",{key:0,class:"confirm",onClick:ve(y,["prevent"])},S(U.$t("buttons.REQUEST_DATA_EXPORT")),1)):L("",!0)])],34),p("div",fat,[p("span",hat,[P[7]||(P[7]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(U.$t("user.EXPORT_REQUEST.ONLY_ONE_EXPORT_PER_DAY")),1)]),T.value?(h(),v("div",Sat,[x(S(U.$t("user.EXPORT_REQUEST.DATA_EXPORT"))+" ("+S(_.value)+"): ",1),T.value.status==="successful"?(h(),v("span",{key:0,class:"archive-link",onClick:P[6]||(P[6]=ve(Oe=>D(T.value.file_name),["prevent"]))},[P[8]||(P[8]=p("i",{class:"fa fa-download","aria-hidden":"true"},null,-1)),x(" "+S(U.$t("user.EXPORT_REQUEST.DOWNLOAD_ARCHIVE"))+" ("+S(m(Qu)(T.value.file_size))+") ",1)])):(h(),v("span",Aat,S(U.$t(`user.EXPORT_REQUEST.STATUS.${T.value.status}`)),1)),c.value?(h(),v("span",Oat,[x(S(U.$t("user.EXPORT_REQUEST.GENERATING_LINK"))+" ",1),P[9]||(P[9]=p("i",{class:"fa fa-spinner fa-pulse","aria-hidden":"true"},null,-1))])):L("",!0)])):L("",!0)])])])}}}),gat=se(Iat,[["__scopeId","data-v-881b0d2d"]]),Rat={id:"user-infos-edition"},Nat={class:"profile-form form-box"},vat={class:"form-items",for:"registrationDate"},bat=["value"],Cat={class:"form-items",for:"first_name"},Pat=["disabled"],Dat={class:"form-items",for:"last_name"},Lat={class:"form-items",for:"birth_date"},yat=["disabled"],$at={class:"form-items",for:"location"},Uat=["disabled"],kat={class:"form-items"},wat={class:"form-buttons"},Mat={class:"confirm",type:"submit"},Wat=X({__name:"UserInfosEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),{authUserLoading:i}=Ke(),o=kt({first_name:"",last_name:"",birth_date:"",location:"",bio:""}),r=z(()=>n.value.created_at?$t(n.value.created_at,n.value.timezone,n.value.date_format):"");function u(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?On(new Date(E.birth_date),"yyyy-MM-dd"):"",o.location=E.location?E.location:"",o.bio=E.bio?E.bio:""}function l(E){o.bio=E.value}function d(){a.dispatch(K.ACTIONS.UPDATE_USER_PROFILE,o)}return mt(()=>{n.value&&u(n.value)}),(E,c)=>{const T=j("ErrorMessage"),_=j("CustomTextArea");return h(),v("div",Rat,[p("div",Nat,[m(s)?(h(),B(T,{key:0,message:m(s)},null,8,["message"])):L("",!0),p("form",{onSubmit:ve(d,["prevent"])},[p("label",vat,[x(S(E.$t("user.PROFILE.REGISTRATION_DATE"))+" ",1),p("input",{id:"registrationDate",value:r.value,disabled:""},null,8,bat)]),p("label",Cat,[x(S(E.$t("user.PROFILE.FIRST_NAME"))+" ",1),We(p("input",{id:"first_name","onUpdate:modelValue":c[0]||(c[0]=f=>o.first_name=f),disabled:m(i)},null,8,Pat),[[ot,o.first_name]])]),p("label",Dat,[x(S(E.$t("user.PROFILE.LAST_NAME"))+" ",1),We(p("input",{id:"last_name","onUpdate:modelValue":c[1]||(c[1]=f=>o.last_name=f)},null,512),[[ot,o.last_name]])]),p("label",Lat,[x(S(E.$t("user.PROFILE.BIRTH_DATE"))+" ",1),We(p("input",{id:"birth_date",type:"date",class:"birth-date","onUpdate:modelValue":c[2]||(c[2]=f=>o.birth_date=f),disabled:m(i)},null,8,yat),[[ot,o.birth_date]])]),p("label",$at,[x(S(E.$t("user.PROFILE.LOCATION"))+" ",1),We(p("input",{id:"location","onUpdate:modelValue":c[3]||(c[3]=f=>o.location=f),disabled:m(i)},null,8,Uat),[[ot,o.location]])]),p("label",kat,[x(S(E.$t("user.PROFILE.BIO"))+" ",1),M(_,{name:"bio",charLimit:200,input:o.bio,disabled:m(i),onUpdateValue:l},null,8,["input","disabled"])]),p("div",wat,[p("button",Mat,S(E.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:c[4]||(c[4]=ve(f=>E.$router.push("/profile"),["prevent"]))},S(E.$t("buttons.CANCEL")),1)])],32)])])}}}),Fat=se(Wat,[["__scopeId","data-v-74879b02"]]),zat={id:"user-picture-edition"},xat={class:"user-picture-form"},Bat={class:"picture-help"},Gat={class:"info-box"},Vat={class:"picture-buttons"},Hat=["disabled"],Kat=X({__name:"UserPictureEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{appConfig:s,errorMessages:i}=qe(),o=Ie(null),r=z(()=>s.value.max_single_file_size?Qu(s.value.max_single_file_size):"");function u(){a.dispatch(K.ACTIONS.DELETE_PICTURE)}function l(E){E.target.files!==null&&(o.value=E.target.files[0])}function d(){o.value&&a.dispatch(K.ACTIONS.UPDATE_USER_PICTURE,{picture:o.value})}return(E,c)=>{const T=j("ErrorMessage");return h(),v("div",zat,[p("div",xat,[m(i)?(h(),B(T,{key:0,message:m(i)},null,8,["message"])):L("",!0),M(Qt,{user:m(n)},null,8,["user"]),p("form",{onSubmit:ve(d,["prevent"])},[p("input",{type:"file",name:"picture",accept:".png,.jpg,.gif",onInput:l},null,32),p("div",Bat,[p("span",Gat,[c[1]||(c[1]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(E.$t("workouts.MAX_SIZE"))+": "+S(r.value),1)])]),p("div",Vat,[p("button",{type:"submit",disabled:!o.value},S(E.$t("user.PROFILE.PICTURE_UPDATE")),9,Hat),m(n).picture?(h(),v("button",{key:0,class:"danger",onClick:u},S(E.$t("user.PROFILE.PICTURE_REMOVE")),1)):L("",!0),p("button",{class:"cancel",onClick:c[0]||(c[0]=_=>E.$router.push("/profile"))},S(E.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],32)])])}}}),qat=se(Kat,[["__scopeId","data-v-0a8e1dca"]]),$h=["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"],jat={id:"tz-dropdown"},Yat=["value","disabled","aria-expanded"],Xat=["aria-label"],Qat=["id","onClick","onMouseover","autofocus"],Zat=X({__name:"TimezoneDropdown",props:{input:{},disabled:{type:Boolean,default:!1}},emits:["updateTimezone"],setup(e,{emit:t}){const n=e,{input:a,disabled:s}=fe(n),i=t,o=Ie(a.value),r=Ie(!1),u=Ie(0),l=z(()=>a.value?$h.filter(I=>d(I)):$h);function d(I){return I.toLowerCase().match(o.value.toLowerCase())}function E(I){u.value=I}function c(I){l.value.length>I&&(o.value=l.value[I],i("updateTimezone",o.value),r.value=!1)}function T(I){I.preventDefault(),l.value.length>0&&c(u.value)}function _(I){I.preventDefault(),r.value=!0,o.value=I.target.value.trim()}function f(){c(u.value)}function O(I){const N=document.getElementById(`tz-dropdown-item-${I}`);N&&(N.focus(),N.scrollIntoView({behavior:"smooth",block:"nearest"}))}function A(){r.value=!0,u.value=u.value===null?0:u.value+=1,u.value>=l.value.length&&(u.value=0),O(u.value)}function R(){r.value=!0,u.value=u.value===null?l.value.length-1:u.value-=1,u.value<=-1&&(u.value=l.value.length-1),O(u.value)}function g(){r.value&&(r.value=!1,o.value=a.value)}return Ce(()=>n.input,I=>{o.value=I}),(I,N)=>(h(),v("div",jat,[p("input",{class:"tz-dropdown-input",id:"timezone",name:"timezone",value:o.value,disabled:m(s),required:"",role:"combobox","aria-autocomplete":"list","aria-controls":"tz-dropdown-list","aria-expanded":r.value,onKeydown:[N[0]||(N[0]=Ye(b=>g(),["esc"])),Ye(T,["enter"]),N[2]||(N[2]=Ye(b=>A(),["down"])),N[3]||(N[3]=Ye(b=>R(),["up"]))],onInput:_,onBlur:N[1]||(N[1]=b=>f())},null,40,Yat),r.value?(h(),v("ul",{key:0,class:"tz-dropdown-list",id:"tz-dropdown-list",role:"listbox",tabindex:"-1","aria-label":I.$t("user.PROFILE.TIMEZONE",0)},[(h(!0),v(ue,null,be(l.value,(b,C)=>(h(),v("li",{key:b,id:`tz-dropdown-item-${C}`,class:Ae(["tz-dropdown-item",{focus:C===u.value}]),onClick:y=>c(C),onMouseover:y=>E(C),autofocus:C===u.value,role:"option"},S(b),43,Qat))),128))],8,Xat)):L("",!0)]))}}),Jat=se(Zat,[["__scopeId","data-v-de57165c"]]),est={id:"user-preferences-edition"},tst={class:"profile-form form-box"},nst={class:"preferences-section"},ast={class:"form-items"},sst=["disabled"],ist=["value"],ost={class:"form-items"},rst=["disabled"],ust=["value"],lst={class:"form-items"},cst={class:"form-items"},dst=["disabled"],Est=["value"],pst={class:"form-items form-checkboxes"},Tst={class:"checkboxes-label"},mst={class:"checkboxes"},_st=["id","name","checked","disabled","onInput"],fst={class:"checkbox-label"},hst={class:"preferences-section"},Sst={class:"form-items form-checkboxes"},Ast={class:"checkboxes-label"},Ost={class:"checkboxes"},Ist=["id","name","checked","disabled","onInput"],gst={class:"checkbox-label"},Rst={class:"form-items form-checkboxes"},Nst={class:"checkboxes-label"},vst={class:"checkboxes"},bst=["id","name","checked","disabled","onInput"],Cst={class:"checkbox-label"},Pst={class:"preferences-section"},Dst={class:"form-items form-checkboxes"},Lst={class:"checkboxes-label"},yst={class:"checkboxes"},$st=["id","name","checked","disabled","onInput"],Ust={class:"checkbox-label"},kst={class:"form-items form-checkboxes"},wst={class:"checkboxes-label"},Mst={class:"checkboxes"},Wst=["id","name","checked","disabled","onInput"],Fst={class:"checkbox-label"},zst={class:"form-items form-checkboxes"},xst={class:"checkboxes-label"},Bst={class:"checkboxes"},Gst=["id","name","checked","disabled","onInput"],Vst={class:"checkbox-label"},Hst={class:"form-items form-checkboxes"},Kst={class:"checkboxes-label"},qst={class:"checkboxes"},jst=["id","name","checked","disabled","onInput"],Yst={class:"checkbox-label"},Xst={class:"info-box raw-speed-help"},Qst={class:"form-items"},Zst=["disabled"],Jst=["value"],eit={class:"form-items"},tit=["disabled"],nit=["value"],ait={class:"form-items"},sit=["disabled"],iit=["value"],oit={class:"form-buttons"},rit={class:"confirm",type:"submit"},uit=X({__name:"UserPreferencesEdition",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),{authUserLoading:i}=Ke(),o=[{label:"SUNDAY",value:!1},{label:"MONDAY",value:!0}],r=[{label:"METRIC",value:!1},{label:"IMPERIAL",value:!0}],u=[{label:"DISPLAYED",value:!0},{label:"HIDDEN",value:!1}],l=[{label:"ZERO",value:!0},{label:"MIN_ALT",value:!1}],d=[{label:"FILTERED_SPEED",value:!1},{label:"RAW_SPEED",value:!0}],E=[{label:"DARK",value:!0},{label:"DEFAULT",value:null},{label:"LIGHT",value:!1}],c=[{label:"MANUALLY",value:!0},{label:"AUTOMATICALLY",value:!1}],T=[{label:"HIDDEN",value:!0},{label:"DISPLAYED",value:!1}],_=kt({analysis_visibility:"private",date_format:"dd/MM/yyyy",display_ascent:!0,hide_profile_in_users_directory:!0,imperial_units:!1,language:"en",manually_approves_followers:!0,map_visibility:"private",start_elevation_at_zero:!1,timezone:"Europe/Paris",use_dark_mode:!1,use_raw_gpx_speed:!1,weekm:!1,workouts_visibility:"private"}),f=z(()=>fBe(new Date().toUTCString(),n.value.timezone,_.language)),O=z(()=>gO()),A=z(()=>Xu(_.workouts_visibility)),R=z(()=>Xu(_.analysis_visibility));function g(y){_.analysis_visibility=y.analysis_visibility?y.analysis_visibility:"private",_.display_ascent=y.display_ascent,_.start_elevation_at_zero=y.start_elevation_at_zero?y.start_elevation_at_zero:!1,_.use_raw_gpx_speed=y.use_raw_gpx_speed?y.use_raw_gpx_speed:!1,_.imperial_units=y.imperial_units?y.imperial_units:!1,_.language=y.language&&y.language in pi?y.language:"en",_.manually_approves_followers="manually_approves_followers"in y?y.manually_approves_followers:!0,_.map_visibility=y.map_visibility?y.map_visibility:"private",_.timezone=y.timezone?y.timezone:"Europe/Paris",_.date_format=y.date_format?y.date_format:"dd/MM/yyyy",_.weekm=y.weekm?y.weekm:!1,_.use_dark_mode=y.use_dark_mode,_.workouts_visibility=y.workouts_visibility?y.workouts_visibility:"private",_.hide_profile_in_users_directory=y.hide_profile_in_users_directory}function I(){a.dispatch(K.ACTIONS.UPDATE_USER_PREFERENCES,_)}function N(y,D){_[y]=D}function b(){_.analysis_visibility=Yu(_.analysis_visibility,_.workouts_visibility),C()}function C(){_.map_visibility=Yu(_.map_visibility,_.analysis_visibility)}return mt(()=>{n.value&&g(n.value)}),(y,D)=>{const U=j("ErrorMessage");return h(),v("div",est,[p("div",tst,[m(s)?(h(),B(U,{key:0,message:m(s)},null,8,["message"])):L("",!0),p("form",{onSubmit:ve(I,["prevent"])},[p("div",nst,S(y.$t("user.PROFILE.INTERFACE")),1),p("label",ast,[x(S(y.$t("user.PROFILE.LANGUAGE"))+" ",1),We(p("select",{id:"language","onUpdate:modelValue":D[0]||(D[0]=P=>_.language=P),disabled:m(i)},[(h(!0),v(ue,null,be(m(aE),P=>(h(),v("option",{value:P.value,key:P.value},S(P.label),9,ist))),128))],8,sst),[[Jt,_.language]])]),p("label",ost,[x(S(y.$t("user.PROFILE.THEME_MODE.LABEL"))+" ",1),We(p("select",{id:"use_dark_mode","onUpdate:modelValue":D[1]||(D[1]=P=>_.use_dark_mode=P),disabled:m(i)},[(h(),v(ue,null,be(E,P=>p("option",{value:P.value,key:P.label},S(y.$t(`user.PROFILE.THEME_MODE.VALUES.${P.label}`)),9,ust)),64))],8,rst),[[Jt,_.use_dark_mode]])]),p("label",lst,[x(S(y.$t("user.PROFILE.TIMEZONE"))+" ",1),M(Jat,{input:_.timezone,disabled:m(i),onUpdateTimezone:D[2]||(D[2]=P=>N("timezone",P))},null,8,["input","disabled"])]),p("label",cst,[x(S(y.$t("user.PROFILE.DATE_FORMAT"))+" ",1),We(p("select",{id:"date_format","onUpdate:modelValue":D[3]||(D[3]=P=>_.date_format=P),disabled:m(i)},[(h(!0),v(ue,null,be(f.value,P=>(h(),v("option",{value:P.value,key:P.value},S(P.label),9,Est))),128))],8,dst),[[Jt,_.date_format]])]),p("div",pst,[p("span",Tst,S(y.$t("user.PROFILE.FIRST_DAY_OF_WEEK")),1),p("div",mst,[(h(),v(ue,null,be(o,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.weekm,disabled:m(i),onInput:F=>N("weekm",P.value)},null,40,_st),p("span",fst,S(y.$t(`user.PROFILE.${P.label}`)),1)])),64))])]),p("div",hst,S(y.$t("user.PROFILE.TABS.ACCOUNT")),1),p("div",Sst,[p("span",Ast,S(y.$t("user.PROFILE.FOLLOW_REQUESTS_APPROVAL.LABEL")),1),p("div",Ost,[(h(),v(ue,null,be(c,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.manually_approves_followers,disabled:m(i),onInput:F=>N("manually_approves_followers",P.value)},null,40,Ist),p("span",gst,S(y.$t(`user.PROFILE.FOLLOW_REQUESTS_APPROVAL.${P.label}`)),1)])),64))])]),p("div",Rst,[p("span",Nst,S(y.$t("user.PROFILE.PROFILE_IN_USERS_DIRECTORY.LABEL")),1),p("div",vst,[(h(),v(ue,null,be(T,P=>p("label",{key:P.label},[p("input",{type:"radio",id:`hide_profile_${P.label}`,name:`hide_profile_${P.label}`,checked:P.value===_.hide_profile_in_users_directory,disabled:m(i),onInput:F=>N("hide_profile_in_users_directory",P.value)},null,40,bst),p("span",Cst,S(y.$t(`user.PROFILE.PROFILE_IN_USERS_DIRECTORY.${P.label}`)),1)])),64))])]),p("div",Pst,S(y.$t("workouts.WORKOUT",0)),1),p("div",Dst,[p("span",Lst,S(y.$t("user.PROFILE.UNITS.LABEL")),1),p("div",yst,[(h(),v(ue,null,be(r,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.imperial_units,disabled:m(i),onInput:F=>N("imperial_units",P.value)},null,40,$st),p("span",Ust,S(y.$t(`user.PROFILE.UNITS.${P.label}`)),1)])),64))])]),p("div",kst,[p("span",wst,S(y.$t("user.PROFILE.ASCENT_DATA")),1),p("div",Mst,[(h(),v(ue,null,be(u,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.display_ascent,disabled:m(i),onInput:F=>N("display_ascent",P.value)},null,40,Wst),p("span",Fst,S(y.$t(`common.${P.label}`)),1)])),64))])]),p("div",zst,[p("span",xst,S(y.$t("user.PROFILE.ELEVATION_CHART_START.LABEL")),1),p("div",Bst,[(h(),v(ue,null,be(l,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.start_elevation_at_zero,disabled:m(i),onInput:F=>N("start_elevation_at_zero",P.value)},null,40,Gst),p("span",Vst,S(y.$t(`user.PROFILE.ELEVATION_CHART_START.${P.label}`)),1)])),64))])]),p("div",Hst,[p("span",Kst,S(y.$t("user.PROFILE.USE_RAW_GPX_SPEED.LABEL")),1),p("div",qst,[(h(),v(ue,null,be(d,P=>p("label",{key:P.label},[p("input",{type:"radio",id:P.label,name:P.label,checked:P.value===_.use_raw_gpx_speed,disabled:m(i),onInput:F=>N("use_raw_gpx_speed",P.value)},null,40,jst),p("span",Yst,S(y.$t(`user.PROFILE.USE_RAW_GPX_SPEED.${P.label}`)),1)])),64))]),p("div",Xst,[p("span",null,[D[8]||(D[8]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(y.$t("user.PROFILE.USE_RAW_GPX_SPEED.HELP")),1)])])]),p("label",Qst,[x(S(y.$t("visibility_levels.WORKOUTS_VISIBILITY"))+" ",1),We(p("select",{id:"workouts_visibility","onUpdate:modelValue":D[4]||(D[4]=P=>_.workouts_visibility=P),disabled:m(i),onChange:b},[(h(!0),v(ue,null,be(O.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,Jst))),128))],40,Zst),[[Jt,_.workouts_visibility]])]),p("label",eit,[x(S(y.$t("visibility_levels.ANALYSIS_VISIBILITY"))+" ",1),We(p("select",{id:"analysis_visibility","onUpdate:modelValue":D[5]||(D[5]=P=>_.analysis_visibility=P),disabled:m(i),onChange:C},[(h(!0),v(ue,null,be(A.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,nit))),128))],40,tit),[[Jt,_.analysis_visibility]])]),p("label",ait,[x(S(y.$t("visibility_levels.MAP_VISIBILITY"))+" ",1),We(p("select",{id:"map_visibility","onUpdate:modelValue":D[6]||(D[6]=P=>_.map_visibility=P),disabled:m(i)},[(h(!0),v(ue,null,be(R.value,P=>(h(),v("option",{value:P,key:P},S(y.$t(`visibility_levels.LEVELS.${P}`)),9,iit))),128))],8,sit),[[Jt,_.map_visibility]])]),p("div",oit,[p("button",rit,S(y.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:D[7]||(D[7]=ve(P=>y.$router.push("/profile/preferences"),["prevent"]))},S(y.$t("buttons.CANCEL")),1)])],32)])])}}}),lit=se(uit,[["__scopeId","data-v-a2dba7d8"]]),cit={class:"privacy-policy-text"},dit={class:"last-update"},Eit=["innerHTML"],pit=["innerHTML"],Tit=X({__name:"PrivacyPolicy",setup(e){const{appConfig:t}=qe(),{dateFormat:n,timezone:a}=Ke(),s=["DATA_COLLECTED","INFORMATION_USAGE","INFORMATION_PROTECTION","INFORMATION_DISCLOSURE","SITE_USAGE_BY_CHILDREN","YOUR_CONSENT","ACCOUNT_DELETION","CHANGES_TO_OUR_PRIVACY_POLICY"],i=z(()=>o());function o(){return $t(t.value.privacy_policy_date,a.value,n.value,!1)}return(r,u)=>(h(),v("div",cit,[p("h1",null,S(Fe(r.$t("privacy_policy.TITLE"))),1),p("p",dit,[x(S(r.$t("privacy_policy.LAST_UPDATE"))+": ",1),p("time",null,S(i.value),1)]),m(t).privacy_policy?(h(),v("div",{key:0,innerHTML:m(Go)(m(t).privacy_policy)},null,8,Eit)):(h(),v(ue,{key:1},be(s,l=>(h(),v(ue,{key:l},[p("h2",null,S(r.$t(`privacy_policy.CONTENT.${l}.TITLE`)),1),p("p",{innerHTML:m(Go)(r.$t(`privacy_policy.CONTENT.${l}.CONTENT`))},null,8,pit)],64))),64))]))}}),QO=se(Tit,[["__scopeId","data-v-4c6083e4"]]),mit={id:"user-privacy-policy"},_it={key:1},fit={class:"policy-content"},hit={for:"accepted_policy",class:"accepted_policy"},Sit={class:"form-buttons"},Ait={class:"confirm",type:"submit"},Oit=X({__name:"UserPrivacyPolicyValidation",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le(),{errorMessages:s}=qe(),i=Ie(!1),o=Ie(!1);function r(){a.dispatch(K.ACTIONS.ACCEPT_PRIVACY_POLICY,i.value)}function u(){o.value=!0}return(l,d)=>{const E=j("ErrorMessage"),c=j("router-link"),T=j("i18n-t");return h(),v("div",mit,[m(s)?(h(),B(E,{key:0,message:m(s)},null,8,["message"])):L("",!0),m(n).accepted_privacy_policy?(h(),v("div",_it,[p("p",null,[M(T,{keypath:"user.YOU_HAVE_ACCEPTED_PRIVACY_POLICY"},{default:Y(()=>[M(c,{to:"/privacy-policy"},{default:Y(()=>[x(S(l.$t("privacy_policy.TITLE")),1)]),_:1})]),_:1})]),p("button",{class:"cancel",onClick:d[0]||(d[0]=_=>l.$router.push("/profile"))},S(l.$t("user.PROFILE.BACK_TO_PROFILE")),1)])):(h(),v("form",{key:2,class:Ae({errors:o.value}),onSubmit:d[3]||(d[3]=ve(_=>r(),["prevent"]))},[p("div",fit,[M(QO)]),p("label",hit,[We(p("input",{type:"checkbox",id:"accepted_policy",required:"","onUpdate:modelValue":d[1]||(d[1]=_=>i.value=_),onInvalid:u},null,544),[[dl,i.value]]),p("span",null,[M(T,{keypath:"user.READ_AND_ACCEPT_PRIVACY_POLICY"},{default:Y(()=>[x(S(l.$t("privacy_policy.TITLE")),1)]),_:1})])]),M(c,{to:"/profile/edit/account"},{default:Y(()=>[x(S(l.$t("user.I_WANT_TO_DELETE_MY_ACCOUNT")),1)]),_:1}),p("div",Sit,[p("button",Ait,S(l.$t("buttons.SUBMIT")),1),p("button",{class:"cancel",onClick:d[2]||(d[2]=_=>l.$router.push("/profile"))},S(l.$t("user.PROFILE.BACK_TO_PROFILE")),1)])],34))])}}}),Iit=se(Oit,[["__scopeId","data-v-ac974385"]]),git={key:0},Rit={key:1},Nit={key:2},vit={class:"no-suspension"},bit=X({__name:"UserAccountSuspension",setup(e){const t=Le(),{authUserLoading:n,authUserSuccess:a}=Ke(),s=Ie(""),i=z(()=>t.getters[K.GETTERS.ACCOUNT_SUSPENSION]);function o(){t.dispatch(K.ACTIONS.GET_ACCOUNT_SUSPENSION)}function r(u){s.value=u,t.dispatch(K.ACTIONS.APPEAL,{actionId:i.value.id,actionType:"user_suspension",text:u})}return mt(()=>o()),ct(()=>{t.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES),t.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1)}),(u,l)=>{const d=j("Loader");return m(n)&&!s.value?(h(),v("div",git,[M(d)])):i.value.id?(h(),v("div",Rit,[p("div",null,S(u.$t("user.YOUR_ACCOUNT_HAS_BEEN_SUSPENDED"))+".",1),M(bl,{"report-action":i.value,success:m(a),loading:m(n),onSubmitForm:r},{additionalButtons:Y(()=>[p("button",{onClick:l[0]||(l[0]=E=>u.$router.push("/profile"))},S(u.$t("user.PROFILE.BACK_TO_PROFILE")),1)]),_:1},8,["report-action","success","loading"])])):(h(),v("div",Nit,[p("div",vit,S(u.$t("user.ACTIVE_ACCOUNT")),1),p("button",{onClick:l[1]||(l[1]=E=>u.$router.push("/profile"))},S(u.$t("user.PROFILE.BACK_TO_PROFILE")),1)]))}}}),Cit=se(bit,[["__scopeId","data-v-2a9aa8c5"]]),Pit=["equipments:read","equipments:write","follow:read","follow:write","notifications:read","notifications:write","profile:read","profile:write","reports:read","reports:write","users:read","users:write","workouts:read","workouts:write"],Dit=["application:write"],Lit={id:"new-oauth2-app"},yit={id:"new-oauth2-title"},$it={id:"apps-form"},Uit={class:"form-items"},kit={class:"form-item"},wit={for:"app-name"},Mit={class:"form-item"},Wit={for:"app-description"},Fit={class:"form-item"},zit={for:"app-url"},xit={class:"form-item"},Bit={for:"app-redirect-uri"},Git={class:"form-item-scope"},Vit={class:"form-item-scope-label"},Hit={class:"scope-label"},Kit=["name","checked","onChange"],qit=["innerHTML"],jit={class:"form-buttons"},Yit=["disabled"],Xit=X({__name:"AddUserApp",setup(e){const t=Le(),{errorMessages:n}=qe(),{authUserHasAdminRights:a}=Ke(),s=kt({client_name:"",client_uri:"",client_description:"",description:"",redirect_uri:""}),i=kt([]),o=z(()=>d(a.value,Dit,Pit));function r(){const E={client_name:s.client_name,client_description:s.client_description,client_uri:s.client_uri,redirect_uris:[s.redirect_uri],scope:i.sort().join(" ")};t.dispatch(st.ACTIONS.CREATE_CLIENT,E)}function u(E){s.client_description=E.value}function l(E){const c=i.indexOf(E);c>-1?i.splice(c,1):i.push(E)}function d(E,c,T){const _=[...T];return E&&_.push(...c),_.sort()}return(E,c)=>{const T=j("CustomTextArea"),_=j("ErrorMessage");return h(),v("div",Lit,[p("h1",yit,S(E.$t("oauth2.ADD_A_NEW_APP")),1),p("div",$it,[p("form",{onSubmit:ve(r,["prevent"])},[p("div",Uit,[p("div",kit,[p("label",wit,S(E.$t("oauth2.APP.NAME"))+"*",1),We(p("input",{id:"app-name",type:"text",required:"","onUpdate:modelValue":c[0]||(c[0]=f=>s.client_name=f)},null,512),[[ot,s.client_name]])]),p("div",Mit,[p("label",Wit,S(E.$t("oauth2.APP.DESCRIPTION")),1),M(T,{name:"app-description",charLimit:200,input:s.description,onUpdateValue:u},null,8,["input"])]),p("div",Fit,[p("label",zit,S(E.$t("oauth2.APP.URL"))+"*",1),We(p("input",{id:"app-url",type:"text",required:"","onUpdate:modelValue":c[1]||(c[1]=f=>s.client_uri=f)},null,512),[[ot,s.client_uri]])]),p("div",xit,[p("label",Bit,S(E.$t("oauth2.APP.REDIRECT_URL"))+"* ",1),We(p("input",{id:"app-redirect-uri",type:"text",required:"","onUpdate:modelValue":c[2]||(c[2]=f=>s.redirect_uri=f)},null,512),[[ot,s.redirect_uri]])]),p("div",Git,[p("div",Vit,S(E.$t("oauth2.APP.SCOPE.LABEL"))+"* ",1),(h(!0),v(ue,null,be(o.value,f=>(h(),v("div",{class:"form-item-scope-checkboxes",key:f},[p("label",Hit,[p("input",{type:"checkbox",name:f,checked:i.includes(f),onChange:O=>l(f)},null,40,Kit),p("code",null,S(f),1)]),p("p",{class:"scope-description",innerHTML:E.$t(`oauth2.APP.SCOPE.${f}_DESCRIPTION`)},null,8,qit)]))),128))])]),m(n)?(h(),B(_,{key:0,message:m(n)},null,8,["message"])):L("",!0),p("div",jit,[p("button",{class:"confirm",type:"submit",disabled:i.length===0},S(E.$t("buttons.SUBMIT")),9,Yit),p("button",{class:"cancel",onClick:c[3]||(c[3]=ve(()=>E.$router.push("/profile/apps"),["prevent"]))},S(E.$t("buttons.CANCEL")),1)])],32)])])}}}),Qit=se(Xit,[["__scopeId","data-v-f0f43085"]]),Zit={id:"authorize-oauth2-app"},Jit={key:0},eot={id:"authorize-oauth2-title"},tot={class:"oauth2-access description-list"},not={class:"client-scope"},aot=["innerHTML"],sot={class:"authorize-oauth2-buttons"},iot={key:1},oot={class:"no-app"},rot=X({__name:"AuthorizeUserApp",setup(e){const t=ut(),n=Le(),{errorMessages:a}=qe(),s=z(()=>n.getters[st.GETTERS.CLIENT]);function i(){t.query.client_id&&typeof t.query.client_id=="string"&&n.dispatch(st.ACTIONS.GET_CLIENT_BY_CLIENT_ID,t.query.client_id)}function o(){n.dispatch(st.ACTIONS.AUTHORIZE_CLIENT,{client_id:`${t.query.client_id}`,redirect_uri:`${t.query.redirect_uri}`,response_type:`${t.query.response_type}`,scope:`${t.query.scope}`,state:`${t.query.state?t.query.state:""}`,code_challenge:`${t.query.code_challenge?t.query.code_challenge:""}`,code_challenge_method:`${t.query.code_challenge_method?t.query.code_challenge_method:""}`})}return et(()=>i()),(r,u)=>{const l=j("router-link"),d=j("i18n-t"),E=j("ErrorMessage");return h(),v("div",Zit,[s.value.client_id?(h(),v("div",Jit,[p("h1",eot,[M(d,{keypath:"oauth2.AUTHORIZE_APP"},{default:Y(()=>[M(l,{to:{name:"UserApp",params:{id:s.value.id}}},{default:Y(()=>[x(S(s.value.name),1)]),_:1},8,["to"])]),_:1})]),m(a)?(h(),B(E,{key:0,message:m(a)},null,8,["message"])):L("",!0),p("div",tot,[p("p",null,S(r.$t("oauth2.APP_REQUESTING_ACCESS")),1),p("dl",null,[(h(!0),v(ue,null,be(s.value.scope.split(" "),c=>(h(),v(ue,{key:c},[p("dt",not,[p("code",null,S(c),1)]),p("dd",{innerHTML:r.$t(`oauth2.APP.SCOPE.${c}_DESCRIPTION`)},null,8,aot)],64))),128))]),p("div",sot,[p("button",{class:"danger",onClick:o},S(r.$t("buttons.AUTHORIZE")),1),p("button",{class:"cancel",onClick:u[0]||(u[0]=c=>r.$router.push("/profile/apps"))},S(r.$t("buttons.CANCEL")),1)])])])):(h(),v("div",iot,[p("p",oot,S(r.$t("oauth2.NO_APP")),1),p("button",{onClick:u[1]||(u[1]=c=>r.$router.push("/profile/apps"))},S(r.$t("buttons.BACK")),1)]))])}}}),uot=se(rot,[["__scopeId","data-v-6462d75b"]]),lot={id:"oauth2-apps"},cot=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),a=Le();return ct(()=>{a.commit(st.MUTATIONS.SET_CLIENTS,[])}),(s,i)=>{const o=j("router-view");return h(),v("div",lot,[M(o,{authUser:m(n)},null,8,["authUser"])])}}}),dot={id:"oauth2-app",class:"description-list"},Eot={key:1},pot={key:0,class:"info-box success-message"},Tot=["title"],mot={key:0},_ot={key:1,class:"app-secret"},fot=["title"],hot={class:"client-scopes"},Sot={class:"app-buttons"},Aot={key:2},Oot={class:"no-app"},Iot=X({__name:"UserApp",props:{authUser:{},afterCreation:{type:Boolean,default:!1}},setup(e){const t=e,{afterCreation:n,authUser:a}=fe(t),s=ut(),i=Le(),o=Ie(!1),r=Ie(""),u=Ie(!1),l=Ie(!1),d=Ie(!1),E=z(()=>i.getters[st.GETTERS.CLIENT]),c=z(()=>i.getters[st.GETTERS.REVOCATION_SUCCESSFUL]);function T(){!n.value&&s.params.id&&typeof s.params.id=="string"&&i.dispatch(st.ACTIONS.GET_CLIENT_BY_ID,+s.params.id)}function _(g){r.value=g?"oauth2.APP_DELETION_CONFIRMATION":"oauth2.TOKENS_REVOCATION_CONFIRMATION",f(!0)}function f(g){o.value=g,g||(r.value="")}function O(g){r.value==="oauth2.APP_DELETION_CONFIRMATION"?i.dispatch(st.ACTIONS.DELETE_CLIENT,g):i.dispatch(st.ACTIONS.REVOKE_ALL_TOKENS,g)}function A(){navigator.clipboard.writeText(E.value.client_id),u.value=!0,l.value=!1,setTimeout(()=>{u.value=!1},3e3)}function R(){E.value.client_secret&&(navigator.clipboard.writeText(E.value.client_secret),l.value=!0,u.value=!1,setTimeout(()=>{l.value=!1},3e3))}return Ce(()=>c.value,g=>{g&&f(!1)}),et(()=>{T(),navigator.clipboard&&(d.value=!0)}),ct(()=>{i.commit(st.MUTATIONS.EMPTY_CLIENT),i.commit(st.MUTATIONS.SET_REVOCATION_SUCCESSFUL,!1)}),(g,I)=>{const N=j("Modal");return h(),v("div",dot,[o.value?(h(),B(N,{key:0,title:g.$t("common.CONFIRMATION"),message:g.$t(r.value),onConfirmAction:I[0]||(I[0]=b=>O(E.value.id)),onCancelAction:I[1]||(I[1]=b=>f(!1)),onKeydown:I[2]||(I[2]=Ye(b=>f(!1),["esc"]))},null,8,["title","message"])):L("",!0),E.value&&E.value.client_id?(h(),v("div",Eot,[m(n)||c.value?(h(),v("div",pot,S(g.$t(m(n)?"oauth2.APP_CREATED_SUCCESSFULLY":"oauth2.TOKENS_REVOKED")),1)):L("",!0),p("dl",null,[p("dt",null,S(g.$t("oauth2.APP.CLIENT_ID"))+":",1),p("dd",null,[x(S(E.value.client_id)+" ",1),m(n)&&d.value?(h(),v("i",{key:0,class:Ae(`fa fa-${u.value?"check":"copy"}`),"aria-hidden":"true",title:g.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:A},null,10,Tot)):L("",!0)]),m(n)&&E.value.client_secret?(h(),v("dt",mot,S(g.$t("oauth2.APP.CLIENT_SECRET"))+": ",1)):L("",!0),m(n)&&E.value.client_secret?(h(),v("dd",_ot,[x(S(E.value.client_secret)+" ",1),d.value?(h(),v("i",{key:0,class:Ae(`fa fa-${l.value?"check":"copy"}`),"aria-hidden":"true",title:g.$t("oauth2.COPY_TO_CLIPBOARD"),onClick:R},null,10,fot)):L("",!0)])):L("",!0),p("dt",null,S(Fe(g.$t("oauth2.APP.ISSUE_AT")))+":",1),p("dd",null,[p("time",null,S(m($t)(E.value.issued_at,m(a).timezone,m(a).date_format)),1)]),p("dt",null,S(g.$t("oauth2.APP.NAME"))+":",1),p("dd",null,S(E.value.name),1),p("dt",null,S(g.$t("oauth2.APP.DESCRIPTION"))+":",1),p("dd",{class:Ae({"no-description":!E.value.client_description})},S(E.value.client_description?E.value.client_description:g.$t("common.NO_DESCRIPTION")),3),p("dt",null,S(g.$t("oauth2.APP.URL"))+":",1),p("dd",null,S(E.value.website),1),p("dt",null,S(g.$t("oauth2.APP.REDIRECT_URL"))+":",1),p("dd",null,S(E.value.redirect_uris.length>0?E.value.redirect_uris[0]:""),1),p("dt",null,S(g.$t("oauth2.APP.SCOPE.LABEL"))+":",1),p("dd",hot,[(h(!0),v(ue,null,be(E.value.scope.split(" "),b=>(h(),v("span",{class:"client-scope",key:b},[p("code",null,S(b),1)]))),128))])]),p("div",Sot,[p("button",{class:"danger",onClick:I[3]||(I[3]=b=>_(!1))},S(g.$t("oauth2.REVOKE_ALL_TOKENS")),1),p("button",{class:"danger",onClick:I[4]||(I[4]=b=>_(!0))},S(g.$t("oauth2.DELETE_APP")),1),p("button",{onClick:I[5]||(I[5]=b=>g.$router.push("/profile/apps"))},S(g.$t("buttons.BACK")),1)])])):(h(),v("div",Aot,[p("p",Oot,S(g.$t("oauth2.NO_APP")),1),p("button",{onClick:I[6]||(I[6]=b=>g.$router.push("/profile/apps"))},S(g.$t("buttons.BACK")),1)]))])}}}),Uh=se(Iot,[["__scopeId","data-v-7371d7c1"]]),got={id:"oauth2-apps-list"},Rot={class:"apps-list"},Not={key:0},vot={class:"app-issued-at"},bot={key:1,class:"no-apps"},Cot={class:"app-list-buttons"},Pot=X({__name:"UserAppsList",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),s=ut();let i=u(s.query);const o=z(()=>a.getters[st.GETTERS.CLIENTS]),r=z(()=>a.getters[st.GETTERS.CLIENTS_PAGINATION]);function u(d){const E={};return d.page&&(E.page=Ho(d.page,Wl)),E}function l(d){a.dispatch(st.ACTIONS.GET_CLIENTS,d)}return Ce(()=>s.query,async d=>{i=u(d),l(i)}),et(()=>{l(i)}),(d,E)=>{const c=j("router-link");return h(),v("div",got,[p("h1",Rot,S(d.$t("oauth2.APPS_LIST")),1),o.value.length>0?(h(),v("ul",Not,[(h(!0),v(ue,null,be(o.value,T=>(h(),v("li",{key:T.client_id},[M(c,{to:{name:"UserApp",params:{id:T.id}}},{default:Y(()=>[x(S(T.name),1)]),_:2},1032,["to"]),p("span",vot,[x(S(d.$t("oauth2.APP.ISSUE_AT"))+" ",1),p("time",null,S(m($t)(T.issued_at,m(n).timezone,m(n).date_format)),1)])]))),128))])):(h(),v("div",bot,S(d.$t("oauth2.NO_APPS")),1)),o.value.length>0?(h(),B(oa,{key:2,pagination:r.value,path:"/profile/apps",query:m(i)},null,8,["pagination","query"])):L("",!0),p("div",Cot,[m(n).suspended_at?L("",!0):(h(),v("button",{key:0,onClick:E[0]||(E[0]=T=>d.$router.push("/profile/apps/new"))},S(d.$t("oauth2.NEW_APP")),1)),p("button",{onClick:E[1]||(E[1]=T=>d.$router.push("/"))},S(d.$t("common.HOME")),1)])])}}}),Dot=se(Pot,[["__scopeId","data-v-018b8e7c"]]);function cd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Lot(e){return(...t)=>!e(...t)}function yot(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function ZO(e,t,n,a){return t?e.filter(s=>yot(a(s,n),t)).sort((s,i)=>a(s,n).length-a(i,n).length):e}function $ot(e){return e.filter(t=>!t.$isLabel)}function dd(e,t){return n=>n.reduce((a,s)=>s[e]&&s[e].length?(a.push({$groupLabel:s[t],$isLabel:!0}),a.concat(s[e])):a,[])}function Uot(e,t,n,a,s){return i=>i.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const r=ZO(o[n],e,t,s);return r.length?{[a]:o[a],[n]:r}:[]})}const kh=(...e)=>t=>e.reduce((n,a)=>a(n),t);var kot={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return cd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):ZO(n,t,this.label,this.customLabel):n=this.groupValues?dd(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Lot(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return kh(Uot(t,n,this.groupValues,this.groupLabel,this.customLabel),dd(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return kh(dd(this.groupValues,this.groupLabel),$ot)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(cd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return cd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(s=>s[this.trackBy]):t[this.groupValues],a=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",a)}else{let n=t[this.groupValues].filter(a=>!(this.isOptionDisabled(a)||this.isSelected(a)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const a=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",a)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},wot={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(a=>a[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},JO={name:"vue-multiselect",mixins:[kot,wot],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Mot={ref:"tags",class:"multiselect__tags"},Wot={class:"multiselect__tags-wrap"},Fot={class:"multiselect__spinner"},zot={key:0},xot={class:"multiselect__option"},Bot={class:"multiselect__option"},Got=x("No elements found. Consider changing the search query."),Vot={class:"multiselect__option"},Hot=x("List is empty.");function Kot(e,t,n,a,s,i){return h(),B("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=Ye(ve(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=Ye(ve(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=Ye(ve(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=Ye(o=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[Pt(e.$slots,"caret",{toggle:e.toggle},()=>[M("div",{onMousedown:t[1]||(t[1]=ve(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Pt(e.$slots,"clear",{search:e.search}),M("div",Mot,[Pt(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:i.visibleValues,isOpen:e.isOpen},()=>[We(M("div",Wot,[(h(!0),B(ue,null,be(i.visibleValues,(o,r)=>Pt(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(h(),B("span",{class:"multiselect__tag",key:r},[M("span",{textContent:S(e.getOptionLabel(o))},null,8,["textContent"]),M("i",{tabindex:"1",onKeypress:Ye(ve(u=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:ve(u=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[xi,i.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Pt(e.$slots,"limit",{key:0},()=>[M("strong",{class:"multiselect__strong",textContent:S(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):L("v-if",!0)]),M(LT,{name:"multiselect__loading"},{default:Y(()=>[Pt(e.$slots,"loading",{},()=>[We(M("div",Fot,null,512),[[xi,n.loading]])])]),_:3}),e.searchable?(h(),B("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:n.required,style:i.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=ve(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=ve(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=Ye(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=Ye(ve(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=Ye(ve(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=Ye(ve(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=Ye(ve(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-controls"])):L("v-if",!0),i.isSingleLabelVisible?(h(),B("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=ve((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Pt(e.$slots,"singleLabel",{option:i.singleValue},()=>[x(S(e.currentOptionLabel),1)])],32)):L("v-if",!0),i.isPlaceholderVisible?(h(),B("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=ve((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[Pt(e.$slots,"placeholder",{},()=>[x(S(e.placeholder),1)])],32)):L("v-if",!0)],512),M(LT,{name:"multiselect"},{default:Y(()=>[We(M("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=ve(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[M("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Pt(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(h(),B("li",zot,[M("span",xot,[Pt(e.$slots,"maxElements",{},()=>[x("Maximum of "+S(e.max)+" options selected. First remove a selected option to select another.",1)])])])):L("v-if",!0),!e.max||e.internalValue.length(h(),B("li",{class:"multiselect__element",key:r,"aria-selected":e.isSelected(o),id:e.id+"-"+r,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?L("v-if",!0):(h(),B("span",{key:0,class:[e.optionHighlight(r,o),"multiselect__option"],onClick:ve(u=>e.select(o),["stop"]),onMouseenter:ve(u=>e.pointerSet(r),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[Pt(e.$slots,"option",{option:o,search:e.search,index:r},()=>[M("span",null,S(e.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(h(),B("span",{key:1,"data-select":e.groupSelect&&i.selectGroupLabelText,"data-deselect":e.groupSelect&&i.deselectGroupLabelText,class:[e.groupHighlight(r,o),"multiselect__option"],onMouseenter:ve(u=>e.groupSelect&&e.pointerSet(r),["self"]),onMousedown:ve(u=>e.selectGroup(o),["prevent"])},[Pt(e.$slots,"option",{option:o,search:e.search,index:r},()=>[M("span",null,S(e.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):L("v-if",!0)],8,["aria-selected","id","role"]))),128)):L("v-if",!0),We(M("li",null,[M("span",Bot,[Pt(e.$slots,"noResult",{search:e.search},()=>[Got])])],512),[[xi,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),We(M("li",null,[M("span",Vot,[Pt(e.$slots,"noOptions",{},()=>[Hot])])],512),[[xi,n.showNoOptions&&(e.options.length===0||i.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Pt(e.$slots,"afterList")],12,["id","aria-multiselectable"])],36),[[xi,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}JO.render=Kot;const qot=X({__name:"SportsMultiSelect",props:{sports:{},name:{},equipmentSports:{default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["updatedValues"],setup(e,{emit:t}){const n=e,{equipmentSports:a,name:s,sports:i}=fe(n),o=t,r=Ie([]);function u(l){o("updatedValues",l.map(d=>d.id))}return Ce(()=>a.value,async l=>{r.value=l,u(l)}),et(()=>{a.value&&(r.value=a.value)}),(l,d)=>m(i)?(h(),B(m(JO),{key:0,placeholder:"",id:m(s),name:m(s),disabled:l.disabled,modelValue:r.value,"onUpdate:modelValue":[d[0]||(d[0]=E=>r.value=E),u],multiple:!0,options:m(i),taggable:!0,label:"translatedLabel","track-by":"id",selectLabel:l.$t("workouts.MULTISELECT.selectLabel"),selectedLabel:l.$t("workouts.MULTISELECT.selectedLabel"),deselectLabel:l.$t("workouts.MULTISELECT.deselectLabel")},null,8,["id","name","disabled","modelValue","options","selectLabel","selectedLabel","deselectLabel"])):L("",!0)}}),jot=se(qot,[["__scopeId","data-v-016d8e47"]]);function jp(){const e=ut(),t=Le(),{t:n}=yt(),a=z(()=>u(s.value)),s=z(()=>t.getters[xe.GETTERS.EQUIPMENTS]),i=z(()=>t.getters[xe.GETTERS.LOADING]),o=z(()=>t.getters[xe.GETTERS.EQUIPMENT_TYPES]),r=z(()=>CO(o.value,n));function u(l){if(!e.params.id)return null;const d=l.filter(E=>e.params.id?E.id===e.params.id:null);return d.length===0?null:d[0]}return{equipment:a,equipments:s,equipmentTypes:o,translatedEquipmentTypes:r,equipmentsLoading:i}}const Yot={id:"new-equipment"},Xot={key:0,id:"new-equipment-title"},Qot={id:"equipment-form"},Zot={class:"form-items"},Jot={class:"form-item"},ert={for:"equipment-label"},trt={class:"equipment-label-help"},nrt={class:"info-box"},art={class:"form-item"},srt={for:"equipment-type-id"},irt=["value"],ort={key:0,class:"equipment-warning"},rrt={class:"info-box"},urt={class:"form-item"},lrt={for:"equipment-description"},crt={key:1,class:"form-item-checkbox"},drt={for:"equipment-active"},Ert={class:"form-item"},prt={for:"equipment-sports"},Trt={class:"form-buttons"},mrt=["disabled"],_rt=["disabled"],frt=X({__name:"EquipmentEdition",props:{translatedEquipmentTypes:{},equipmentsLoading:{type:Boolean}},setup(e){const t=e,{equipmentsLoading:n,translatedEquipmentTypes:a}=fe(t),s=Le(),i=ut(),{t:o}=yt(),{errorMessages:r}=qe(),{equipment:u}=jp(),l=kt({id:"",label:"",description:"",equipmentTypeId:0,isActive:!0,defaultForSportIds:[]}),d=Ie(!1),E=z(()=>ia(s.getters[Ht.GETTERS.SPORTS],o)),c=z(()=>a.value.filter(b=>b.id===l.equipmentTypeId)),T=z(()=>c.value.length>0?E.value.filter(b=>PO[c.value[0].label].includes(b.label)):[]),_=Ie([]),f=z(()=>a.value.filter(b=>{var C;return b.is_active||((C=u.value)==null?void 0:C.equipment_type.id)===b.id}));function O(b){_.value=ia(E.value,o,"all").filter(C=>b.default_for_sport_ids.includes(C.id))}function A(b){l.id=b.id,l.label=b.label,l.description=b.description?b.description:"",l.equipmentTypeId=b.equipment_type.id,l.isActive=b.is_active,O(b)}function R(){s.dispatch(xe.ACTIONS[l.id?"UPDATE_EQUIPMENT":"ADD_EQUIPMENT"],l)}function g(b){l.description=b}function I(){d.value=!0}function N(b){l.defaultForSportIds=b}return Ce(()=>u.value,b=>{i.params.id&&(b!=null&&b.id)&&A(b)}),Ce(()=>l.equipmentTypeId,b=>{u.value&&b===u.value.equipment_type.id?O(u.value):_.value=[]}),mt(()=>{var C;const b=document.getElementById("equipment-label");b==null||b.focus(),i.params.id&&i.params.id&&(C=u.value)!=null&&C.id&&A(u.value)}),(b,C)=>{var U,P;const y=j("CustomTextArea"),D=j("ErrorMessage");return h(),v("div",Yot,[l.id?L("",!0):(h(),v("h1",Xot,S(b.$t("equipments.ADD_A_NEW_EQUIPMENT")),1)),p("div",Qot,[p("form",{class:Ae({errors:d.value}),onSubmit:ve(R,["prevent"])},[p("div",Zot,[p("div",Jot,[p("label",ert,S(Fe(b.$t("common.LABEL")))+"* ",1),We(p("input",{id:"equipment-label",maxlength:"50",type:"text",required:"",onInvalid:I,"onUpdate:modelValue":C[0]||(C[0]=F=>l.label=F)},null,544),[[ot,l.label]]),p("div",trt,[p("span",nrt,[C[4]||(C[4]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("equipments.50_CHARACTERS_MAX")),1)])])]),p("div",art,[p("label",srt,S(Fe(b.$t("equipments.EQUIPMENT_TYPE")))+"* ",1),We(p("select",{id:"equipment-type-id",required:"",onInvalid:I,"onUpdate:modelValue":C[1]||(C[1]=F=>l.equipmentTypeId=F)},[(h(!0),v(ue,null,be(f.value,F=>(h(),v("option",{value:F.id,key:F.id},S(F.translatedLabel)+" "+S(F.is_active?"":`(${b.$t("common.INACTIVE")})`),9,irt))),128))],544),[[Jt,l.equipmentTypeId]])]),(U=m(u))!=null&&U.workouts_count&&l.equipmentTypeId!==((P=m(u))==null?void 0:P.equipment_type.id)?(h(),v("div",ort,[p("span",rrt,[C[5]||(C[5]=p("i",{class:"fa fa-exclamation-triangle warning","aria-hidden":"true"},null,-1)),x(" "+S(b.$t("equipments.ALL_WORKOUTS_ASSOCIATIONS_REMOVED")),1)])])):L("",!0),p("div",urt,[p("label",lrt,S(b.$t("common.DESCRIPTION")),1),M(y,{name:"equipment-description",charLimit:200,input:l.description,onUpdateValue:g},null,8,["input"])]),l.id?(h(),v("div",crt,[p("label",drt,S(Fe(b.$t("common.ACTIVE"))),1),We(p("input",{id:"equipment-active",name:"equipment-active",type:"checkbox","onUpdate:modelValue":C[2]||(C[2]=F=>l.isActive=F)},null,512),[[dl,l.isActive]])])):L("",!0),p("div",Ert,[p("label",prt,S(Fe(b.$t("equipments.DEFAULT_FOR_SPORTS",0))),1),M(jot,{sports:T.value,name:"equipment-sports",equipmentSports:_.value,disabled:!l.equipmentTypeId,onUpdatedValues:N},null,8,["sports","equipmentSports","disabled"])])]),m(r)?(h(),B(D,{key:0,message:m(r)},null,8,["message"])):L("",!0),p("div",Trt,[p("button",{class:"confirm",type:"submit",disabled:m(n)},S(b.$t("buttons.SUBMIT")),9,mrt),p("button",{class:"cancel",disabled:m(n),onClick:C[3]||(C[3]=ve(()=>{var F;return b.$router.push((F=m(u))!=null&&F.id?b.$route.query.fromEdition?"/profile/edit/equipments":`/profile/equipments/${m(u).id}`:"/profile/equipments")},["prevent"]))},S(b.$t("buttons.CANCEL")),9,_rt)])],34)])])}}}),wh=se(frt,[["__scopeId","data-v-a596b0f9"]]),hrt={key:0,id:"user-equipments"},Mh=X({__name:"index",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,{user:n}=fe(t),a=ut(),s=Le(),{equipments:i,translatedEquipmentTypes:o,equipmentsLoading:r}=jp();return Ce(()=>a.name,u=>{u==="UserEquipmentsList"&&s.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),et(()=>{s.dispatch(xe.ACTIONS.GET_EQUIPMENT_TYPES),s.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),(u,l)=>{const d=j("router-view");return m(o)?(h(),v("div",hrt,[M(d,{authUser:m(n),equipments:m(i),translatedEquipmentTypes:m(o),isEdition:u.isEdition,equipmentsLoading:m(r)},null,8,["authUser","equipments","translatedEquipmentTypes","isEdition","equipmentsLoading"])])):L("",!0)}}}),Srt=(e,t=!1)=>{let n="0";t&&(n=String(Math.floor(e/86400)),e%=86400);const a=String(Math.floor(e/3600)).padStart(2,"0");e%=3600;const s=String(Math.floor(e/60)).padStart(2,"0"),i=String(e%60).padStart(2,"0");return t?`${n==="0"?"":`${n}d `}${a==="00"?"":`${a}h `}${s}m ${i}s`:`${a==="00"?"":`${a}:`}${s}:${i}`},Yp=(e,t)=>{const n=e.match(/day/g)?e.split(", ")[1]:e;return{days:e.match(/day/g)?`${e.split(" ")[0]} ${e.match(/days/g)?t("common.DAY",2):t("common.DAY",1)}`:`0 ${t("common.DAY",2)},`,duration:`${n.split(":")[0]}h ${n.split(":")[1]}min`}},AE=(e,t)=>{if(e.match(/day/g)){const n=Yp(e,t);return`${n.days}, ${n.duration}`}return e},Art={key:0,id:"user-equipment",class:"description-list"},Ort={class:"equipment-type"},Irt={key:0,class:"equipment-description"},grt={key:1,class:"no-description"},Rrt={class:"duration-detail"},Nrt={class:"sports-list"},vrt={class:"equipment-buttons"},brt=["disabled"],Crt=["disabled"],Prt=["disabled"],Drt=["disabled"],Lrt={key:1},yrt={class:"no-equipment"},$rt=["disabled"],Urt=X({__name:"UserEquipment",props:{authUser:{},equipmentsLoading:{type:Boolean}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),{t:s}=yt(),{errorMessages:i}=qe(),{equipment:o}=jp(),{sportColors:r,sports:u}=nn(),l=Ie(!1),d=z(()=>ia(u.value,s,"all",n.value.sports_list).filter(_=>{var f;return o.value?(f=o.value)==null?void 0:f.default_for_sport_ids.includes(_.id):!1}));function E(_){l.value=_}function c(){var _,f;if((_=o.value)!=null&&_.id){const O={id:o.value.id};((f=o.value)==null?void 0:f.workouts_count)>0&&(O.force=!0),a.dispatch(xe.ACTIONS.DELETE_EQUIPMENT,O)}}function T(_){a.dispatch(xe.ACTIONS.REFRESH_EQUIPMENT,_)}return et(()=>{a.dispatch(xe.ACTIONS.GET_EQUIPMENTS)}),(_,f)=>{const O=j("Modal"),A=j("EquipmentTypeImage"),R=j("router-link"),g=j("Distance"),I=j("SportImage"),N=j("ErrorMessage");return m(o)?(h(),v("div",Art,[l.value?(h(),B(O,{key:0,title:_.$t("common.CONFIRMATION"),message:"user.PROFILE.EQUIPMENTS.CONFIRM_EQUIPMENT_DELETION",strongMessage:m(o).label,warning:m(o).workouts_count>0?_.$t("user.PROFILE.EQUIPMENTS.EQUIPMENT_ASSOCIATED_WITH_WORKOUTS"):"",onConfirmAction:c,onCancelAction:f[0]||(f[0]=b=>E(!1)),onKeydown:f[1]||(f[1]=Ye(b=>E(!1),["esc"]))},null,8,["title","strongMessage","warning"])):L("",!0),p("dl",null,[p("dt",null,S(Fe(_.$t("common.LABEL"))),1),p("dd",null,S(m(o).label),1),p("dt",null,S(Fe(_.$t("equipments.EQUIPMENT_TYPE"))),1),p("dd",Ort,[M(A,{title:_.$t(`equipment_types.${m(o).equipment_type.label}.LABEL`),"equipment-type-label":m(o).equipment_type.label},null,8,["title","equipment-type-label"]),p("span",null,S(_.$t(`equipment_types.${m(o).equipment_type.label}.LABEL`))+" "+S(m(o).equipment_type.is_active?"":`(${_.$t("common.INACTIVE")})`),1)]),p("dt",null,S(_.$t("common.DESCRIPTION")),1),p("dd",null,[m(o).description?(h(),v("span",Irt,S(m(o).description),1)):(h(),v("span",grt,S(_.$t("common.NO_DESCRIPTION")),1))]),p("dt",null,S(Fe(_.$t("workouts.WORKOUT",0))),1),p("dd",null,[m(o).workouts_count?(h(),B(R,{key:0,to:`/workouts?equipment_id=${m(o).id}`},{default:Y(()=>[x(S(m(o).workouts_count),1)]),_:1},8,["to"])):(h(),v(ue,{key:1},[x(S(m(o).workouts_count),1)],64))]),p("dt",null,S(Fe(_.$t("workouts.TOTAL_DISTANCE",0))),1),p("dd",null,[M(g,{distance:m(o).total_distance,unitFrom:"km",digits:2,displayUnit:!1,useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"]),p("span",null,S(m(n).imperial_units?"miles":"km"),1)]),p("dt",null,S(Fe(_.$t("workouts.TOTAL_DURATION",0))),1),p("dd",null,[x(S(m(AE)(m(o).total_moving,_.$t))+" ",1),m(o).total_duration!==m(o).total_moving?(h(),v(ue,{key:0},[f[7]||(f[7]=x(" (")),p("span",Rrt,S(_.$t("common.TOTAL_DURATION_WITH_PAUSES"))+": ",1),x(" "+S(m(AE)(m(o).total_duration,_.$t))+") ",1)],64)):L("",!0)]),p("dt",null,S(Fe(_.$t("common.ACTIVE",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${m(o).is_active?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),m(o).default_for_sport_ids.length>0?(h(),v(ue,{key:0},[p("dt",null,S(Fe(_.$t("equipments.DEFAULT_FOR_SPORTS",0))),1),p("dd",Nrt,[(h(!0),v(ue,null,be(d.value,b=>(h(),v("span",{class:Ae(["sport-badge",{inactive:!b.is_active_for_user}]),key:b.label},[M(I,{title:b.translatedLabel,"sport-label":b.label,color:b.color?b.color:m(r)[b.label]},null,8,["title","sport-label","color"]),M(R,{to:`/profile/sports/${b.id}?fromEquipmentId=${m(o).id}`},{default:Y(()=>[x(S(b.translatedLabel)+" "+S(b.is_active_for_user?"":`(${_.$t("common.INACTIVE")})`),1)]),_:2},1032,["to"])],2))),128))])],64)):L("",!0)]),m(i)?(h(),B(N,{key:1,message:m(i)},null,8,["message"])):L("",!0),p("div",vrt,[m(n).suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:f[2]||(f[2]=b=>_.$router.push(`/profile/edit/equipments/${m(o).id}`)),disabled:_.equipmentsLoading},S(_.$t("buttons.EDIT")),9,brt),p("button",{disabled:_.equipmentsLoading,onClick:f[3]||(f[3]=b=>T(m(o).id))},S(_.$t("buttons.REFRESH_TOTALS")),9,Crt),p("button",{class:"danger",onClick:f[4]||(f[4]=b=>l.value=!0),disabled:_.equipmentsLoading},S(_.$t("buttons.DELETE")),9,Prt)],64)),p("button",{disabled:_.equipmentsLoading,onClick:f[5]||(f[5]=b=>_.$router.push(_.$route.query.fromWorkoutId?`/workouts/${_.$route.query.fromWorkoutId}`:_.$route.query.fromSportId?`/profile/sports/${_.$route.query.fromSportId}`:"/profile/equipments"))},S(_.$t("buttons.BACK")),9,Drt)])])):(h(),v("div",Lrt,[p("p",yrt,S(_.$t("equipments.NO_EQUIPMENT")),1),p("button",{onClick:f[6]||(f[6]=b=>_.$router.push("/profile/equipments")),disabled:_.equipmentsLoading},S(_.$t("buttons.BACK")),9,$rt)]))}}}),krt=se(Urt,[["__scopeId","data-v-a3438555"]]),wrt={id:"user-equipments-list"},Mrt={key:0,class:"mobile-display"},Wrt={key:1,class:"equipments-list"},Frt={key:3},zrt={class:"responsive-table"},xrt={class:"text-left"},Brt={class:"text-left"},Grt={class:"text-left"},Vrt={class:"text-left"},Hrt={key:0},Krt={class:"equipment-label"},qrt={class:"cell-heading"},jrt={class:"column"},Yrt={class:"cell-heading"},Xrt={class:"column"},Qrt={class:"cell-heading"},Zrt={class:"active"},Jrt={class:"cell-heading"},eut={key:0,class:"action-buttons"},tut={class:"cell-heading"},nut=["onClick"],aut={class:"equipments-list-buttons"},sut=X({__name:"UserEquipmentsList",props:{equipments:{},translatedEquipmentTypes:{},authUser:{},isEdition:{type:Boolean}},setup(e){const t=e,{authUser:n,isEdition:a,equipments:s,translatedEquipmentTypes:i}=fe(t),o=z(()=>r(s.value));function r(u){const l={};return u.map(d=>{d.equipment_type.id in l?l[d.equipment_type.id].push(d):l[d.equipment_type.id]=[d]}),l}return(u,l)=>{const d=j("EquipmentTypeImage"),E=j("router-link"),c=j("Distance");return h(),v("div",wrt,[m(s).length>0?(h(),v("div",Mrt,[m(a)?L("",!0):(h(),v("button",{key:0,onClick:l[0]||(l[0]=T=>u.$router.push("/profile/edit/equipments"))},S(u.$t("equipments.EDIT_EQUIPMENTS")),1)),m(a)?L("",!0):(h(),v("button",{key:1,onClick:l[1]||(l[1]=T=>u.$router.push("/profile/equipments/new"))},S(u.$t("equipments.NEW_EQUIPMENT")),1)),m(a)?(h(),v("button",{key:2,onClick:l[2]||(l[2]=T=>u.$router.push("/profile/equipments"))},S(u.$t("buttons.BACK")),1)):(h(),v("button",{key:3,onClick:l[3]||(l[3]=T=>u.$router.push("/"))},S(u.$t("common.HOME")),1))])):L("",!0),m(a)?L("",!0):(h(),v("h1",Wrt,S(u.$t("user.PROFILE.EQUIPMENTS.YOUR_EQUIPMENTS")),1)),m(s).length===0?(h(),v("p",{key:2,class:Ae(["no-equipments",{edition:m(a)}])},S(u.$t("equipments.NO_EQUIPMENTS")),3)):(h(),v("div",Frt,[(h(!0),v(ue,null,be(m(i),T=>(h(),v(ue,{key:T.label},[o.value[T.id]?(h(),v(ue,{key:0},[p("h2",null,[M(d,{title:T.translatedLabel,"equipment-type-label":T.label},null,8,["title","equipment-type-label"]),x(" "+S(T.translatedLabel)+" "+S(T.is_active?"":`(${u.$t("common.INACTIVE")})`),1)]),p("div",zrt,[p("table",null,[p("thead",null,[p("tr",null,[p("th",xrt,S(u.$t("common.LABEL")),1),p("th",Brt,S(u.$t("workouts.WORKOUT",0)),1),p("th",Grt,S(Fe(u.$t("workouts.TOTAL_DISTANCE"))),1),p("th",Vrt,S(u.$t("common.ACTIVE")),1),m(a)&&!m(n).suspended_at?(h(),v("th",Hrt,S(u.$t("common.ACTION")),1)):L("",!0),l[8]||(l[8]=p("th",null,null,-1))])]),p("tbody",null,[(h(!0),v(ue,null,be(o.value[T.id].sort(m(Gp)),_=>(h(),v("tr",{key:_.label},[p("td",Krt,[p("span",qrt,S(u.$t("common.LABEL")),1),M(E,{to:{name:"Equipment",params:{id:_.id}}},{default:Y(()=>[x(S(_.label),1)]),_:2},1032,["to"])]),p("td",jrt,[p("span",Yrt,S(u.$t("workouts.WORKOUT",0)),1),_.workouts_count?(h(),B(E,{key:0,to:`/workouts?equipment_id=${_.id}`},{default:Y(()=>[x(S(_.workouts_count),1)]),_:2},1032,["to"])):(h(),v(ue,{key:1},[x(S(_.workouts_count),1)],64))]),p("td",Xrt,[p("span",Qrt,S(u.$t("workouts.TOTAL_DISTANCE",0)),1),M(c,{distance:_.total_distance,unitFrom:"km",digits:2,displayUnit:!1,useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"]),p("span",null,S(m(n).imperial_units?"miles":"km"),1)]),p("td",Zrt,[p("span",Jrt,S(u.$t("common.ACTIVE")),1),p("i",{class:Ae(`fa fa${_.is_active?"-check":""}`),"aria-hidden":"true"},null,2)]),m(a)&&!m(n).suspended_at?(h(),v("td",eut,[p("span",tut,S(u.$t("user.PROFILE.SPORT.ACTION")),1),p("button",{onClick:f=>u.$router.push(`/profile/edit/equipments/${_.id}${m(a)?"?fromEdition=true":""}`)},S(u.$t("buttons.EDIT")),9,nut)])):L("",!0)]))),128))])])])],64)):L("",!0)],64))),128))])),p("div",aut,[!m(a)&&!m(n).suspended_at&&m(s).length>0?(h(),v("button",{key:0,onClick:l[4]||(l[4]=T=>u.$router.push("/profile/edit/equipments"))},S(u.$t("equipments.EDIT_EQUIPMENTS")),1)):L("",!0),!m(a)&&!m(n).suspended_at?(h(),v("button",{key:1,onClick:l[5]||(l[5]=T=>u.$router.push("/profile/equipments/new"))},S(u.$t("equipments.NEW_EQUIPMENT")),1)):L("",!0),m(a)?(h(),v("button",{key:2,onClick:l[6]||(l[6]=T=>u.$router.push("/profile/equipments"))},S(u.$t("buttons.BACK")),1)):(h(),v("button",{key:3,onClick:l[7]||(l[7]=T=>u.$router.push("/"))},S(u.$t("common.HOME")),1))])])}}}),Wh=se(sut,[["__scopeId","data-v-235c4af3"]]),iut=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t);return(a,s)=>{const i=j("router-view");return h(),v("div",null,[M(i,{authUser:m(n)},null,8,["authUser"])])}}}),out={key:0,class:"notification-object"},rut={class:"box comment-box"},uut=X({__name:"CommentForUser",props:{comment:{},displayObjectName:{type:Boolean},action:{}},setup(e){const t=e,{comment:n,displayObjectName:a}=fe(t),{authUser:s}=Ke();return(i,o)=>(h(),v(ue,null,[m(a)?(h(),v("div",out,S(i.$t("workouts.COMMENTS.COMMENT"))+": ",1)):L("",!0),p("div",rut,[M(Fp,{comment:m(n),authUser:m(s),"display-appeal":!1,"hide-suspension-appeal":m(a),"comments-loading":"null","for-notification":!0,action:i.action,onCommentLinkClicked:o[0]||(o[0]=r=>i.$emit("commentLinkClicked"))},null,8,["comment","authUser","hide-suspension-appeal","action"])])],64))}}),Xp=se(uut,[["__scopeId","data-v-ed2176b7"]]),lut={class:"appeal-action"},cut=X({__name:"WorkoutActionAppeal",props:{action:{},workout:{},displaySuspensionMessage:{type:Boolean,default:!1}},setup(e){const t=e,{workout:n}=fe(t),{appealLoading:a,displayAppealForm:s,success:i,submitAppeal:o,cancelAppeal:r}=Tp(),u=z(()=>`workout_${n.value.id}`);return(l,d)=>(h(),v("div",lut,[p("div",{class:Ae({suspended:l.displaySuspensionMessage,"info-box":l.displaySuspensionMessage})},[l.displaySuspensionMessage?(h(),v(ue,{key:0},[d[4]||(d[4]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(l.$t("workouts.SUSPENDED_BY_ADMIN")),1)],64)):L("",!0),l.displaySuspensionMessage&&!m(i)&&!m(s)?(h(),v("button",{key:1,class:"transparent appeal-button",onClick:d[0]||(d[0]=E=>s.value=u.value)},S(l.$t("user.APPEAL")),1)):L("",!0)],2),m(s)?(h(),B(bl,{key:0,"report-action":l.action,success:m(i)===u.value,loading:m(a)===u.value,onSubmitForm:d[2]||(d[2]=E=>m(o)(E,"workout",m(n).id)),onHideMessage:d[3]||(d[3]=E=>s.value=null)},{cancelButton:Y(()=>[p("button",{onClick:d[1]||(d[1]=E=>m(r)())},S(l.$t("buttons.CANCEL")),1)]),_:1},8,["report-action","success","loading"])):L("",!0)]))}}),eI=se(cut,[["__scopeId","data-v-a3f01233"]]),dut={key:0,class:"notification-object"},Eut=X({__name:"WorkoutForUser",props:{action:{default:null},displayAppeal:{type:Boolean},displayObjectName:{type:Boolean},workout:{},reportId:{}},setup(e){const t=e,{action:n,displayAppeal:a,displayObjectName:s,reportId:i,workout:o}=fe(t),{getWorkoutSport:r}=nn(),{dateFormat:u,imperialUnits:l,timezone:d}=Ke(),E=z(()=>r(o.value)),c=z(()=>{var T,_,f;return o.value.suspended===!0&&n.value!==null&&(!n.value.appeal||((T=n.value.appeal)==null?void 0:T.approved)===!1||((_=n.value.appeal)==null?void 0:_.approved)===null&&!((f=n.value.appeal)!=null&&f.updated_at))&&a.value});return(T,_)=>{var R;const f=j("router-link"),O=j("i18n-t"),A=j("AlertMessage");return h(),v(ue,null,[m(s)?(h(),v("div",dut,S(T.$t("workouts.WORKOUT"))+": ",1)):L("",!0),M(Vo,{workout:m(o),sport:E.value,user:m(o).user,useImperialUnits:m(l),dateFormat:m(u),timezone:m(d),onWorkoutLinkClicked:_[0]||(_[0]=g=>T.$emit("workoutLinkClicked"))},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"]),m(n)&&c.value?(h(),B(eI,{key:1,action:m(n),workout:m(o),"display-suspension-message":m(n).action_type==="workout_suspension"},null,8,["action","workout","display-suspension-message"])):(R=m(o).suspension)!=null&&R.report_id?(h(),B(A,{key:2,message:"workouts.SUSPENDED_BY_ADMIN"},mi({_:2},[m(o).suspension.report_id!==m(i)?{name:"additionalMessage",fn:Y(()=>[M(O,{keypath:"common.SEE_REPORT",tag:"span"},{default:Y(()=>[M(f,{to:`/admin/reports/${m(o).suspension.report_id}`},{default:Y(()=>[x(" #"+S(m(o).suspension.report_id),1)]),_:1},8,["to"])]),_:1})]),key:"0"}:void 0]),1024)):L("",!0)],64)}}}),Qp=se(Eut,[["__scopeId","data-v-bb831628"]]),put={id:"user-sanction"},Tut={key:0},mut={key:1},_ut={key:2},fut={class:"no-warning"},hut={class:"buttons"},Sut=X({__name:"UserSanctionDetail",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=Le(),s=ut(),{authUserLoading:i,authUserSuccess:o}=Ke(),r=Ie(""),u=z(()=>a.getters[K.GETTERS.USER_SANCTION]);function l(){a.dispatch(K.ACTIONS.GET_USER_SANCTION,s.params.action_id)}function d(E){r.value=E,a.dispatch(K.ACTIONS.APPEAL,{actionId:u.value.id,actionType:"user_warning",text:E})}return mt(()=>l()),ct(()=>{a.commit(K.MUTATIONS.UPDATE_IS_SUCCESS,!1),a.commit(K.MUTATIONS.SET_USER_SANCTION,{})}),(E,c)=>{const T=j("Loader");return h(),v("div",put,[m(i)&&!r.value?(h(),v("div",Tut,[M(T)])):u.value.id?(h(),v("div",mut,[p("h1",null,S(E.$t(`user.PROFILE.SANCTIONS.${u.value.action_type}`,{date:m($t)(u.value.created_at,m(n).timezone,m(n).date_format)})),1),u.value.comment?(h(),B(Xp,{key:0,"display-object-name":!0,comment:u.value.comment},null,8,["comment"])):u.value.workout?(h(),B(Qp,{key:1,action:u.value,"display-appeal":!1,"display-object-name":!0,workout:u.value.workout},null,8,["action","workout"])):L("",!0),M(bl,{"report-action":u.value,success:m(o),loading:m(i),"can-appeal":u.value.action_type!=="user_suspension"&&!m(n).suspended_at,onSubmitForm:d},null,8,["report-action","success","loading","can-appeal"])])):(h(),v("div",_ut,[p("div",fut,S(E.$t("user.NO_WARNING_FOUND")),1)])),p("div",hut,[p("button",{onClick:c[0]||(c[0]=_=>E.$router.push("/profile/moderation"))},S(E.$t("buttons.BACK")),1),m(n).suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:c[1]||(c[1]=_=>E.$router.push("/"))},S(E.$t("common.HOME")),1),p("button",{onClick:c[2]||(c[2]=_=>E.$router.push("/notifications"))},S(E.$t("notifications.NOTIFICATIONS",0)),1)],64))])])}}}),Aut=se(Sut,[["__scopeId","data-v-f297e854"]]),Out={id:"user-moderation"},Iut={key:0,id:"user-sanctions"},gut={key:0},Rut={class:"last-sanctions"},Nut={key:1},vut={class:"no-sanctions"},but=X({__name:"UserSanctionsList",props:{authUser:{}},setup(e){const t=e,{authUser:n}=fe(t),a=ut(),s=Le(),{displayOptions:i}=qe();let o=kt(d(a.query));const r=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS]),u=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS_LOADING]),l=z(()=>s.getters[ce.GETTERS.USER_SANCTIONS_PAGINATION]);function d(T){const _={};return T.page&&(_.page=Ho(T.page,Wl)),_}function E(T){if(T.updated_at)switch(T.approved){case!0:return"APPROVED";case!1:return"REJECTED";default:return"IN_PROGRESS"}return"IN_PROGRESS"}function c(T){s.dispatch(ce.ACTIONS.GET_USER_SANCTIONS,{username:n.value.username,...T})}return Ce(()=>a.query,async T=>{o=d(T),c(o)}),et(()=>c({})),ct(()=>s.commit(ce.MUTATIONS.UPDATE_USER_SANCTIONS,[])),(T,_)=>{const f=j("router-link");return h(),v("div",Out,[p("h1",null,S(T.$t("user.PROFILE.SANCTIONS_RECEIVED")),1),m(n).sanctions_count?(h(),v("div",Iut,[u.value?(h(),v("div",gut,[M(wl)])):(h(),v(ue,{key:1},[p("ul",Rut,[(h(!0),v(ue,null,be(r.value,O=>(h(),v("li",{key:O.id},[p("div",null,[M(f,{to:`/profile/moderation/sanctions/${O.id}`},{default:Y(()=>[x(S(T.$t(`user.PROFILE.SANCTIONS.${O.action_type}`,{date:m($t)(O.created_at,m(i).timezone,m(i).dateFormat)})),1)]),_:2},1032,["to"]),O.appeal?(h(),v("span",{key:0,class:Ae(["info-box appeal",{approved:E(O.appeal)==="APPROVED",rejected:E(O.appeal)==="REJECTED"}])},[p("i",{class:Ae(["fa",{"fa-info-circle":E(O.appeal)!=="REJECTED","fa-times":E(O.appeal)==="REJECTED"}]),"aria-hidden":"true"},null,2),x(" "+S(T.$t(`user.PROFILE.SANCTION_APPEAL.${E(O.appeal)}`)),1)],2)):L("",!0)])]))),128))]),M(oa,{pagination:l.value,path:"/profile/moderation",query:m(o)},null,8,["pagination","query"])],64))])):(h(),v("div",Nut,[p("p",vut,S(T.$t("user.PROFILE.NO_SANCTIONS")),1)])),p("div",null,[p("button",{onClick:_[0]||(_[0]=O=>T.$router.push("/"))},S(T.$t("common.HOME")),1)])])}}}),Cut=se(but,[["__scopeId","data-v-bb47e769"]]),Put={class:"relationships"},Dut={key:0},Lut={class:"user-relationships"},yut={key:1,class:"no-relationships"},$ut={class:"profile-buttons"},Uut=X({__name:"UserRelationships",props:{user:{},relationship:{}},setup(e){const t=e,{relationship:n,user:a}=fe(t),s=Le(),i=ut(),{authUser:o}=Ke(),r=z(()=>({username:a.value.username,relationship:n.value,page:1})),u=z(()=>s.getters[ce.GETTERS.USER_RELATIONSHIPS]),l=z(()=>s.getters[ce.GETTERS.USERS_PAGINATION]);function d(E){s.dispatch(ce.ACTIONS.GET_RELATIONSHIPS,E)}return Ce(()=>i.path,E=>{r.value.page=l.value.page,r.value.relationship=E.includes("following")?"following":"followers",d(r.value)}),Ce(()=>i.query,(E,c)=>{E.page!==c.page&&(r.value.page=E.page?+E.page:1,d(r.value))}),Ce(()=>a.value.following,()=>{d(r.value)}),Ce(()=>a.value.followers,()=>{d(r.value)}),et(()=>d(r.value)),ct(()=>{s.dispatch(ce.ACTIONS.EMPTY_RELATIONSHIPS)}),(E,c)=>(h(),v("div",Put,[u.value.length>0?(h(),v("div",Dut,[p("div",Lut,[(h(!0),v(ue,null,be(u.value,T=>(h(),B(Hp,{key:T.username,authUser:m(o),user:T,from:"relationship"},null,8,["authUser","user"]))),128))]),M(oa,{path:`/profile/${m(n)}`,pagination:l.value,query:{}},null,8,["path","pagination"])])):(h(),v("p",yut,S(E.$t(`user.RELATIONSHIPS.NO_${m(n).toUpperCase()}`)),1)),p("div",$ut,[p("button",{onClick:c[0]||(c[0]=T=>E.$route.path.startsWith("/profile")?E.$router.push("/profile"):E.$router.push(`/users/${m(a).username}`))},S(E.$t("user.PROFILE.BACK_TO_PROFILE")),1)])]))}}),kr=se(Uut,[["__scopeId","data-v-2a9a43ae"]]),kut={id:"users-sports"},Fh=X({__name:"index",props:{user:{},isEdition:{type:Boolean}},setup(e){const t=e,{user:n,isEdition:a}=fe(t),s=Le(),{t:i}=yt(),{sports:o}=nn(),r=z(()=>ia(o.value,i,"is_active",n.value.sports_list));return ct(()=>{s.commit(st.MUTATIONS.SET_CLIENTS,[])}),(u,l)=>{const d=j("router-view");return h(),v("div",kut,[M(d,{authUser:m(n),isEdition:m(a),translatedSports:r.value},null,8,["authUser","isEdition","translatedSports"])])}}}),wut=X({__name:"EquipmentBadge",props:{equipment:{},workoutId:{},sportId:{}},setup(e){const t=e,{equipment:n,sportId:a,workoutId:s}=fe(t);return(i,o)=>{var l;const r=j("EquipmentTypeImage"),u=j("router-link");return h(),B(u,{class:Ae(["equipment-badge",{inactive:!m(n).is_active}]),to:{name:"Equipment",params:{id:m(n).id},query:{fromWorkoutId:m(s),fromSportId:(l=m(a))==null?void 0:l.toString()}}},{default:Y(()=>[M(r,{title:i.$t(`equipment_types.${m(n).equipment_type.label}.LABEL`),"equipment-type-label":m(n).equipment_type.label},null,8,["title","equipment-type-label"]),p("span",null,S(m(n).label)+" "+S(m(n).is_active?"":`(${i.$t("common.INACTIVE")})`),1)]),_:1},8,["class","to"])}}}),tI=se(wut,[["__scopeId","data-v-35b40eb3"]]),Mut={key:0,id:"user-sport",class:"description-list"},Wut={class:"sport-equipments"},Fut={key:0,class:"no-equipments"},zut={class:"sport-buttons"},xut=["disabled"],But={key:1},Gut={class:"no-sport"},Vut=X({__name:"UserSport",props:{authUser:{},translatedSports:{}},setup(e){const t=e,{translatedSports:n}=fe(t),a=ut(),{errorMessages:s}=qe(),{displayModal:i,sportColors:o,resetSport:r,updateDisplayModal:u}=nn(),{authUserLoading:l}=Ke(),d=z(()=>E(n.value));function E(c){if(!a.params.id)return null;const T=c.filter(_=>a.params.id?_.id===+a.params.id:null);return T.length===0?null:T[0]}return Ce(()=>l.value,c=>{!c&&!s.value&&u(!1)}),(c,T)=>{const _=j("Modal"),f=j("SportImage"),O=j("Distance");return d.value?(h(),v("div",Mut,[m(i)?(h(),B(_,{key:0,title:c.$t("common.CONFIRMATION"),message:c.$t(`user.PROFILE.SPORT.CONFIRM_SPORT_RESET${d.value.default_equipments.length>0?"_WITH_EQUIPMENTS":""}`),onConfirmAction:T[0]||(T[0]=A=>m(r)(d.value.id,!0)),onCancelAction:T[1]||(T[1]=A=>m(u)(!1)),onKeydown:T[2]||(T[2]=Ye(A=>m(u)(!1),["esc"]))},null,8,["title","message"])):L("",!0),p("dl",null,[p("dt",null,S(Fe(c.$t("workouts.SPORT",1))),1),p("dd",null,S(d.value.translatedLabel),1),p("dt",null,S(Fe(c.$t("user.PROFILE.SPORT.COLOR"))),1),p("dd",null,[M(f,{title:d.value.translatedLabel,"sport-label":d.value.label,color:d.value.color?d.value.color:m(o)[d.value.label]},null,8,["title","sport-label","color"])]),p("dt",null,S(Fe(c.$t("workouts.WORKOUT",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${c.authUser.sports_list.includes(d.value.id)?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),p("dt",null,S(Fe(c.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD"))),1),p("dd",null,[M(O,{distance:d.value.stopped_speed_threshold,unitFrom:"km",speed:!0,useImperialUnits:c.authUser.imperial_units},null,8,["distance","useImperialUnits"])]),p("dt",null,S(Fe(c.$t("common.ACTIVE",0))),1),p("dd",null,[p("i",{class:Ae(`fa fa-${d.value.is_active_for_user?"check-":""}square-o`),"aria-hidden":"true"},null,2)]),p("dt",null,S(c.$t("user.PROFILE.SPORT.DEFAULT_EQUIPMENTS",1)),1),p("dd",Wut,[(h(!0),v(ue,null,be(d.value.default_equipments,A=>(h(),B(tI,{equipment:A,"sport-id":d.value.id,key:A.label},null,8,["equipment","sport-id"]))),128)),d.value.default_equipments.length===0?(h(),v("div",Fut,S(c.$t("equipments.NO_EQUIPMENTS")),1)):L("",!0)])]),p("div",zut,[c.authUser.suspended_at?L("",!0):(h(),v(ue,{key:0},[p("button",{onClick:T[3]||(T[3]=A=>c.$router.push(`/profile/edit/sports/${d.value.id}`))},S(c.$t("buttons.EDIT")),1),p("button",{disabled:m(l),class:"danger",onClick:T[4]||(T[4]=ve(A=>m(u)(!0),["prevent"]))},S(c.$t("buttons.RESET")),9,xut)],64)),p("button",{onClick:T[5]||(T[5]=A=>c.$router.push(m(a).query.fromEquipmentId?`/profile/equipments/${m(a).query.fromEquipmentId}`:"/profile/sports"))},S(c.$t("buttons.BACK")),1)])])):(h(),v("div",But,[p("p",Gut,S(c.$t("user.NO_SPORT_FOUND")),1),p("button",{onClick:T[6]||(T[6]=A=>c.$router.push("/profile/sports"))},S(c.$t("buttons.BACK")),1)]))}}}),Hut=se(Vut,[["__scopeId","data-v-fbec81b5"]]),Kut={key:0,id:"sport-edition"},qut={class:"form-items"},jut={class:"form-item"},Yut={for:"sport-label"},Xut={class:"form-item"},Qut={for:"sport-color"},Zut=["disabled"],Jut={class:"form-item"},elt={for:"sport-threshold"},tlt=["disabled"],nlt={class:"form-item-checkbox"},alt={for:"equipment-active"},slt=["checked","disabled"],ilt={class:"form-item"},olt={for:"sport-default-equipment"},rlt=["disabled"],ult={value:""},llt=["value"],clt={class:"form-buttons"},dlt=["disabled"],Elt=["disabled"],plt=X({__name:"UserSportEdition",props:{authUser:{},translatedSports:{}},setup(e){const t=e,{authUser:n,translatedSports:a}=fe(t),{t:s}=yt(),i=Le(),o=ut(),{errorMessages:r}=qe(),{defaultColor:u,defaultEquipmentId:l,sportColors:d,sportPayload:E,updateIsActive:c,updateSport:T}=nn(),{authUserLoading:_}=Ke(),f=Ie(!1),O=z(()=>g(a.value)),A=z(()=>i.getters[xe.GETTERS.EQUIPMENTS]),R=z(()=>A.value&&O.value?DO(A.value,s,"withIncludedIds",O.value,O.value.default_equipments.map(C=>C.id)):[]);function g(C){if(!o.params.id)return null;const y=C.filter(D=>o.params.id?D.id===+o.params.id:null);return y.length===0?null:y[0]}function I(C,y=!1){C!==null&&(E.sport_id=C.id,E.color=C.color?C.color:d?d[C.label]:u,E.is_active=C.is_active_for_user,E.stopped_speed_threshold=+`${n.value.imperial_units?Yt(C.stopped_speed_threshold,"km","mi",2):parseFloat(C.stopped_speed_threshold.toFixed(2))}`,E.fromSport=!0,y&&(l.value=C.default_equipments.length>0?C.default_equipments[0].id:""))}function N(){E.default_equipment_ids=l.value?[l.value]:[],T(n.value)}function b(){f.value=!0}return Ce(()=>O.value,C=>{o.params.id&&(C!=null&&C.id)&&I(C,!0)}),mt(()=>{var y;const C=document.getElementById("sport-color");C==null||C.focus(),o.params.id&&o.params.id&&(y=O.value)!=null&&y.id&&I(O.value,!0)}),(C,y)=>{const D=j("ErrorMessage");return O.value?(h(),v("div",Kut,[p("form",{class:Ae({errors:f.value}),onSubmit:ve(N,["prevent"])},[p("div",qut,[p("div",jut,[p("label",Yut,S(Fe(C.$t("workouts.SPORT",1))),1),x(" "+S(O.value.translatedLabel),1)]),p("div",Xut,[p("label",Qut,S(Fe(C.$t("user.PROFILE.SPORT.COLOR"))),1),We(p("input",{id:"sport-color",name:"sport-color",class:"sport-color",type:"color",required:"","onUpdate:modelValue":y[0]||(y[0]=U=>m(E).color=U),disabled:m(_),onInvalid:b},null,40,Zut),[[ot,m(E).color]])]),p("div",Jut,[p("label",elt,S(Fe(C.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")))+" ("+S(`${m(n).imperial_units?"mi":"km"}/h`)+")* ",1),We(p("input",{id:"sport-threshold",name:"sport-threshold",class:"threshold-input",type:"number",min:"0",step:"0.1",required:"","onUpdate:modelValue":y[1]||(y[1]=U=>m(E).stopped_speed_threshold=U),disabled:m(_),onInvalid:b},null,40,tlt),[[ot,m(E).stopped_speed_threshold]])]),p("div",nlt,[p("label",alt,S(Fe(C.$t("common.ACTIVE"))),1),p("input",{id:"equipment-active",name:"equipment-active",type:"checkbox",checked:O.value.is_active_for_user,onChange:y[2]||(y[2]=(...U)=>m(c)&&m(c)(...U)),disabled:m(_)},null,40,slt)]),p("div",ilt,[p("label",olt,S(C.$t("user.PROFILE.SPORT.DEFAULT_EQUIPMENTS",1)),1),We(p("select",{id:"sport-default-equipment",onInvalid:b,disabled:m(_),"onUpdate:modelValue":y[3]||(y[3]=U=>Kt(l)?l.value=U:null)},[p("option",ult,S(C.$t("equipments.NO_EQUIPMENTS")),1),(h(!0),v(ue,null,be(R.value,U=>(h(),v("option",{value:U.id,key:U.id},S(U.label),9,llt))),128))],40,rlt),[[Jt,m(l)]])])]),m(r)?(h(),B(D,{key:0,message:m(r)},null,8,["message"])):L("",!0),p("div",clt,[p("button",{class:"confirm",type:"submit",disabled:m(_)},S(C.$t("buttons.SUBMIT")),9,dlt),p("button",{class:"cancel",onClick:y[4]||(y[4]=ve(()=>{var U;return C.$router.push(`/profile/sports/${(U=O.value)==null?void 0:U.id}`)},["prevent"])),disabled:m(_)},S(C.$t("buttons.CANCEL")),9,Elt)])],34)])):L("",!0)}}}),Tlt=se(plt,[["__scopeId","data-v-aaa31377"]]),mlt={id:"user-sport-preferences"},_lt={key:1,class:"responsive-table"},flt={class:"mobile-display"},hlt={key:0,class:"profile-buttons mobile-display"},Slt={key:1,class:"profile-buttons"},Alt={class:"text-left"},Olt={class:"threshold"},Ilt={key:0},glt={class:"cell-heading"},Rlt={class:"cell-heading"},Nlt={key:2,class:"disabled-message"},vlt={key:3,class:"fa fa-refresh fa-spin fa-fw"},blt={class:"cell-heading"},Clt={class:"cell-heading"},Plt={class:"cell-heading"},Dlt=["checked"],Llt={class:"cell-heading"},ylt={key:1},$lt={key:0,class:"action-buttons"},Ult={class:"cell-heading"},klt=["onClick"],wlt={key:1,class:"edition-buttons"},Mlt=["disabled"],Wlt=["disabled"],Flt=["disabled"],zlt={key:0,class:"profile-buttons"},xlt={key:1,class:"profile-buttons"},Blt=X({__name:"UserSportPreferences",props:{authUser:{},translatedSports:{},isEdition:{type:Boolean}},setup(e){const t=e,{authUser:n,isEdition:a,translatedSports:s}=fe(t),i=Le(),{errorMessages:o}=qe(),{defaultColor:r,displayModal:u,sportColors:l,sportPayload:d,resetSport:E,updateDisplayModal:c,updateIsActive:T,updateSport:_}=nn(),{authUserLoading:f}=Ke(),O=Ie(!1);function A(I){I!==null?(d.sport_id=I.id,d.color=I.color?I.color:l?l[I.label]:r,d.is_active=I.is_active_for_user,d.stopped_speed_threshold=+`${n.value.imperial_units?Yt(I.stopped_speed_threshold,"km","mi",2):parseFloat(I.stopped_speed_threshold.toFixed(2))}`,O.value=I.default_equipments.length>0):g()}function R(I){return d.sport_id===I}function g(){d.sport_id=0,d.color=null,d.is_active=!0,d.stopped_speed_threshold=1,O.value=!1,i.commit(te.MUTATIONS.EMPTY_ERROR_MESSAGES)}return Ce(()=>f.value,I=>{!I&&!o.value&&(g(),c(!1))}),(I,N)=>{const b=j("Modal"),C=j("SportImage"),y=j("router-link"),D=j("ErrorMessage"),U=j("Distance");return h(),v("div",mlt,[m(u)?(h(),B(b,{key:0,title:I.$t("common.CONFIRMATION"),message:I.$t(`user.PROFILE.SPORT.CONFIRM_SPORT_RESET${O.value?"_WITH_EQUIPMENTS":""}`),onConfirmAction:N[0]||(N[0]=P=>m(E)(m(d).sport_id)),onCancelAction:N[1]||(N[1]=P=>m(c)(!1)),onKeydown:N[2]||(N[2]=Ye(P=>m(c)(!1),["esc"]))},null,8,["title","message"])):L("",!0),m(s).length>0?(h(),v("div",_lt,[p("div",flt,[m(a)?(h(),v("div",hlt,[p("button",{class:"cancel",onClick:N[3]||(N[3]=ve(P=>I.$router.push("/profile/sports"),["prevent"]))},S(I.$t("buttons.BACK")),1)])):(h(),v("div",Slt,[p("button",{onClick:N[4]||(N[4]=P=>I.$router.push("/profile/edit/sports"))},S(I.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1),p("button",{onClick:N[5]||(N[5]=P=>I.$router.push("/"))},S(I.$t("common.HOME")),1)]))]),p("table",null,[p("thead",null,[p("tr",null,[p("th",null,S(I.$t("user.PROFILE.SPORT.COLOR")),1),p("th",Alt,S(I.$t("workouts.SPORT",0)),1),p("th",null,S(I.$t("workouts.WORKOUT",0)),1),p("th",null,S(I.$t("equipments.EQUIPMENT",0)),1),p("th",null,S(I.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),p("th",null,[p("div",Olt,[p("span",null,S(I.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD")),1),p("span",null," ("+S(`${m(n).imperial_units?"mi":"km"}/h`)+") ",1)])]),m(a)&&!m(n).suspended_at?(h(),v("th",Ilt,S(I.$t("user.PROFILE.SPORT.ACTION")),1)):L("",!0)])]),p("tbody",null,[(h(!0),v(ue,null,be(m(s),P=>(h(),v("tr",{key:P.id},[p("td",null,[p("span",glt,S(I.$t("user.PROFILE.SPORT.COLOR")),1),R(P.id)?We((h(),v("input",{key:0,class:"sport-color",type:"color","onUpdate:modelValue":N[6]||(N[6]=F=>m(d).color=F)},null,512)),[[ot,m(d).color]]):(h(),B(C,{key:1,title:P.translatedLabel,"sport-label":P.label,color:P.color?P.color:m(l)[P.label]},null,8,["title","sport-label","color"]))]),p("td",{class:Ae(["sport-label",{"disabled-sport":!P.is_active}])},[p("span",Rlt,S(I.$t("user.PROFILE.SPORT.LABEL")),1),R(P.id)?(h(),v(ue,{key:0},[x(S(P.translatedLabel),1)],64)):(h(),B(y,{key:1,to:`/profile/sports/${P.id}`},{default:Y(()=>[x(S(P.translatedLabel),1)]),_:2},1032,["to"])),P.is_active?L("",!0):(h(),v("span",Nlt," ("+S(I.$t("user.PROFILE.SPORT.DISABLED_BY_ADMIN"))+") ",1)),m(f)&&R(P.id)?(h(),v("i",vlt)):L("",!0),m(o)&&m(d).sport_id===P.id?(h(),B(D,{key:4,message:m(o)},null,8,["message"])):L("",!0)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",blt,S(I.$t("workouts.WORKOUT",0)),1),p("i",{class:Ae(`fa fa${m(n).sports_list.includes(P.id)?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Clt,S(I.$t("equipments.EQUIPMENT",0)),1),p("i",{class:Ae(`fa fa${P.default_equipments.length>0?"-check":""}`),"aria-hidden":"true"},null,2)],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Plt,S(I.$t("user.PROFILE.SPORT.IS_ACTIVE")),1),R(P.id)&&P.is_active?(h(),v("input",{key:0,type:"checkbox",checked:P.is_active_for_user,onChange:N[7]||(N[7]=(...F)=>m(T)&&m(T)(...F))},null,40,Dlt)):(h(),v("i",{key:1,class:Ae(`fa fa${P.is_active_for_user?"-check":""}`),"aria-hidden":"true"},null,2))],2),p("td",{class:Ae(["text-center",{"disabled-sport":!P.is_active}])},[p("span",Llt,S(I.$t("user.PROFILE.SPORT.STOPPED_SPEED_THRESHOLD"))+" "+S(`${m(n).imperial_units?"mi":"km"}/h`),1),R(P.id)&&P.is_active?We((h(),v("input",{key:0,class:"threshold-input",type:"number",min:"0",step:"0.1","onUpdate:modelValue":N[8]||(N[8]=F=>m(d).stopped_speed_threshold=F)},null,512)),[[ot,m(d).stopped_speed_threshold]]):(h(),v("span",ylt,[M(U,{distance:P.stopped_speed_threshold,unitFrom:"km",speed:!0,useImperialUnits:m(n).imperial_units,displayUnit:!1},null,8,["distance","useImperialUnits"])]))],2),m(a)&&!m(n).suspended_at?(h(),v("td",$lt,[p("span",Ult,S(I.$t("user.PROFILE.SPORT.ACTION")),1),m(d).sport_id===0?(h(),v("button",{key:0,onClick:F=>A(P)},S(I.$t("buttons.EDIT")),9,klt)):L("",!0),R(P.id)?(h(),v("div",wlt,[p("button",{disabled:m(f),onClick:N[9]||(N[9]=ve(F=>m(_)(m(n)),["prevent"]))},S(I.$t("buttons.SUBMIT")),9,Mlt),p("button",{disabled:m(f),class:"warning",onClick:N[10]||(N[10]=ve(F=>m(c)(!0),["prevent"]))},S(I.$t("buttons.RESET")),9,Wlt),p("button",{disabled:m(f),onClick:N[11]||(N[11]=F=>A(null))},S(I.$t("buttons.CANCEL")),9,Flt)])):L("",!0)])):L("",!0)]))),128))])]),m(a)?(h(),v("div",zlt,[p("button",{class:"cancel",onClick:N[12]||(N[12]=ve(P=>I.$router.push("/profile/sports"),["prevent"]))},S(I.$t("buttons.BACK")),1)])):(h(),v("div",xlt,[m(n).suspended_at?L("",!0):(h(),v("button",{key:0,onClick:N[13]||(N[13]=P=>I.$router.push("/profile/edit/sports"))},S(I.$t("user.PROFILE.EDIT_SPORTS_PREFERENCES")),1)),p("button",{onClick:N[14]||(N[14]=P=>I.$router.push("/"))},S(I.$t("common.HOME")),1)]))])):L("",!0)])}}}),zh=se(Blt,[["__scopeId","data-v-2f0e6a61"]]),Glt={class:"about-text"},Vlt=["innerHTML"],Hlt=["href"],Klt={href:"https://github.com/SamR1/FitTrackee",target:"_blank",rel:"noopener noreferrer"},qlt={key:0},jlt=["href"],Ylt={key:1},Xlt=["href"],Qlt={class:"about-instance"},Zlt=["innerHTML"],Jlt=X({__name:"About",setup(e){const{appConfig:t,appLanguage:n}=qe(),a=z(()=>i()),s=z(()=>o());function i(){const r={};return t.value.weatherProvider==="visualcrossing"&&(r.name="Visual Crossing",r.url="https://www.visualcrossing.com"),r}function o(){let r="https://samr1.github.io/FitTrackee/";return n.value==="fr"&&(r+="fr/"),r}return(r,u)=>{const l=j("i18n-t");return h(),v("div",Glt,[p("div",null,[p("p",{class:"error-message",innerHTML:r.$t("about.FITTRACKEE_DESCRIPTION")},null,8,Vlt),p("p",null,[u[0]||(u[0]=p("i",{class:"fa fa-book fa-padding","aria-hidden":"true"},null,-1)),p("a",{class:"documentation-link",href:s.value,target:"_blank",rel:"noopener noreferrer"},S(Fe(r.$t("common.DOCUMENTATION"))),9,Hlt)]),p("p",null,[u[1]||(u[1]=p("i",{class:"fa fa-github fa-padding","aria-hidden":"true"},null,-1)),p("a",Klt,S(r.$t("about.SOURCE_CODE")),1)]),p("p",null,[u[3]||(u[3]=p("i",{class:"fa fa-balance-scale fa-padding","aria-hidden":"true"},null,-1)),M(l,{keypath:"about.FITTRACKEE_LICENSE"},{default:Y(()=>u[2]||(u[2]=[p("a",{href:"https://choosealicense.com/licenses/agpl-3.0/",target:"_blank",rel:"noopener noreferrer"},"AGPLv3",-1)])),_:1})]),m(t).admin_contact?(h(),v("div",qlt,[u[4]||(u[4]=p("i",{class:"fa fa-envelope-o fa-padding","aria-hidden":"true"},null,-1)),p("a",{href:`mailto:${m(t).admin_contact}`},S(r.$t("about.CONTACT_ADMIN")),9,jlt)])):L("",!0),a.value&&a.value.name?(h(),v("div",Ylt,[x(S(r.$t("about.WEATHER_DATA_FROM"))+" ",1),p("a",{href:a.value.url,target:"_blank",rel:"nofollow noopener"},S(a.value.name),9,Xlt)])):L("",!0),m(t).about?(h(),v(ue,{key:2},[p("p",Qlt,S(r.$t("about.ABOUT_THIS_INSTANCE")),1),p("div",{innerHTML:m(Go)(m(t).about)},null,8,Zlt)],64)):L("",!0)])])}}}),ect=se(Jlt,[["__scopeId","data-v-28993d11"]]),tct={},nct={id:"bike"};function act(e,t){return h(),v("div",nct,t[0]||(t[0]=[p("img",{class:"bike-img",src:"/img/bike.svg",alt:"mountain bike"},null,-1)]))}const nI=se(tct,[["render",act],["__scopeId","data-v-dc181e30"]]),sct={id:"about",class:"view"},ict={class:"container"},oct={class:"container-sub"},rct={class:"container-sub about-details"},uct=X({__name:"AboutView",setup(e){return(t,n)=>(h(),v("div",sct,[p("div",ict,[p("div",oct,[M(nI)]),p("div",rct,[M(ect)])])]))}}),lct=se(uct,[["__scopeId","data-v-ef9c7198"]]),cct={id:"admin",class:"view"},dct={key:0,class:"container"},Ect={key:1,class:"container"},pct=X({__name:"AdminView",setup(e){const t=Le(),{authUserHasModeratorRights:n,authUserHasAdminRights:a,authUserLoading:s}=Ke();return et(()=>{n.value&&t.dispatch(te.ACTIONS.GET_APPLICATION_STATS)}),(i,o)=>{const r=j("router-view");return h(),v("div",cct,[m(s)?L("",!0):(h(),v("div",dct,[(i.$route.meta.minimumRole==="moderator"?m(n):m(a))?(h(),B(r,{key:0})):(h(),v("div",Ect,[M(Ui)])),o[0]||(o[0]=p("div",{id:"bottom"},null,-1))]))])}}}),Tct=se(pct,[["__scopeId","data-v-580b02ed"]]),mct={},_ct={class:"no-workouts box"};function fct(e,t){const n=j("router-link");return h(),v("div",_ct,[p("div",null,[x(S(e.$t("workouts.NO_WORKOUTS"))+" ",1),M(n,{to:"/workouts/add"},{default:Y(()=>[x(S(e.$t("workouts.UPLOAD_FIRST_WORKOUT")),1)]),_:1})])])}const Zp=se(mct,[["render",fct],["__scopeId","data-v-b0c91cc6"]]),os={ligthMode:{text:"#666",line:"rgba(0, 0, 0, 0.1)"},darkMode:{text:"#a1a1a1",line:"#3f3f3f"}},hct=(e,t,n,a=!1)=>{const s={speed:{label:t("workouts.SPEED"),backgroundColor:["transparent"],borderColor:[a?"#5f5c97":"#8884d8"],borderWidth:2,data:[],yAxisID:"ySpeed"},elevation:{label:t("workouts.ELEVATION"),backgroundColor:[a?"#303030":"#e5e5e5"],borderColor:[a?"#222222":"#cccccc"],borderWidth:1,fill:!0,data:[],yAxisID:"yElevation"}},i=[],o=[],r=[];return e.map(u=>{i.push(Zr("km",u.distance,n)),o.push(u.duration),s.speed.data.push(Zr("km",u.speed,n)),u.elevation!==void 0&&s.elevation.data.push(Zr("m",u.elevation,n)),r.push({latitude:u.latitude,longitude:u.longitude})}),{distance_labels:i,duration_labels:o,datasets:s,coordinates:r}},Sct=e=>{const t=e.length;if(t===0)return{};const n={};return e.map(a=>{n[a.sport_id]||(n[a.sport_id]={count:0,percentage:0}),n[a.sport_id].count+=1,n[a.sport_id].percentage=n[a.sport_id].count/t}),n},qo={order:"desc",order_by:"workout_date"},Act={id:"timeline"},Oct={class:"section-title"},Ict={key:0},gct={key:1},Rct={key:1,class:"more-workouts"},wr=5,Nct=X({__name:"Timeline",props:{sports:{},authUser:{}},setup(e){const t=e,{sports:n,authUser:a}=fe(t),{dateFormat:s}=Ke(),i=Le(),o=Ie(1),r=z(()=>a.value.nb_workouts>=wr?wr:a.value.nb_workouts),u=z(()=>i.getters[J.GETTERS.TIMELINE_WORKOUTS]),l=z(()=>i.getters[J.GETTERS.WORKOUTS_PAGINATION]),d=z(()=>i.getters[K.GETTERS.IS_SUSPENDED]);function E(){d.value||i.dispatch(J.ACTIONS.GET_TIMELINE_WORKOUTS,{page:o.value,per_page:wr,...qo})}function c(){d.value||(o.value+=1,i.dispatch(J.ACTIONS.GET_MORE_TIMELINE_WORKOUTS,{page:o.value,per_page:wr,...qo}))}return et(()=>E()),ct(()=>i.commit(J.MUTATIONS.SET_WORKOUTS_PAGINATION,{})),(T,_)=>(h(),v("div",Act,[p("div",Oct,S(T.$t("workouts.LATEST_WORKOUTS")),1),m(a).nb_workouts>0&&u.value.length===0?(h(),v("div",Ict,[(h(!0),v(ue,null,be([...Array(r.value).keys()],f=>(h(),B(Vo,{user:m(a),useImperialUnits:m(a).imperial_units,dateFormat:m(s),timezone:m(a).timezone,key:f},null,8,["user","useImperialUnits","dateFormat","timezone"]))),128))])):(h(),v("div",gct,[(h(!0),v(ue,null,be(u.value,f=>(h(),B(Vo,{workout:f,sport:u.value.length>0?m(n).filter(O=>O.id===f.sport_id)[0]:null,user:f.user,useImperialUnits:m(a).imperial_units,dateFormat:m(s),timezone:m(a).timezone,key:f.id},null,8,["workout","sport","user","useImperialUnits","dateFormat","timezone"]))),128)),u.value.length===0?(h(),B(Zp,{key:0})):L("",!0),l.value.has_next?(h(),v("div",Rct,[p("button",{onClick:c},S(T.$t("workouts.LOAD_MORE_WORKOUT")),1)])):L("",!0)]))]))}}),vct=se(Nct,[["__scopeId","data-v-bab374a4"]]),bct=["title"],aI=X({__name:"CalendarWorkout",props:{displayHARecord:{type:Boolean},workout:{},sportLabel:{},sportColor:{}},setup(e){const t=e,{displayHARecord:n,workout:a,sportLabel:s,sportColor:i}=fe(t);return(o,r)=>{const u=j("SportImage"),l=j("router-link");return h(),B(l,{class:"calendar-workout",to:{name:"Workout",params:{workoutId:m(a).id}}},{default:Y(()=>[M(u,{"sport-label":m(s),title:m(a).title,color:m(i)},null,8,["sport-label","title","color"]),p("sup",null,[m(a).records.length>0?(h(),v("i",{key:0,class:"fa fa-trophy custom-fa-small","aria-hidden":"true",title:m(a).records.filter(d=>m(n)?!0:d.record_type!=="HA").map(d=>` ${o.$t(`workouts.RECORD_${d.record_type}`)}`)[0]},null,8,bct)):L("",!0)])]),_:1},8,["to"])}}}),Cct={class:"donut-chart"},Pct={height:"34",width:"34",viewBox:"0 0 34 34"},Dct=["stroke","stroke-dashoffset","transform"],xh=16,Bh=16,Gh=14,Lct=X({__name:"DonutChart",props:{colors:{},datasets:{}},setup(e){const t=e,{colors:n,datasets:a}=fe(t);let s=-90;const i=2*Math.PI*Gh;function o(u,l){return l-u*l}function r(u,l){const d=`rotate(${s}, ${xh}, ${Bh})`;return s=l*360+s,d}return(u,l)=>(h(),v("div",Cct,[(h(),v("svg",Pct,[(h(!0),v(ue,null,be(Object.entries(m(a)),(d,E)=>(h(),v("g",{key:E},[p("circle",{cx:xh,cy:Bh,r:Gh,fill:"transparent",stroke:m(n)[+d[0]],"stroke-dashoffset":o(d[1].percentage,i),"stroke-dasharray":i,"stroke-width":"3","stroke-opacity":"0.8",transform:r(E,d[1].percentage)},null,8,Dct)]))),128))]))]))}}),yct={class:"calendar-workouts-chart"},$ct=["id"],Uct={class:"workouts-count"},kct={key:0,class:"workouts-pane"},wct=["id"],Mct=X({__name:"CalendarWorkoutsChart",props:{colors:{},datasets:{},sports:{},workouts:{},displayHARecord:{type:Boolean},index:{}},setup(e){const t=e,{colors:n,datasets:a,index:s,sports:i,workouts:o}=fe(t);let r=0;const u=Ie(!0);function l(){const c=document.getElementById(`workouts-pane-${s.value}`);return c!=null&&c.children&&(c==null?void 0:c.children.length)>0?c:null}async function d(c){var _;c.preventDefault(),c.stopPropagation(),u.value=!u.value,await ln();const T=l();u.value?(_=document.getElementById(`workouts-donut-${s.value}`))==null||_.focus():(T==null?void 0:T.children[0]).focus()}function E(c){if(!u.value){if(!u.value&&(c.key==="Tab"||c.keyCode===9)){c.preventDefault(),c.stopPropagation();const T=l();T&&(c.shiftKey?(r-=1,r<0&&(r=T.children.length-1)):(r+=1,r>=T.children.length&&(r=0)),T.children[r].focus())}c.key==="Escape"&&d(c)}}return mt(()=>{document.addEventListener("keydown",E)}),ct(()=>{document.removeEventListener("keydown",E)}),(c,T)=>{const _=aR("click-outside");return h(),v("div",yct,[p("button",{class:"workouts-chart transparent",id:`workouts-donut-${m(s)}`,onClick:d},[p("div",Uct,S(m(o).length),1),M(Lct,{datasets:m(a),colors:m(n)},null,8,["datasets","colors"])],8,$ct),u.value?L("",!0):(h(),v("div",kct,[We((h(),v("div",{class:"more-workouts",id:`workouts-pane-${m(s)}`},[p("button",{class:"calendar-more-close transparent",onClick:d},T[0]||(T[0]=[p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)])),(h(!0),v(ue,null,be(m(o),(f,O)=>(h(),B(aI,{key:O,displayHARecord:c.displayHARecord,workout:f,sportLabel:m(xp)(f,m(i)),sportColor:m(Bp)(f,m(i))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))],8,wct)),[[_,d]])]))])}}}),Vh=se(Mct,[["__scopeId","data-v-fda2985a"]]),Wct={class:"calendar-workouts"},Fct={class:"desktop-display"},zct={key:0,class:"workouts-display"},xct={key:1,class:"donut-display"},Bct={class:"mobile-display"},Gct={key:0,class:"donut-display"},Hh=6,Vct=X({__name:"CalendarWorkouts",props:{displayHARecord:{type:Boolean},workouts:{},sports:{},index:{}},setup(e){const t=e,{displayHARecord:n,index:a,sports:s,workouts:i}=fe(t),o=z(()=>Sct(t.workouts)),r=z(()=>uje(t.sports));return(u,l)=>(h(),v("div",Wct,[p("div",Fct,[m(i).length<=Hh?(h(),v("div",zct,[(h(!0),v(ue,null,be(m(i).slice(0,Hh),(d,E)=>(h(),B(aI,{key:E,displayHARecord:m(n),workout:d,sportLabel:m(xp)(d,m(s)),sportColor:m(Bp)(d,m(s))},null,8,["displayHARecord","workout","sportLabel","sportColor"]))),128))])):(h(),v("div",xct,[M(Vh,{workouts:m(i),sports:m(s),datasets:o.value,colors:r.value,displayHARecord:m(n),index:m(a)},null,8,["workouts","sports","datasets","colors","displayHARecord","index"])]))]),p("div",Bct,[m(i).length>0?(h(),v("div",Gct,[M(Vh,{workouts:m(i),sports:m(s),datasets:o.value,colors:r.value,displayHARecord:m(n),index:m(a)},null,8,["workouts","sports","datasets","colors","displayHARecord","index"])])):L("",!0)])]))}}),Hct={class:"calendar-cells"},Kct={class:"calendar-cell-day"},qct=X({__name:"CalendarCells",props:{currentDay:{},displayHARecord:{type:Boolean},endDate:{},sports:{},startDate:{},timezone:{},weekStartingMonday:{type:Boolean},workouts:{}},setup(e){const t=e,{currentDay:n,displayHARecord:a,endDate:s,sports:i,startDate:o,timezone:r,weekStartingMonday:u,workouts:l}=fe(t),d=Ie([]);function E(){d.value=[];let _=o.value;for(;_<=s.value;){const f=[];for(let O=0;O<7;O++)f.push(_),_=ar(_,1);d.value.push(f)}}function c(_){return u.value?[5,6].includes(_):[0,6].includes(_)}function T(_,f){return f?f.filter(O=>_1(vl(O.workout_date,r.value),_)).reverse():[]}return Ce(()=>t.currentDay,()=>E()),mt(()=>E()),(_,f)=>(h(),v("div",Hct,[(h(!0),v(ue,null,be(d.value,(O,A)=>(h(),v("div",{class:"calendar-row",key:A},[(h(!0),v(ue,null,be(O,(R,g)=>(h(),v("div",{class:Ae(["calendar-cell",{"disabled-cell":!m(BD)(R,m(n)),"week-end":c(g),today:m(GD)(R)}]),key:g},[M(Vct,{workouts:T(R,m(l)),sports:m(i),displayHARecord:m(a),index:g},null,8,["workouts","sports","displayHARecord","index"]),p("div",Kct,S(m(On)(R,"d")),1)],2))),128))]))),128))]))}}),jct={class:"calendar-days"},Yct=X({__name:"CalendarDays",props:{startDate:{},localeOptions:{}},setup(e){const t=e,n=[];for(let a=0;a<7;a++)n.push(ar(t.startDate,a));return(a,s)=>(h(),v("div",jct,[(h(),v(ue,null,be(n,(i,o)=>p("div",{class:"calendar-day",key:o},S(m(On)(i,a.localeOptions.code==="eu"?"EEEEEE.":"EEE",{locale:a.localeOptions})),1)),64))]))}}),Xct={class:"calendar-header"},Qct=["aria-label"],Zct={class:"calendar-month"},Jct=["aria-label"],edt=X({__name:"CalendarHeader",props:{day:{},localeOptions:{}},emits:["displayNextMonth","displayPreviousMonth"],setup(e,{emit:t}){const n=e,{day:a,localeOptions:s}=fe(n),i=t;return(o,r)=>(h(),v("div",Xct,[p("button",{class:"calendar-arrow calendar-arrow-left transparent",onClick:r[0]||(r[0]=u=>i("displayPreviousMonth")),"aria-label":o.$t("common.PREVIOUS")},r[2]||(r[2]=[p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)]),8,Qct),p("div",Zct,[p("span",null,S(m(On)(m(a),"MMM yyyy",{locale:m(s)})),1)]),p("button",{class:"calendar-arrow calendar-arrow-right transparent",onClick:r[1]||(r[1]=u=>i("displayNextMonth")),"aria-label":o.$t("common.NEXT")},r[3]||(r[3]=[p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)]),8,Jct)]))}}),tdt={id:"user-calendar"},ndt={class:"section-title"},adt={class:"calendar-card box"},Kh="yyyy-MM-dd",sdt=X({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:a}=fe(t),s=Le(),{locale:i}=qe(),{isAuthUserSuspended:o}=Ke(),r=Ie(new Date),u=Ie(H_(r.value,a.value.weekm)),l=z(()=>s.getters[J.GETTERS.CALENDAR_WORKOUTS]);function d(){if(!o.value){u.value=H_(r.value,t.user.weekm);const T={from:On(u.value.start,Kh),to:On(u.value.end,Kh),page:1,per_page:100,...qo};s.dispatch(J.ACTIONS.GET_CALENDAR_WORKOUTS,T)}}function E(){r.value=Ai(r.value,1),d()}function c(){r.value=wo(r.value,1),d()}return et(()=>d()),(T,_)=>(h(),v("div",tdt,[p("div",ndt,S(T.$t("workouts.MY_WORKOUTS")),1),p("div",adt,[M(edt,{day:r.value,"locale-options":m(i),onDisplayNextMonth:E,onDisplayPreviousMonth:c},null,8,["day","locale-options"]),M(Yct,{"start-date":u.value.start,"locale-options":m(i)},null,8,["start-date","locale-options"]),M(qct,{currentDay:r.value,displayHARecord:m(a).display_ascent,"end-date":u.value.end,sports:m(n),"start-date":u.value.start,timezone:m(a).timezone,workouts:l.value,weekStartingMonday:m(a).weekm},null,8,["currentDay","displayHARecord","end-date","sports","start-date","timezone","workouts","weekStartingMonday"])])]))}}),sI={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},idt={ariaLabel:{type:String},ariaDescribedby:{type:String}},odt={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...sI,...idt},rdt=RS[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function ei(e){return Yo(e)?dt(e):e}function udt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Yo(t)?new Proxy(e,{}):e}function ldt(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function iI(e,t){e.labels=t}function oI(e,t,n){const a=[];e.datasets=t.map(s=>{const i=e.datasets.find(o=>o[n]===s[n]);return!i||!s.data||a.includes(i)?{...s}:(a.push(i),Object.assign(i,s),i)})}function cdt(e,t){const n={labels:[],datasets:[]};return iI(n,e.labels),oI(n,e.datasets,t),n}const ddt=X({props:odt,setup(e,t){let{expose:n,slots:a}=t;const s=Ie(null),i=il(null);n({chart:i});const o=()=>{if(!s.value)return;const{type:l,data:d,options:E,plugins:c,datasetIdKey:T}=e,_=cdt(d,T),f=udt(_,d);i.value=new gE(s.value,{type:l,data:f,options:{...E},plugins:c})},r=()=>{const l=dt(i.value);l&&(e.destroyDelay>0?setTimeout(()=>{l.destroy(),i.value=null},e.destroyDelay):(l.destroy(),i.value=null))},u=l=>{l.update(e.updateMode)};return mt(o),ct(r),Ce([()=>e.options,()=>e.data],(l,d)=>{let[E,c]=l,[T,_]=d;const f=dt(i.value);if(!f)return;let O=!1;if(E){const A=ei(E),R=ei(T);A&&A!==R&&(ldt(f,A),O=!0)}if(c){const A=ei(c.labels),R=ei(_.labels),g=ei(c.datasets),I=ei(_.datasets);A!==R&&(iI(f.config.data,A),O=!0),g&&g!==I&&(oI(f.config.data,g,e.datasetIdKey),O=!0)}O&&ln(()=>{u(f)})},{deep:!0}),()=>bn("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:s},[bn("p",{},[a.default?a.default():""])])}});function rI(e,t){return gE.register(t),X({props:sI,setup(n,a){let{expose:s}=a;const i=il(null),o=r=>{i.value=r==null?void 0:r.chart};return s({chart:i}),()=>bn(ddt,rdt({ref:o},{type:e,...n}))}})}const Edt=rI("bar",u0),pdt=rI("line",l0),to=(e,t,n,a=!0,s="km")=>{const i=n?vn[s].defaultTarget:s;switch(e){case"average_speed":return`${t.toFixed(2)} ${i}/h`;case"average_duration":case"total_duration":return Srt(t,a);case"average_distance":case"average_ascent":case"average_descent":case"total_distance":case"total_ascent":case"total_descent":return`${t.toFixed(2)} ${i}`;default:return t.toString()}},Tdt=X({__name:"Chart",props:{datasets:{},labels:{},displayedData:{},displayedSportIds:{},fullStats:{type:Boolean},useImperialUnits:{type:Boolean},label:{}},setup(e){const t=e,{datasets:n,labels:a,displayedData:s,displayedSportIds:i,fullStats:o,useImperialUnits:r}=fe(t),{t:u}=yt(),{darkTheme:l}=qe(),d=z(()=>({color:l.value?os.darkMode.line:os.ligthMode.line})),E=z(()=>({color:l.value?os.darkMode.text:os.ligthMode.text})),c=z(()=>s.value!=="average_workouts"&&s.value.startsWith("average")),T=z(()=>({labels:a.value,datasets:JSON.parse(JSON.stringify(n.value))})),_=z(()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,layout:{padding:{top:o.value?40:22}},scales:{x:{stacked:!0,grid:{drawOnChartArea:!1,...d.value},border:{...d.value},ticks:{...E.value}},y:{stacked:!s.value.startsWith("average"),grid:{drawOnChartArea:!1,...d.value},border:{...d.value},ticks:{maxTicksLimit:6,callback:function(R){return to(s.value,+R,r.value,!1,A(s.value))},...E.value},afterFit:function(R){R.width=o.value?90:60}}},plugins:{datalabels:{anchor:"end",align:"end",color:function(R){return c.value&&R.dataset.backgroundColor?R.dataset.backgroundColor[0]:E.value.color},rotation:function(R){return o.value&&R.chart.chartArea.width<580?310:0},display:function(R){return o.value&&R.chart.chartArea.width<300?!1:c.value?i.value.length==1?"auto":!1:!0},formatter:function(R,g){if(s.value.startsWith("average"))return to(s.value,R,r.value,!1);{const I=g.chart.data.datasets.map(N=>N.data[g.dataIndex]).reduce((N,b)=>O(N,b),0);return g.datasetIndex===i.value.length-1&&I>0?to(s.value,I,r.value,!1,A(s.value)):null}}},legend:{display:!1},tooltip:{interaction:{intersect:!0,mode:"index",position:c.value?"nearest":"average"},filter:function(R){return R.formattedValue!=="0"},callbacks:{label:function(R){let g=s.value==="average_workouts"?u("workouts.WORKOUT",0):u(`sports.${R.dataset.label}.LABEL`)||"";return g&&(g+=": "),R.parsed.y!==null&&(g+=to(s.value,R.parsed.y,r.value,!0,A(s.value))),g},footer:function(R){if(s.value.startsWith("average"))return"";let g=0;return R.map(I=>{g+=I.parsed.y}),`${u("common.TOTAL")}: `+to(s.value,g,r.value,!0,A(s.value))}}}}}));function f(R){return isNaN(R)?0:+R}function O(R,g){return f(R)+f(g)}function A(R){return R.includes("scent")?"m":"km"}return(R,g)=>(h(),v("div",{class:Ae(["bar-chart",{minimal:!m(o)}])},[M(m(Edt),{data:T.value,options:_.value,"aria-label":R.label},null,8,["data","options","aria-label"])],2))}}),mdt=se(Tdt,[["__scopeId","data-v-f96e822f"]]),{locale:el}=$i.global,uI={week:{api:"yyyy-MM-dd",chart:"MM/dd/yyyy"},month:{api:"yyyy-MM",chart:"MM/yyyy"},year:{api:"yyyy",chart:"yyyy"}},_dt=["average_ascent","average_descent","average_distance","average_duration","average_speed","total_workouts","total_duration","total_distance","total_ascent","total_descent"],fdt=(e,t)=>{const n=[];for(let a=pBe(e.duration,e.start,t);a<=e.end;a=TBe(e.duration,a))n.push(a);return n},ma=(e,t,n=!1)=>{const a={label:e,backgroundColor:[t],data:[]};return n?(a.type="line",a.borderColor=[t],a.spanGaps=!0):a.type="bar",a},hdt=e=>{const t={average_ascent:[],average_descent:[],average_distance:[],average_duration:[],average_speed:[],average_workouts:[],total_workouts:[],total_distance:[],total_duration:[],total_ascent:[],total_descent:[]};return e.map(n=>{const a=n.color?n.color:zp[n.label];t.average_ascent.push(ma(n.label,a,!0)),t.average_descent.push(ma(n.label,a,!0)),t.average_distance.push(ma(n.label,a,!0)),t.average_duration.push(ma(n.label,a,!0)),t.average_speed.push(ma(n.label,a,!0)),t.total_workouts.push(ma(n.label,a)),t.total_distance.push(ma(n.label,a)),t.total_duration.push(ma(n.label,a)),t.total_ascent.push(ma(n.label,a)),t.total_descent.push(ma(n.label,a))}),t},Sdt=(e,t,n)=>{switch(e){case"average_speed":case"total_distance":case"total_ascent":case"total_descent":case"average_distance":case"average_ascent":case"average_descent":return Zr(["average_speed","total_distance","average_distance"].includes(e)?"km":"m",t,n);default:case"total_workouts":case"total_duration":case"average_duration":return t}},OE=(e,t,n,a)=>On(e,t==="week"?fs(n,el.value):a,{locale:zs[el.value]}),Adt=(e,t,n,a,s,i,o)=>{const r=fdt(e,t),u=uI[e.duration],l=n.filter(T=>a.includes(T.id)),d=[],E=hdt(l),c={};return l.map(T=>c[T.label]=T.id),r.map(T=>{const _=On(T,u.api),f=OE(T,e.duration,o,u.chart);On(T,e.duration==="week"?fs(o,el.value):u.chart,{locale:zs[el.value]}),d.push(f),_dt.map(O=>{E[O].map(A=>{A.data.push(_ in s&&c[A.label]in s[_]?Sdt(O,s[_][c[A.label]][O],i):O.startsWith("average")?null:0)})})}),{labels:d,datasets:E}},Odt=(e,t,n,a)=>{const s=n?1:0,i=t==="year"?JE(Vd(e,9)):t==="week"?Il(wo(e,2),{weekStartsOn:s}):ir(wo(e,11)),o=t==="year"?f1(e):t==="week"?ep(e,{weekStartsOn:s}):sr(e);return{duration:t,end:o,start:i,statsType:a}},Idt=(e,t,n)=>{const{duration:a,start:s,end:i}=e,o=n?1:0;return{duration:a,end:a==="year"?f1(t?Vd(i,1):Tu(i,1)):a==="week"?ep(t?Zm(i,1):Gd(i,1),{weekStartsOn:o}):sr(t?wo(i,1):Ai(i,1)),start:a==="year"?JE(t?Vd(s,1):Tu(s,1)):a==="week"?Il(t?Zm(s,1):Gd(s,1),{weekStartsOn:o}):ir(t?wo(s,1):Ai(s,1)),statsType:e.statsType}},qh=e=>{const t=e.reduce((a,s)=>(a||0)+(s||0),0);return+(e.length?(t||0)/e.length:0).toFixed(1)},gdt=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:n{const n=[],a={label:"workouts_average",backgroundColor:[],data:[]};let s=[];const i=e.map(o=>(o.label=t(`sports.${o.label}.LABEL`),o)).sort(gdt);for(const o of i)a.data.push(qh(o.data)),a.backgroundColor.push(o.backgroundColor[0]),n.push(o.label),s.length>0?s=s.map((r,u)=>r+(o.data[u]||0)):s=o.data.map(r=>r||0);return{labels:n,datasets:{workouts_average:[a]},workoutsAverage:qh(s)}},Ndt={class:"stats-chart"},vdt={key:0},bdt={key:1},Cdt={class:"chart-radio"},Pdt=["value","checked","disabled"],Ddt=["value","checked","disabled"],Ldt=["value","checked","disabled"],ydt={key:0},$dt=["checked","disabled"],Udt={key:1},kdt=["value","checked","disabled"],wdt={key:2},Mdt=["value","checked","disabled"],Wdt={class:"workouts-average"},Fdt={key:0,class:"info-box"},zdt=X({__name:"index",props:{sports:{},user:{},chartParams:{},displayedSportIds:{default:()=>[]},fullStats:{type:Boolean,default:!1},hideChartIfNoData:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},selectedTimeFrame:{default:null}},setup(e){const t=e,{sports:n,user:a,chartParams:s,displayedSportIds:i,fullStats:o,hideChartIfNoData:r,isDisabled:u}=fe(t),l=Le(),{t:d}=yt(),E=Ie("total_distance"),c=z(()=>l.getters[Mt.GETTERS.USER_STATS]),T=z(()=>uI[s.value.duration].chart),_=z(()=>OE(s.value.start,s.value.duration,a.value.date_format,T.value)),f=z(()=>OE(s.value.end,s.value.duration,a.value.date_format,T.value)),O=z(()=>Adt(s.value,a.value.weekm,n.value,i.value,c.value,a.value.imperial_units,a.value.date_format)),A=z(()=>O.value.datasets[E.value]),R=z(()=>O.value.labels),g=z(()=>Object.keys(c.value).length===0),I=z(()=>s.value.statsType),N=z(()=>Rdt(O.value.datasets.total_workouts,d));function b(D){a.value.suspended_at||l.dispatch(Mt.ACTIONS.GET_USER_STATS,{username:a.value.username,params:D})}function C(D){E.value=D.target.value}function y(D,U){return{from:On(D.start,"yyyy-MM-dd"),to:On(D.end,"yyyy-MM-dd"),time:D.duration==="week"?`week${U.weekm?"m":""}`:D.duration,type:I.value}}return Ce(()=>s.value,async D=>{b(y(D,a.value))}),Ce(()=>I.value,async D=>{E.value=D==="total"&&E.value==="average_speed"?"total_distance":`${I.value}_${E.value.split("_")[1]}`}),et(()=>b(y(s.value,a.value))),(D,U)=>(h(),v("div",Ndt,[m(r)&&g.value?(h(),v("div",vdt,S(D.$t("workouts.NO_WORKOUTS")),1)):(h(),v("div",bdt,[p("div",Cdt,[p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_distance`,checked:E.value===`${I.value}_distance`,disabled:m(u),onClick:C},null,8,Pdt),x(" "+S(D.$t("workouts.DISTANCE")),1)]),p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_duration`,checked:E.value===`${I.value}_duration`,disabled:m(u),onClick:C},null,8,Ddt),x(" "+S(D.$t("workouts.DURATION")),1)]),p("label",null,[p("input",{type:"radio",name:"value_type",value:`${I.value}_workouts`,checked:E.value===`${I.value}_workouts`,disabled:m(u),onClick:C},null,8,Ldt),x(" "+S(D.$t("workouts.WORKOUT",2)),1)]),m(o)&&I.value==="average"?(h(),v("label",ydt,[p("input",{type:"radio",name:"value_type",value:"average_speed",checked:E.value==="average_speed",disabled:m(u),onClick:C},null,8,$dt),x(" "+S(D.$t("workouts.SPEED")),1)])):L("",!0),m(o)?(h(),v("label",Udt,[p("input",{type:"radio",name:"value_type",value:`${I.value}_ascent`,checked:E.value===`${I.value}_ascent`,disabled:m(u),onClick:C},null,8,kdt),x(" "+S(D.$t("workouts.ASCENT")),1)])):L("",!0),m(o)?(h(),v("label",wdt,[p("input",{type:"radio",name:"value_type",value:`${I.value}_descent`,checked:E.value===`${I.value}_descent`,disabled:m(u),onClick:C},null,8,Mdt),x(" "+S(D.$t("workouts.DESCENT")),1)])):L("",!0)]),R.value.length>0||N.value.labels.length>0?(h(),B(mdt,{key:0,datasets:E.value==="average_workouts"?N.value.datasets.workouts_average:A.value,labels:E.value==="average_workouts"?N.value.labels:R.value,displayedData:E.value,displayedSportIds:m(i),fullStats:m(o),useImperialUnits:m(a).imperial_units,label:D.$t(`statistics.STATISTICS_CHARTS.${m(s).duration}`)+` (${_.value} - ${f.value})`},null,8,["datasets","labels","displayedData","displayedSportIds","fullStats","useImperialUnits","label"])):L("",!0),p("div",Wdt,[E.value==="average_workouts"&&D.selectedTimeFrame?(h(),v("div",Fdt,[U[0]||(U[0]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(D.$t("statistics.DATES"))+": "+S(_.value)+" - "+S(f.value)+", "+S(D.$t("statistics.WORKOUTS_AVERAGE"))+": "+S(N.value.workoutsAverage)+"/"+S(D.$t(`statistics.TIME_FRAMES.${D.selectedTimeFrame}`)),1)])):L("",!0)])]))]))}}),lI=se(zdt,[["__scopeId","data-v-f61443a0"]]),xdt={class:"user-month-stats"},Bdt={class:"section-title"},Gdt={class:"box"},Vdt=X({__name:"UserMonthStats",props:{sports:{},user:{}},setup(e){const t=e,{sports:n,user:a}=fe(t),s=new Date,i={duration:"week",start:ir(s),end:sr(s),statsType:"total"},o=z(()=>n.value.map(r=>r.id));return(r,u)=>(h(),v("div",xdt,[p("div",Bdt,[u[0]||(u[0]=p("i",{class:"fa fa-calendar custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(r.$t("dashboard.THIS_MONTH")),1)]),p("div",Gdt,[M(lI,{sports:m(n),user:m(a),"chart-params":i,"displayed-sport-ids":o.value,"hide-chart-if-no-data":!0},null,8,["sports","user","displayed-sport-ids"])])]))}}),Hdt=se(Vdt,[["__scopeId","data-v-f5b0f1af"]]),Kdt={class:"record"},qdt={class:"record-type"},jdt={class:"record-value"},Ydt={class:"record-date"},Xdt=X({__name:"SportRecordsTable",props:{record:{}},setup(e){const t=e,{record:n}=fe(t);return(a,s)=>{const i=j("router-link");return h(),v("div",Kdt,[p("span",qdt,S(Fe(m(n).label)),1),p("span",jdt,S(m(n).value),1),p("span",Ydt,[M(i,{to:{name:"Workout",params:{workoutId:m(n).workout_id}}},{default:Y(()=>[p("time",null,S(m(n).workout_date),1)]),_:1},8,["to"])])])}}}),cI=se(Xdt,[["__scopeId","data-v-f8125b68"]]),{locale:Qdt}=$i.global,Zdt=(e,t,n,a)=>{const s="km",i=n?vn[s].defaultTarget:s,o="m",r=n?vn[o].defaultTarget:o;let u;switch(e.record_type){case"AS":case"MS":u=`${Yt(+e.value,s,i,2)} ${i}/h`;break;case"FD":u=`${Yt(+e.value,s,i,3)} ${i}`;break;case"HA":u=`${Yt(+e.value,o,r,2)} ${r}`;break;case"LD":u=e.value;break;default:throw new Error(`Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "${e.record_type}"`)}return{id:e.id,record_type:e.record_type,sport_id:e.sport_id,value:u,user:e.user,workout_date:$t(e.workout_date,t,a,!1),workout_id:e.workout_id}},dI=(e,t)=>{const n=e.label.toLowerCase(),a=t.label.toLowerCase();return n>a?1:n(i=fs(i,Qdt.value),e.filter(r=>s?!0:r.record_type!=="HA").reduce((r,u)=>{const l=t.find(d=>d.id===u.sport_id);return l&&l.label&&(o===null||l.id===o)&&(r[l.translatedLabel]===void 0&&(r[l.translatedLabel]={label:l.label,color:l.color,records:[]}),r[l.translatedLabel].records.push(Zdt(u,n,a,i))),r},{})),Jdt={class:"records-card"},eEt=X({__name:"RecordsCard",props:{records:{},sportTranslatedLabel:{}},setup(e){const t=e,{records:n,sportTranslatedLabel:a}=fe(t),s=Le(),{t:i}=yt(),o=z(()=>s.getters[te.GETTERS.LANGUAGE]),r=z(()=>o.value==="bg");function u(l){const d=[];return l.map(E=>{d.push({...E,label:i(`workouts.RECORD_${E.record_type}`)})}),d.sort(dI)}return(l,d)=>{const E=j("SportImage"),c=j("Card");return h(),v("div",Jdt,[M(c,null,{title:Y(()=>[M(E,{"sport-label":m(n).label,color:m(n).color},null,8,["sport-label","color"]),x(" "+S(m(a)),1)]),content:Y(()=>[(h(!0),v(ue,null,be(u(m(n).records),T=>(h(),B(cI,{class:Ae({"max-width":r.value}),record:T,key:T.id},null,8,["class","record"]))),128))]),_:1})])}}}),tEt=se(eEt,[["__scopeId","data-v-7ab88f3c"]]),nEt={class:"user-records-section"},aEt={class:"section-title"},sEt={class:"title"},iEt={class:"user-records"},oEt={key:0,class:"no-records"},rEt=X({__name:"index",props:{sports:{},user:{}},setup(e){const t=e,{user:n}=fe(t),{t:a}=yt(),s=z(()=>EI(n.value.records,ia(t.sports,a),n.value.timezone,n.value.imperial_units,n.value.display_ascent,n.value.date_format));return(i,o)=>(h(),v("div",nEt,[p("div",aEt,[o[0]||(o[0]=p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),p("span",sEt,S(i.$t("workouts.RECORD",2)),1)]),p("div",iEt,[Object.keys(s.value).length===0?(h(),v("div",oEt,S(i.$t("workouts.NO_RECORDS")),1)):L("",!0),(h(!0),v(ue,null,be(Object.keys(s.value).sort(),r=>(h(),B(tEt,{sportTranslatedLabel:r,records:s.value[r],key:r,useImperialUnits:m(n).imperial_units},null,8,["sportTranslatedLabel","records","useImperialUnits"]))),128))])]))}}),uEt=se(rEt,[["__scopeId","data-v-e0d23747"]]),lEt={id:"user-stats"},Ed="km",pd="m",cEt=X({__name:"index",props:{user:{}},setup(e){const t=e,{user:n}=fe(t),{t:a}=yt(),s=z(()=>Yp(n.value.total_duration,a)),i=z(()=>n.value.imperial_units?vn[Ed].defaultTarget:Ed),o=z(()=>n.value.imperial_units?Yt(n.value.total_distance,Ed,i.value,2):parseFloat(n.value.total_distance.toFixed(2))),r=z(()=>n.value.imperial_units?vn[pd].defaultTarget:pd),u=z(()=>n.value.imperial_units?Yt(n.value.total_ascent,pd,r.value,2):parseFloat(n.value.total_ascent.toFixed(2)));return(l,d)=>(h(),v("div",lEt,[M(wa,{icon:"calendar",value:m(n).nb_workouts,text:l.$t("workouts.WORKOUT",m(n).nb_workouts)},null,8,["value","text"]),M(wa,{icon:"road",value:o.value,text:i.value==="mi"?"miles":i.value},null,8,["value","text"]),m(n).display_ascent?(h(),B(wa,{key:0,icon:"location-arrow",value:u.value,text:r.value==="ft"?"feet":r.value},null,8,["value","text"])):L("",!0),M(wa,{icon:"clock-o",value:s.value.days,text:s.value.duration},null,8,["value","text"]),m(n).display_ascent?L("",!0):(h(),B(wa,{key:1,icon:"tags",value:m(n).nb_sports,text:l.$t("workouts.SPORT",m(n).nb_sports)},null,8,["value","text"]))]))}}),dEt={class:"policy-message"},EEt=X({__name:"PrivacyPolicyToAccept",props:{isPrivacyUpdated:{type:Boolean}},setup(e){const t=e,{isPrivacyUpdated:n}=fe(t);return(a,s)=>{const i=j("router-link"),o=j("i18n-t");return h(),v("div",dEt,[p("span",null,[M(o,{keypath:`user.${m(n)?"LAST_":""}PRIVACY_POLICY_TO_VALIDATE`},{default:Y(()=>[M(i,{to:"/profile/edit/privacy-policy",class:"policy-link"},{default:Y(()=>[x(S(a.$t("user.REVIEW")),1)]),_:1})]),_:1},8,["keypath"])])])}}}),pEt=se(EEt,[["__scopeId","data-v-a0e19cca"]]),TEt={key:0,id:"dashboard",class:"view"},mEt={class:"container mobile-menu"},_Et={class:"box"},fEt={key:0,class:"container policy-container"},hEt={class:"container"},SEt={class:"container dashboard-container"},AEt={class:"left-container dashboard-sub-container"},OEt={class:"right-container dashboard-sub-container"},IEt={key:1,class:"app-loading"},gEt=X({__name:"Dashboard",setup(e){const t=Le(),{authUser:n}=Ke(),{sports:a}=nn(),s=Ie("calendar");function i(o){s.value=o}return et(()=>t.dispatch(K.ACTIONS.GET_USER_PROFILE)),(o,r)=>{const u=j("Loader");return m(n).username&&m(a).length>0?(h(),v("div",TEt,[p("div",mEt,[p("div",_Et,[p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="calendar"}]),onClick:r[0]||(r[0]=l=>i("calendar"))},r[4]||(r[4]=[p("i",{class:"fa fa-calendar","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="chart"}]),onClick:r[1]||(r[1]=l=>i("chart"))},r[5]||(r[5]=[p("i",{class:"fa fa-bar-chart","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="timeline"}]),onClick:r[2]||(r[2]=l=>i("timeline"))},r[6]||(r[6]=[p("i",{class:"fa fa-map-o","aria-hidden":"true"},null,-1)]),2),p("div",{class:Ae(["mobile-menu-item",{"is-selected":s.value==="records"}]),onClick:r[3]||(r[3]=l=>i("records"))},r[7]||(r[7]=[p("i",{class:"fa fa-trophy","aria-hidden":"true"},null,-1)]),2)])]),m(n).accepted_privacy_policy!==!0?(h(),v("div",fEt,[M(pEt,{"is-privacy-updated":m(n).accepted_privacy_policy===!1},null,8,["is-privacy-updated"])])):L("",!0),p("div",hEt,[M(cEt,{user:m(n)},null,8,["user"])]),p("div",SEt,[p("div",AEt,[M(Hdt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="chart"})},null,8,["sports","user","class"]),M(uEt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="records"})},null,8,["sports","user","class"])]),p("div",OEt,[M(sdt,{sports:m(a),user:m(n),class:Ae({"is-hidden":s.value!=="calendar"})},null,8,["sports","user","class"]),M(vct,{sports:m(a),authUser:m(n),class:Ae({"is-hidden":s.value!=="timeline"})},null,8,["sports","authUser","class"])])]),r[8]||(r[8]=p("div",{id:"bottom"},null,-1))])):(h(),v("div",IEt,[M(u)]))}}}),REt=se(gEt,[["__scopeId","data-v-42926bb4"]]),NEt={class:"not-found view"},vEt=X({__name:"NotFoundView",setup(e){return(t,n)=>(h(),v("div",NEt,[M(Ui)]))}}),bEt={key:0,class:"follow-request"},CEt={class:"follow-request-user"},PEt={class:"user-name"},DEt={key:0,class:"follow-request-actions"},LEt={key:1,class:"follow-request-actions"},yEt=X({__name:"RelationshipDetail",props:{authUser:{},notification:{}},emits:["updatedUserRelationship","userLinkClicked"],setup(e,{emit:t}){const n=e,{authUser:a,notification:s}=fe(n),i=t,o=Le();function r(u,l){o.dispatch(K.ACTIONS.UPDATE_FOLLOW_REQUESTS,{username:u,action:l}),i("updatedUserRelationship")}return(u,l)=>{const d=j("router-link");return m(s).from?(h(),v("div",bEt,[p("div",CEt,[M(Qt,{user:m(s).from},null,8,["user"]),p("div",PEt,[M(d,{to:`/users/${m(s).from.username}`,onClick:l[0]||(l[0]=E=>u.$emit("userLinkClicked"))},{default:Y(()=>[x(S(m(s).from.username),1)]),_:1},8,["to"])])]),m(s).type==="follow_request"?(h(),v("div",DEt,[p("button",{onClick:l[1]||(l[1]=E=>r(m(s).from.username,"accept"))},[l[4]||(l[4]=p("i",{class:"fa fa-check","aria-hidden":"true"},null,-1)),x(" "+S(u.$t("buttons.ACCEPT")),1)]),p("button",{onClick:l[2]||(l[2]=E=>r(m(s).from.username,"reject")),class:"danger"},[l[5]||(l[5]=p("i",{class:"fa fa-times","aria-hidden":"true"},null,-1)),x(" "+S(u.$t("buttons.REJECT")),1)])])):(h(),v("div",LEt,[M(Zu,{authUser:m(a),user:m(s).from,from:"notifications",displayFollowsYou:!0,onUpdatedUser:l[3]||(l[3]=()=>i("updatedUserRelationship"))},null,8,["authUser","user"])]))])):L("",!0)}}}),$Et=se(yEt,[["__scopeId","data-v-dc09ab49"]]),UEt={class:"report-notification"},kEt={key:0,class:"reported-workout"},wEt={key:1,class:"reported-comment"},MEt={key:2,class:"reported-user"},WEt={class:"user-name"},FEt={key:3,class:"reported-user"},zEt={class:"deleted-object"},xEt={class:"report-button"},BEt=X({__name:"ReportNotification",props:{report:{}},emits:["reportButtonClicked"],setup(e,{emit:t}){const n=e,{report:a}=fe(n),s=t,i=gn();function o(r){i.push(`/admin/reports/${r}`),s("reportButtonClicked")}return(r,u)=>{const l=j("router-link");return h(),v("div",UEt,[m(a).reported_workout?(h(),v("div",kEt,[M(Qp,{"display-appeal":!1,"display-object-name":!0,workout:m(a).reported_workout,"report-id":m(a).id},null,8,["workout","report-id"])])):m(a).reported_comment?(h(),v("div",wEt,[M(Xp,{"display-object-name":!0,comment:m(a).reported_comment},null,8,["comment"])])):m(a).reported_user?(h(),v("div",MEt,[M(Qt,{user:m(a).reported_user},null,8,["user"]),p("div",WEt,[M(l,{to:`/users/${m(a).reported_user.username}`},{default:Y(()=>[x(S(m(a).reported_user.username),1)]),_:1},8,["to"])])])):(h(),v("div",FEt,[p("span",zEt,S(r.$t("admin.DELETED_USER")),1)])),p("div",xEt,[p("button",{onClick:u[0]||(u[0]=d=>o(m(a).id))},S(r.$t("admin.APP_MODERATION.VIEW_REPORT"))+" #"+S(m(a).id),1)])])}}}),GEt=se(BEt,[["__scopeId","data-v-ff0a4948"]]),VEt={class:"notification-data-button"},HEt={class:"notification-date"},KEt=["title"],qEt={class:"hidden-content"},jEt={key:0},YEt={class:"notification-reason"},XEt={key:5,class:"auth-user"},QEt={class:"user-name"},ZEt={key:6},JEt={key:0,class:"info-box appeal-in-progress"},ept=X({__name:"NotificationDetail",props:{authUser:{},notification:{}},emits:["reload","updateReadStatus"],setup(e,{emit:t}){const n=e,{authUser:a,notification:s}=fe(n),i=t,{locale:o}=qe(),r=z(()=>_(s.value.type));function u(){i("reload")}function l(f,O){i("updateReadStatus",{notificationId:f,markedAsRead:O})}function d(f){f.marked_as_read||l(f.id,!0)}function E(f){return["comment_like","comment_suspension","comment_unsuspension","mention","user_warning","user_warning_lifting","workout_comment"].includes(f)&&s.value.comment!==void 0}function c(f){return["account_creation","follow","follow_request","follow_request_approved"].includes(f)}function T(f){var O;switch(f){case"account_creation":return"notifications.SIGN_UP";case"comment_like":return"notifications.LIKED_YOUR_COMMENT";case"comment_suspension":return"notifications.YOUR_COMMENT_HAS_BEEN_SUSPENDED";case"comment_unsuspension":return"notifications.YOUR_COMMENT_HAS_BEEN_UNSUSPENDED";case"follow":return"user.RELATIONSHIPS.FOLLOWS_YOU";case"follow_request":return"notifications.SEND_FOLLOW_REQUEST_TO_YOU";case"follow_request_approved":return"notifications.ACCEPTED_FOLLOW_REQUEST";case"mention":return"notifications.MENTIONED_YOU";case"suspension_appeal":return"notifications.APPEALED_SUSPENSION";case"user_warning":return"notifications.YOU_RECEIVED_A_WARNING";case"user_warning_appeal":return"notifications.APPEALED_USER_WARNING";case"user_warning_lifting":return"notifications.YOUR_WARNING_HAS_BEEN_LIFTED";case"workout_comment":return"notifications.COMMENTED_YOUR_WORKOUT";case"workout_like":return"notifications.LIKED_YOUR_WORKOUT";case"workout_suspension":return"notifications.YOUR_WORKOUT_HAS_BEEN_SUSPENDED";case"workout_unsuspension":return"notifications.YOUR_WORKOUT_HAS_BEEN_UNSUSPENDED";case"report":return`notifications.REPORTED_USER_${(O=s.value.report)!=null&&O.object_type?s.value.report.object_type.toUpperCase():""}`;default:return""}}function _(f){switch(f){case"follow":case"follow_request":case"follow_request_approved":return"user-plus";case"mention":return"at";case"comment_suspension":case"comment_unsuspension":case"report":case"suspension_appeal":case"user_warning":case"user_warning_appeal":case"user_warning_lifting":case"workout_suspension":case"workout_unsuspension":return"flag";case"comment_like":case"workout_like":return"heart";default:return"comment"}}return(f,O)=>{const A=j("router-link"),R=j("Card");return m(s).id?(h(),B(R,{key:0,class:Ae(["notification-card",{read:m(s).marked_as_read}])},{title:Y(()=>[p("div",null,[p("i",{class:Ae([`fa-${r.value}`,"fa notification-icon"]),"aria-hidden":"true"},null,2),m(s).from?(h(),B(A,{key:0,to:`/users/${m(s).from.username}`},{default:Y(()=>[x(S(m(s).from.username),1)]),_:1},8,["to"])):L("",!0),x(" "+S(f.$t(T(m(s).type))),1)]),p("div",VEt,[p("div",HEt,S(m(Ws)(new Date(m(s).created_at),new Date,{addSuffix:!0,locale:m(o)})),1),p("button",{class:"mark-action",title:f.$t(`notifications.MARK_AS_${m(s).marked_as_read?"UN":""}READ`),onClick:O[0]||(O[0]=()=>l(m(s).id,!m(s).marked_as_read))},[p("span",qEt,S(f.$t(`notifications.MARK_AS_${m(s).marked_as_read?"UN":""}READ`)),1),p("i",{class:Ae(["fa",`fa-eye${m(s).marked_as_read?"-slash":""}`]),"aria-hidden":"true"},null,2)],8,KEt)])]),content:Y(()=>{var g,I,N,b,C,y;return[(g=m(s).report_action)!=null&&g.reason?(h(),v("div",jEt,[p("span",YEt,S(f.$t("admin.APP_MODERATION.REASON"))+": ",1),x(" "+S(m(s).report_action.reason),1)])):L("",!0),E(m(s).type)&&m(s).comment?(h(),B(Xp,{key:1,"display-object-name":m(s).type.startsWith("user_warning"),comment:m(s).comment,action:m(s).report_action,onCommentLinkClicked:O[1]||(O[1]=D=>d(m(s)))},null,8,["display-object-name","comment","action"])):c(m(s).type)?(h(),B($Et,{key:2,notification:m(s),authUser:m(a),onUpdatedUserRelationship:u,onUserLinkClicked:O[2]||(O[2]=D=>d(m(s)))},null,8,["notification","authUser"])):["report","suspension_appeal","user_warning_appeal"].includes(m(s).type)&&m(s).report?(h(),B(GEt,{key:3,report:m(s).report,onReportButtonClicked:O[3]||(O[3]=D=>d(m(s)))},null,8,["report"])):m(s).workout?(h(),B(Qp,{key:4,action:m(s).report_action,"display-appeal":m(s).type!=="user_warning","display-object-name":m(s).type.startsWith("user_warning"),workout:m(s).workout,onWorkoutLinkClicked:O[4]||(O[4]=D=>d(m(s)))},null,8,["action","display-appeal","display-object-name","workout"])):L("",!0),((I=m(s).report_action)==null?void 0:I.action_type)==="user_warning_lifting"&&!m(s).comment&&!m(s).workout?(h(),v("div",XEt,[M(Qt,{user:m(a)},null,8,["user"]),p("div",QEt,[M(A,{to:`/users/${m(a).username}`},{default:Y(()=>[x(S(m(a).username),1)]),_:1},8,["to"])])])):L("",!0),((N=m(s).report_action)==null?void 0:N.action_type)==="user_warning"?(h(),v("div",ZEt,[((C=(b=m(s).report_action)==null?void 0:b.appeal)==null?void 0:C.approved)===null?(h(),v("div",JEt,[p("span",null,[O[6]||(O[6]=p("i",{class:"fa fa-info-circle","aria-hidden":"true"},null,-1)),x(" "+S(f.$t("user.APPEAL_IN_PROGRESS")),1)])])):(y=m(s).report_action)!=null&&y.appeal?L("",!0):(h(),B(A,{key:1,class:"appeal-link",to:`profile/moderation/sanctions/${m(s).report_action.id}`,onClick:O[5]||(O[5]=D=>d(m(s)))},{default:Y(()=>[x(S(f.$t("user.APPEAL")),1)]),_:1},8,["to"]))])):L("",!0)]}),_:1},8,["class"])):L("",!0)}}}),tpt=se(ept,[["__scopeId","data-v-c0558938"]]),npt={key:0,id:"notifications"},apt={key:0,class:"no-notifications box"},spt=X({__name:"Notifications",setup(e){const t=Le(),n=ut(),{authUser:a,isAuthUserSuspended:s}=Ke();let i=kt(u(n.query));const o=z(()=>t.getters[Et.GETTERS.NOTIFICATIONS]),r=z(()=>t.getters[Et.GETTERS.PAGINATION]);function u(T){const _={};return"page"in T&&T.page&&(_.page=+T.page),"type"in T&&T.type&&(_.type=T.type),"status"in T&&T.status==="unread"&&(_.status="unread"),_}function l(){setTimeout(()=>{d(i)},500)}function d(T){s.value||t.dispatch(Et.ACTIONS.GET_NOTIFICATIONS,T)}function E(T){t.dispatch(Et.ACTIONS.UPDATE_STATUS,{...T,currentQuery:i})}function c(){t.dispatch(Et.ACTIONS.MARK_ALL_AS_READ,i)}return Ce(()=>n.query,T=>{i=u(T),d(i)}),Ce(()=>s.value,T=>{T||d(i)}),et(()=>d(i)),ct(()=>{t.commit(Et.MUTATIONS.EMPTY_NOTIFICATIONS)}),(T,_)=>m(a).username?(h(),v("div",npt,[o.value.length===0?(h(),v("div",apt,S(T.$t("notifications.NO_NOTIFICATIONS")),1)):(h(),v(ue,{key:1},[p("button",{class:"mark-all-action",onClick:c},S(T.$t("notifications.MARK_ALL_AS_READ")),1),(h(!0),v(ue,null,be(o.value,f=>(h(),B(tpt,{key:f.id,"auth-user":m(a),notification:f,onReload:l,onUpdateReadStatus:E},null,8,["auth-user","notification"]))),128)),r.value.page?(h(),B(oa,{key:0,path:"/notifications",pagination:r.value,query:m(i)},null,8,["pagination","query"])):L("",!0)],64))])):L("",!0)}}),ipt=se(spt,[["__scopeId","data-v-a25ddea4"]]),opt={class:"notifications-filters"},rpt={class:"box"},upt={class:"form"},lpt={class:"form-all-items"},cpt={class:"form-items-group"},dpt={class:"status-title"},Ept={class:"status-radio"},ppt=["checked"],Tpt=["checked"],mpt={class:"form-items-group"},_pt={class:"form-item"},fpt={for:"notification-labels"},hpt=["disabled","value"],Spt={value:""},Apt=["value"],Opt=X({__name:"NotificationsFilters",setup(e){const t=ut(),n=gn(),a=Le(),{t:s}=yt(),{authUserHasModeratorRights:i,isAuthUserSuspended:o}=Ke(),r=z(()=>a.getters[Et.GETTERS.TYPES]),u=z(()=>A());let l=Object.assign({},t.query);const d=Ie(E(t.query));function E(R){return"status"in R?R.status:null}function c(R){d.value=R,l.status=R,_()}function T(R){const g=R.target;g.value===""?delete l[g.name]:l[g.name]=g.value,_()}function _(){"page"in l&&(l.page="1"),n.push({path:"/notifications",query:l})}function f(R,g){return R.label>g.label?1:R.label!["report","suspension_appeal","user_warning_appeal"].includes(g)||i.value).map(g=>{R.push({label:s(`notifications.TYPES.${g}`),value:g})}),R.sort(f)}return Ce(()=>t.query,R=>{l=Object.assign({},R),d.value=E(R),O()}),et(()=>O()),ct(()=>{a.commit(Et.MUTATIONS.UPDATE_TYPES,[])}),(R,g)=>(h(),v("div",opt,[p("div",rpt,[p("form",upt,[p("div",lpt,[p("div",cpt,[p("span",dpt,S(R.$t("notifications.STATUS")),1),p("div",Ept,[p("label",null,[p("input",{type:"radio",name:"duration",checked:d.value==="unread",onClick:g[0]||(g[0]=I=>c("unread"))},null,8,ppt),x(" "+S(R.$t("notifications.UNREAD")),1)]),p("label",null,[p("input",{type:"radio",name:"all",checked:d.value!=="unread",onClick:g[1]||(g[1]=I=>c("all"))},null,8,Tpt),x(" "+S(R.$t("notifications.ALL")),1)])])]),p("div",mpt,[p("div",_pt,[p("label",fpt,S(R.$t("notifications.TYPES.LABEL")),1),p("select",{class:"notification-labels",id:"notification-labels",name:"type",disabled:u.value.length===0,value:R.$route.query.type,onChange:T},[u.value.length>0?(h(),v(ue,{key:0},[p("option",Spt,S(R.$t("notifications.TYPES.ALL")),1),g[2]||(g[2]=p("option",{disabled:""},"──────",-1))],64)):L("",!0),(h(!0),v(ue,null,be(u.value,I=>(h(),v("option",{value:I.value,key:I.value},S(I.label),9,Apt))),128))],40,hpt)])])])])])]))}}),Ipt=se(Opt,[["__scopeId","data-v-6cb336ec"]]),gpt={id:"notifications",class:"view items-list-view"},Rpt={class:"container items-list-container"},Npt={class:"display-filters"},vpt={class:"list-container"},bpt=X({__name:"NotificationsView",setup(e){const t=Ie(!0);function n(){t.value=!t.value}return(a,s)=>(h(),v("div",gpt,[p("div",Rpt,[p("div",{class:Ae(["filters-container",{hidden:t.value}])},[M(Ipt)],2),p("div",Npt,[p("div",{onClick:n},[p("i",{class:Ae(`fa fa-caret-${t.value?"down":"up"}`),"aria-hidden":"true"},null,2),p("span",null,S(a.$t(`workouts.${t.value?"DISPLAY":"HIDE"}_FILTERS`)),1)])]),p("div",vpt,[M(ipt)])])]))}}),Cpt={id:"privacy-policy",class:"view"},Ppt={class:"container"},Dpt=X({__name:"PrivacyPolicyView",setup(e){const t=Le();return et(()=>{t.dispatch(te.ACTIONS.GET_APPLICATION_PRIVACY_POLICY)}),(n,a)=>(h(),v("div",Cpt,[p("div",Ppt,[M(QO)]),a[0]||(a[0]=p("div",{id:"bottom"},null,-1))]))}}),Lpt={class:"chart-menu"},ypt=["disabled","aria-label"],$pt={class:"time-frames custom-checkboxes-group"},Upt={class:"time-frames-checkboxes custom-checkboxes"},kpt=["id","name","checked","onInput","disabled"],wpt=["id","tabindex","onKeydown"],Mpt=["disabled","aria-label"],Wpt={class:"stats-type"},Fpt={class:"stats-type-radio"},zpt=["checked","disabled"],xpt=["checked","disabled"],Bpt=X({__name:"StatsMenu",props:{isDisabled:{type:Boolean}},emits:["arrowClick","statsTypeUpdate","timeFrameUpdate"],setup(e,{emit:t}){const n=e,{isDisabled:a}=fe(n),s=t,i=["week","month","year"],o=Ie("month"),r=Ie("total");function u(d){o.value=d,s("timeFrameUpdate",d)}function l(d){r.value=d.target.value,s("statsTypeUpdate",r.value)}return(d,E)=>(h(),v(ue,null,[p("div",Lpt,[p("button",{class:"chart-arrow transparent",onClick:E[0]||(E[0]=c=>s("arrowClick",!0)),onKeydown:E[1]||(E[1]=Ye(c=>s("arrowClick",!0),["enter"])),disabled:m(a),"aria-label":d.$t("common.PREVIOUS")},E[4]||(E[4]=[p("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)]),40,ypt),p("div",$pt,[p("div",Upt,[(h(),v(ue,null,be(i,c=>p("div",{class:"time-frame custom-checkbox",key:c},[p("label",null,[p("input",{type:"radio",id:c,name:c,checked:o.value===c,onInput:T=>u(c),disabled:m(a)},null,40,kpt),p("span",{id:`frame-${c}`,tabindex:m(a)?-1:0,role:"button",onKeydown:Ye(T=>u(c),["enter"])},S(d.$t(`statistics.TIME_FRAMES.${c}`)),41,wpt)])])),64))])]),p("button",{class:"chart-arrow transparent",onClick:E[2]||(E[2]=c=>s("arrowClick",!1)),onKeydown:E[3]||(E[3]=Ye(c=>s("arrowClick",!1),["enter"])),disabled:m(a),"aria-label":d.$t("common.NEXT")},E[5]||(E[5]=[p("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1)]),40,Mpt)]),p("div",Wpt,[p("div",Fpt,[p("label",null,[p("input",{type:"radio",name:"stats_type",value:"total",checked:r.value==="total",disabled:m(a),onClick:l},null,8,zpt),x(" "+S(d.$t("common.TOTAL")),1)]),p("label",null,[p("input",{type:"radio",name:"stats_type",value:"average",checked:r.value==="average",disabled:m(a),onClick:l},null,8,xpt),x(" "+S(d.$t("statistics.AVERAGE")),1)])])])],64))}}),Gpt=se(Bpt,[["__scopeId","data-v-dacfdeb2"]]),Vpt={class:"sports-menu"},Hpt=["id","name","checked","onInput","onKeyup"],Kpt={class:"sport-label"},qpt=X({__name:"StatsSportsMenu",props:{userSports:{},selectedSportIds:{default:()=>[]}},emits:["selectedSportIdsUpdate"],setup(e,{emit:t}){const n=e,{selectedSportIds:a,userSports:s}=fe(n),i=t,{t:o}=yt(),{sportColors:r}=nn(),u=z(()=>ia(s.value,o));function l(d){i("selectedSportIdsUpdate",d)}return(d,E)=>{const c=j("SportImage");return h(),v("div",Vpt,[(h(!0),v(ue,null,be(u.value,T=>(h(),v("label",{type:"checkbox",key:T.id,style:za({color:T.color?T.color:m(r)[T.label]})},[p("input",{type:"checkbox",id:`${T.id}`,name:T.label,checked:m(a).includes(T.id),onInput:_=>l(T.id),onKeyup:Ye(ve(_=>l(T.id),["prevent"]),["space"])},null,40,Hpt),M(c,{"sport-label":T.label,color:T.color},null,8,["sport-label","color"]),p("span",Kpt,S(T.translatedLabel),1)],4))),128))])}}}),jpt={key:0,id:"user-statistics"},Ypt=X({__name:"index",props:{sports:{},user:{},isDisabled:{type:Boolean}},setup(e){const t=e,{sports:n,user:a}=fe(t),{t:s}=yt(),i=Ie("month"),o=Ie("total"),r=Ie(c(i.value,o.value)),u=Ie(_(n.value)),l=z(()=>ia(t.sports,s));function d(O){i.value=O,r.value=c(O,o.value)}function E(O){o.value=O,r.value=c(i.value,O)}function c(O,A){return Odt(new Date,O,t.user.weekm,A)}function T(O){r.value=Idt(r.value,O,t.user.weekm)}function _(O){return O.map(A=>A.id)}function f(O){u.value.includes(O)?u.value=u.value.filter(A=>A!==O):u.value.push(O)}return Ce(()=>t.sports,O=>{u.value=_(O)}),(O,A)=>l.value?(h(),v("div",jpt,[M(Gpt,{onStatsTypeUpdate:E,onTimeFrameUpdate:d,onArrowClick:T,isDisabled:O.isDisabled},null,8,["isDisabled"]),M(lI,{sports:m(n),user:m(a),chartParams:r.value,"displayed-sport-ids":u.value,fullStats:!0,isDisabled:O.isDisabled,selectedTimeFrame:i.value},null,8,["sports","user","chartParams","displayed-sport-ids","isDisabled","selectedTimeFrame"]),M(qpt,{"selected-sport-ids":u.value,"user-sports":m(n),onSelectedSportIdsUpdate:f},null,8,["selected-sport-ids","user-sports"])])):L("",!0)}}),Xpt=se(Ypt,[["__scopeId","data-v-f9158924"]]),Qpt={class:"sport-stat-card"},Zpt={class:"stat-content"},Jpt={class:"stat-icon"},eTt={class:"stat-details"},tTt={class:"stat-label"},nTt={class:"stat-values"},aTt={key:0,class:"fa fa-refresh fa-spin fa-fw"},sTt={key:1,class:"stat-huge"},iTt={key:2,class:"stat"},oTt={key:0,class:"stat-average"},rTt={key:0},ti=X({__name:"SportStatCard",props:{icon:{},text:{default:""},totalValue:{},label:{},loading:{type:Boolean}},setup(e){const t=e,{icon:n,loading:a,text:s,totalValue:i}=fe(t);return(o,r)=>(h(),v("div",Qpt,[p("div",Zpt,[p("div",Jpt,[p("i",{class:Ae(["fa",`fa-${m(n)}`])},null,2)]),p("div",eTt,[p("div",tTt,S(o.label),1),p("div",nTt,[m(a)?(h(),v("i",aTt)):(h(),v("span",sTt,S(m(i)?m(i):""),1)),m(s)?(h(),v("span",iTt,S(m(s)),1)):L("",!0)]),["calendar","tachometer"].includes(m(n))?L("",!0):(h(),v("div",oTt,[m(a)?(h(),v("div",rTt,r[0]||(r[0]=[p("i",{class:"fa fa-refresh fa-spin fa-fw"},null,-1)]))):Pt(o.$slots,"average",{key:1})]))])])]))}}),uTt={id:"sport-statistics"},lTt={for:"sport"},cTt=["value"],dTt={key:0,class:"sport-statistics"},ETt={class:"sport-img-label"},pTt={class:"sport-label"},TTt={class:"label"},mTt={class:"statistics"},_Tt={key:0,class:"statistics-workouts-count"},fTt={key:1,class:"statistics-workouts-count"},hTt={class:"statistics"},STt={class:"records"},ATt={class:"label"},OTt=X({__name:"SportStatistics",props:{sports:{},authUser:{}},setup(e){const t=e,{authUser:n,sports:a}=fe(t),s=ut(),i=gn(),o=Le(),{t:r}=yt(),u=z(()=>ia(a.value,r,"all")),l=z(()=>u.value.map(C=>C.id)),d=z(()=>s.query.sport_id&&l.value.includes(+s.query.sport_id)?+s.query.sport_id:l.value[0]),E=z(()=>EI(n.value.records,u.value,n.value.timezone,n.value.imperial_units,n.value.display_ascent,n.value.date_format,d.value)),c=z(()=>u.value.find(C=>C.id===d.value)),T=z(()=>o.getters.USER_SPORT_STATS[d.value]),_=z(()=>o.getters.TOTAL_WORKOUTS),f=z(()=>n.value.imperial_units?vn.km.defaultTarget:"km"),O=z(()=>n.value.imperial_units?vn.m.defaultTarget:"m"),A=z(()=>o.getters.STATS_LOADING),R=z(()=>T.value?Yp(T.value.total_duration,r):{days:"",duration:""});function g(C,y){if(C===void 0)return"";const D=n.value.imperial_units?vn[y].defaultTarget:y;return n.value.imperial_units?Yt(C,y,D,2):C}function I(){o.dispatch(Mt.ACTIONS.GET_USER_SPORT_STATS,{username:n.value.username,sportId:d.value})}function N(C){var D,U;const y=[];return(D=c.value)!=null&&D.translatedLabel&&C[(U=c.value)==null?void 0:U.translatedLabel].records.map(P=>{y.push({...P,label:r(`workouts.RECORD_${P.record_type}`)})}),y.sort(dI)}function b(C){i.push({path:"/statistics",query:{chart:"by_sport",sport_id:C.target.value}})}return Ce(()=>s.query,()=>{I()}),et(()=>I()),(C,y)=>{var P,F,Z,Oe,ee,Ee;const D=j("SportImage"),U=j("Distance");return h(),v("div",uTt,[p("label",lTt,S(C.$t("workouts.SPORT",1))+": ",1),We(p("select",{id:"sport","onUpdate:modelValue":y[0]||(y[0]=_e=>d.value=_e),onChange:b},[(h(!0),v(ue,null,be(u.value,_e=>(h(),v("option",{value:_e.id,key:_e.id},S(_e.translatedLabel),9,cTt))),128))],544),[[Jt,d.value]]),c.value?(h(),v("div",dTt,[p("div",ETt,[M(D,{"sport-label":c.value.label,color:c.value.color},null,8,["sport-label","color"]),p("div",pTt,S(c.value.translatedLabel),1)]),p("div",null,[p("div",TTt,[y[1]||(y[1]=p("i",{class:"fa fa-line-chart custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(C.$t("statistics.STATISTICS",0)),1)]),p("div",mTt,[M(ti,{icon:"calendar",loading:A.value,"total-value":_.value,label:C.$t("workouts.WORKOUT",0)},null,8,["loading","total-value","label"])]),T.value&&T.value.total_workouts<_.value?(h(),v("div",_Tt,S(C.$t("statistics.STATISTICS_ON_LAST_WORKOUTS",{count:T.value.total_workouts})),1)):(h(),v("div",fTt,S(C.$t("statistics.STATISTICS_ON_ALL_WORKOUTS")),1)),p("div",hTt,[M(ti,{icon:"road",loading:A.value,"total-value":g((P=T.value)==null?void 0:P.total_distance,"km"),text:f.value,label:C.$t("workouts.DISTANCE")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_distance,unitFrom:"km",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"]),M(ti,{icon:"clock-o",loading:A.value,"total-value":R.value.days,text:R.value.duration,label:C.$t("workouts.DURATION")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),p("span",null,S(T.value?m(AE)(T.value.average_duration,C.$t):""),1)]),_:1},8,["loading","total-value","text","label"]),M(ti,{icon:"tachometer",loading:A.value,"total-value":g((F=T.value)==null?void 0:F.average_speed,"km"),text:`${f.value}/h`,label:C.$t("workouts.AVE_SPEED")},null,8,["loading","total-value","text","label"]),((Z=T.value)==null?void 0:Z.total_ascent)!==null?(h(),B(ti,{key:0,icon:"location-arrow",loading:A.value,"total-value":g((Oe=T.value)==null?void 0:Oe.total_ascent,"m"),text:O.value,label:C.$t("workouts.ASCENT")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_ascent,unitFrom:"m",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"])):L("",!0),((ee=T.value)==null?void 0:ee.total_descent)!==null?(h(),B(ti,{key:1,icon:"location-arrow fa-rotate-90",loading:A.value,"total-value":g((Ee=T.value)==null?void 0:Ee.total_descent,"m"),text:O.value,label:C.$t("workouts.DESCENT")},{average:Y(()=>[p("div",null,S(C.$t("statistics.AVERAGE"))+":",1),T.value?(h(),B(U,{key:0,distance:T.value.average_descent,unitFrom:"m",useImperialUnits:m(n).imperial_units},null,8,["distance","useImperialUnits"])):L("",!0)]),_:1},8,["loading","total-value","text","label"])):L("",!0)])]),p("div",STt,[p("div",ATt,[y[2]||(y[2]=p("i",{class:"fa fa-trophy custom-fa-small","aria-hidden":"true"},null,-1)),x(" "+S(C.$t("workouts.RECORD",0)),1)]),p("div",null,[(h(!0),v(ue,null,be(N(E.value),_e=>(h(),B(cI,{record:_e,key:_e.id},null,8,["record"]))),128))])])])):L("",!0)])}}}),ITt=se(OTt,[["__scopeId","data-v-dad31bfb"]]),gTt={id:"statistics",class:"view"},RTt={key:0,class:"container"},NTt=["value"],vTt=X({__name:"StatisticsView",setup(e){const t=ut(),n=gn(),{authUser:a}=Ke(),{sports:s}=nn(),i=["by_time","by_sport"],o=Ie("by_time"),r=z(()=>s.value.filter(d=>a.value.sports_list.includes(d.id))),u=z(()=>a.value.nb_workouts===0);function l(d){n.push({path:"/statistics",query:{chart:d.target.value}})}return et(()=>{o.value=t.query.chart&&i.includes(t.query.chart)?t.query.chart:"by_time"}),mt(()=>{if(!u.value){const d=document.getElementById("stats-type");d==null||d.focus()}}),(d,E)=>{const c=j("Card");return h(),v("div",gTt,[m(a).username?(h(),v("div",RTt,[M(c,null,{title:Y(()=>[x(S(d.$t("statistics.STATISTICS"))+" ",1),r.value.length>0?We((h(),v("select",{key:0,class:"stats-types",name:"stats-type",id:"stats-type","onUpdate:modelValue":E[0]||(E[0]=T=>o.value=T),onChange:l},[(h(),v(ue,null,be(i,T=>p("option",{value:T,key:T},S(d.$t(`statistics.STATISTICS_TYPES.${T}`)),9,NTt)),64))],544)),[[Jt,o.value]]):L("",!0)]),content:Y(()=>[d.$route.query.chart!=="by_sport"?(h(),B(Xpt,{key:0,class:Ae({"stats-disabled":u.value}),user:m(a),sports:r.value,isDisabled:u.value},null,8,["class","user","sports","isDisabled"])):r.value.length>0?(h(),B(ITt,{key:1,sports:r.value,authUser:m(a)},null,8,["sports","authUser"])):L("",!0)]),_:1}),m(a).nb_workouts===0?(h(),B(Zp,{key:0})):L("",!0)])):L("",!0)])}}}),bTt=se(vTt,[["__scopeId","data-v-94133818"]]),CTt={name:"EmailSent"},PTt={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 345.834 345.834",style:{"enable-background":"new 0 0 345.834 345.834"},"xml:space":"preserve"};function DTt(e,t,n,a,s,i){return h(),v("svg",PTt,t[0]||(t[0]=[p("g",null,[p("path",{d:`M339.798,260.429c0.13-0.026,0.257-0.061,0.385-0.094c0.109-0.028,0.219-0.051,0.326-0.084 c0.125-0.038,0.247-0.085,0.369-0.129c0.108-0.039,0.217-0.074,0.324-0.119c0.115-0.048,0.226-0.104,0.338-0.157 c0.109-0.052,0.22-0.1,0.327-0.158c0.107-0.057,0.208-0.122,0.312-0.184c0.107-0.064,0.215-0.124,0.319-0.194 c0.111-0.074,0.214-0.156,0.321-0.236c0.09-0.067,0.182-0.13,0.27-0.202c0.162-0.133,0.316-0.275,0.466-0.421