import{u as a,a as m,D as c,r as p,s as f,j as s,b0 as l}from"./index-KAtljJVt.js";import{m as d}from"./merge-BfnMCAsx.js";import{I as g}from"./InfoAlert-BDXiwj6e.js";import{S as h}from"./SettingsList-B3K-wAVh.js";import"./envs-CSqIi4cL.js";import"./isObjectLike-CdeenLLY.js";import"./isObject--vsEa_js.js";import"./CheckboxField-DhE3iyQ3.js";import"./InputField-D4fq1Htu.js";import"./NumberField-CpqFpk71.js";import"./SelectField-wRS87yKs.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(h,{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};
