import{r as d,aR as b,bd as f,j as e,c as j,q as u,aZ as o,F as c,al as l,an as p,ao as g,v as C}from"./index-Cox3ZWL0.js";import{u as q}from"./useUpdateTdOrFvInfoService-aQ3jOLSd.js";const F=({isLoading:t})=>{const{setValue:r,control:i}=b(),[n,x,m,h]=f({name:["enabled","histograms","correlations","exactUniqueness"]});return q({enabled:n,histograms:x,correlations:m,exactUniqueness:h}),d.useEffect(()=>{n||(r("histograms",!1),r("correlations",!1),r("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(o,{control:i,name:"enabled",render:({field:{onChange:a,value:s}})=>e.jsx(c,{children:e.jsx(l,{checked:s,label:"enable statistics",disabled:t,onChange:()=>{a(!s),s&&r("statisticsColumns",[])}})})}),e.jsx(p,{mainText:"Includes descriptive statistics",children:e.jsx(g,{icon:C.info_block,size:"xs"})})]}),e.jsx(o,{control:i,name:"histograms",render:({field:{onChange:a,value:s}})=>e.jsx(c,{mb:"8px",children:e.jsx(l,{checked:s,label:"histograms",disabled:!n||t,onChange:()=>a(!s)})})}),e.jsx(o,{control:i,name:"correlations",render:({field:{onChange:a,value:s}})=>e.jsx(c,{mb:"8px",children:e.jsx(l,{checked:s,disabled:!n||t,label:"correlations",onChange:()=>a(!s)})})}),e.jsx(o,{control:i,name:"exactUniqueness",render:({field:{onChange:a,value:s}})=>e.jsx(c,{children:e.jsx(l,{checked:s,disabled:!n||t,label:"exact uniqueness",onChange:()=>a(!s)})})})]})},U=d.memo(F);export{U as S};
