import{r as i,b as s,j as l,L as a,am as d}from"./index-DtyjNqrf.js";const r=e=>{const o="[/| |:]",n=new RegExp(o,"g");return e.replace(n,"_")},f=i.memo(({device:e})=>{const{t:o}=s("zigbee");let n=e.model_id||o("unknown"),t=d;if(e.supported&&e.definition){const m=[encodeURIComponent(e.definition.vendor.toLowerCase()),encodeURIComponent(e.definition.model.toLowerCase())].join("-");t=`https://www.zigbee2mqtt.io/devices/${encodeURIComponent(r(e.definition.model))}.html#${encodeURIComponent(r(m))}`,n=e.definition.model}return l.jsx(a,{target:"_blank",rel:"noopener noreferrer",to:t,className:"link link-hover",children:n})}),c=i.memo(({device:e})=>{const{t:o}=s("zigbee");let n=o("unsupported"),t=d;return e.supported&&e.definition&&(t=`https://www.zigbee2mqtt.io/supported-devices/#v=${encodeURIComponent(e.definition.vendor)}`,n=e.definition.vendor),l.jsx(a,{target:"_blank",rel:"noopener noreferrer",to:t,className:"link link-hover",children:n})});export{f as M,c as V};
