import{r as p,u as m,j as u,L as k,aY as w}from"./index-DTLwKrFY.js";const c=t=>{const o="[/| |:]",e=new RegExp(o,"g");return t.replace(e,"_")},R=p.memo(({modelId:t,supported:o,definitionModel:e,definitionVendor:n})=>{const{t:r}=m("zigbee");let s=t||r(a=>a.unknown),l=w;if(o&&e&&n){const a=[encodeURIComponent(n.toLowerCase()),encodeURIComponent(e.toLowerCase())].join("-");l=`https://www.zigbee2mqtt.io/devices/${encodeURIComponent(c(e))}.html#${encodeURIComponent(c(a))}`,s=e}return u.jsx(k,{target:"_blank",rel:"noopener noreferrer",to:l,className:"link link-hover",children:s})}),b=p.memo(({supported:t,definitionVendor:o})=>{const{t:e}=m("zigbee");let n=e(s=>s.unsupported),r=w;return t&&o&&(r=`https://www.zigbee2mqtt.io/supported-devices/#v=${encodeURIComponent(o)}`,n=o),u.jsx(k,{target:"_blank",rel:"noopener noreferrer",to:r,className:"link link-hover",children:n})});export{R as M,b as V};
