import{p as v,b as g,l as u,w as f,A as r,H as s,I as c,F as i,O as m,a3 as w,u as n,U as k,V as y}from"./style-C-kEPrZO.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e=l=>(k("data-v-2e6099e7"),l=l(),y(),l),x={class:"progress__number"},H={class:"strength-num color-low"},A=e(()=>s("span",null,"-",-1)),C={class:"strength-num color-high"},V={class:"progress__number"},b=e(()=>s("span",null,"MAX:",-1)),B={class:"strength-num color-max"},M={class:"progress__icon"},z={key:0,t:"1718546024843",class:"icon animation-pulse",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15408",style:{display:"block",width:"2rem",height:"2rem",margin:"0 auto"}},S=e(()=>s("path",{d:"M341.333333 1024l76.074667-342.314667C422.528 658.773333 407.466667 640 384 640H170.666667L682.666667 0l-76.074667 342.357333c-5.12 22.912 9.941333 41.642667 33.408 41.642667h213.333333L341.333333 1024z",fill:"#FFA702","p-id":"15409"},null,-1)),I=[S],G={key:1,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"}},$=e(()=>s("path",{d:"M752.113937 512.104171v383.973957h-176.04883V512.104171z",fill:"#00C9CA","p-id":"9375"},null,-1)),F=e(()=>s("path",{d:"M752.113937 127.921872V512.104171h-176.04883V127.921872z",fill:"#00A1A2","p-id":"9376"},null,-1)),D=e(()=>s("path",{d:"M447.934893 512.104171v383.973957h-175.840488V512.104171z",fill:"#00C9CA","p-id":"9377"},null,-1)),N=e(()=>s("path",{d:"M447.934893 127.921872V512.104171h-175.840488V127.921872z",fill:"#00A1A2","p-id":"9378"},null,-1)),O=[$,F,D,N],E={class:"progress__rings",width:"256",height:"256",viewBox:"0 0 256 256"},U=w('<defs data-v-2e6099e7><linearGradient id="pc-yellow" x1="1" y1="0.5" x2="0" y2="0.5" data-v-2e6099e7><stop offset="0%" stop-color="hsl(43,90%,55%)" data-v-2e6099e7></stop><stop offset="100%" stop-color="hsl(23,90%,55%)" data-v-2e6099e7></stop></linearGradient><linearGradient id="pc-blue" x1="1" y1="0.5" x2="0" y2="0.5" data-v-2e6099e7><stop offset="0%" stop-color="hsl(223,90%,55%)" data-v-2e6099e7></stop><stop offset="100%" stop-color="hsl(203,90%,55%)" data-v-2e6099e7></stop></linearGradient></defs>',1),X=e(()=>s("circle",{class:"progress__ring",cx:"128",cy:"128",r:"100",fill:"none",opacity:"0.1",stroke:"url(#pc-yellow)","stroke-width":"20"},null,-1)),j=["stroke-dasharray","stroke-dashoffset"],q=e(()=>s("circle",{class:"progress__ring",cx:"128",cy:"128",r:"100",fill:"none",opacity:"0.1",stroke:"url(#pc-blue)","stroke-width":"20"},null,-1)),J=["stroke-dasharray","stroke-dashoffset"],a=628,K=v({name:"Circle1",inheritAttrs:!1,__name:"Circle1",props:{valLow:{default:5},valHigh:{default:10},valLimit:{default:50},running:{type:Boolean,default:!1},darkMode:{type:Boolean}},emits:["update:valLow","update:valHigh","update:valLimit"],setup(l,{emit:P}){const o=l,t=g({valLow:o.valLow,valHigh:o.valHigh,valLimit:o.valLimit}),d=u(()=>({valLow:a-a*(t.valLow/t.valLimit),valHigh:a-a*(t.valHigh/t.valLimit)}));return f(()=>[o.valLow,o.valHigh,o.valLimit],([h,p,_])=>{t.valLow=h,t.valHigh=p,t.valLimit=_},{immediate:!0}),(h,p)=>(n(),r("div",{class:m(["progress",{dark:o.darkMode}])},[s("div",x,[s("span",H,c(i(t).valLow),1),A,s("span",C,c(i(t).valHigh),1)]),s("div",V,[b,s("span",B,c(i(t).valLimit),1)]),s("div",M,[o.running?(n(),r("svg",z,I)):(n(),r("svg",G,O))]),(n(),r("svg",E,[U,s("g",null,[X,s("circle",{id:"progress-max-ring",class:"progress__ring-fill","data-ring":"d",cx:"128",cy:"128",r:"100",fill:"none",stroke:"url(#pc-yellow)","stroke-width":"20","stroke-linecap":"round",transform:"rotate(-90,128,128)","stroke-dasharray":`${a} ${a}`,"stroke-dashoffset":i(d).valHigh},null,8,j)]),s("g",null,[q,s("circle",{id:"progress-min-ring",class:"progress__ring-fill","data-ring":"h",cx:"128",cy:"128",r:"100",fill:"none",stroke:"url(#pc-blue)","stroke-width":"20","stroke-linecap":"round",transform:"rotate(-90,128,128)","stroke-dasharray":`${a} ${a}`,"stroke-dashoffset":i(d).valLow},null,8,J)])]))],2))}}),T=L(K,[["__scopeId","data-v-2e6099e7"]]);export{T as default};
