import{p as f,u as l,A as r,H as t,a2 as u,l as n,U as H,V as M,F as m,I as d,J as B,Q as V,q as A,L as I,M as C}from"./style-rM6B2R_a.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{t as v}from"./transitionRef-Dzm7rsU8.js";const R={class:"heart"},S=f({name:"Heart",__name:"Heart",props:{valRed:{default:0},valYellow:{default:0}},setup(a){const e=a;return(c,h)=>(l(),r("div",R,[t("div",{class:"heart__progress heart__progress-red",style:u({"--progress":e.valRed})},null,4),t("div",{class:"heart__progress heart__progress-yellow",style:u({"--progress":e.valYellow})},null,4)]))}}),k=g(S,[["__scopeId","data-v-580abf7b"]]),o=a=>(I("data-v-d6dd1ec1"),a=a(),C(),a),z={class:"bar-chart"},Y={class:"progress"},b={class:"flex gap-2 items-center"},N=o(()=>t("span",null,"HP:",-1)),F={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"}},T=o(()=>t("path",{d:"M752.113937 512.104171v383.973957h-176.04883V512.104171z",fill:"#00C9CA","p-id":"9375"},null,-1)),$=o(()=>t("path",{d:"M752.113937 127.921872V512.104171h-176.04883V127.921872z",fill:"#00A1A2","p-id":"9376"},null,-1)),j=o(()=>t("path",{d:"M447.934893 512.104171v383.973957h-175.840488V512.104171z",fill:"#00C9CA","p-id":"9377"},null,-1)),q=o(()=>t("path",{d:"M447.934893 127.921872V512.104171h-175.840488V127.921872z",fill:"#00A1A2","p-id":"9378"},null,-1)),D=[T,$,j,q],E=f({name:"HealthBar1",inheritAttrs:!1,__name:"HealthBar1",props:{valLow:{default:5},valHigh:{default:10},valLimit:{default:50},randomStrength:{default:5},running:{type:Boolean,default:!1},textInverted:{type:Boolean},hideText:{type:Boolean}},setup(a){const e=a,c=n(()=>Math.ceil(e.valLimit/4)),h=n(()=>Math.max(0,e.valLimit-e.valHigh)),p=n(()=>Math.max(0,e.valLimit-e.valLow)),w=v(h,40),x=v(p,40),y=n(()=>{const i=[];for(let s=0;s<c.value;s++)i.push({valRed:Math.min(100,Math.max(0,(w.value-s*4)*100/4)),valYellow:Math.min(100,Math.max(0,(x.value-s*4)*100/4))});return i});return(i,s)=>(l(),r("div",z,[t("div",Y,[(l(!0),r(H,null,M(m(y),(_,L)=>(l(),A(k,{class:"heart-icon",key:L,valRed:_.valRed,valYellow:_.valYellow},null,8,["valRed","valYellow"]))),128))]),t("div",{class:V(["mt-2 pr-2 flex justify-between items-center value-text",{"text-inverted":e.textInverted,hidden:e.hideText}])},[t("div",b,[N,t("span",null,d(m(p))+"/"+d(e.valLimit),1),t("span",null,"(+"+d(e.randomStrength)+")",1)]),t("div",null,[e.running?B("",!0):(l(),r("svg",F,D))])],2)]))}}),U=g(E,[["__scopeId","data-v-d6dd1ec1"]]);export{U as default};
