import{dG as n,dB as p,dF as m,dq as d,dx as f,dm as a}from"./index-D_pphaE2.js";import{F as u}from"./startCase-BsTKbnbP.js";import{F as c}from"./FeatureWrapper-DRy_rS6q.js";import{a as l}from"./index-BhIhHSRV.js";import"./envs-CRUy-_iG.js";import"./DisplayValue-Bn_kSwDb.js";import"./isObject--vsEa_js.js";import"./_createCompounder-DD7kMWdY.js";import"./isObjectLike-DDO0-ybB.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};
