FitTrackee/fittrackee/dist/static/js/workouts.becfe714.js

2 lines
118 KiB
JavaScript
Raw Normal View History

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["workouts"],{"0385":function(e,t,n){"use strict";n.r(t);var o=n("7a23"),r=n("47e2"),a=(n("b0c0"),n("4de4"),n("d3b7"),n("caad"),n("2532"),n("6c02")),c=n("1119"),l=n("6284"),i=function(e){return Object(o["pushScopeId"])("data-v-fe8ba900"),e=e(),Object(o["popScopeId"])(),e},u={class:"workouts-filters"},s={class:"box"},d={class:"form"},b={class:"form-items-group"},p={class:"form-item"},f=["value"],m={class:"form-item"},O=["value"],j={class:"form-items-group"},h={class:"form-item"},g=["value"],v=i((function(){return Object(o["createElementVNode"])("option",{value:""},null,-1)})),y=["value"],k={class:"form-items-group"},w={class:"form-item"},E={class:"form-inputs-group"},N=["value"],S=["value"],V={class:"form-items-group"},T={class:"form-item"},D={class:"form-inputs-group"},_=["value"],I=["value"],C={class:"form-items-group"},x={class:"form-item"},B={class:"form-inputs-group"},R=["value"],A=["value"],U={class:"form-items-group"},L={class:"form-item"},P={class:"form-inputs-group"},$=["value"],M=["value"],F={class:"form-button"},H=Object(o["defineComponent"])({props:{authUser:null,sports:null},emits:["filter"],setup:function(e,t){var n=t.emit,i=e,H=Object(r["b"])(),z=H.t,G=Object(a["c"])(),W=Object(a["d"])(),q=Object(o["toRefs"])(i),K=q.authUser,Z=K.value.imperial_units?l["c"]["km"].defaultTarget:"km",X=Object(o["computed"])((function(){return Object(c["e"])(i.sports,z)})),J=Object.assign({},G.query);function Y(e){""===e.target.value?delete J[e.target.name]:J[e.target.name]=e.target.value}function Q(){n("filter"),"page"in J&&(J["page"]="1"),W.push({path:"/workouts",query:J})}function ee(){n("filter"),W.push({path:"/workouts",query:{}})}return Object(o["watch"])((function(){return G.query}),(function(e){J=Object.assign({},e)})),function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",u,[Object(o["createElementVNode"])("div",s,[Object(o["createElementVNode"])("div",d,[Object(o["createElementVNode"])("div",b,[Object(o["createElementVNode"])("div",p,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.FROM"))+": ",1),Object(o["createElementVNode"])("input",{name:"from",type:"date",value:e.$route.query.from,onChange:Y},null,40,f)]),Object(o["createElementVNode"])("div",m,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.TO"))+": ",1),Object(o["createElementVNode"])("input",{name:"to",type:"date",value:e.$route.query.to,onChange:Y},null,40,O)])]),Object(o["createElementVNode"])("div",j,[Object(o["createElementVNode"])("div",h,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.SPORT",1))+":",1),Object(o["createElementVNode"])("select",{name:"sport_id",value:e.$route.query.sport_id,onChange:Y},[v,(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(X).filter((function(e){return Object(o["unref"])(K).sports_list.includes(e.id)})),(function(e){return Object(o["openBlock"])(),Object(o["createElementBlock"])("option",{value:e.id,key:e.id},Object(o["toDisplayString"])(e.translatedLabel),9,y)})),128))],40,g)])]),Object(o["createElementVNode"])("div",k,[Object(o["createElementVNode"])("div",w,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.DISTANCE"))+" ("+Object(o["toDisplayString"])(Object(o["unref"])(Z))+"): ",1),Object(o["createElementVNode"])("div",E,[Object(o["createElementVNode"])("input",{name:"distance_from",type:"number",min:"0",step:"0.1",value:e.$route.query.distance_from,onChange:Y},null,40,N),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(e.$t("workouts.TO")),1),Object(o["createElementVNode"])("input",{name:"distance_to",type:"number",min:"0",step:"0.1",value:e.$route.query.distance_to,onChange:Y},null,40,S)])])]),Object(o["createElementVNode"])("div",V,[Object(o["createElementVNode"])("div",T,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.DURATION"))+"
//# sourceMappingURL=workouts.becfe714.js.map