FitTrackee/fittrackee/dist/static/js/workouts.e1bdbbfa.js
2023-10-02 13:02:27 +02:00

2 lines
82 KiB
JavaScript

"use strict";(self["webpackChunkfittrackee_client"]=self["webpackChunkfittrackee_client"]||[]).push([[401],{7871:function(e,t,o){o.d(t,{Z:function(){return ne}});o(7658);var a=o(6252),n=o(3577),l=o(2262),r=o(9963),s=o(2429),i=o(2201),u=o(5801),d=o(9917),c=o(6558),p=o(8966),m=o(631),w=o(3649);const v={id:"workout-form"},y=["onSubmit"],k={class:"form-items"},f={key:0,class:"form-item-radio"},_=["checked","disabled"],g={for:"withGpx"},S=["checked","disabled"],h={for:"withoutGpx"},b={class:"form-item"},U=["disabled"],T=["value"],O={key:1,class:"form-item"},E={for:"gpxFile"},D=["disabled"],I={class:"files-help info-box"},A={key:2,class:"form-item"},C={for:"title"},R=["required","disabled"],$={key:3},L={class:"workout-date-duration"},N={class:"form-item"},j={class:"workout-date-time"},x=["disabled"],z=["disabled"],W={class:"form-item"},F=["disabled"],B=["disabled"],H=["disabled"],P={class:"workout-data"},q={class:"form-item"},M=["disabled"],Z={class:"form-item"},K=["disabled"],G={class:"form-item"},Y=["disabled"],X={class:"form-item"},V={key:1},J={key:2,class:"form-buttons"},Q=["disabled"],ee=["onClick"];var te=(0,a.aZ)({__name:"WorkoutEdition",props:{authUser:null,sports:null,isCreation:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},workout:{default:()=>({})}},setup(e){const t=e,{t:o}=(0,s.QT)(),te=(0,d.o)(),oe=(0,i.tv)(),{authUser:ae,workout:ne,isCreation:le,loading:re}=(0,l.BK)(t),se=(0,a.Fl)((()=>(0,m.xH)(t.sports,o,"is_active_for_user",ne.value.id?[ne.value.sport_id]:[]))),ie=(0,a.Fl)((()=>te.getters[u.SY.GETTERS.APP_CONFIG])),ue=ie.value.max_single_file_size?(0,p.Z)(ie.value.max_single_file_size):"",de=ie.value.gpx_limit_import,ce=ie.value.max_zip_file_size?(0,p.Z)(ie.value.max_zip_file_size):"",pe=(0,a.Fl)((()=>te.getters[u.SY.GETTERS.ERROR_MESSAGES])),me=(0,l.qj)({sport_id:"",title:"",notes:"",workoutDate:"",workoutTime:"",workoutDurationHour:"",workoutDurationMinutes:"",workoutDurationSeconds:"",workoutDistance:"",workoutAscent:"",workoutDescent:""}),we=(0,l.iH)(ne.value.id?ne.value.with_gpx:le.value);let ve=null;const ye=(0,l.iH)(!1),ke=(0,l.iH)([]);function fe(e){me.notes=e}function _e(){we.value=!we.value,ye.value=!1}function ge(e){e.target.files&&(ve=e.target.files[0])}function Se(e){if(me.sport_id=`${e.sport_id}`,me.title=e.title,me.notes=e.notes,!e.with_gpx){const o=(0,c.Jo)((0,c.eB)(e.workout_date,t.authUser.timezone),"yyyy-MM-dd"),a=e.duration.split(":");me.workoutDistance=`${ae.value.imperial_units?(0,w.sC)(e.distance,"km","mi",3):parseFloat(e.distance.toFixed(3))}`,me.workoutDate=o.workout_date,me.workoutTime=o.workout_time,me.workoutDurationHour=a[0],me.workoutDurationMinutes=a[1],me.workoutDurationSeconds=a[2],me.workoutAscent=null===e.ascent?"":`${ae.value.imperial_units?(0,w.sC)(e.ascent,"m","ft",2):parseFloat(e.ascent.toFixed(2))}`,me.workoutDescent=null===e.descent?"":`${ae.value.imperial_units?(0,w.sC)(e.descent,"m","ft",2):parseFloat(e.descent.toFixed(2))}`}}function he(){return ke.value.includes("workouts.INVALID_DISTANCE")}function be(){return ke.value.includes("workouts.INVALID_DURATION")}function Ue(){return ke.value.includes("workouts.INVALID_ASCENT_OR_DESCENT")}function Te(e){ke.value=[],e.title=me.title,e.duration=3600*+me.workoutDurationHour+60*+me.workoutDurationMinutes+ +me.workoutDurationSeconds,e.duration<=0&&ke.value.push("workouts.INVALID_DURATION"),e.distance=ae.value.imperial_units?(0,w.sC)(+me.workoutDistance,"mi","km",3):+me.workoutDistance,e.distance<=0&&ke.value.push("workouts.INVALID_DISTANCE"),e.workout_date=`${me.workoutDate} ${me.workoutTime}`,e.ascent=""===me.workoutAscent?null:ae.value.imperial_units?(0,w.sC)(+me.workoutAscent,"ft","m",3):+me.workoutAscent,e.descent=""===me.workoutDescent?null:ae.value.imperial_units?(0,w.sC)(+me.workoutDescent,"ft","m",3):+me.workoutDescent,(null!==e.ascent&&null===e.descent||null===e.ascent&&null!==e.descent)&&ke.value.push("workouts.INVALID_ASCENT_OR_DESCENT")}function Oe(){const e={sport_id:+me.sport_id,notes:me.notes};if(t.workout.id)t.workout.with_gpx?e.title=me.title:Te(e),ke.value.length>0?te.commit(u.SY.MUTATIONS.SET_ERROR_MESSAGES,ke.value):te.dispatch(u.aX.ACTIONS.EDIT_WORKOUT,{workoutId:t.workout.id,data:e});else if(we.value){if(!ve){const e="workouts.NO_FILE_PROVIDED";return void te.commit(u.SY.MUTATIONS.SET_ERROR_MESSAGES,e)}e.file=ve,te.dispatch(u.aX.ACTIONS.ADD_WORKOUT,e)}else Te(e),ke.value.length>0?te.commit(u.SY.MUTATIONS.SET_ERROR_MESSAGES,ke.value):te.dispatch(u.aX.ACTIONS.ADD_WORKOUT_WITHOUT_GPX,e)}function Ee(){t.workout.id?oe.push({name:"Workout",params:{workoutId:t.workout.id}}):oe.go(-1)}function De(){ye.value=!0}return(0,a.bv)((()=>{let e;t.workout.id?(Se(t.workout),e=document.getElementById("sport")):e=document.getElementById("withGpx"),e&&e.focus()})),(0,a.Ah)((()=>te.commit(u.SY.MUTATIONS.EMPTY_ERROR_MESSAGES))),(0,a.YP)((()=>t.workout),(async(e,t)=>{e!==t&&e&&e.id&&Se(e)})),(e,t)=>{const o=(0,a.up)("CustomTextArea"),s=(0,a.up)("ErrorMessage"),i=(0,a.up)("Loader"),u=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",{id:"workout-edition",class:(0,n.C_)(["center-card with-margin",{"center-form":(0,l.SU)(ne)&&(0,l.SU)(ne).with_gpx}])},[(0,a.Wm)(u,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(e.$t(`workouts.${(0,l.SU)(le)?"ADD":"EDIT"}_WORKOUT`)),1)])),content:(0,a.w5)((()=>[(0,a._)("div",v,[(0,a._)("form",{class:(0,n.C_)({errors:ye.value}),onSubmit:(0,r.iM)(Oe,["prevent"])},[(0,a._)("div",k,[(0,l.SU)(le)?((0,a.wg)(),(0,a.iD)("div",f,[(0,a._)("div",null,[(0,a._)("input",{id:"withGpx",type:"radio",checked:we.value,disabled:(0,l.SU)(re),onClick:_e},null,8,_),(0,a._)("label",g,(0,n.zw)(e.$t("workouts.WITH_GPX")),1)]),(0,a._)("div",null,[(0,a._)("input",{id:"withoutGpx",type:"radio",checked:!we.value,disabled:(0,l.SU)(re),onClick:_e},null,8,S),(0,a._)("label",h,(0,n.zw)(e.$t("workouts.WITHOUT_GPX")),1)])])):(0,a.kq)("",!0),(0,a._)("div",b,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.SPORT",1))+"*: ",1),(0,a.wy)((0,a._)("select",{id:"sport",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[0]||(t[0]=e=>me.sport_id=e)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,l.SU)(se),(e=>((0,a.wg)(),(0,a.iD)("option",{value:e.id,key:e.id},(0,n.zw)(e.translatedLabel),9,T)))),128))],40,U),[[r.bM,me.sport_id]])]),(0,l.SU)(le)&&we.value?((0,a.wg)(),(0,a.iD)("div",O,[(0,a._)("label",E,(0,n.zw)(e.$t("workouts.GPX_FILE"))+" "+(0,n.zw)(e.$t("workouts.ZIP_ARCHIVE_DESCRIPTION"))+"*: ",1),(0,a._)("input",{id:"gpxFile",name:"gpxFile",type:"file",accept:".gpx, .zip",disabled:(0,l.SU)(re),required:"",onInvalid:De,onInput:ge},null,40,D),(0,a._)("div",I,[(0,a._)("div",null,[(0,a._)("strong",null,(0,n.zw)(e.$t("workouts.GPX_FILE"))+":",1),(0,a._)("ul",null,[(0,a._)("li",null,(0,n.zw)(e.$t("workouts.MAX_SIZE"))+": "+(0,n.zw)((0,l.SU)(ue)),1)])]),(0,a._)("div",null,[(0,a._)("strong",null,(0,n.zw)(e.$t("workouts.ZIP_ARCHIVE"))+":",1),(0,a._)("ul",null,[(0,a._)("li",null,(0,n.zw)(e.$t("workouts.NO_FOLDER")),1),(0,a._)("li",null,(0,n.zw)(e.$t("workouts.MAX_FILES"))+": "+(0,n.zw)((0,l.SU)(de)),1),(0,a._)("li",null,(0,n.zw)(e.$t("workouts.MAX_SIZE"))+": "+(0,n.zw)((0,l.SU)(ce)),1)])])])])):((0,a.wg)(),(0,a.iD)("div",A,[(0,a._)("label",C,(0,n.zw)(e.$t("workouts.TITLE"))+": ",1),(0,a.wy)((0,a._)("input",{id:"title",name:"title",type:"text",required:!(0,l.SU)(le),onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[1]||(t[1]=e=>me.title=e)},null,40,R),[[r.nr,me.title]])])),we.value?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",$,[(0,a._)("div",L,[(0,a._)("div",N,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.WORKOUT_DATE"))+"*:",1),(0,a._)("div",j,[(0,a.wy)((0,a._)("input",{id:"workout-date",name:"workout-date",type:"date",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[2]||(t[2]=e=>me.workoutDate=e)},null,40,x),[[r.nr,me.workoutDate]]),(0,a.wy)((0,a._)("input",{id:"workout-time",name:"workout-time",class:"workout-time",type:"time",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[3]||(t[3]=e=>me.workoutTime=e)},null,40,z),[[r.nr,me.workoutTime]])])]),(0,a._)("div",W,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.DURATION"))+"*:",1),(0,a._)("div",null,[(0,a.wy)((0,a._)("input",{id:"workout-duration-hour",name:"workout-duration-hour",class:(0,n.C_)(["workout-duration",{errored:be()}]),type:"text",placeholder:"HH",minlength:"1",maxlength:"2",pattern:"^([0-1]?[0-9]|2[0-3])$",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[4]||(t[4]=e=>me.workoutDurationHour=e)},null,42,F),[[r.nr,me.workoutDurationHour]]),(0,a.Uk)(" : "),(0,a.wy)((0,a._)("input",{id:"workout-duration-minutes",name:"workout-duration-minutes",class:(0,n.C_)(["workout-duration",{errored:be()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"MM",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[5]||(t[5]=e=>me.workoutDurationMinutes=e)},null,42,B),[[r.nr,me.workoutDurationMinutes]]),(0,a.Uk)(" : "),(0,a.wy)((0,a._)("input",{id:"workout-duration-seconds",name:"workout-duration-seconds",class:(0,n.C_)(["workout-duration",{errored:be()}]),type:"text",pattern:"^([0-5][0-9])$",minlength:"2",maxlength:"2",placeholder:"SS",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[6]||(t[6]=e=>me.workoutDurationSeconds=e)},null,42,H),[[r.nr,me.workoutDurationSeconds]])])])]),(0,a._)("div",P,[(0,a._)("div",q,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.DISTANCE"))+" ("+(0,n.zw)((0,l.SU)(ae).imperial_units?"mi":"km")+")*: ",1),(0,a.wy)((0,a._)("input",{class:(0,n.C_)({errored:he()}),name:"workout-distance",type:"number",min:"0",step:"0.001",required:"",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[7]||(t[7]=e=>me.workoutDistance=e)},null,42,M),[[r.nr,me.workoutDistance]])]),(0,a._)("div",Z,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.ASCENT"))+" ("+(0,n.zw)((0,l.SU)(ae).imperial_units?"ft":"m")+"): ",1),(0,a.wy)((0,a._)("input",{class:(0,n.C_)({errored:Ue()}),name:"workout-ascent",type:"number",min:"0",step:"0.01",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[8]||(t[8]=e=>me.workoutAscent=e)},null,42,K),[[r.nr,me.workoutAscent]])]),(0,a._)("div",G,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.DESCENT"))+" ("+(0,n.zw)((0,l.SU)(ae).imperial_units?"ft":"m")+"): ",1),(0,a.wy)((0,a._)("input",{class:(0,n.C_)({errored:Ue()}),name:"workout-descent",type:"number",min:"0",step:"0.01",onInvalid:De,disabled:(0,l.SU)(re),"onUpdate:modelValue":t[9]||(t[9]=e=>me.workoutDescent=e)},null,42,Y),[[r.nr,me.workoutDescent]])])])])),(0,a._)("div",X,[(0,a._)("label",null,(0,n.zw)(e.$t("workouts.NOTES"))+": ",1),(0,a.Wm)(o,{name:"notes",input:me.notes,disabled:(0,l.SU)(re),onUpdateValue:fe},null,8,["input","disabled"])])]),(0,l.SU)(pe)?((0,a.wg)(),(0,a.j4)(s,{key:0,message:(0,l.SU)(pe)},null,8,["message"])):(0,a.kq)("",!0),(0,l.SU)(re)?((0,a.wg)(),(0,a.iD)("div",V,[(0,a.Wm)(i)])):((0,a.wg)(),(0,a.iD)("div",J,[(0,a._)("button",{class:"confirm",type:"submit",disabled:(0,l.SU)(re)},(0,n.zw)(e.$t("buttons.SUBMIT")),9,Q),(0,a._)("button",{class:"cancel",onClick:(0,r.iM)(Ee,["prevent"])},(0,n.zw)(e.$t("buttons.CANCEL")),9,ee)]))],42,y)])])),_:1})],2)}}}),oe=o(3744);const ae=(0,oe.Z)(te,[["__scopeId","data-v-402915dc"]]);var ne=ae},4189:function(e,t,o){o.r(t),o.d(t,{default:function(){return p}});var a=o(6252),n=o(2262),l=o(7871),r=o(5801),s=o(9917);const i={id:"add-workout",class:"view"},u={class:"container"};var d=(0,a.aZ)({__name:"AddWorkout",setup(e){const t=(0,s.o)(),o=(0,a.Fl)((()=>t.getters[r.O8.GETTERS.SPORTS])),d=(0,a.Fl)((()=>t.getters[r.YN.GETTERS.AUTH_USER_PROFILE])),c=(0,a.Fl)((()=>t.getters[r.aX.GETTERS.WORKOUT_DATA]));return(e,t)=>((0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",u,[(0,a.Wm)(l.Z,{authUser:(0,n.SU)(d),sports:(0,n.SU)(o),isCreation:!0,loading:(0,n.SU)(c).loading},null,8,["authUser","sports","loading"])])]))}});const c=d;var p=c},8237:function(e,t,o){o.r(t),o.d(t,{default:function(){return m}});var a=o(6252),n=o(2262),l=o(2201),r=o(7871),s=o(5801),i=o(9917);const u={id:"edit-workout",class:"view"},d={class:"container"};var c=(0,a.aZ)({__name:"EditWorkout",setup(e){const t=(0,l.yj)(),o=(0,i.o)(),c=(0,a.Fl)((()=>o.getters[s.YN.GETTERS.AUTH_USER_PROFILE])),p=(0,a.Fl)((()=>o.getters[s.O8.GETTERS.SPORTS])),m=(0,a.Fl)((()=>o.getters[s.aX.GETTERS.WORKOUT_DATA]));return(0,a.wF)((()=>{o.dispatch(s.aX.ACTIONS.GET_WORKOUT_DATA,{workoutId:t.params.workoutId})})),(0,a.YP)((()=>t.params.workoutId),(async e=>{e||o.commit(s.aX.MUTATIONS.EMPTY_WORKOUT)})),(e,t)=>((0,a.wg)(),(0,a.iD)("div",u,[(0,a._)("div",d,[(0,n.SU)(m).workout.id?((0,a.wg)(),(0,a.j4)(r.Z,{key:0,authUser:(0,n.SU)(c),sports:(0,n.SU)(p),workout:(0,n.SU)(m).workout,loading:(0,n.SU)(m).loading},null,8,["authUser","sports","workout","loading"])):(0,a.kq)("",!0)])]))}});const p=c;var m=p},2393:function(e,t,o){o.r(t),o.d(t,{default:function(){return tn}});var a=o(6252),n=o(2262),l=o(2201),r=o(8273),s=o(9963),i=(o(7658),o(3577)),u=o(5167);const d=e=>((0,a.dD)("data-v-40df61be"),e=e(),(0,a.Cn)(),e),c={id:"workout-card-title"},p=["disabled","title"],m=d((()=>(0,a._)("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1))),w=[m],v={class:"workout-card-title"},y={class:"workout-title-date"},k={key:0,class:"workout-title"},f=["aria-label"],_=d((()=>(0,a._)("i",{class:"fa fa-edit","aria-hidden":"true"},null,-1))),g=[_],S=["aria-label"],h=d((()=>(0,a._)("i",{class:"fa fa-download","aria-hidden":"true"},null,-1))),b=[h],U=["onClick","aria-label"],T=d((()=>(0,a._)("i",{class:"fa fa-trash","aria-hidden":"true"},null,-1))),O=[T],E={key:1,class:"workout-title"},D={class:"workout-segment"},I=d((()=>(0,a._)("i",{class:"fa fa-map-marker","aria-hidden":"true"},null,-1))),A={class:"workout-date"},C={class:"workout-link"},R=["disabled","title"],$=d((()=>(0,a._)("i",{class:"fa fa-chevron-right","aria-hidden":"true"},null,-1))),L=[$];var N=(0,a.aZ)({__name:"WorkoutCardTitle",props:{sport:null,workoutObject:null},emits:["displayModal"],setup(e,{emit:t}){const o=e,{sport:l,workoutObject:r}=(0,n.BK)(o);async function d(e){await u.Z.get(`workouts/${e}/gpx/download`,{responseType:"blob"}).then((t=>{const o=window.URL.createObjectURL(new Blob([t.data],{type:"application/gpx+xml"})),a=document.createElement("a");a.href=o,a.setAttribute("download",`${e}.gpx`),document.body.appendChild(a),a.click()}))}function m(){t("displayModal",!0)}return(e,t)=>{const o=(0,a.up)("SportImage"),u=(0,a.up)("router-link");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("button",{class:(0,i.C_)(["workout-previous workout-arrow transparent",{inactive:!(0,n.SU)(r).previousUrl}]),disabled:!(0,n.SU)(r).previousUrl,title:(0,n.SU)(r).previousUrl?e.$t(`workouts.PREVIOUS_${(0,n.SU)(r).type}`):e.$t(`workouts.NO_PREVIOUS_${(0,n.SU)(r).type}`),onClick:t[0]||(t[0]=t=>(0,n.SU)(r).previousUrl?e.$router.push((0,n.SU)(r).previousUrl):null)},w,10,p),(0,a._)("div",v,[(0,a.Wm)(o,{"sport-label":(0,n.SU)(l).label,color:(0,n.SU)(l).color},null,8,["sport-label","color"]),(0,a._)("div",y,["WORKOUT"===(0,n.SU)(r).type?((0,a.wg)(),(0,a.iD)("div",k,[(0,a._)("span",null,(0,i.zw)((0,n.SU)(r).title),1),(0,a._)("button",{class:"transparent icon-button",onClick:t[1]||(t[1]=t=>e.$router.push({name:"EditWorkout",params:{workoutId:(0,n.SU)(r).workoutId}})),"aria-label":e.$t("workouts.EDIT_WORKOUT")},g,8,f),(0,n.SU)(r).with_gpx?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"transparent icon-button",onClick:t[2]||(t[2]=(0,s.iM)((e=>d((0,n.SU)(r).workoutId)),["prevent"])),"aria-label":e.$t("workouts.DOWNLOAD_WORKOUT")},b,8,S)):(0,a.kq)("",!0),(0,a._)("button",{id:"delete-workout-button",class:"transparent icon-button",onClick:(0,s.iM)(m,["prevent"]),"aria-label":e.$t("workouts.DELETE_WORKOUT")},O,8,U)])):null!==(0,n.SU)(r).segmentId?((0,a.wg)(),(0,a.iD)("div",E,[(0,a.Uk)((0,i.zw)((0,n.SU)(r).title)+" ",1),(0,a._)("span",D,[(0,a.Uk)(" — "),I,(0,a.Uk)(" "+(0,i.zw)(e.$t("workouts.SEGMENT"))+" "+(0,i.zw)((0,n.SU)(r).segmentId+1),1)])])):(0,a.kq)("",!0),(0,a._)("div",A,[(0,a._)("time",null,(0,i.zw)((0,n.SU)(r).workoutDate)+" - "+(0,i.zw)((0,n.SU)(r).workoutTime),1),(0,a._)("span",C,["SEGMENT"===(0,n.SU)(r).type?((0,a.wg)(),(0,a.j4)(u,{key:0,to:{name:"Workout",params:{workoutId:(0,n.SU)(r).workoutId}}},{default:(0,a.w5)((()=>[(0,a.Uk)(" > "+(0,i.zw)(e.$t("workouts.BACK_TO_WORKOUT")),1)])),_:1},8,["to"])):(0,a.kq)("",!0)])])])]),(0,a._)("button",{class:(0,i.C_)(["workout-next workout-arrow transparent",{inactive:!(0,n.SU)(r).nextUrl}]),disabled:!(0,n.SU)(r).nextUrl,title:(0,n.SU)(r).nextUrl?e.$t(`workouts.NEXT_${(0,n.SU)(r).type}`):e.$t(`workouts.NO_NEXT_${(0,n.SU)(r).type}`),onClick:t[3]||(t[3]=t=>(0,n.SU)(r).nextUrl?e.$router.push((0,n.SU)(r).nextUrl):null)},L,10,R)])}}}),j=o(3744);const x=(0,j.Z)(N,[["__scopeId","data-v-40df61be"]]);var z=x;const W=e=>((0,a.dD)("data-v-1a5282f6"),e=e(),(0,a.Cn)(),e),F={key:0,class:"workout-record"},B=W((()=>(0,a._)("sup",null,[(0,a._)("i",{class:"fa fa-trophy","aria-hidden":"true"})],-1))),H=[B];var P=(0,a.aZ)({__name:"WorkoutRecord",props:{recordType:null,workoutObject:null},setup(e){const t=e,{recordType:o,workoutObject:l}=(0,n.BK)(t);return(e,t)=>(0,n.SU)(l).records&&(0,n.SU)(l).records.find((e=>e.record_type===(0,n.SU)(o)))?((0,a.wg)(),(0,a.iD)("span",F,H)):(0,a.kq)("",!0)}});const q=(0,j.Z)(P,[["__scopeId","data-v-1a5282f6"]]);var M=q,Z=o(2429),K=o(3649);const G=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],Y=e=>{const t=Math.floor(e/22.5+.5);return G[t%16]},X={class:"wind"},V={class:"wind-bearing"},J=["title"];var Q=(0,a.aZ)({__name:"WeatherWind",props:{weather:null,useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:o,weather:l}=(0,n.BK)(t),{t:r}=(0,Z.QT)();function s(e){return r(`workouts.WEATHER.WIND_DIRECTIONS.${Y(e)}`)}return(e,t)=>((0,a.wg)(),(0,a.iD)("div",X,[(0,a.Uk)((0,i.zw)((0,n.SU)(K.Y2)((0,n.SU)(l).wind,(0,n.SU)(o)))+" ",1),(0,a._)("div",V,[(0,n.SU)(l).windBearing?((0,a.wg)(),(0,a.iD)("i",{key:0,class:"fa fa-long-arrow-down",style:(0,i.j5)({transform:`rotate(${(0,n.SU)(l).windBearing}deg)`}),"aria-hidden":"true",title:s((0,n.SU)(l).windBearing)},null,12,J)):(0,a.kq)("",!0)])]))}});const ee=(0,j.Z)(Q,[["__scopeId","data-v-40697ed1"]]);var te=ee;const oe=e=>((0,a.dD)("data-v-807b431a"),e=e(),(0,a.Cn)(),e),ae={key:0,id:"workout-weather"},ne={class:"weather-table"},le=oe((()=>(0,a._)("th",null,null,-1))),re={class:"weather-th"},se=["src","alt","title"],ie={class:"weather-th"},ue=["src","alt","title"],de=["alt","title"],ce=["alt","title"],pe=["alt","title"];var me=(0,a.aZ)({__name:"WorkoutWeather",props:{workoutObject:null,useImperialUnits:{type:Boolean}},setup(e){const t=e,{useImperialUnits:o,workoutObject:l}=(0,n.BK)(t);return(e,t)=>(0,n.SU)(l).weatherStart&&(0,n.SU)(l).weatherEnd?((0,a.wg)(),(0,a.iD)("div",ae,[(0,a._)("table",ne,[(0,a._)("thead",null,[(0,a._)("tr",null,[le,(0,a._)("th",null,[(0,a._)("div",re,[(0,a.Uk)((0,i.zw)(e.$t("workouts.START"))+" ",1),(0,a._)("img",{class:"weather-img",src:`/img/weather/${(0,n.SU)(l).weatherStart.icon}.svg`,alt:e.$t(`workouts.WEATHER.DARK_SKY.${(0,n.SU)(l).weatherStart.icon}`),title:e.$t(`workouts.WEATHER.DARK_SKY.${(0,n.SU)(l).weatherStart.icon}`)},null,8,se)])]),(0,a._)("th",null,[(0,a._)("div",ie,[(0,a.Uk)((0,i.zw)(e.$t("workouts.END"))+" ",1),(0,a._)("img",{class:"weather-img",src:`/img/weather/${(0,n.SU)(l).weatherEnd.icon}.svg`,alt:e.$t(`workouts.WEATHER.DARK_SKY.${(0,n.SU)(l).weatherEnd.icon}`),title:e.$t(`workouts.WEATHER.DARK_SKY.${(0,n.SU)(l).weatherEnd.icon}`)},null,8,ue)])])])]),(0,a._)("tbody",null,[(0,a._)("tr",null,[(0,a._)("td",null,[(0,a._)("img",{class:"weather-img weather-img-small",src:"/img/weather/temperature.svg",alt:e.$t("workouts.WEATHER.TEMPERATURE"),title:e.$t("workouts.WEATHER.TEMPERATURE")},null,8,de)]),(0,a._)("td",null,(0,i.zw)((0,n.SU)(K.x$)((0,n.SU)(l).weatherStart.temperature,(0,n.SU)(o))),1),(0,a._)("td",null,(0,i.zw)((0,n.SU)(K.x$)((0,n.SU)(l).weatherEnd.temperature,(0,n.SU)(o))),1)]),(0,a._)("tr",null,[(0,a._)("td",null,[(0,a._)("img",{class:"weather-img weather-img-small",src:"/img/weather/pour-rain.svg",alt:e.$t("workouts.WEATHER.HUMIDITY"),title:e.$t("workouts.WEATHER.HUMIDITY")},null,8,ce)]),(0,a._)("td",null,(0,i.zw)(Number(100*(0,n.SU)(l).weatherStart.humidity).toFixed(1))+"% ",1),(0,a._)("td",null,(0,i.zw)(Number(100*(0,n.SU)(l).weatherEnd.humidity).toFixed(1))+"% ",1)]),(0,a._)("tr",null,[(0,a._)("td",null,[(0,a._)("img",{class:"weather-img weather-img-small",src:"/img/weather/breeze.svg",alt:e.$t("workouts.WEATHER.WIND"),title:e.$t("workouts.WEATHER.WIND")},null,8,pe)]),(0,a._)("td",null,[(0,a.Wm)(te,{weather:(0,n.SU)(l).weatherStart,useImperialUnits:(0,n.SU)(o)},null,8,["weather","useImperialUnits"])]),(0,a._)("td",null,[(0,a.Wm)(te,{weather:(0,n.SU)(l).weatherEnd,useImperialUnits:(0,n.SU)(o)},null,8,["weather","useImperialUnits"])])])])])])):(0,a.kq)("",!0)}});const we=(0,j.Z)(me,[["__scopeId","data-v-807b431a"]]);var ve=we;const ye=e=>((0,a.dD)("data-v-2c41cfc8"),e=e(),(0,a.Cn)(),e),ke={id:"workout-info"},fe={class:"workout-data"},_e=ye((()=>(0,a._)("i",{class:"fa fa-clock-o","aria-hidden":"true"},null,-1))),ge={class:"label"},Se={class:"value"},he={key:0},be={class:"value"},Ue={class:"value"},Te={key:0,class:"workout-data"},Oe=ye((()=>(0,a._)("i",{class:"fa fa-road","aria-hidden":"true"},null,-1))),Ee={class:"label"},De={key:1,class:"workout-data"},Ie=ye((()=>(0,a._)("i",{class:"fa fa-tachometer","aria-hidden":"true"},null,-1))),Ae={class:"label"},Ce=ye((()=>(0,a._)("br",null,null,-1))),Re={class:"label"},$e={key:2,class:"workout-data"},Le=["alt"],Ne={class:"label"},je=ye((()=>(0,a._)("br",null,null,-1))),xe={class:"label"},ze={key:3,class:"workout-data"},We=ye((()=>(0,a._)("i",{class:"fa fa-location-arrow","aria-hidden":"true"},null,-1))),Fe={class:"label"},Be=ye((()=>(0,a._)("br",null,null,-1))),He={class:"label"};var Pe=(0,a.aZ)({__name:"WorkoutData",props:{workoutObject:null,useImperialUnits:{type:Boolean},displayHARecord:{type:Boolean}},setup(e){const t=e,{displayHARecord:o,workoutObject:l,useImperialUnits:r}=(0,n.BK)(t),s=(0,a.Fl)((()=>"0:00:00"!==t.workoutObject.pauses&&null!==t.workoutObject.pauses));return(e,t)=>{const u=(0,a.up)("Distance");return(0,a.wg)(),(0,a.iD)("div",ke,[(0,a._)("div",fe,[_e,(0,a._)("span",ge,(0,i.zw)(e.$t("workouts.DURATION")),1),(0,a.Uk)(": "),(0,a._)("span",Se,(0,i.zw)((0,n.SU)(l).moving),1),(0,a.Wm)(M,{workoutObject:(0,n.SU)(l),recordType:"LD"},null,8,["workoutObject"]),(0,n.SU)(s)?((0,a.wg)(),(0,a.iD)("div",he,[(0,a.Uk)(" ("+(0,i.zw)(e.$t("workouts.PAUSES"))+": ",1),(0,a._)("span",be,(0,i.zw)((0,n.SU)(l).pauses),1),(0,a.Uk)(" - "+(0,i.zw)(e.$t("workouts.TOTAL_DURATION"))+": ",1),(0,a._)("span",Ue,(0,i.zw)((0,n.SU)(l).duration)+")",1)])):(0,a.kq)("",!0)]),null!==(0,n.SU)(l).distance?((0,a.wg)(),(0,a.iD)("div",Te,[Oe,(0,a._)("span",Ee,(0,i.zw)(e.$t("workouts.DISTANCE")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).distance,digits:3,unitFrom:"km",strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"]),(0,a.Wm)(M,{workoutObject:(0,n.SU)(l),recordType:"FD"},null,8,["workoutObject"])])):(0,a.kq)("",!0),null!==(0,n.SU)(l).aveSpeed&&null!==(0,n.SU)(l).maxSpeed?((0,a.wg)(),(0,a.iD)("div",De,[Ie,(0,a._)("span",Ae,(0,i.zw)(e.$t("workouts.AVERAGE_SPEED")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).aveSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"]),(0,a.Wm)(M,{workoutObject:(0,n.SU)(l),recordType:"AS"},null,8,["workoutObject"]),Ce,(0,a._)("span",Re,(0,i.zw)(e.$t("workouts.MAX_SPEED")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).maxSpeed,unitFrom:"km",speed:!0,strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"]),(0,a.Wm)(M,{workoutObject:(0,n.SU)(l),recordType:"MS"},null,8,["workoutObject"])])):(0,a.kq)("",!0),null!==(0,n.SU)(l).maxAlt&&null!==(0,n.SU)(l).minAlt?((0,a.wg)(),(0,a.iD)("div",$e,[(0,a._)("img",{class:"mountains",src:"/img/workouts/mountains.svg",alt:e.$t("workouts.ELEVATION")},null,8,Le),(0,a._)("span",Ne,(0,i.zw)(e.$t("workouts.MIN_ALTITUDE")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).minAlt,unitFrom:"m",strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"]),je,(0,a._)("span",xe,(0,i.zw)(e.$t("workouts.MAX_ALTITUDE")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).maxAlt,unitFrom:"m",strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"])])):(0,a.kq)("",!0),null!==(0,n.SU)(l).ascent&&null!==(0,n.SU)(l).descent?((0,a.wg)(),(0,a.iD)("div",ze,[We,(0,a._)("span",Fe,(0,i.zw)(e.$t("workouts.ASCENT")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).ascent,unitFrom:"m",strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"]),(0,n.SU)(o)?((0,a.wg)(),(0,a.j4)(M,{key:0,workoutObject:(0,n.SU)(l),recordType:"HA"},null,8,["workoutObject"])):(0,a.kq)("",!0),Be,(0,a._)("span",He,(0,i.zw)(e.$t("workouts.DESCENT")),1),(0,a.Uk)(": "),(0,a.Wm)(u,{distance:(0,n.SU)(l).descent,unitFrom:"m",strong:!0,useImperialUnits:(0,n.SU)(r)},null,8,["distance","useImperialUnits"])])):(0,a.kq)("",!0),(0,a.Wm)(ve,{workoutObject:(0,n.SU)(l),useImperialUnits:(0,n.SU)(r)},null,8,["workoutObject","useImperialUnits"])])}}});const qe=(0,j.Z)(Pe,[["__scopeId","data-v-2c41cfc8"]]);var Me=qe;function Ze(e,t){return Array.from(e.getElementsByTagName(t))}function Ke(e){return e?.normalize(),e&&e.textContent||""}function Ge(e,t,o){const a=e.getElementsByTagName(t),n=a.length?a[0]:null;return n&&o&&o(n),n}function Ye(e,t,o){const a={};if(!e)return a;const n=e.getElementsByTagName(t),l=n.length?n[0]:null;return l&&o?o(l,a):a}function Xe(e,t,o){const a=Ke(Ge(e,t));return a&&o&&o(a)||{}}function Ve(e,t,o){const a=parseFloat(Ke(Ge(e,t)));if(!isNaN(a))return a&&o&&o(a)||{}}function Je(e,t,o){const a=parseFloat(Ke(Ge(e,t)));if(!isNaN(a))return o&&o(a),a}function Qe(e,t){const o={};for(const a of t)Xe(e,a,(e=>{o[a]=e}));return o}function et(e){return 1===e?.nodeType}function tt(e){return Ye(e,"line",(e=>{const t=Object.assign({},Xe(e,"color",(e=>({stroke:`#${e}`}))),Ve(e,"opacity",(e=>({"stroke-opacity":e}))),Ve(e,"width",(e=>({"stroke-width":96*e/25.4}))));return t}))}function ot(e){let t=[];if(null===e)return t;for(const o of Array.from(e.childNodes)){if(!et(o))continue;const e=at(o.nodeName);if("gpxtpx:TrackPointExtension"===e)t=t.concat(ot(o));else{const a=Ke(o);t.push([e,nt(a)])}}return t}function at(e){return["heart","gpxtpx:hr","hr"].includes(e)?"heart":e}function nt(e){const t=parseFloat(e);return isNaN(t)?e:t}function lt(e){const t=[parseFloat(e.getAttribute("lon")||""),parseFloat(e.getAttribute("lat")||"")];if(isNaN(t[0])||isNaN(t[1]))return null;Je(e,"ele",(e=>{t.push(e)}));const o=Ge(e,"time");return{coordinates:t,time:o?Ke(o):null,extendedValues:ot(Ge(e,"extensions"))}}function rt(e){const t=Qe(e,["name","cmt","desc","type","time","keywords"]),o=Array.from(e.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*"));for(const n of o)n.parentNode?.parentNode===e&&(t[n.tagName.replace(":","_")]=Ke(n));const a=Ze(e,"link");return a.length&&(t.links=a.map((e=>Object.assign({href:e.getAttribute("href")},Qe(e,["text","type"]))))),t}function st(e,t){const o=Ze(e,t),a=[],n=[],l={};for(let r=0;r<o.length;r++){const e=lt(o[r]);if(e){a.push(e.coordinates),e.time&&n.push(e.time);for(const[t,a]of e.extendedValues){const e="heart"===t?t:t.replace("gpxtpx:","")+"s";l[e]||(l[e]=Array(o.length).fill(null)),l[e][r]=a}}}if(!(a.length<2))return{line:a,times:n,extendedValues:l}}function it(e){const t=st(e,"rtept");if(t)return{type:"Feature",properties:Object.assign({_gpxType:"rte"},rt(e),tt(Ge(e,"extensions"))),geometry:{type:"LineString",coordinates:t.line}}}function ut(e){const t=Ze(e,"trkseg"),o=[],a=[],n=[];for(const s of t){const e=st(s,"trkpt");e&&(n.push(e),e.times&&e.times.length&&a.push(e.times))}if(0===n.length)return null;const l=n.length>1,r=Object.assign({_gpxType:"trk"},rt(e),tt(Ge(e,"extensions")),a.length?{coordinateProperties:{times:l?a:a[0]}}:{});for(const s of n){o.push(s.line),r.coordinateProperties||(r.coordinateProperties={});const e=r.coordinateProperties,t=Object.entries(s.extendedValues);for(let o=0;o<t.length;o++){const[a,r]=t[o];l?(e[a]||(e[a]=n.map((e=>new Array(e.line.length).fill(null)))),e[a][o]=r):e[a]=r}}return{type:"Feature",properties:r,geometry:l?{type:"MultiLineString",coordinates:o}:{type:"LineString",coordinates:o[0]}}}function dt(e){const t=Object.assign(rt(e),Qe(e,["sym"])),o=lt(e);return o?{type:"Feature",properties:t,geometry:{type:"Point",coordinates:o.coordinates}}:null}function*ct(e){for(const t of Ze(e,"trk")){const e=ut(t);e&&(yield e)}for(const t of Ze(e,"rte")){const e=it(t);e&&(yield e)}for(const t of Ze(e,"wpt")){const e=dt(t);e&&(yield e)}}function pt(e){return{type:"FeatureCollection",features:Array.from(ct(e))}}Math.PI;const mt=(e,t)=>{for(const o of Object.keys(t))e.on(o,t[o])},wt=e=>{for(const t of Object.keys(e)){const o=e[t];o&&yt(o.cancel)&&o.cancel()}},vt=e=>e&&"function"==typeof e.charAt?e.charAt(0).toUpperCase()+e.slice(1):e,yt=e=>"function"==typeof e,kt=(e,t,o)=>{for(const n in o){const l="set"+vt(n);e[l]?(0,a.YP)((()=>o[n]),((t,o)=>{e[l](t,o)})):t[l]&&(0,a.YP)((()=>o[n]),(e=>{t[l](e)}))}},ft=(e,t,o={})=>{const a={...o};for(const n in e){const o=t[n],l=e[n];o&&(o&&!0===o.custom||void 0!==l&&(a[n]=l))}return a},_t=e=>{const t={};for(const o in e)if(o.startsWith("on")&&!o.startsWith("onUpdate")&&"onReady"!==o){const a=o.slice(2).toLocaleLowerCase();t[a]=e[o]}return t},gt=async e=>{const t=await Promise.all([o.e(431).then(o.t.bind(o,6431,17)),o.e(93).then(o.t.bind(o,7093,17)),o.e(858).then(o.t.bind(o,8858,17))]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},St=e=>{const t=(0,n.iH)(((...t)=>console.warn(`Method ${e} has been invoked without being replaced`))),o=(...e)=>t.value(...e);return o.wrapped=t,(0,a.JJ)(e,o),o},ht=(e,t)=>e.wrapped.value=t,bt="object"==typeof self&&self.self===self&&self||"object"==typeof o.g&&o.g.global===o.g&&o.g||globalThis,Ut=e=>{const t=(0,a.f3)(e);if(!t)throw new Error(`Attempt to inject ${e} before it was provided.`);return t},Tt=Symbol(),Ot=Symbol(),Et=Symbol(),Dt=Symbol(),It=Symbol(),At=Symbol(),Ct=Symbol(),Rt=Symbol(),$t=Symbol(),Lt=Symbol(),Nt=Symbol(),jt=Symbol(),xt={options:{type:Object,default:()=>({}),custom:!0}},zt=e=>({options:e.options,methods:{}}),Wt={...xt,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Ft=(e,t,o)=>{const n=Ut(Ot),l=Ut(Et),{options:r,methods:s}=zt(e),i=ft(e,Wt,r),u=()=>n({leafletObject:t.value}),d=()=>l({leafletObject:t.value}),c={...s,setAttribution(o){d(),t.value.options.attribution=o,e.visible&&u()},setName(){d(),e.visible&&u()},setLayerType(){d(),e.visible&&u()},setVisible(e){t.value&&(e?u():d())},bindPopup(e){t.value&&yt(t.value.bindPopup)?t.value.bindPopup(e):console.warn("Attempt to bind popup before bindPopup method available on layer.")},bindTooltip(e){t.value&&yt(t.value.bindTooltip)?t.value.bindTooltip(e):console.warn("Attempt to bind tooltip before bindTooltip method available on layer.")},unbindTooltip(){t.value&&(yt(t.value.closeTooltip)&&t.value.closeTooltip(),yt(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(yt(t.value.closePopup)&&t.value.closePopup(),yt(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(e){o.emit("update:visible",e)}};return(0,a.JJ)($t,c.bindPopup),(0,a.JJ)(Lt,c.bindTooltip),(0,a.JJ)(Nt,c.unbindPopup),(0,a.JJ)(jt,c.unbindTooltip),(0,a.Ah)((()=>{c.unbindPopup(),c.unbindTooltip(),d()})),{options:i,methods:c}},Bt=(e,t)=>{if(e&&t.default)return(0,a.h)("div",{style:{display:"none"}},t.default())},Ht={...Wt,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Pt=(e,t,o)=>{const{options:a,methods:n}=Ft(e,t,o);return{options:ft(e,Ht,a),methods:n}},qt={...Ht,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Mt=(e,t,o)=>{const{options:n,methods:l}=Pt(e,t,o),r=ft(e,qt,n),s=Ut(Et),i={...l,setStroke(e){t.value.setStyle({stroke:e})},setColor(e){t.value.setStyle({color:e})},setWeight(e){t.value.setStyle({weight:e})},setOpacity(e){t.value.setStyle({opacity:e})},setLineCap(e){t.value.setStyle({lineCap:e})},setLineJoin(e){t.value.setStyle({lineJoin:e})},setDashArray(e){t.value.setStyle({dashArray:e})},setDashOffset(e){t.value.setStyle({dashOffset:e})},setFill(e){t.value.setStyle({fill:e})},setFillColor(e){t.value.setStyle({fillColor:e})},setFillOpacity(e){t.value.setStyle({fillOpacity:e})},setFillRule(e){t.value.setStyle({fillRule:e})},setClassName(e){t.value.setStyle({className:e})}};return(0,a.Jd)((()=>{s({leafletObject:t.value})})),{options:r,methods:i}},Zt={...qt,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}},Kt=(e,t,o)=>{const{options:a,methods:n}=Mt(e,t,o),l=ft(e,Zt,a),r={...n,setRadius(e){t.value.setRadius(e)},setLatLng(e){t.value.setLatLng(e)}};return{options:l,methods:r}},Gt={...Zt,radius:{type:Number}},Yt=(e,t,o)=>{const{options:a,methods:n}=Kt(e,t,o),l=ft(e,Gt,a),r={...n};return{options:l,methods:r}},Xt=((0,a.aZ)({name:"LCircle",props:Gt,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=Yt(e,l,t);return(0,a.bv)((async()=>{const{circle:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.latLng,u));const p=_t(t.attrs);l.value.on(p),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),(0,a.aZ)({name:"LCircleMarker",props:Zt,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=Kt(e,l,t);return(0,a.bv)((async()=>{const{circleMarker:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.latLng,u));const p=_t(t.attrs);l.value.on(p),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),{...xt,position:{type:String}}),Vt=(e,t)=>{const{options:o,methods:n}=zt(e),l=ft(e,Xt,o),r={...n,setPosition(e){t.value&&t.value.setPosition(e)}};return(0,a.Ah)((()=>{t.value&&t.value.remove()})),{options:l,methods:r}},Jt=e=>e.default?(0,a.h)("div",{ref:"root"},e.default()):null,Qt=(0,a.aZ)({name:"LControl",props:{...Xt,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(),s=(0,a.f3)(Tt),i=Ut(Dt),{options:u,methods:d}=Vt(e,l);return(0,a.bv)((async()=>{const{Control:c,DomEvent:p}=s?bt.L:await o.e(633).then(o.bind(o,6633)),m=c.extend({onAdd(){return r.value}});l.value=(0,n.Xl)(new m(u)),kt(d,l.value,e),i({leafletObject:l.value}),e.disableClickPropagation&&r.value&&p.disableClickPropagation(r.value),e.disableScrollPropagation&&r.value&&p.disableScrollPropagation(r.value),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{root:r,leafletObject:l}},render(){return Jt(this.$slots)}}),eo={...Xt,prefix:{type:String}},to=(e,t)=>{const{options:o,methods:a}=Vt(e,t),n=ft(e,eo,o),l={...a,setPrefix(e){t.value.setPrefix(e)}};return{options:n,methods:l}},oo=((0,a.aZ)({name:"LControlAttribution",props:eo,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(Dt),{options:i,methods:u}=to(e,l);return(0,a.bv)((async()=>{const{control:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d.attribution(i)),kt(u,l.value,e),s({leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}}),{...Xt,collapsed:{type:Boolean,default:void 0},autoZIndex:{type:Boolean,default:void 0},hideSingleBase:{type:Boolean,default:void 0},sortLayers:{type:Boolean,default:void 0},sortFunction:{type:Function}}),ao=(e,t)=>{const{options:o}=Vt(e,t);return{options:ft(e,oo,o),methods:{addLayer(e){"base"===e.layerType?t.value.addBaseLayer(e.leafletObject,e.name):"overlay"===e.layerType&&t.value.addOverlay(e.leafletObject,e.name)},removeLayer(e){t.value.removeLayer(e.leafletObject)}}}},no=(0,a.aZ)({name:"LControlLayers",props:oo,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(It),{options:i,methods:u}=ao(e,l);return(0,a.bv)((async()=>{const{control:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d.layers(void 0,void 0,i)),kt(u,l.value,e),s({...e,...u,leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}}),lo={...Xt,maxWidth:{type:Number},metric:{type:Boolean,default:void 0},imperial:{type:Boolean,default:void 0},updateWhenIdle:{type:Boolean,default:void 0}},ro=(e,t)=>{const{options:o,methods:a}=Vt(e,t);return{options:ft(e,lo,o),methods:a}},so=((0,a.aZ)({name:"LControlScale",props:lo,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(Dt),{options:i,methods:u}=ro(e,l);return(0,a.bv)((async()=>{const{control:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d.scale(i)),kt(u,l.value,e),s({leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}}),{...Xt,zoomInText:{type:String},zoomInTitle:{type:String},zoomOutText:{type:String},zoomOutTitle:{type:String}}),io=(e,t)=>{const{options:o,methods:a}=Vt(e,t);return{options:ft(e,so,o),methods:a}},uo=((0,a.aZ)({name:"LControlZoom",props:so,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(Dt),{options:i,methods:u}=io(e,l);return(0,a.bv)((async()=>{const{control:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d.zoom(i)),kt(u,l.value,e),s({leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}}),{...Wt}),co=(e,t,o)=>{const{options:n,methods:l}=Ft(e,t,o),r=ft(e,uo,n),s={...l,addLayer(e){t.value.addLayer(e.leafletObject)},removeLayer(e){t.value.removeLayer(e.leafletObject)}};return(0,a.JJ)(Ot,s.addLayer),(0,a.JJ)(Et,s.removeLayer),{options:r,methods:s}},po={...uo},mo=(e,t,o)=>{const{options:a,methods:n}=co(e,t,o),l=ft(e,po,a),r={...n};return{options:l,methods:r}},wo=((0,a.aZ)({props:po,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{methods:u,options:d}=mo(e,l,t);return(0,a.bv)((async()=>{const{featureGroup:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(void 0,d));const p=_t(t.attrs);l.value.on(p),kt(u,l.value,e),i({...e,...u,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),{...uo,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}}),vo=(e,t,o)=>{const{options:a,methods:n}=co(e,t,o),l=ft(e,wo,a);Object.prototype.hasOwnProperty.call(e,"optionsStyle")&&(l.style=e.optionsStyle);const r={...n,setGeojson(e){t.value.clearLayers(),t.value.addData(e)},setOptionsStyle(e){t.value.setStyle(e)},getGeoJSONData(){return t.value.toGeoJSON()},getBounds(){return t.value.getBounds()}};return{options:l,methods:r}},yo=(0,a.aZ)({props:wo,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{methods:u,options:d}=vo(e,l,t);return(0,a.bv)((async()=>{const{geoJSON:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.geojson,d));const p=_t(t.attrs);l.value.on(p),kt(u,l.value,e),i({...e,...u,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),ko={...Wt,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number}},fo=(e,t,o)=>{const{options:n,methods:l}=Ft(e,t,o),r=ft(e,ko,n),s={...l,setTileComponent(){var e;null==(e=t.value)||e.redraw()}};return(0,a.Ah)((()=>{t.value.off()})),{options:r,methods:s}},_o=(e,t,o,n)=>e.extend({initialize(e){this.tileComponents={},this.on("tileunload",this._unloadTile),o.setOptions(this,e)},createTile(e){const o=this._tileCoordsToKey(e);this.tileComponents[o]=t.create("div");const l=(0,a.h)({setup:n,props:["coords"]},{coords:e});return(0,s.sY)(l,this.tileComponents[o]),this.tileComponents[o]},_unloadTile(e){const t=this._tileCoordsToKey(e.coords);this.tileComponents[t]&&(this.tileComponents[t].innerHTML="",this.tileComponents[t]=void 0)}}),go=((0,a.aZ)({props:{...ko,childRender:{type:Function,required:!0}},setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(null),s=(0,n.iH)(!1),i=(0,a.f3)(Tt),u=Ut(Ot),{options:d,methods:c}=fo(e,l,t);return(0,a.bv)((async()=>{const{GridLayer:r,DomUtil:p,Util:m}=i?bt.L:await o.e(633).then(o.bind(o,6633)),w=_o(r,p,m,e.childRender);l.value=(0,n.Xl)(new w(d));const v=_t(t.attrs);l.value.on(v),kt(c,l.value,e),u({...e,...c,leafletObject:l.value}),s.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{root:r,ready:s,leafletObject:l}},render(){return this.ready?(0,a.h)("div",{style:{display:"none"},ref:"root"}):null}}),{iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}}),So=(0,a.aZ)({name:"LIcon",props:{...go,...xt},setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(At),i=Ut(Ct),u=Ut(Rt);let d,c,p,m,w;const v=(o,a,n)=>{const l=o&&o.innerHTML;if(!a)return void(n&&w&&s()&&i(l));const r=_t(t.attrs);w&&c(w,r);const{options:v}=zt(e),y=ft(e,go,v);l&&(y.html=l),w=y.html?p(y):m(y),d(w,r),u(w)},y=()=>{(0,a.Y3)((()=>v(l.value,!0,!1)))},k=()=>{(0,a.Y3)((()=>v(l.value,!1,!0)))},f={setIconUrl:y,setIconRetinaUrl:y,setIconSize:y,setIconAnchor:y,setPopupAnchor:y,setTooltipAnchor:y,setShadowUrl:y,setShadowRetinaUrl:y,setShadowAnchor:y,setBgPos:y,setClassName:y,setHtml:y};return(0,a.bv)((async()=>{const{DomEvent:t,divIcon:a,icon:n}=r?bt.L:await o.e(633).then(o.bind(o,6633));d=t.on,c=t.off,p=a,m=n,kt(f,{},e),new MutationObserver(k).observe(l.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),y()})),{root:l}},render(){const e=this.$slots.default?this.$slots.default():void 0;return(0,a.h)("div",{ref:"root"},e)}}),ho={...Wt,opacity:{type:Number},alt:{type:String},interactive:{type:Boolean,default:void 0},crossOrigin:{type:Boolean,default:void 0},errorOverlayUrl:{type:String},zIndex:{type:Number},className:{type:String},url:{type:String,required:!0,custom:!0},bounds:{type:[Array,Object],required:!0,custom:!0}},bo=(e,t,o)=>{const{options:a,methods:n}=Ft(e,t,o),l=ft(e,ho,a),r={...n,setOpacity(e){return t.value.setOpacity(e)},setUrl(e){return t.value.setUrl(e)},setBounds(e){return t.value.setBounds(e)},getBounds(){return t.value.getBounds()},getElement(){return t.value.getElement()},bringToFront(){return t.value.bringToFront()},bringToBack(){return t.value.bringToBack()},setZIndex(e){return t.value.setZIndex(e)}};return{options:l,methods:r}},Uo=((0,a.aZ)({name:"LImageOverlay",props:ho,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=bo(e,l,t);return(0,a.bv)((async()=>{const{imageOverlay:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.url,e.bounds,u));const p=_t(t.attrs);l.value.on(p),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),(0,a.aZ)({props:uo,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{methods:u}=co(e,l,t);return(0,a.bv)((async()=>{const{layerGroup:d}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d(void 0,e.options));const c=_t(t.attrs);l.value.on(c),kt(u,l.value,e),i({...e,...u,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}));function To(e,t,o){var a,n,l;void 0===t&&(t=50),void 0===o&&(o={});var r=null!=(a=o.isImmediate)&&a,s=null!=(n=o.callback)&&n,i=o.maxWait,u=Date.now(),d=[];function c(){if(void 0!==i){var e=Date.now()-u;if(e+t>=i)return i-e}return t}var p=function(){var t=[].slice.call(arguments),o=this;return new Promise((function(a,n){var i=r&&void 0===l;if(void 0!==l&&clearTimeout(l),l=setTimeout((function(){if(l=void 0,u=Date.now(),!r){var a=e.apply(o,t);s&&s(a),d.forEach((function(e){return(0,e.resolve)(a)})),d=[]}}),c()),i){var p=e.apply(o,t);return s&&s(p),a(p)}d.push({resolve:a,reject:n})}))};return p.cancel=function(e){void 0!==l&&clearTimeout(l),d.forEach((function(t){return(0,t.reject)(e)})),d=[]},p}const Oo={...xt,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},Eo=(0,a.aZ)({emits:["ready","update:zoom","update:center","update:bounds"],props:Oo,setup(e,t){const l=(0,n.iH)(),r=(0,n.qj)({ready:!1,layersToAdd:[],layersInControl:[]}),{options:s}=zt(e),i=ft(e,Oo,s),u=St(Ot),d=St(Et),c=St(Dt),p=St(It);(0,a.JJ)(Tt,e.useGlobalLeaflet);const m=(0,a.Fl)((()=>{const t={};return e.noBlockingAnimations&&(t.animate=!1),t})),w=(0,a.Fl)((()=>{const t=m.value;return e.padding&&(t.padding=e.padding),e.paddingTopLeft&&(t.paddingTopLeft=e.paddingTopLeft),e.paddingBottomRight&&(t.paddingBottomRight=e.paddingBottomRight),t})),v={moveend:To((e=>{r.leafletRef&&(t.emit("update:zoom",r.leafletRef.getZoom()),t.emit("update:center",r.leafletRef.getCenter()),t.emit("update:bounds",r.leafletRef.getBounds()))})),overlayadd(e){const t=r.layersInControl.find((t=>t.name===e.name));t&&t.updateVisibleProp(!0)},overlayremove(e){const t=r.layersInControl.find((t=>t.name===e.name));t&&t.updateVisibleProp(!1)}};(0,a.bv)((async()=>{e.useGlobalLeaflet&&(bt.L=bt.L||await o.e(243).then(o.t.bind(o,5243,23)));const{map:s,CRS:y,Icon:k,latLngBounds:f,latLng:_,DomEvent:g,stamp:S}=e.useGlobalLeaflet?bt.L:await o.e(633).then(o.bind(o,6633));try{i.beforeMapMount&&await i.beforeMapMount()}catch(T){console.error(`The following error occurred running the provided beforeMapMount hook ${T.message}`)}await gt(k);const h="string"==typeof i.crs?y[i.crs]:i.crs;i.crs=h||y.EPSG3857;const b={addLayer(e){void 0!==e.layerType&&(void 0===r.layerControl?r.layersToAdd.push(e):r.layersInControl.find((t=>S(t.leafletObject)===S(e.leafletObject)))||(r.layerControl.addLayer(e),r.layersInControl.push(e))),!1!==e.visible&&r.leafletRef.addLayer(e.leafletObject)},removeLayer(e){void 0!==e.layerType&&(void 0===r.layerControl?r.layersToAdd=r.layersToAdd.filter((t=>t.name!==e.name)):(r.layerControl.removeLayer(e.leafletObject),r.layersInControl=r.layersInControl.filter((t=>S(t.leafletObject)!==S(e.leafletObject))))),r.leafletRef.removeLayer(e.leafletObject)},registerLayerControl(e){r.layerControl=e,r.layersToAdd.forEach((e=>{r.layerControl.addLayer(e)})),r.layersToAdd=[],c(e)},registerControl(e){r.leafletRef.addControl(e.leafletObject)},setZoom(e){const t=r.leafletRef.getZoom();e!==t&&r.leafletRef.setZoom(e,m.value)},setCrs(e){const t=r.leafletRef.getBounds();r.leafletRef.options.crs=e,r.leafletRef.fitBounds(t,{animate:!1,padding:[0,0]})},fitBounds(e){r.leafletRef.fitBounds(e,w.value)},setBounds(e){if(!e)return;const t=f(e);t.isValid()&&!(r.lastSetBounds||r.leafletRef.getBounds()).equals(t,0)&&(r.lastSetBounds=t,r.leafletRef.fitBounds(t))},setCenter(e){if(null==e)return;const t=_(e),o=r.lastSetCenter||r.leafletRef.getCenter();(o.lat!==t.lat||o.lng!==t.lng)&&(r.lastSetCenter=t,r.leafletRef.panTo(t,m.value))}};ht(u,b.addLayer),ht(d,b.removeLayer),ht(c,b.registerControl),ht(p,b.registerLayerControl),r.leafletRef=(0,n.Xl)(s(l.value,i)),kt(b,r.leafletRef,e);const U=_t(t.attrs);mt(r.leafletRef,v),g.on(r.leafletRef.getContainer(),U),r.ready=!0,(0,a.Y3)((()=>t.emit("ready",r.leafletRef)))})),(0,a.Jd)((()=>{wt(v),r.leafletRef&&(r.leafletRef.off(),r.leafletRef.remove())}));const y=(0,a.Fl)((()=>r.leafletRef)),k=(0,a.Fl)((()=>r.ready));return{root:l,ready:k,leafletObject:y}},render(){return(0,a.h)("div",{style:{width:"100%",height:"100%"},ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),Do=["Symbol(Comment)","Symbol(Text)"],Io=["LTooltip","LPopup"],Ao={...Wt,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},Co=(e,t,o)=>{const{options:a,methods:n}=Ft(e,t,o),l=ft(e,Ao,a),r={...n,setDraggable(e){t.value.dragging&&(e?t.value.dragging.enable():t.value.dragging.disable())},latLngSync(e){o.emit("update:latLng",e.latlng),o.emit("update:lat-lng",e.latlng)},setLatLng(e){if(null!=e&&t.value){const o=t.value.getLatLng();(!o||!o.equals(e))&&t.value.setLatLng(e)}}};return{options:l,methods:r}},Ro=(e,t)=>{const o=t.slots.default&&t.slots.default();return o&&o.length&&o.some($o)};function $o(e){return!(Do.includes(e.type.toString())||Io.includes(e.type.name))}const Lo=(0,a.aZ)({name:"LMarker",props:Ao,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot);(0,a.JJ)(At,(()=>{var e;return!(null==(e=l.value)||!e.getElement())})),(0,a.JJ)(Ct,(e=>{var t,o;const a=yt(null==(t=l.value)?void 0:t.getElement)&&(null==(o=l.value)?void 0:o.getElement());a&&(a.innerHTML=e)})),(0,a.JJ)(Rt,(e=>{var t;return(null==(t=l.value)?void 0:t.setIcon)&&l.value.setIcon(e)}));const{options:u,methods:d}=Co(e,l,t),c={moveHandler:To(d.latLngSync)};return(0,a.bv)((async()=>{const{marker:p,divIcon:m}=s?bt.L:await o.e(633).then(o.bind(o,6633));Ro(u,t)&&(u.icon=m({className:""})),l.value=(0,n.Xl)(p(e.latLng,u));const w=_t(t.attrs);l.value.on(w),l.value.on("move",c.moveHandler),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),(0,a.Jd)((()=>wt(c))),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),No={...qt,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},jo=(e,t,o)=>{const{options:a,methods:n}=Mt(e,t,o),l=ft(e,No,a),r={...n,setSmoothFactor(e){t.value.setStyle({smoothFactor:e})},setNoClip(e){t.value.setStyle({noClip:e})},addLatLng(e){t.value.addLatLng(e)}};return{options:l,methods:r}},xo={...No},zo=(e,t,o)=>{const{options:a,methods:n}=jo(e,t,o),l=ft(e,xo,a),r={...n,toGeoJSON(e){return t.value.toGeoJSON(e)}};return{options:l,methods:r}},Wo=((0,a.aZ)({name:"LPolygon",props:xo,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=zo(e,l,t);return(0,a.bv)((async()=>{const{polygon:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.latLngs,u));const p=_t(t.attrs);l.value.on(p),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),(0,a.aZ)({name:"LPolyline",props:No,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=jo(e,l,t);return(0,a.bv)((async()=>{const{polyline:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(e.latLngs,u));const p=_t(t.attrs);l.value.on(p),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),{...xt,content:{type:String,default:null}}),Fo=(e,t)=>{const{options:o,methods:a}=zt(e),n={...a,setContent(e){t.value&&null!==e&&void 0!==e&&t.value.setContent(e)}};return{options:o,methods:n}},Bo=e=>e.default?(0,a.h)("div",{ref:"root"},e.default()):null,Ho={...Wo,latLng:{type:[Object,Array],default:()=>[]}},Po=(e,t)=>{const{options:o,methods:a}=Fo(e,t);return{options:o,methods:a}},qo=((0,a.aZ)({name:"LPopup",props:Ho,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(null),s=(0,a.f3)(Tt),i=Ut($t),u=Ut(Nt),{options:d,methods:c}=Po(e,l);return(0,a.bv)((async()=>{const{popup:u}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(u(d)),void 0!==e.latLng&&l.value.setLatLng(e.latLng),kt(c,l.value,e);const p=_t(t.attrs);l.value.on(p),l.value.setContent(e.content||r.value||""),i(l.value),(0,a.Y3)((()=>t.emit("ready",l.value)))})),(0,a.Jd)((()=>{u()})),{root:r,leafletObject:l}},render(){return Bo(this.$slots)}}),{...xo,latLngs:{...xo.latLngs,required:!1},bounds:{type:Object,custom:!0}}),Mo=(e,t,o)=>{const{options:a,methods:n}=zo(e,t,o),l=ft(e,qo,a),r={...n,setBounds(e){t.value.setBounds(e)},setLatLngs(e){t.value.setBounds(e)}};return{options:l,methods:r}},Zo=((0,a.aZ)({name:"LRectangle",props:qo,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(!1),s=(0,a.f3)(Tt),i=Ut(Ot),{options:u,methods:d}=Mo(e,l,t);return(0,a.bv)((async()=>{const{rectangle:c,latLngBounds:p}=s?bt.L:await o.e(633).then(o.bind(o,6633)),m=e.bounds?p(e.bounds):p(e.latLngs||[]);l.value=(0,n.Xl)(c(m,u));const w=_t(t.attrs);l.value.on(w),kt(d,l.value,e),i({...e,...d,leafletObject:l.value}),r.value=!0,(0,a.Y3)((()=>t.emit("ready",l.value)))})),{ready:r,leafletObject:l}},render(){return Bt(this.ready,this.$slots)}}),{...ko,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:e=>"string"==typeof e||!!Array.isArray(e)&&e.every((e=>"string"==typeof e))},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}}),Ko=(e,t,o)=>{const{options:a,methods:n}=fo(e,t,o),l=ft(e,Zo,a),r={...n};return{options:l,methods:r}},Go=(0,a.aZ)({props:Zo,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(Ot),{options:i,methods:u}=Ko(e,l,t);return(0,a.bv)((async()=>{const{tileLayer:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d(e.url,i));const c=_t(t.attrs);l.value.on(c),kt(u,l.value,e),s({...e,...u,leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}}),Yo={...Wo},Xo=(e,t)=>{const{options:o,methods:n}=Fo(e,t),l=Ut(jt);return(0,a.Jd)((()=>{l()})),{options:o,methods:n}},Vo=((0,a.aZ)({name:"LTooltip",props:Yo,setup(e,t){const l=(0,n.iH)(),r=(0,n.iH)(null),s=(0,a.f3)(Tt),i=Ut(Lt),{options:u,methods:d}=Xo(e,l);return(0,a.bv)((async()=>{const{tooltip:c}=s?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(c(u)),kt(d,l.value,e);const p=_t(t.attrs);l.value.on(p),l.value.setContent(e.content||r.value||""),i(l.value),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{root:r,leafletObject:l}},render(){return Bo(this.$slots)}}),{...Zo,layers:{type:String,required:!0},styles:{type:String},format:{type:String},transparent:{type:Boolean,default:void 0},version:{type:String},crs:{type:Object},uppercase:{type:Boolean,default:void 0}}),Jo=(e,t,o)=>{const{options:a,methods:n}=Ko(e,t,o);return{options:ft(e,Vo,a),methods:{...n}}};(0,a.aZ)({props:Vo,setup(e,t){const l=(0,n.iH)(),r=(0,a.f3)(Tt),s=Ut(Ot),{options:i,methods:u}=Jo(e,l,t);return(0,a.bv)((async()=>{const{tileLayer:d}=r?bt.L:await o.e(633).then(o.bind(o,6633));l.value=(0,n.Xl)(d.wms(e.url,i));const c=_t(t.attrs);l.value.on(c),kt(u,l.value,e),s({...e,...u,leafletObject:l.value}),(0,a.Y3)((()=>t.emit("ready",l.value)))})),{leafletObject:l}},render(){return null}});var Qo=(0,a.aZ)({__name:"CustomMarker",props:{markerCoordinates:null,isStart:{type:Boolean}},setup(e){const t=e,{isStart:o,markerCoordinates:l}=(0,n.BK)(t);return(e,t)=>(0,n.SU)(l).latitude?((0,a.wg)(),(0,a.j4)((0,n.SU)(Lo),{key:0,"lat-lng":[(0,n.SU)(l).latitude,(0,n.SU)(l).longitude]},{default:(0,a.w5)((()=>[(0,a.Wm)((0,n.SU)(So),{"icon-url":`/img/workouts/${(0,n.SU)(o)?"start":"finish"}.svg`,iconSize:[15,15]},null,8,["icon-url"])])),_:1},8,["lat-lng"])):(0,a.kq)("",!0)}});const ea=Qo;var ta=ea,oa=o(5801),aa=o(9917),na=o(2024);const la=e=>((0,a.dD)("data-v-4582e1d0"),e=e(),(0,a.Cn)(),e),ra={id:"workout-map"},sa={key:0,class:"leaflet-container"},ia={key:1},ua=la((()=>(0,a._)("i",{class:"fa fa-refresh","aria-hidden":"true"},null,-1))),da={key:1,class:"no-map"};var ca=(0,a.aZ)({__name:"index",props:{workoutData:null,markerCoordinates:{default:()=>({})}},setup(e){const t=e,o=(0,aa.o)(),{workoutData:l,markerCoordinates:r}=(0,n.BK)(t),s=(0,n.iH)(null),u=(0,a.Fl)((()=>_())),d=(0,a.Fl)((()=>o.getters[oa.SY.GETTERS.APP_CONFIG])),c=(0,a.Fl)((()=>k(u))),p=(0,a.Fl)((()=>t.workoutData&&t.workoutData.gpx?y(t.workoutData.gpx):{})),m=(0,a.Fl)((()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[0].latitude,longitude:t.workoutData.chartData[0].longitude}:{})),w=(0,a.Fl)((()=>t.workoutData&&t.workoutData.chartData.length>0?{latitude:t.workoutData.chartData[t.workoutData.chartData.length-1].latitude,longitude:t.workoutData.chartData[t.workoutData.chartData.length-1].longitude}:{})),v=(0,n.iH)(!1);function y(e){if(!e||""!==e)try{const t=pt((new DOMParser).parseFromString(e,"text/xml"));return{jsonData:t}}catch(t){return console.error("Invalid gpx content"),{}}return{}}function k(e){return[(e.value[0][0]+e.value[1][0])/2,(e.value[0][1]+e.value[1][1])/2]}function f(e){s.value?.leafletObject&&s.value?.leafletObject.fitBounds(e)}function _(){return t.workoutData?[[t.workoutData.workout.bounds[0],t.workoutData.workout.bounds[1]],[t.workoutData.workout.bounds[2],t.workoutData.workout.bounds[3]]]:[]}function g(){s.value?.leafletObject.fitBounds(_())}function S(){v.value=!v.value,v.value||setTimeout((()=>{g()}),100)}return(e,t)=>{const o=(0,a.up)("VFullscreen");return(0,a.wg)(),(0,a.iD)("div",ra,[(0,n.SU)(l).loading?((0,a.wg)(),(0,a.iD)("div",sa)):((0,a.wg)(),(0,a.iD)("div",ia,[(0,n.SU)(l).workout.with_gpx?((0,a.wg)(),(0,a.j4)(o,{key:0,modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=e=>v.value=e)},{default:(0,a.w5)((()=>[(0,a._)("div",{class:(0,i.C_)(["leaflet-container",{"fullscreen-map":v.value}])},[(0,n.SU)(p).jsonData&&(0,n.SU)(c)&&2===(0,n.SU)(u).length?((0,a.wg)(),(0,a.j4)((0,n.SU)(Eo),{key:0,zoom:13,maxZoom:19,center:(0,n.SU)(c),bounds:(0,n.SU)(u),zoomAnimation:!1,ref_key:"workoutMap",ref:s,onReady:t[0]||(t[0]=e=>f((0,n.SU)(u)))},{default:(0,a.w5)((()=>[(0,a.Wm)((0,n.SU)(no)),(0,a.Wm)((0,n.SU)(Qt),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":e.$t("workouts.RESET_ZOOM"),onClick:g},{default:(0,a.w5)((()=>[ua])),_:1},8,["aria-label"]),(0,a.Wm)((0,n.SU)(Qt),{position:"topleft",class:"map-control",tabindex:"0",role:"button","aria-label":e.$t(`workouts.${v.value?"EXIT":"VIEW"}_FULLSCREEN`),onClick:S},{default:(0,a.w5)((()=>[(0,a._)("i",{class:(0,i.C_)("fa fa-"+(v.value?"compress":"arrows-alt")),"aria-hidden":"true"},null,2)])),_:1},8,["aria-label"]),(0,a.Wm)((0,n.SU)(Go),{url:`${(0,n.SU)(na.k)()}workouts/map_tile/{s}/{z}/{x}/{y}.png`,attribution:(0,n.SU)(d).map_attribution,bounds:(0,n.SU)(u)},null,8,["url","attribution","bounds"]),(0,a.Wm)((0,n.SU)(yo),{geojson:(0,n.SU)(p).jsonData},null,8,["geojson"]),(0,n.SU)(r).latitude?((0,a.wg)(),(0,a.j4)((0,n.SU)(Lo),{key:0,"lat-lng":[(0,n.SU)(r).latitude,(0,n.SU)(r).longitude]},null,8,["lat-lng"])):(0,a.kq)("",!0),(0,a.Wm)((0,n.SU)(Uo),{name:e.$t("workouts.START_AND_FINISH"),"layer-type":"overlay"},{default:(0,a.w5)((()=>[(0,n.SU)(m).latitude?((0,a.wg)(),(0,a.j4)(ta,{key:0,markerCoordinates:(0,n.SU)(m),isStart:!0},null,8,["markerCoordinates"])):(0,a.kq)("",!0),(0,n.SU)(w).latitude?((0,a.wg)(),(0,a.j4)(ta,{key:1,markerCoordinates:(0,n.SU)(w),isStart:!1},null,8,["markerCoordinates"])):(0,a.kq)("",!0)])),_:1},8,["name"])])),_:1},8,["center","bounds"])):(0,a.kq)("",!0)],2)])),_:1},8,["modelValue"])):((0,a.wg)(),(0,a.iD)("div",da,(0,i.zw)(e.$t("workouts.NO_MAP")),1))]))])}}});const pa=(0,j.Z)(ca,[["__scopeId","data-v-4582e1d0"]]);var ma=pa,wa=o(6558);const va={class:"workout-detail"};var ya=(0,a.aZ)({__name:"index",props:{authUser:null,displaySegment:{type:Boolean},sports:null,workoutData:null,markerCoordinates:{default:()=>({})}},setup(e){const t=e,o=(0,l.yj)(),r=(0,aa.o)(),{authUser:i,markerCoordinates:u,workoutData:d}=(0,n.BK)(t),c=(0,a.Fl)((()=>t.workoutData.workout)),p=(0,n.iH)(o.params.workoutId?+o.params.segmentId:null),m=(0,a.Fl)((()=>c.value.segments.length>0&&p.value?c.value.segments[+p.value-1]:null)),w=(0,n.iH)(!1),v=(0,a.Fl)((()=>t.sports?t.sports.find((e=>e.id===t.workoutData.workout.sport_id)):{})),y=(0,a.Fl)((()=>f(c.value,m.value)));function k(e,t,o){const a=t&&o&&1!==o?`/workouts/${e.id}/segment/${o-1}`:!t&&e.previous_workout?`/workouts/${e.previous_workout}`:null,n=t&&o&&o<e.segments.length?`/workouts/${e.id}/segment/${o+1}`:!t&&e.next_workout?`/workouts/${e.next_workout}`:null;return{previousUrl:a,nextUrl:n}}function f(e,o){const a=k(e,t.displaySegment,p.value?+p.value:null),n=(0,wa.Jo)((0,wa.eB)(t.workoutData.workout.workout_date,t.authUser.timezone),t.authUser.date_format);return{ascent:o?o.ascent:e.ascent,aveSpeed:o?o.ave_speed:e.ave_speed,distance:o?o.distance:e.distance,descent:o?o.descent:e.descent,duration:o?o.duration:e.duration,maxAlt:o?o.max_alt:e.max_alt,maxSpeed:o?o.max_speed:e.max_speed,minAlt:o?o.min_alt:e.min_alt,moving:o?o.moving:e.moving,nextUrl:a.nextUrl,pauses:o?o.pauses:e.pauses,previousUrl:a.previousUrl,records:o?[]:e.records,segmentId:o?o.segment_id:null,title:e.title,type:t.displaySegment?"SEGMENT":"WORKOUT",workoutDate:n.workout_date,weatherEnd:o?null:e.weather_end,weatherStart:o?null:e.weather_start,with_gpx:e.with_gpx,workoutId:e.id,workoutTime:n.workout_time}}function _(e){w.value=e}function g(){_(!1)}function S(e){_(!1),r.dispatch(oa.aX.ACTIONS.DELETE_WORKOUT,{workoutId:e})}function h(){window.scrollTo({top:0,behavior:"smooth"})}return(0,a.YP)((()=>o.params.segmentId),(async e=>{e&&(p.value=+e,h())})),(0,a.YP)((()=>o.params.workoutId),(async e=>{e&&(w.value=!1,h())})),(e,t)=>{const o=(0,a.up)("Modal"),l=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",va,[w.value?((0,a.wg)(),(0,a.j4)(o,{key:0,title:e.$t("common.CONFIRMATION"),message:e.$t("workouts.WORKOUT_DELETION_CONFIRMATION"),onConfirmAction:t[0]||(t[0]=e=>S((0,n.SU)(y).workoutId)),onCancelAction:g,onKeydown:(0,s.D2)(g,["esc"])},null,8,["title","message","onKeydown"])):(0,a.kq)("",!0),(0,a.Wm)(l,null,{title:(0,a.w5)((()=>[(0,a.Wm)(z,{sport:(0,n.SU)(v),workoutObject:(0,n.SU)(y),onDisplayModal:t[1]||(t[1]=e=>_(!0))},null,8,["sport","workoutObject"])])),content:(0,a.w5)((()=>[(0,a.Wm)(ma,{workoutData:(0,n.SU)(d),markerCoordinates:(0,n.SU)(u)},null,8,["workoutData","markerCoordinates"]),(0,a.Wm)(Me,{workoutObject:(0,n.SU)(y),useImperialUnits:(0,n.SU)(i).imperial_units,displayHARecord:(0,n.SU)(i).display_ascent},null,8,["workoutObject","useImperialUnits","displayHARecord"])])),_:1})])}}});const ka=(0,j.Z)(ya,[["__scopeId","data-v-118e2382"]]);var fa=ka,_a=o(6518);const ga=e=>{const t=document.getElementById(e);if(t){let e=t.querySelector("ul");return e||(e=document.createElement("ul"),t.appendChild(e)),e}throw new Error("No legend container")},Sa={id:"htmlLegend",afterUpdate(e,t,o){const a=ga(o.containerID);while(a.firstChild)a.firstChild.remove();const n=e.options.plugins?.legend?.labels?.generateLabels?e.options.plugins?.legend?.labels?.generateLabels(e):[];n.forEach((t=>{if(!e.config.options?.scales?.yElevation?.display&&1===t.datasetIndex)return;const o=document.createElement("li");o.onclick=()=>{void 0!==t.datasetIndex&&(e.setDatasetVisibility(t.datasetIndex,!e.isDatasetVisible(t.datasetIndex)),e.update())};const n=document.createElement("input");n&&(n.type="checkbox",n.id=t.text,n.checked=!t.hidden);const l=document.createTextNode(t.text),r=document.createElement("span");r&&(r.style.background=String(t.fillStyle),r.style.borderColor=String(t.strokeStyle)),o.appendChild(n),o.appendChild(l),o.appendChild(r),a.appendChild(o)}))}};var ha=o(3768);const ba=e=>((0,a.dD)("data-v-68415552"),e=e(),(0,a.Cn)(),e),Ua={id:"workout-chart"},Ta={class:"chart-radio"},Oa=["checked"],Ea=["checked"],Da=ba((()=>(0,a._)("div",{id:"chart-legend"},null,-1))),Ia={class:"chart-info"},Aa={class:"no-data-cleaning"},Ca={key:0,class:"elevation-start"},Ra=["checked"];var $a=(0,a.aZ)({__name:"index",props:{authUser:null,workoutData:null},emits:["getCoordinates"],setup(e,{emit:t}){const o=e,{t:l}=(0,Z.QT)(),{authUser:r,workoutData:s}=(0,n.BK)(o),u=(0,n.iH)(!0),d=(0,n.iH)(r.value.start_elevation_at_zero),c=(0,a.Fl)((()=>(0,ha.EX)(s.value.chartData,l,r.value.imperial_units))),p=(0,a.Fl)((()=>c.value&&c.value.datasets.elevation.data.length>0)),m=b("km"),w=b("m"),v=(0,a.Fl)((()=>({labels:u.value?c.value.distance_labels:c.value.duration_labels,datasets:JSON.parse(JSON.stringify([c.value.datasets.speed,c.value.datasets.elevation]))}))),y=(0,a.Fl)((()=>c.value.coordinates)),k=(0,a.Fl)((()=>({responsive:!0,maintainAspectRatio:!0,animation:!1,layout:{padding:{top:22}},scales:{x:{grid:{drawOnChartArea:!1},ticks:{count:10,callback:function(e){return u.value?Number(e).toFixed(2):g(e)}},type:"linear",bounds:"data",title:{display:!0,text:u.value?l("workouts.DISTANCE")+` (${m})`:l("workouts.DURATION")}},ySpeed:{grid:{drawOnChartArea:!1},position:"left",title:{display:!0,text:l("workouts.SPEED")+` (${m}/h)`}},yElevation:{beginAtZero:d.value,display:p.value,grid:{drawOnChartArea:!1},position:"right",title:{display:!0,text:l("workouts.ELEVATION")+` (${w})`}}},elements:{point:{pointStyle:"circle",pointRadius:0}},plugins:{datalabels:{display:!1},tooltip:{interaction:{intersect:!1,mode:"index"},callbacks:{label:function(e){const t=` ${e.dataset.label}: ${e.formattedValue}`;return"yElevation"===e.dataset.yAxisID?t+` ${w}`:t+` ${m}/h`},title:function(e){return e.length>0&&S(y.value[e[0].dataIndex]),0===e.length?"":u.value?`${l("workouts.DISTANCE")}: ${e[0].label} ${m}`:`${l("workouts.DURATION")}: ${g(e[0].label.replace(",",""))}`}}},legend:{display:!1},htmlLegend:{containerID:"chart-legend",displayElevation:p.value}}}))),{lineChartProps:f}=(0,_a.tn)({chartData:v,options:k,plugins:[Sa]});function _(){u.value=!u.value}function g(e){return new Date(1e3*+e).toISOString().substr(11,8)}function S(e){t("getCoordinates",e)}function h(){S({latitude:null,longitude:null})}function b(e){return o.authUser.imperial_units?K.Dl[e].defaultTarget:e}return(e,t)=>{const o=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Ua,[(0,a.Wm)(o,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(e.$t("workouts.ANALYSIS")),1)])),content:(0,a.w5)((()=>[(0,a._)("div",Ta,[(0,a._)("label",null,[(0,a._)("input",{type:"radio",name:"distance",checked:u.value,onClick:_},null,8,Oa),(0,a.Uk)(" "+(0,i.zw)(e.$t("workouts.DISTANCE")),1)]),(0,a._)("label",null,[(0,a._)("input",{type:"radio",name:"duration",checked:!u.value,onClick:_},null,8,Ea),(0,a.Uk)(" "+(0,i.zw)(e.$t("workouts.DURATION")),1)])]),Da,(0,a.Wm)((0,n.SU)(_a.wW),(0,a.dG)((0,n.SU)(f),{class:"line-chart",onMouseleave:h}),null,16),(0,a._)("div",Ia,[(0,a._)("div",Aa,(0,i.zw)(e.$t("workouts.NO_DATA_CLEANING")),1),(0,n.SU)(p)?((0,a.wg)(),(0,a.iD)("div",Ca,[(0,a._)("label",null,[(0,a._)("input",{type:"checkbox",checked:d.value,onClick:t[0]||(t[0]=e=>d.value=!d.value)},null,8,Ra),(0,a.Uk)(" "+(0,i.zw)(e.$t("workouts.START_ELEVATION_AT_ZERO")),1)])])):(0,a.kq)("",!0)])])),_:1})])}}});const La=(0,j.Z)($a,[["__scopeId","data-v-68415552"]]);var Na=La,ja=o(2335);const xa={id:"workout-note"},za=["innerHTML"];var Wa=(0,a.aZ)({__name:"WorkoutNotes",props:{notes:{default:()=>null}},setup(e){const t=e,{notes:o}=(0,n.BK)(t);return(e,t)=>{const l=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",xa,[(0,a.Wm)(l,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(e.$t("workouts.NOTES")),1)])),content:(0,a.w5)((()=>[(0,a._)("span",{innerHTML:(0,n.SU)(o)&&""!==(0,n.SU)(o)?(0,n.SU)(ja.O)((0,n.SU)(o)):e.$t("workouts.NO_NOTES")},null,8,za)])),_:1})])}}});const Fa=(0,j.Z)(Wa,[["__scopeId","data-v-f6b59442"]]);var Ba=Fa;const Ha={id:"workout-segments"};var Pa=(0,a.aZ)({__name:"WorkoutSegments",props:{segments:null,useImperialUnits:{type:Boolean}},setup(e){const t=e,{segments:o,useImperialUnits:l}=(0,n.BK)(t);return(e,t)=>{const r=(0,a.up)("router-link"),s=(0,a.up)("Distance"),u=(0,a.up)("Card");return(0,a.wg)(),(0,a.iD)("div",Ha,[(0,a.Wm)(u,null,{title:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(e.$t("workouts.SEGMENT",2)),1)])),content:(0,a.w5)((()=>[(0,a._)("ul",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(o),((t,o)=>((0,a.wg)(),(0,a.iD)("li",{key:t.segment_id},[(0,a.Wm)(r,{to:{name:"WorkoutSegment",params:{workoutId:t.workout_id,segmentId:o+1}}},{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(e.$t("workouts.SEGMENT",1))+" "+(0,i.zw)(o+1),1)])),_:2},1032,["to"]),(0,a.Uk)(" ("+(0,i.zw)(e.$t("workouts.DISTANCE"))+": ",1),(0,a.Wm)(s,{distance:t.distance,unitFrom:"km",useImperialUnits:(0,n.SU)(l)},null,8,["distance","useImperialUnits"]),(0,a.Uk)(", "+(0,i.zw)(e.$t("workouts.DURATION"))+": "+(0,i.zw)(t.duration)+") ",1)])))),128))])])),_:1})])}}});const qa=(0,j.Z)(Pa,[["__scopeId","data-v-6b8a27cd"]]);var Ma=qa;const Za=e=>((0,a.dD)("data-v-53c4e53a"),e=e(),(0,a.Cn)(),e),Ka={id:"workout",class:"view"},Ga={class:"container"},Ya={key:0,class:"workout-container"},Xa={key:0},Va=Za((()=>(0,a._)("div",{id:"bottom"},null,-1))),Ja={key:1};var Qa=(0,a.aZ)({__name:"Workout",props:{displaySegment:{type:Boolean}},setup(e){const t=e,o=(0,l.yj)(),s=(0,aa.o)(),{displaySegment:i}=(0,n.BK)(t),u=(0,a.Fl)((()=>s.getters[oa.aX.GETTERS.WORKOUT_DATA])),d=(0,a.Fl)((()=>s.getters[oa.YN.GETTERS.AUTH_USER_PROFILE])),c=(0,a.Fl)((()=>s.getters[oa.O8.GETTERS.SPORTS])),p=(0,n.iH)({latitude:null,longitude:null});function m(e){p.value={latitude:e.latitude,longitude:e.longitude}}return(0,a.wF)((()=>{const e={workoutId:o.params.workoutId};t.displaySegment&&(e.segmentId=o.params.segmentId),s.dispatch(oa.aX.ACTIONS.GET_WORKOUT_DATA,e)})),(0,a.Ah)((()=>{s.commit(oa.aX.MUTATIONS.EMPTY_WORKOUT)})),(0,a.YP)((()=>o.params.workoutId),(async e=>{e&&s.dispatch(oa.aX.ACTIONS.GET_WORKOUT_DATA,{workoutId:e})})),(0,a.YP)((()=>o.params.segmentId),(async e=>{if(o.params.workoutId){const t={workoutId:o.params.workoutId};e&&(t.segmentId=e),s.dispatch(oa.aX.ACTIONS.GET_WORKOUT_DATA,t)}})),(e,t)=>((0,a.wg)(),(0,a.iD)("div",Ka,[(0,a._)("div",Ga,[(0,n.SU)(c).length>0?((0,a.wg)(),(0,a.iD)("div",Ya,[(0,n.SU)(u).workout.id?((0,a.wg)(),(0,a.iD)("div",Xa,[(0,a.Wm)(fa,{workoutData:(0,n.SU)(u),sports:(0,n.SU)(c),authUser:(0,n.SU)(d),markerCoordinates:p.value,displaySegment:(0,n.SU)(i)},null,8,["workoutData","sports","authUser","markerCoordinates","displaySegment"]),(0,n.SU)(u).workout.with_gpx&&(0,n.SU)(u).chartData.length>0?((0,a.wg)(),(0,a.j4)(Na,{key:0,workoutData:(0,n.SU)(u),authUser:(0,n.SU)(d),displaySegment:(0,n.SU)(i),onGetCoordinates:m},null,8,["workoutData","authUser","displaySegment"])):(0,a.kq)("",!0),!(0,n.SU)(i)&&(0,n.SU)(u).workout.segments.length>1?((0,a.wg)(),(0,a.j4)(Ma,{key:1,segments:(0,n.SU)(u).workout.segments,useImperialUnits:(0,n.SU)(d).imperial_units},null,8,["segments","useImperialUnits"])):(0,a.kq)("",!0),(0,n.SU)(i)?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(Ba,{key:2,notes:(0,n.SU)(u).workout.notes},null,8,["notes"])),Va])):((0,a.wg)(),(0,a.iD)("div",Ja,[(0,n.SU)(u).loading?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(r.Z,{key:0,target:"WORKOUT"}))]))])):(0,a.kq)("",!0)])]))}});const en=(0,j.Z)(Qa,[["__scopeId","data-v-53c4e53a"]]);var tn=en},4923:function(e,t,o){o.r(t),o.d(t,{default:function(){return Ze}});var a=o(6252),n=o(2262),l=o(3577),r=o(2429),s=(o(7658),o(9963)),i=o(2201),u=o(631),d=o(3649);const c=e=>((0,a.dD)("data-v-28429a13"),e=e(),(0,a.Cn)(),e),p={class:"workouts-filters"},m={class:"box"},w=["onSubmit"],v={class:"form-all-items"},y={class:"form-items-group"},k={class:"form-item"},f=["value"],_={class:"form-item"},g=["value"],S={class:"form-items-group"},h={class:"form-item"},b=["value","onKeyup"],U=c((()=>(0,a._)("option",{value:""},null,-1))),T=["value"],O={class:"form-item form-item-title"},E={class:"form-inputs-group"},D=["value","onKeyup"],I={class:"form-items-group"},A={class:"form-item"},C={class:"form-inputs-group"},R=["value","onKeyup"],$=["value","onKeyup"],L={class:"form-items-group"},N={class:"form-item"},j={class:"form-inputs-group"},x=["value","onKeyup"],z=["value","onKeyup"],W={class:"form-items-group"},F={class:"form-item"},B={class:"form-inputs-group"},H=["value","onKeyup"],P=["value","onKeyup"],q={class:"form-items-group"},M={class:"form-item"},Z={class:"form-inputs-group"},K=["value","onKeyup"],G=["value","onKeyup"],Y={class:"form-button"};var X=(0,a.aZ)({__name:"WorkoutsFilters",props:{authUser:null,sports:null},emits:["filter"],setup(e,{emit:t}){const o=e,{t:c}=(0,r.QT)(),X=(0,i.yj)(),V=(0,i.tv)(),{authUser:J}=(0,n.BK)(o),Q=J.value.imperial_units?d.Dl.km.defaultTarget:"km",ee=(0,a.Fl)((()=>(0,u.xH)(o.sports,c)));let te=Object.assign({},X.query);function oe(e){""===e.target.value?delete te[e.target.name]:te[e.target.name]=e.target.value}function ae(){t("filter"),"page"in te&&(te["page"]="1"),V.push({path:"/workouts",query:te})}function ne(){t("filter"),V.push({path:"/workouts",query:{}})}return(0,a.bv)((()=>{const e=document.getElementById("from");e&&e.focus()})),(0,a.YP)((()=>X.query),(e=>{te=Object.assign({},e)})),(e,t)=>((0,a.wg)(),(0,a.iD)("div",p,[(0,a._)("div",m,[(0,a._)("form",{onSubmit:(0,s.iM)(ae,["prevent"]),class:"form"},[(0,a._)("div",v,[(0,a._)("div",y,[(0,a._)("div",k,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.FROM"))+": ",1),(0,a._)("input",{id:"from",name:"from",type:"date",value:e.$route.query.from,onChange:oe},null,40,f)]),(0,a._)("div",_,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.TO"))+": ",1),(0,a._)("input",{name:"to",type:"date",value:e.$route.query.to,onChange:oe},null,40,g)])]),(0,a._)("div",S,[(0,a._)("div",h,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.SPORT",1))+":",1),(0,a._)("select",{name:"sport_id",value:e.$route.query.sport_id,onChange:oe,onKeyup:(0,s.D2)(ae,["enter"])},[U,((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(ee).filter((e=>(0,n.SU)(J).sports_list.includes(e.id))),(e=>((0,a.wg)(),(0,a.iD)("option",{value:e.id,key:e.id},(0,l.zw)(e.translatedLabel),9,T)))),128))],40,b)]),(0,a._)("div",O,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.TITLE",1))+":",1),(0,a._)("div",E,[(0,a._)("input",{class:"title",name:"title",value:e.$route.query.title,onChange:oe,placeholder:"",type:"text",onKeyup:(0,s.D2)(ae,["enter"])},null,40,D)])])]),(0,a._)("div",I,[(0,a._)("div",A,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.DISTANCE"))+" ("+(0,l.zw)((0,n.SU)(Q))+"): ",1),(0,a._)("div",C,[(0,a._)("input",{name:"distance_from",type:"number",min:"0",step:"0.1",value:e.$route.query.distance_from,onChange:oe,onKeyup:(0,s.D2)(ae,["enter"])},null,40,R),(0,a._)("span",null,(0,l.zw)(e.$t("workouts.TO")),1),(0,a._)("input",{name:"distance_to",type:"number",min:"0",step:"0.1",value:e.$route.query.distance_to,onChange:oe,onKeyup:(0,s.D2)(ae,["enter"])},null,40,$)])])]),(0,a._)("div",L,[(0,a._)("div",N,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.DURATION"))+": ",1),(0,a._)("div",j,[(0,a._)("input",{name:"duration_from",value:e.$route.query.duration_from,onChange:oe,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:(0,s.D2)(ae,["enter"])},null,40,x),(0,a._)("span",null,(0,l.zw)(e.$t("workouts.TO")),1),(0,a._)("input",{name:"duration_to",value:e.$route.query.duration_to,onChange:oe,pattern:"^([0-9]*[0-9]):([0-5][0-9])$",placeholder:"hh:mm",type:"text",onKeyup:(0,s.D2)(ae,["enter"])},null,40,z)])])]),(0,a._)("div",W,[(0,a._)("div",F,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.AVE_SPEED"))+" ("+(0,l.zw)((0,n.SU)(Q))+"/h): ",1),(0,a._)("div",B,[(0,a._)("input",{min:"0",name:"ave_speed_from",value:e.$route.query.ave_speed_from,onChange:oe,step:"0.1",type:"number",onKeyup:(0,s.D2)(ae,["enter"])},null,40,H),(0,a._)("span",null,(0,l.zw)(e.$t("workouts.TO")),1),(0,a._)("input",{min:"0",name:"ave_speed_to",value:e.$route.query.ave_speed_to,onChange:oe,step:"0.1",type:"number",onKeyup:(0,s.D2)(ae,["enter"])},null,40,P)])])]),(0,a._)("div",q,[(0,a._)("div",M,[(0,a._)("label",null,(0,l.zw)(e.$t("workouts.MAX_SPEED"))+" ("+(0,l.zw)((0,n.SU)(Q))+"/h): ",1),(0,a._)("div",Z,[(0,a._)("input",{min:"0",name:"max_speed_from",value:e.$route.query.max_speed_from,onChange:oe,step:"0.1",type:"number",onKeyup:(0,s.D2)(ae,["enter"])},null,40,K),(0,a._)("span",null,(0,l.zw)(e.$t("workouts.TO")),1),(0,a._)("input",{min:"0",name:"max_speed_to",value:e.$route.query.max_speed_to,onChange:oe,step:"0.1",type:"number",onKeyup:(0,s.D2)(ae,["enter"])},null,40,G)])])])]),(0,a._)("div",Y,[(0,a._)("button",{type:"submit",class:"confirm",onClick:ae},(0,l.zw)(e.$t("buttons.FILTER")),1),(0,a._)("button",{class:"confirm",onClick:ne},(0,l.zw)(e.$t("buttons.CLEAR_FILTER")),1)])],40,w)])]))}}),V=o(3744);const J=(0,V.Z)(X,[["__scopeId","data-v-28429a13"]]);var Q=J,ee=o(8626),te=o(115),oe=o(2056),ae=o(5630),ne=o(5801),le=o(9917),re=o(2766),se=o(6558),ie=o(3768);const ue=e=>((0,a.dD)("data-v-5b391214"),e=e(),(0,a.Cn)(),e),de={class:"workouts-list"},ce={class:"total"},pe={class:"total-label"},me={key:0},we={key:0,class:"workouts-table responsive-table"},ve=ue((()=>(0,a._)("th",{class:"sport-col"},null,-1))),ye={class:"sport-col"},ke={class:"cell-heading"},fe=["onMouseover"],_e={class:"cell-heading"},ge={key:0,class:"fa fa-map-o","aria-hidden":"true"},Se={class:"title"},he={class:"workout-date"},be={class:"cell-heading"},Ue={class:"text-right"},Te={class:"cell-heading"},Oe={class:"text-right"},Ee={class:"cell-heading"},De={class:"text-right"},Ie={class:"cell-heading"},Ae={class:"text-right"},Ce={class:"cell-heading"},Re={class:"text-right"},$e={class:"cell-heading"},Le={class:"text-right"},Ne={class:"cell-heading"},je=ue((()=>(0,a._)("div",{id:"bottom"},null,-1)));var xe=(0,a.aZ)({__name:"WorkoutsList",props:{user:null,sports:null},setup(e){const t=e,o=(0,le.o)(),r=(0,i.yj)(),s=(0,i.tv)(),{user:c,sports:p}=(0,n.BK)(t),m=["ave_speed","distance","duration","workout_date"],w=(0,a.Fl)((()=>o.getters[ne.aX.GETTERS.USER_WORKOUTS])),v=(0,a.Fl)((()=>o.getters[ne.aX.GETTERS.WORKOUTS_PAGINATION])),y=(0,a.Fl)((()=>o.getters[ne.SY.GETTERS.LANGUAGE]));let k=S(r.query);const f=(0,n.iH)(null);function _(e){o.dispatch(ne.aX.ACTIONS.GET_USER_WORKOUTS,c.value.imperial_units?h(e):e)}function g(e,t){const o=Object.assign({},r.query);o[e]=t,"per_page"===e&&(o["page"]="1"),k=S(o),s.push({path:"/workouts",query:k})}function S(e){const t=(0,re.pm)(e,m,ie.eR.order_by,{defaultSort:ie.eR.order});return Object.keys(e).filter((e=>re.Ne.includes(e))).map((o=>{"string"===typeof e[o]&&(t[o]=e[o])})),t}function h(e){const t={...e};return Object.entries(t).map((e=>{e[0].match("speed|distance")&&e[1]&&(t[e[0]]=(0,d.sC)(+e[1],"mi","km"))})),t}function b(e){f.value=e}return(0,a.wF)((()=>{_(k)})),(0,a.YP)((()=>r.query),(async e=>{k=S(e),_(k)})),(e,t)=>{const o=(0,a.up)("SportImage"),r=(0,a.up)("router-link"),s=(0,a.up)("Distance");return(0,a.wg)(),(0,a.iD)("div",de,[(0,a._)("div",{class:(0,l.C_)(["box",{"empty-table":0===(0,n.SU)(w).length}])},[(0,a._)("div",ce,[(0,a._)("span",pe,(0,l.zw)(e.$t("common.TOTAL").toLowerCase())+": ",1),null!==(0,n.SU)(v).total?((0,a.wg)(),(0,a.iD)("span",me,(0,l.zw)((0,n.SU)(v).total)+" "+(0,l.zw)(e.$t("workouts.WORKOUT",(0,n.SU)(v).total)),1)):(0,a.kq)("",!0)]),(0,a.Wm)(ee.Z,{sort:(0,n.SU)(re.fS),order_by:m,query:(0,n.SU)(k),message:"workouts",onUpdateSelect:g},null,8,["sort","query"]),(0,n.SU)(w).length>0?((0,a.wg)(),(0,a.iD)("div",we,[(0,a.Wm)(te.Z,{class:"top-pagination",pagination:(0,n.SU)(v),path:"/workouts",query:(0,n.SU)(k)},null,8,["pagination","query"]),(0,a._)("table",null,[(0,a._)("thead",{class:(0,l.C_)({smaller:"de"===(0,n.SU)(y)})},[(0,a._)("tr",null,[ve,(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.WORKOUT",1))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.DATE"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.DISTANCE"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.DURATION"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.AVE_SPEED"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.MAX_SPEED"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.ASCENT"))),1),(0,a._)("th",null,(0,l.zw)((0,l.kC)(e.$t("workouts.DESCENT"))),1)])],2),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(w),(i=>((0,a.wg)(),(0,a.iD)("tr",{key:i.id},[(0,a._)("td",ye,[(0,a._)("span",ke,(0,l.zw)(e.$t("workouts.SPORT",1)),1),(0,n.SU)(p).length>0?((0,a.wg)(),(0,a.j4)(o,{key:0,title:(0,n.SU)(p).find((e=>e.id===i.sport_id)).translatedLabel,"sport-label":(0,n.SU)(u.PA)(i,(0,n.SU)(p)),color:(0,n.SU)(u.CM)(i,(0,n.SU)(p))},null,8,["title","sport-label","color"])):(0,a.kq)("",!0)]),(0,a._)("td",{class:"workout-title",onMouseover:e=>b(i.id),onMouseleave:t[0]||(t[0]=e=>b(null))},[(0,a._)("span",_e,(0,l.zw)((0,l.kC)(e.$t("workouts.WORKOUT",1))),1),(0,a.Wm)(r,{class:"nav-item",to:{name:"Workout",params:{workoutId:i.id}}},{default:(0,a.w5)((()=>[i.with_gpx?((0,a.wg)(),(0,a.iD)("i",ge)):(0,a.kq)("",!0),(0,a._)("span",Se,(0,l.zw)(i.title),1)])),_:2},1032,["to"]),i.with_gpx&&f.value===i.id?((0,a.wg)(),(0,a.j4)(oe.Z,{key:0,workout:i,"display-hover":!0},null,8,["workout"])):(0,a.kq)("",!0)],40,fe),(0,a._)("td",he,[(0,a._)("span",be,(0,l.zw)(e.$t("workouts.DATE")),1),(0,a._)("time",null,(0,l.zw)((0,n.SU)(se.p6)(i.workout_date,(0,n.SU)(c).timezone,(0,n.SU)(c).date_format)),1)]),(0,a._)("td",Ue,[(0,a._)("span",Te,(0,l.zw)(e.$t("workouts.DISTANCE")),1),null!==i.distance?((0,a.wg)(),(0,a.j4)(s,{key:0,distance:i.distance,unitFrom:"km",useImperialUnits:(0,n.SU)(c).imperial_units},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)]),(0,a._)("td",Oe,[(0,a._)("span",Ee,(0,l.zw)(e.$t("workouts.DURATION")),1),(0,a.Uk)(" "+(0,l.zw)(i.moving),1)]),(0,a._)("td",De,[(0,a._)("span",Ie,(0,l.zw)(e.$t("workouts.AVE_SPEED")),1),null!==i.ave_speed?((0,a.wg)(),(0,a.j4)(s,{key:0,distance:i.ave_speed,unitFrom:"km",speed:!0,useImperialUnits:(0,n.SU)(c).imperial_units},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)]),(0,a._)("td",Ae,[(0,a._)("span",Ce,(0,l.zw)(e.$t("workouts.MAX_SPEED")),1),null!==i.max_speed?((0,a.wg)(),(0,a.j4)(s,{key:0,distance:i.max_speed,unitFrom:"km",speed:!0,useImperialUnits:(0,n.SU)(c).imperial_units},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)]),(0,a._)("td",Re,[(0,a._)("span",$e,(0,l.zw)(e.$t("workouts.ASCENT")),1),null!==i.ascent?((0,a.wg)(),(0,a.j4)(s,{key:0,distance:i.ascent,unitFrom:"m",useImperialUnits:(0,n.SU)(c).imperial_units},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)]),(0,a._)("td",Le,[(0,a._)("span",Ne,(0,l.zw)(e.$t("workouts.DESCENT")),1),null!==i.descent?((0,a.wg)(),(0,a.j4)(s,{key:0,distance:i.descent,unitFrom:"m",useImperialUnits:(0,n.SU)(c).imperial_units},null,8,["distance","useImperialUnits"])):(0,a.kq)("",!0)])])))),128))])]),(0,a.Wm)(te.Z,{pagination:(0,n.SU)(v),path:"/workouts",query:(0,n.SU)(k)},null,8,["pagination","query"])])):(0,a.kq)("",!0)],2),0===(0,n.SU)(w).length?((0,a.wg)(),(0,a.j4)(ae.Z,{key:0})):(0,a.kq)("",!0),je])}}});const ze=(0,V.Z)(xe,[["__scopeId","data-v-5b391214"]]);var We=ze;const Fe={key:0,id:"workouts",class:"view"},Be={class:"container workouts-container"},He={class:"display-filters"},Pe={class:"list-container"};var qe=(0,a.aZ)({__name:"WorkoutsView",setup(e){const{t:t}=(0,r.QT)(),o=(0,le.o)(),s=(0,a.Fl)((()=>o.getters[ne.YN.GETTERS.AUTH_USER_PROFILE])),i=(0,a.Fl)((()=>o.getters[ne.O8.GETTERS.SPORTS])),d=(0,a.Fl)((()=>(0,u.xH)(i.value,t))),c=(0,n.iH)(!0);function p(){c.value=!c.value}return(e,t)=>(0,n.SU)(s).username?((0,a.wg)(),(0,a.iD)("div",Fe,[(0,a._)("div",Be,[(0,a._)("div",{class:(0,l.C_)(["filters-container",{hidden:c.value}])},[(0,a.Wm)(Q,{sports:(0,n.SU)(d),authUser:(0,n.SU)(s),onFilter:p},null,8,["sports","authUser"])],2),(0,a._)("div",He,[(0,a._)("div",{onClick:p},[(0,a._)("i",{class:(0,l.C_)("fa fa-caret-"+(c.value?"down":"up")),"aria-hidden":"true"},null,2),(0,a._)("span",null,(0,l.zw)(e.$t(`workouts.${c.value?"DISPLAY":"HIDE"}_FILTERS`)),1)])]),(0,a._)("div",Pe,[(0,a.Wm)(We,{user:(0,n.SU)(s),sports:(0,n.SU)(d)},null,8,["user","sports"])])])])):(0,a.kq)("",!0)}});const Me=(0,V.Z)(qe,[["__scopeId","data-v-57ec0168"]]);var Ze=Me}}]);
//# sourceMappingURL=workouts.e1bdbbfa.js.map