import{u as a,a as m,I as c,r as p,s as f,j as s,bc as l}from"./index-a36IMXuN.js";import{m as d}from"./merge-Cd_RtVsp.js";import{I as g}from"./InfoAlert-DFbRmsjR.js";import{S as h}from"./SettingsList-CNu-T855.js";import"./envs-CRUy-_iG.js";import"./isObjectLike-BQssIl0N.js";import"./isObject--vsEa_js.js";import"./CheckboxField-CwZ6yoAm.js";import"./InputField-IMyvy6Mz.js";import"./NumberField-RWSAKGZO.js";import"./SelectField-BQBsNhlB.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};
