import{u as n,a as p,E as m,r as f,s as u,j as a}from"./index-ClCsMWbS.js";import{F as d,a as c}from"./Feature-C2pFQwpi.js";import{g}from"./index-CQLnbJQy.js";import"./envs-CSqIi4cL.js";import"./DisplayValue-qZ7xyN8v.js";import"./isObject--vsEa_js.js";import"./_createCompounder-CDQ_1ElC.js";import"./isObjectLike-D4auEUP9.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};
