import{u as a,a as m,E as c,r as p,s as f,j as s,a_ as l}from"./index-ClCsMWbS.js";import{m as d}from"./merge-CXAZHnE2.js";import{I as g}from"./InfoAlert-DaX4x_1T.js";import{S as _}from"./SettingsList-B14Dp6bl.js";import"./envs-CSqIi4cL.js";import"./isObjectLike-D4auEUP9.js";import"./isObject--vsEa_js.js";import"./CheckboxField-BxtT6ttj.js";import"./InputField-CqTVHKf8.js";import"./NumberField-Bv80Uoa9.js";import"./SelectField-WiB6Edsu.js";function O({sourceIdx:t,ieeeAddress:i}){const{t:r}=a(["settings","common"]),o=m(c(e=>e.bridgeInfo[t])),n=p.useCallback(async e=>{await f(t,"bridge/request/device/options",{id:i,options:e})},[t,i]);return s.jsxs(s.Fragment,{children:[s.jsx(g,{children:s.jsx("a",{href:l,target:"_blank",rel:"noreferrer",className:"link link-hover",children:r(e=>e.read_the_docs_info,{ns:"common"})})}),s.jsx(_,{schema:o.config_schema.definitions.device??{properties:{}},data:d({},o.config.device_options,o.config.devices[i]),set:n,namespace:"definitions-device"})]})}export{O as default};
