import{j as t}from"./vendor-react-wBh_31cN.js";import{N as T}from"./NoData-jkjqmCYT.js";import{u as g}from"./useTitle-DQo_L6Ox.js";import{t as b}from"./titles-CzjGGAB3.js";import{S as h,C as a}from"./StatisticsCard-AkYNIpHt.js";import{cg as e}from"./index-BKr2rJhV.js";import{u as v}from"./useFeaturesLayout-CzNWAzPF.js";import{u as C,T as n}from"./TDPanel-CrODpCBm.js";import"./toast-3g7Fh-a0.js";import"./index-BDIYwql2.js";import"./index-BP2S764X.js";import"./notifications-x-pTFTQl.js";import"./ifElse-Blhrcs6_.js";import"./has-DxvBA501.js";import"./uniq-Cy5NeM3Y.js";import"./uniqBy-qYjau2JN.js";import"./vendor-router-D1GqFWiT.js";import"./vendor-icons-BUUmD6ht.js";import"./badge-nyizWwTN.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-radix-BRyWS4bQ.js";import"./card-DISTA6Ay.js";import"./metadata-field-B_vcklh-.js";import"./value-76ihWpF6.js";import"./separator-2OqrG5Vy.js";import"./StatisticsCharts-CPV0wWWx.js";import"./vendor-redux-CJZrIb6x.js";import"./data-table-Cd-8SUjZ.js";import"./checkbox-DbZXziG0.js";import"./skeleton-BgYOfhyh.js";import"./BlinkingDots-CJK9OJE3.js";import"./LoadMore-Bg-Y-iGB.js";import"./table-CQMBoaty.js";import"./theme-colors-BFneJNsI.js";import"./randomArrayString---X8tfjV.js";import"./vendor-recharts-DmJlpLaF.js";import"./sortBy-DS9fyPwj.js";import"./TdFeatureGroupHandle-BLHPEQOs.js";import"./selectors-CMD4o3wq.js";import"./index-DkvW68Om.js";import"./Deprecated-lKLzSfj7.js";import"./tooltip-Da8-EbK8.js";import"./useFeatureFilters-C22j3okZ.js";import"./concat-AxOj0lUI.js";import"./vendor-grid-CeFlDWv4.js";import"./combobox-CcK1PxyF.js";import"./input-group-Z3Qmt3PL.js";import"./input-H6_qmzms.js";import"./label-Dnebucx5.js";import"./textarea-Co48BFy3.js";import"./pagination-3s5SmIT3.js";import"./FilterResult-C47T2sBy.js";import"./sort-BOLIcXtz.js";import"./editable-select-Co_-YcCr.js";import"./search-input-Cdh3g8rj.js";import"./radio-group-D7-g0sv3.js";import"./storage-connector-DQCKY9HZ.js";import"./min-CvL2bETJ.js";import"./index-DJIjy7qt.js";import"./useProjectNavigate-5znX7Ojg.js";import"./useQueryParam-CfnQDC5y.js";import"./all-DVU-BA5G.js";import"./sort-BIlPehKK.js";import"./descend-D5yKnR_m.js";import"./ascend-D9xyxTFQ.js";import"./pathSatisfies-BOGQJCXJ.js";import"./Panel-epT8eD0X.js";import"./MissingMandatoryTagsWarning-DpOcErx3.js";import"./list-page-header-DZysveul.js";import"./animated-progress-BdqEbBYd.js";import"./time-utils-tK1noPML.js";import"./addDays-DjM7nKyN.js";import"./always-CtAmwIxm.js";import"./init-BDcDHUTz.js";import"./formatDistance-qDinyJzC.js";import"./CardActionButton-Ch696ne3.js";const Ot=()=>{const i=C(),{statistics:p,trainingDataset:o,fv:r,isLoading:c}=i,s={...o,features:(r==null?void 0:r.features)??[]},{toolbar:l,countContent:x,tools:d,sortedData:u,bottomPagination:f,filterResult:j}=v(s,e.td,{extraActions:t.jsx(a,{})});return g(`${b.statistics} ${(o==null?void 0:o.name)??"Training data"}`),c?t.jsx(n,{...i}):t.jsxs(t.Fragment,{children:[t.jsx(n,{...i,filterToolbar:l,countContent:x,tools:d}),p?t.jsxs("div",{className:"mb-5 mt-2.5 flex w-full flex-col gap-5 px-5","data-test":"stats-container",children:[u.map(m=>t.jsx("div",{children:t.jsx(h,{type:e.td,parent:s,data:m,statistics:p[m.name]??{}})},m.name)),f,j]}):t.jsx(T,{mainText:`No statistics available for Training Data v${o==null?void 0:o.version}`,children:t.jsx(a,{})})]})};export{Ot as default};
