FitTrackee/fittrackee/dist/static/js/workouts.1c22fd12.js

2 lines
84 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"),c=(n("b0c0"),n("4de4"),n("d3b7"),n("caad"),n("2532"),n("6c02")),a=n("1119"),l=function(e){return Object(o["pushScopeId"])("data-v-a842653a"),e=e(),Object(o["popScopeId"])(),e},u={class:"workouts-filters"},i={class:"box"},s={class:"form"},d={class:"form-items-group"},b={class:"form-item"},O=["value"],p={class:"form-item"},m=["value"],j={class:"form-items-group"},f={class:"form-item"},g=["value"],k=l((function(){return Object(o["createElementVNode"])("option",{value:""},null,-1)})),y=["value"],v={class:"form-items-group"},E={class:"form-item"},h={class:"form-inputs-group"},w=["value"],N=["value"],S={class:"form-items-group"},V={class:"form-item"},T={class:"form-inputs-group"},D=["value"],_=["value"],x={class:"form-items-group"},A={class:"form-item"},C={class:"form-inputs-group"},B=["value"],R=["value"],I={class:"form-items-group"},L={class:"form-item"},U={class:"form-inputs-group"},$=["value"],M=["value"],P={class:"form-button"},G=Object(o["defineComponent"])({props:{authUser:null,sports:null},emits:["filter"],setup:function(e,t){var n=t.emit,l=e,G=Object(r["b"])(),F=G.t,W=Object(c["c"])(),z=Object(c["d"])(),H=Object(o["toRefs"])(l),q=H.authUser,K=Object(o["computed"])((function(){return Object(a["d"])(l.sports,F)})),Z=Object.assign({},W.query);function X(e){""===e.target.value?delete Z[e.target.name]:Z[e.target.name]=e.target.value}function J(){n("filter"),"page"in Z&&(Z["page"]="1"),z.push({path:"/workouts",query:Z})}function Y(){n("filter"),z.push({path:"/workouts",query:{}})}return Object(o["watch"])((function(){return W.query}),(function(e){Z=Object.assign({},e)})),function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",u,[Object(o["createElementVNode"])("div",i,[Object(o["createElementVNode"])("div",s,[Object(o["createElementVNode"])("div",d,[Object(o["createElementVNode"])("div",b,[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:X},null,40,O)]),Object(o["createElementVNode"])("div",p,[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:X},null,40,m)])]),Object(o["createElementVNode"])("div",j,[Object(o["createElementVNode"])("div",f,[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:X},[k,(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(K).filter((function(e){return Object(o["unref"])(q).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",v,[Object(o["createElementVNode"])("div",E,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.DISTANCE"))+" (km): ",1),Object(o["createElementVNode"])("div",h,[Object(o["createElementVNode"])("input",{name:"distance_from",type:"number",min:"0",step:"0.1",value:e.$route.query.distance_from,onChange:X},null,40,w),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:X},null,40,N)])])]),Object(o["createElementVNode"])("div",S,[Object(o["createElementVNode"])("div",V,[Object(o["createElementVNode"])("label",null,Object(o["toDisplayString"])(e.$t("workouts.DURATION"))+" (km): ",1),Object(o["createElementVNode"])("div",T,[Object(o["createElementVNode"])("input",{name:"duration_from",value:e.$
//# sourceMappingURL=workouts.1c22fd12.js.map