import{u as n,a as p,I as m,r as f,s as u,j as a}from"./index-VJpwYvBU.js";import{F as d}from"./startCase-DNIChZAc.js";import{F as c}from"./FeatureWrapper-5iLBJB0_.js";import{g}from"./index-C1LTvZEM.js";import"./envs-CRUy-_iG.js";import"./DisplayValue-BX0bcoSg.js";import"./isObject--vsEa_js.js";import"./_createCompounder-JrZUBxnL.js";import"./isObjectLike-CKrHmw-v.js";function C({sourceIdx:t,device:s}){const{t:i}=n("common"),r=p(m(e=>e.bridgeInfo[t])),o=f.useCallback(async e=>{await u(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(d,{feature:e,device:s,deviceState:r.config.devices[s.ieee_address]??{},onChange:o,featureWrapperClass:c,parentFeatures:[]},g(e)))}):i(e=>e.empty_exposes_definition)}export{C as default};
