import{j as t}from"./vendor-react-wBh_31cN.js";import{N as T}from"./NoData-BtM2pAIA.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-B0OBxtfU.js";import{cg as e}from"./index-dNe6i2rS.js";import{u as v}from"./useFeaturesLayout-CYKvjhO0.js";import{u as C,T as n}from"./TDPanel-nUKLo9ba.js";import"./toast-wiGcevcF.js";import"./index-FG9Uf4Wb.js";import"./index-CT6Pb5Ny.js";import"./notifications-5miqOdlG.js";import"./ifElse-D151OpR6.js";import"./has-BFHy-Ez2.js";import"./uniq--Ej6WwWR.js";import"./uniqBy-6oWnYXMs.js";import"./vendor-router-D1GqFWiT.js";import"./vendor-icons-BUUmD6ht.js";import"./badge-UCnweWGd.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-radix-BRyWS4bQ.js";import"./card-BeQtvmcJ.js";import"./metadata-field-Uf1PM1Ss.js";import"./value-7N0Keti9.js";import"./separator-CxqNNMXg.js";import"./StatisticsCharts-QIp3194E.js";import"./vendor-redux-CJZrIb6x.js";import"./data-table-Mt0DWBPO.js";import"./checkbox-BlA4MwH9.js";import"./skeleton-C7BaXix8.js";import"./BlinkingDots-CJK9OJE3.js";import"./LoadMore-Bg-Y-iGB.js";import"./table-a0YeQrHM.js";import"./theme-colors-BFneJNsI.js";import"./randomArrayString---X8tfjV.js";import"./vendor-recharts-DmJlpLaF.js";import"./sortBy-COer1Ia5.js";import"./TdFeatureGroupHandle-D224lKDS.js";import"./selectors-DK1_X0Cd.js";import"./index-DLI8oDiK.js";import"./Deprecated-DEh1iT37.js";import"./tooltip-DFFgUYh6.js";import"./useFeatureFilters-dgIPcuD2.js";import"./concat-CTXo1gGM.js";import"./vendor-grid-CeFlDWv4.js";import"./combobox-QqI9aNup.js";import"./input-group-gxy3DSmS.js";import"./input-DFI7JniT.js";import"./label-gPWmc6ow.js";import"./textarea-BJVuSob1.js";import"./pagination-D1zFozYl.js";import"./FilterResult-BIU9i5a2.js";import"./sort-BOLIcXtz.js";import"./editable-select-DItn4ZHW.js";import"./search-input-BWz7f2O1.js";import"./radio-group-CjbLFQxV.js";import"./storage-connector-DQCKY9HZ.js";import"./min-CMw7fhtu.js";import"./index-DnLCKZiK.js";import"./useProjectNavigate-BM67yKhl.js";import"./useQueryParam-CfnQDC5y.js";import"./all-SKhbxKhE.js";import"./sort-qlseijG5.js";import"./descend-B5I3FjWy.js";import"./ascend-DedmOJV5.js";import"./pathSatisfies-DT47XrOK.js";import"./Panel-D_anPZvo.js";import"./MissingMandatoryTagsWarning-BHZy5VlV.js";import"./list-page-header-Fc18Qd7m.js";import"./animated-progress-DY4TkPAt.js";import"./time-utils-CQYZ5msB.js";import"./addDays-Cdit4yPz.js";import"./always-oSAuSdys.js";import"./init-Dq_gEBi9.js";import"./formatDistance-B6o-SXVU.js";import"./CardActionButton-9dnJFRFw.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};
