import{u as n,a as p,D as m,r as f,s as u,j as a}from"./index-KAtljJVt.js";import{F as d,a as c}from"./Feature-B1aHJEJ-.js";import{g}from"./index-B-QDvwG_.js";import"./envs-CSqIi4cL.js";import"./DisplayValue-BbeFDe0l.js";import"./isObject--vsEa_js.js";import"./_createCompounder-CDGep--y.js";import"./isObjectLike-CdeenLLY.js";function y({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{y as default};
