import{r as d,aK as b,bc as f,j as e,c as j,B as u,aS as c,d as o,as as l,at as p,au as g,C}from"./index-C1DmWO_C.js";import{u as S}from"./useUpdateTdOrFvInfoService-BlTBzWj5.js";const U=({isLoading:t})=>{const{setValue:i,control:r}=b(),[n,x,m,h]=f({name:["enabled","histograms","correlations","exactUniqueness"]});return S({enabled:n,histograms:x,correlations:m,exactUniqueness:h}),d.useEffect(()=>{n||(i("histograms",!1),i("correlations",!1),i("exactUniqueness",!1))},[n]),e.jsxs(e.Fragment,{children:[e.jsx(j,{bold:!0,mb:"8px",children:"Statistic configuration"}),e.jsxs(u,{alignItems:"center",gap:"8px",mb:"8px",children:[e.jsx(c,{control:r,name:"enabled",render:({field:{onChange:a,value:s}})=>e.jsx(o,{children:e.jsx(l,{checked:s,label:"enable statistics",disabled:t,onChange:()=>{a(!s),s&&i("statisticsColumns",[])}})})}),e.jsx(p,{mainText:"Includes descriptive statistics",children:e.jsx(g,{icon:C.info_block,size:"xs"})})]}),e.jsx(c,{control:r,name:"histograms",render:({field:{onChange:a,value:s}})=>e.jsx(o,{mb:"8px",children:e.jsx(l,{checked:s,label:"histograms",disabled:!n||t,onChange:()=>a(!s)})})}),e.jsx(c,{control:r,name:"correlations",render:({field:{onChange:a,value:s}})=>e.jsx(o,{mb:"8px",children:e.jsx(l,{checked:s,disabled:!n||t,label:"correlations",onChange:()=>a(!s)})})}),e.jsx(c,{control:r,name:"exactUniqueness",render:({field:{onChange:a,value:s}})=>e.jsx(o,{children:e.jsx(l,{checked:s,disabled:!n||t,label:"exact uniqueness",onChange:()=>a(!s)})})})]})},F=d.memo(U);export{F as S};
