import{b as c,a as d,r as i,W as m,j as e,F as l,J as p,aq as f,ar as g}from"./index-DtyjNqrf.js";import{S as x}from"./SettingsList-m7AYDAw4.js";import"./envs-DFlyG_dH.js";import"./CheckboxField-DKhAwA85.js";import"./InputField-CYbmpJqW.js";import"./NumberField-DVRroIAm.js";import"./SelectField-DfdnxD7O.js";function C({device:s}){const{t:a}=c(["settings","common"]),t=d(o=>o.bridgeInfo),{sendMessage:r}=i.useContext(m),n=i.useCallback(async o=>{await r("bridge/request/device/options",{id:s.ieee_address,options:o})},[r,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};
