"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),v=s=>{const r=n.ref(s),t=n.ref();function d(e,l=!1){const S=n.unref(t)||{},i=n.unref(r)||{},o=l?e:{};return e.filters&&(o.filteredValue=S[e.key]||null),e.sorter&&(o.sortOrder=i.columnKey===e.key?i.order:null),o}function c(e,l){t.value=e,r.value=l}function u(){r.value=null}function f(){t.value=null}function a(){u(),f()}return{getColumnSFConfig:d,setSF:c,clearSorter:u,clearFilters:f,clearAll:a,sortedInfo:r,filteredInfo:t}};exports.useTableSortedAndFiltered=v;
