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