import{p as f,l as w,A as p,H as s,X as h,F as v,I as i,L as _,J as x,u,U as L,V as H}from"./style-C-kEPrZO.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const t=e=>(L("data-v-a092f6ed"),e=e(),H(),e),b={class:"bar-chart"},y={class:"progress"},A=["aria-valuenow","aria-valuemax"],B=["aria-valuenow","aria-valuemax"],C={class:"mt-2 pr-2 flex justify-between items-center value-text"},I={class:"flex gap-2 items-center"},M={class:"color-low"},z={class:"color-high"},S={key:0,t:"1719514976614",class:"icon animation-pulse",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9374",style:{display:"block",width:"2rem",height:"2rem",margin:"0 auto"}},k=t(()=>s("path",{d:"M752.113937 512.104171v383.973957h-176.04883V512.104171z",fill:"#00C9CA","p-id":"9375"},null,-1)),N=t(()=>s("path",{d:"M752.113937 127.921872V512.104171h-176.04883V127.921872z",fill:"#00A1A2","p-id":"9376"},null,-1)),W=t(()=>s("path",{d:"M447.934893 512.104171v383.973957h-175.840488V512.104171z",fill:"#00C9CA","p-id":"9377"},null,-1)),F=t(()=>s("path",{d:"M447.934893 127.921872V512.104171h-175.840488V127.921872z",fill:"#00A1A2","p-id":"9378"},null,-1)),P=[k,N,W,F],T={class:"color-max"},m=40,r=5,g=4,X=f({name:"Bar1",inheritAttrs:!1,__name:"Bar1",props:{valLow:{default:5},valHigh:{default:10},valLimit:{default:50},running:{type:Boolean,default:!1}},setup(e){const a=e,n=o=>{let l=Math.floor(o*m),d=(o*m-l)*r;return console.log("final: ",l*(r+g)+d),l*(r+g)+d},c=w(()=>a.valLimit===0?{valLow:0,valHigh:0}:{valLow:n(a.valLow/a.valLimit),valHigh:n(a.valHigh/a.valLimit)});return(o,l)=>(u(),p("div",b,[s("div",y,[s("div",{class:"progress-bar progress-bar--low",style:h({width:v(c).valLow+"px"}),role:"progressbar","aria-valuenow":a.valLow,"aria-valuemin":"0","aria-valuemax":a.valHigh},null,12,A),s("div",{class:"progress-bar progress-bar--high",style:h({width:v(c).valHigh+"px"}),role:"progressbar","aria-valuenow":a.valHigh,"aria-valuemin":"0","aria-valuemax":a.valHigh},null,12,B)]),s("div",C,[s("div",I,[s("span",M,i(a.valLow),1),_(" - "),s("span",z,i(a.valHigh),1),a.running?x("",!0):(u(),p("svg",S,P))]),s("div",null,[_(" MAX: "),s("span",T,i(a.valLimit),1)])])]))}}),E=V(X,[["__scopeId","data-v-a092f6ed"]]);export{E as default};
