import{e as v,f as g}from"../chunk-QUCSW7F3.js";import{f as c}from"../chunk-XIXNJ2KG.js";import"../chunk-SKDCS45C.js";import{d as h,h as p}from"../chunk-FL6UHUMS.js";var m="info",u="disabled";var o=h(c(),1);var I=(a,i,e,t,s)=>{(0,o.isEmpty)(a)||Object.keys(a).forEach(l=>{let d=v(s,l);(0,o.isUndefined)(a[l].value)||(t[i][l]=a[l].value);let f=g(l,s.filter(r=>!r.isHidden()));(0,o.isNil)(a[l].info)||f<0||a[l].info?.forEach(r=>{if(!d?.isDisabled()&&r.level===u)return;let n={rowIndex:i,colIndex:f,popover:{message:r.message,level:r.level||m}};(e[i]?.length??0)===0?e[i]=[n]:e[i].push(n)})})},F=async({initResults:a,dataInfos:i,initialValues:e},t)=>{for(let s=0;s<a.length;s++)I(a[s][0],a[s][1],i,e,t);return{dataInfos:i,initialValues:e}},b=async({initialValues:a,key:i,result:e,colIndex:t})=>{let s={};for(let l=0;l<e.length;l++)if((0,o.isUndefined)(e[l][0].value)||a[e[l][1]]&&(a[e[l][1]][i]=e[l][0].value),e?.[l]?.[0]?.info&&t>=0){let d=e?.[l]?.[0]?.info??[],f={message:e?.[l]?.[0]?.info?.[0]?.message??"",level:e?.[l]?.[0]?.info?.[0]?.level??m};for(let n=0;n<d?.length;n++)if(d[n].level!==u){f={message:e?.[l]?.[0]?.info?.[n]?.message??"",level:e?.[l]?.[0]?.info?.[n]?.level??m};break}let r={rowIndex:e[l][1],colIndex:t,popover:f};r.popover.level!==u&&a[e[l][1]]&&((s[e[l][1]]?.length??0)===0?s[e[l][1]]=[r]:s[e[l][1]].push(r))}return{dataInfos:s,initialValues:a}},x=async({dataInfos:a,columnDataInfos:i})=>{let e=Object.keys(i);for(let t=0;t<e.length;t++){let s=e[t];i?.[s]?.length>0&&(a[s]||(a[s]=[]),a[s].push(...i[s]))}return{dataInfos:a}},y=()=>!0;p({check:y,handleOnEntryInit:F,handleColumnHooks:b,integrateColumnHooksData:x});
