/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../table-core/build/lib/index.js"),t=require("vue");function o(){return!0}const r=Symbol("merge-proxy"),n={get:(e,t,o)=>t===r?o:e.get(t),has:(e,t)=>e.has(t),set:o,deleteProperty:o,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:o,deleteProperty:o}),ownKeys:e=>e.keys()};function s(e){return"value"in e?e.value:e}function i(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new Proxy({get(e){for(let o=t.length-1;o>=0;o--){const r=s(t[o])[e];if(void 0!==r)return r}},has(e){for(let o=t.length-1;o>=0;o--)if(e in s(t[o]))return!0;return!1},keys(){const e=[];for(let o=0;o<t.length;o++)e.push(...Object.keys(s(t[o])));return[...Array.from(new Set(e))]}},n)}const l=t.defineComponent({props:["render","props"],setup:e=>()=>"function"==typeof e.render||"object"==typeof e.render?t.h(e.render,e.props):e.render});function a(e){return i(e,{data:t.unref(e.data)})}exports.ColumnFaceting=e.ColumnFaceting,exports.ColumnFiltering=e.ColumnFiltering,exports.ColumnGrouping=e.ColumnGrouping,exports.ColumnOrdering=e.ColumnOrdering,exports.ColumnPinning=e.ColumnPinning,exports.ColumnSizing=e.ColumnSizing,exports.ColumnVisibility=e.ColumnVisibility,exports.GlobalFaceting=e.GlobalFaceting,exports.GlobalFiltering=e.GlobalFiltering,exports.Headers=e.Headers,exports.RowExpanding=e.RowExpanding,exports.RowPagination=e.RowPagination,exports.RowPinning=e.RowPinning,exports.RowSelection=e.RowSelection,exports.RowSorting=e.RowSorting,exports._getVisibleLeafColumns=e._getVisibleLeafColumns,exports.aggregationFns=e.aggregationFns,exports.buildHeaderGroups=e.buildHeaderGroups,exports.createCell=e.createCell,exports.createColumn=e.createColumn,exports.createRow=e.createRow,exports.createTable=e.createTable,exports.defaultColumnSizing=e.defaultColumnSizing,exports.expandRows=e.expandRows,exports.filterFns=e.filterFns,exports.flattenBy=e.flattenBy,exports.functionalUpdate=e.functionalUpdate,exports.getCoreRowModel=e.getCoreRowModel,exports.getFilteredRowModel=e.getFilteredRowModel,exports.getMemoOptions=e.getMemoOptions,exports.getPaginationRowModel=e.getPaginationRowModel,exports.getSortedRowModel=e.getSortedRowModel,exports.isFunction=e.isFunction,exports.isNumberArray=e.isNumberArray,exports.isRowSelected=e.isRowSelected,exports.isSubRowSelected=e.isSubRowSelected,exports.makeStateUpdater=e.makeStateUpdater,exports.memo=e.memo,exports.orderColumns=e.orderColumns,exports.passiveEventSupported=e.passiveEventSupported,exports.reSplitAlphaNumeric=e.reSplitAlphaNumeric,exports.selectRowsFn=e.selectRowsFn,exports.shouldAutoRemoveFilter=e.shouldAutoRemoveFilter,exports.sortingFns=e.sortingFns,exports.FlexRender=l,exports.useVueTable=function(o){const r=t.isRef(o.data),n=i({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions:(e,t)=>r?{...e,...t}:i(e,t)},r?a(o):o),s=e.createTable(n);if(r){const e=t.shallowRef(o.data);t.watch(e,()=>{s.setState(t=>({...t,data:e.value}))},{immediate:!0})}const l=t.ref(s.initialState);return t.watchEffect(()=>{s.setOptions(e=>{var t;const n=new Proxy({},{get:(e,t)=>l.value[t]});return i(e,r?a(o):o,{state:i(n,null!=(t=o.state)?t:{}),onStateChange:e=>{l.value=e instanceof Function?e(l.value):e,null==o.onStateChange||o.onStateChange(e)}})})}),s};