"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("../../config-provider/index.js");require("../../utils/index.js");const c=require("../utils.js"),f=require("../../config-provider/hooks/use-global-config.js"),k=require("../../utils/is.js"),v=(i,r)=>{const s=t.ref({}),a=f.useGlobalConfig("maskVisible");t.watch(()=>i.value,e=>{const o={...c.pickColumnConfig(e,"defaultMaskVisible",a.value??!1),...s.value};s.value=o},{immediate:!0}),t.watch(()=>a.value,e=>{if(!k.isDef(e))return;const u=s.value;Object.keys(u).forEach(n=>{l(n,e)})});function l(e,u){s.value[e]=u,r.value&&r.value.refreshCells({columns:[e],force:!0})}return{masks:s,setMaskVisible:l}};exports.useMask=v;
