import{b as c,a as d,r,W as m,j as e,F as l,J as p,as as f,at as g}from"./index-BeDhuS24.js";import{S as x}from"./SettingsList-wPZC4AYF.js";import"./envs-DFlyG_dH.js";import"./CheckboxField-BhwpagjA.js";import"./InputField-E2g5qJCn.js";import"./NumberField-CH6-YRbT.js";import"./SelectField-CgXiODUe.js";function C({device:s}){const{t:a}=c(["settings","common"]),t=d(o=>o.bridgeInfo),{sendMessage:i}=r.useContext(m),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(l,{icon:p,size:"2xl"}),e.jsx("a",{href:f,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{C as default};
