import{r as n,b as c,j as r}from"./index-vDL8KyrI.js";const l=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-ping",children:e("leaking")}):e("clear");case"tamper":return t?r.jsx("span",{className:"text-error animate-ping",children:e("tampered")}):e("clear");case"supported":return e(t?"supported":"not_supported");default:return e(t?"true":"false")}}),u=n.memo(s=>{const{t}=c("values"),{value:a}=s;switch(typeof a){case"boolean":return r.jsx(l,{...s});case"undefined":return r.jsx(r.Fragment,{children:"N/A"});case"object":return r.jsx(r.Fragment,{children:a===null?t("null"):JSON.stringify(a)});case"string":return r.jsx(r.Fragment,{children:a===""?r.jsx("span",{className:"text-xs opacity-50",children:t("empty_string")}):a});default:return r.jsx(r.Fragment,{children:JSON.stringify(a)})}});export{u as D};
