import{dG as n,dB as p,dF as m,dq as d,dx as f,dm as a}from"./index-DjbVAZHL.js";import{F as u}from"./startCase-SXH8nyJo.js";import{F as c}from"./FeatureWrapper-DrakfNcb.js";import{a as l}from"./index-RfvTmd0Z.js";import"./envs-CRUy-_iG.js";import"./DisplayValue-e_yVQGok.js";import"./isObject--vsEa_js.js";import"./_createCompounder-CI5okWsL.js";import"./isObjectLike-DlSfHoCn.js";function C({sourceIdx:t,device:s}){const{t:i}=n("common"),r=p(m(e=>e.bridgeInfo[t])),o=d.useCallback(async e=>{await f(t,"bridge/request/device/options",{id:s.ieee_address,options:e})},[t,s.ieee_address]);return s.definition?.options?.length?a.jsx("div",{className:"list bg-base-100",children:s.definition.options.map(e=>a.jsx(u,{feature:e,device:s,deviceState:r.config.devices[s.ieee_address]??{},onChange:o,featureWrapperClass:c,parentFeatures:[]},l(e)))}):i(e=>e.empty_exposes_definition)}export{C as default};
