import{dG as a,dB as m,dF as c,dq as p,dx as d,dm as t,n as f}from"./index-D_pphaE2.js";import{m as l}from"./merge-D774nQWn.js";import{I as g}from"./InfoAlert-BjFk5zJ1.js";import{S as h}from"./SettingsList-CwQILOJa.js";import"./envs-CRUy-_iG.js";import"./isObjectLike-DDO0-ybB.js";import"./isObject--vsEa_js.js";import"./CheckboxField-Bp87NFVr.js";import"./InputField-B0SBdaHi.js";import"./NumberField-Dq3HyXeU.js";import"./SelectField-J0vaqEIK.js";function O({sourceIdx:i,ieeeAddress:s}){const{t:n}=a(["settings","common"]),o=m(c(e=>e.bridgeInfo[i])),r=p.useCallback(async e=>{await d(i,"bridge/request/device/options",{id:s,options:e})},[i,s]);return t.jsxs(t.Fragment,{children:[t.jsx(g,{children:t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",className:"link link-hover",children:n(e=>e.read_the_docs_info,{ns:"common"})})}),t.jsx(h,{schema:o.config_schema.definitions.device??{properties:{}},data:l({},o.config.device_options,o.config.devices[s]),set:r,namespace:"definitions-device"})]})}export{O as default};
