import{Ft as e,G as t,K as n,U as r,X as i,Y as a,mt as o,xt as s,zt as c}from"./dom-CdSnbvZ6.js";import{l}from"./settings-BF7JcItU.js";import{gt as u}from"./index-_dGt2VRU.js";import{t as d}from"./QTooltip-B_yrU7vv.js";var f={F:{badge:`F`,color:`positive`,labelKey:`Full`},I:{badge:`I`,color:`blue-10`,labelKey:`Incremental`},D:{badge:`D`,color:`orange`,labelKey:`Differential`},V:{badge:`V`,color:`purple`,labelKey:`Virtual Full`},B:{badge:`B`,color:`grey`,labelKey:`Base`}},p={full:`F`,incremental:`I`,increme:`I`,incr:`I`,differential:`D`,differe:`D`,diff:`D`,virtualfull:`V`,virtual:`V`,vful:`V`,base:`B`};function m(e){return typeof e!=`string`||!e.trim()?null:f[e]?e:p[e.toLowerCase().replace(/\s+/g,``)]??null}function h(e){let t=m(e);if(t)return f[t];let n=typeof e==`string`?e.trim():``;return{badge:n,color:`grey`,labelKey:n}}var g={__name:`JobLevelBadge`,props:{level:{type:String,required:!0}},setup(f){let p=f,{t:m}=l(),g=r(()=>{let e=h(p.level);return{...e,label:e.labelKey?m(e.labelKey):p.level}});return(r,l)=>g.value.badge?(o(),t(u,{key:0,color:g.value.color,"text-color":`white`,size:`24px`,"font-size":`12px`,style:{"font-weight":`700`,"user-select":`none`}},{default:s(()=>[a(c(g.value.badge)+` `,1),i(d,null,{default:s(()=>[a(c(e(m)(`Level`))+`: `+c(g.value.label),1)]),_:1})]),_:1},8,[`color`])):n(``,!0)}};export{m as n,g as t};