import{dq as m,dG as i,dn as x,dm as r,x as c,_ as p,o as u,al as k}from"./index-DjbVAZHL.js";const h=m.memo(({modelId:a,supported:e,definitionModel:s,icon:l=!1})=>{const{t:o}=i("zigbee");let n=a||o(w=>w.unknown),t=p;return e&&s&&(t=`https://www.zigbee2mqtt.io/devices/${encodeURIComponent(x(s))}.html`,n=s),r.jsxs(c,{target:"_blank",rel:"noopener noreferrer",to:t,className:"link link-hover",children:[n,l?r.jsx(u,{icon:k,className:"ms-0.5"}):null]})}),g=m.memo(({supported:a,definitionVendor:e,icon:s=!1})=>{const{t:l}=i("zigbee");let o=l(t=>t.unsupported),n=p;return a&&e&&(n=`https://www.zigbee2mqtt.io/supported-devices/#v=${encodeURIComponent(e)}`,o=e),r.jsxs(c,{target:"_blank",rel:"noopener noreferrer",to:n,className:"link link-hover",children:[o,s?r.jsx(u,{icon:k,className:"ms-0.5"}):null]})});export{h as D,g as V};
