import{a as s,b as a,c}from"./chunk-C7X57YQ4.js";var r=class{static getStatusMarkup(t,e){let n=this.getStatusInfo(t,e);return`<span class="${n.cssClass}">
              <span class="status-icon"><i class="${n.icon}"></i></span>
              <span class="status-text">${n.text}</span>
            </span>`}static getStatusInfo(t,e){let n=(t||"").toString().trim().toUpperCase();switch(n){case s.IN_PROGRESS:return{text:e.instant("InProgress"),cssClass:a.ORANGE,icon:c.HOURGLASS};case s.INACTIVE:return{text:e.instant("Inactive"),cssClass:a.RED,icon:c.TIMES};case s.FINISHED:return{text:e.instant("Closed"),cssClass:a.GREEN,icon:c.CHECK};default:return{text:n,cssClass:a.GREY,icon:c.QUESTION}}}static isActiveStatus(t){return(t||"").toString().trim().toUpperCase()===s.IN_PROGRESS}static isClosedStatus(t){return(t||"").toString().trim().toUpperCase()===s.FINISHED}static isInactiveStatus(t){return(t||"").toString().trim().toUpperCase()===s.INACTIVE}static getStatusCssClass(t){switch((t||"").toString().trim().toUpperCase()){case s.IN_PROGRESS:return a.ORANGE;case s.INACTIVE:return a.RED;case s.FINISHED:return a.GREEN;default:return a.GREY}}static getStatusIcon(t){switch((t||"").toString().trim().toUpperCase()){case s.IN_PROGRESS:return c.HOURGLASS;case s.INACTIVE:return c.TIMES;case s.FINISHED:return c.CHECK;default:return c.QUESTION}}};export{r as a};
