import e from"@babel/runtime/helpers/defineProperty";import r from"prop-types";import{DEFAULT_TRACE_SETTINGS as t}from"../constants.js";import n from"./TraceSelect.js";import{jsx as o}from"react/jsx-runtime";function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var a=function(e){var r,i,a=e.trackSettings,c=e.onChange,s=e.mapping;return o(n,{value:null===(r=a.traces)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.key,onChange:function(e){var r=s.find((function(r){return r.key===e}));c("traces",[p(p({},t),{},{key:e,id:e},r)])},mapping:s,showLabel:!0})};a.propTypes={trackSettings:r.shape({traces:r.arrayOf(r.shape({key:r.string}))}).isRequired,onChange:r.func.isRequired,mapping:r.arrayOf(r.shape({})).isRequired};export{a as default};
//# sourceMappingURL=SingleChannelTrackSettings.js.map
