import{k as i,l as u,Q as s,S as d,a6 as f,a5 as o,U as p,Y as c}from"./vendor/json-editor-vue-gv8v06ez.js";const l={"ml-1":"","text-xs":"",op50:""},_=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function n(e){return t.color?e?(e=e*t.factor,e<.5?"text-gray:50":e>1e3?"text-red-400":e>500?"text-orange-400":e>200?"text-yellow-400":""):"text-gray-400":""}const r=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(e,m)=>(s(),d("div",{class:c(n(e.duration))},[f(o(r.value[0]),1),p("span",l,o(r.value[1]),1)],2))}});export{_};
