import r from"@babel/runtime/helpers/defineProperty";import{useContext as t}from"react";import e from"prop-types";import i from"classnames";import s from"../SettingsContext.js";import o from"../DataContext.js";import a from"./Charts/LineChart.js";import n from"./DataLoadingIndicator.js";import m from"./ChartContainer.css.js";import{jsxs as p,jsx as d}from"react/jsx-runtime";var c=function(e){var c,f=e.traces,u=e.trackIndex,g=t(s).horizontal,l=t(o).isLoading;return p("div",{className:i(m.container,(c={},r(c,m.horizontal,g),r(c,m.first,0===u),c)),children:[d(a,{trackIndex:u,traceSettings:f}),l&&d(n,{})]})};c.propTypes={traces:e.arrayOf(e.shape({dashStyle:e.string.isRequired,id:e.string.isRequired,key:e.string,color:e.string,name:e.string,traceType:e.string.isRequired,unit:e.string,lineWidth:e.number.isRequired}).isRequired).isRequired,trackIndex:e.number.isRequired};export{c as default};
