1import{_ as f,o as n,c as l,b as e,e as a,v as d,t as c,f as b,d as p,a as m}from"./BJ3vpphz.js";const g={data(){return{carbs:null,duration:null,carbsPerHour:null,errorMessage:null}},methods:{calculateCarbsPerHour(){if(this.isNullOrZero(this.carbs)||this.isNullOrZero(this.duration)){this.errorMessage="Please fill in Total Carbs Consumed and Duration of Activity.";return}this.errorMessage=null,this.carbsPerHour=this.carbs/this.duration*60},isNullOrZero(t){return t==null||t===0}}},C={id:"app"},P={key:0,style:{color:"#f94d3f","margin-top":"1rem"}},_={key:1};function H(t,r,u,N,o,i){return n(),l("div",C,[r[6]||(r[6]=e("h1",null,"Carbs Per Hour Calculator",-1)),r[7]||(r[7]=e("p",null," Knowing your carbohydrate intake rate is useful for developing personalized nutrition strategies, contributing to optimal performance, and preventing energy depletion. ",-1)),e("div",null,[r[3]||(r[3]=e("label",{for:"carbs"},"Total Carbs Consumed (grams): ",-1)),a(e("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>o.carbs=s),type:"number",id:"carbs",placeholder:"e.g. 60"},null,512),[[d,o.carbs]])]),e("div",null,[r[4]||(r[4]=e("label",{for:"duration"},"Duration of Activity (minutes): ",-1)),a(e("input",{"onUpdate:modelValue":r[1]||(r[1]=s=>o.duration=s),type:"number",id:"duration",placeholder:"e.g. 120"},null,512),[[d,o.duration]])]),e("button",{onClick:r[2]||(r[2]=(...s)=>i.calculateCarbsPerHour&&i.calculateCarbsPerHour(...s))},"Calculate Carbs Per Hour"),o.errorMessage?(n(),l("div",P,c(o.errorMessage),1)):b("",!0),o.carbsPerHour!==null?(n(),l("div",_,[e("h2",null,[r[5]||(r[5]=p(" Your Carbs Per Hour: ")),e("strong",null,c(o.carbsPerHour.toFixed(1))+" grams per hour",1)])])):b("",!0)])}const v=f(g,[["render",H]]),y={},x={class:"bg-[#ffffff]"};function h(t,r){const u=v;return n(),l("div",x,[m(u)])}const M=f(y,[["render",h]]);export{M as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.