import{r as n,b as c,j as r}from"./index-DtyjNqrf.js";const u=n.memo(s=>{const{value:t,name:a}=s,{t:e}=c("values");switch(a){case"contact":return e(t?"closed":"open");case"occupancy":return e(t?"occupied":"clear");case"water_leak":return t?r.jsx("span",{className:"text-error animate-pulse",children:e("leaking")}):e("clear");case"tamper":return t?r.jsx("span",{className:"text-error animate-pulse",children:e("tampered")}):e("clear");case"supported":return e(t?"supported":"not_supported");default:return e(t?"true":"false")}}),o=n.memo(s=>{const{t}=c("values"),{value:a}=s;switch(typeof a){case"boolean":return r.jsx(u,{...s});case"undefined":return"N/A";case"object":return a===null?t("null"):JSON.stringify(a);case"string":return a===""?r.jsx("span",{className:"text-xs opacity-50",children:t("empty_string")}):a;default:return JSON.stringify(a)}});export{o as D};
