import{b as c,a as d,r,W as l,j as e,F as m,A as f,an as p,ao as g}from"./index-vDL8KyrI.js";import{S as x}from"./SettingsList-D3Urvwh_.js";import"./CheckboxField-m1WCeVZk.js";import"./InputField-B5sOh_uD.js";import"./SelectField-apZm61cq.js";function S({device:s}){const{t:a}=c(["settings","common"]),t=d(o=>o.bridgeInfo),{sendMessage:i}=r.useContext(l),n=r.useCallback(async o=>{await i("bridge/request/device/options",{id:s.ieee_address,options:o})},[i,s.ieee_address]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"alert alert-info alert-soft mb-3",role:"alert",children:[e.jsx(m,{icon:f,size:"2xl"}),e.jsx("a",{href:p,target:"_blank",rel:"noreferrer",className:"link link-hover",children:a("common:read_the_docs_info")})]}),e.jsx(x,{schema:t.config_schema.definitions.device??{properties:{}},data:g({},t.config.device_options,t.config.devices[s.ieee_address]),set:n})]})}export{S as default};
