"use strict";var G=Object.create;var T=Object.defineProperty,J=Object.defineProperties,Q=Object.getOwnPropertyDescriptor,V=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,Y=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var h=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))D.call(t,r)&&h(e,r,t[r]);if(g)for(var r of g(t))F.call(t,r)&&h(e,r,t[r]);return e},c=(e,t)=>J(e,V(t));var f=(e,t)=>{var r={};for(var o in e)D.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&g)for(var o of g(e))t.indexOf(o)<0&&F.call(e,o)&&(r[o]=e[o]);return r};var Z=(e,t)=>{for(var r in t)T(e,r,{get:t[r],enumerable:!0})},I=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of X(t))!D.call(e,n)&&n!==r&&T(e,n,{get:()=>t[n],enumerable:!(o=Q(t,n))||o.enumerable});return e},E=(e,t,r)=>(I(e,t,"default"),r&&I(r,t,"default")),d=(e,t,r)=>(r=e!=null?G(Y(e)):{},I(t||!e||!e.__esModule?T(r,"default",{value:e,enumerable:!0}):r,e)),_=e=>I(T({},"__esModule",{value:!0}),e);var x={};Z(x,{Bar:()=>te,Container:()=>$,Section:()=>ee});module.exports=_(x);E(x,require("@column-resizer/core"),module.exports);var R=d(require("react"),1);var W=d(require("react"),1),P=W.createContext(null);var m=d(require("react"),1),j=require("@column-resizer/core");var O=typeof window=="object"?m.default.useLayoutEffect:m.default.useEffect;function S({vertical:e,beforeApplyResizer:t}){let r=B(t);return m.default.useMemo(()=>new j.ColumnResizer({vertical:e,beforeApplyResizer:r}),[e,r])}function H(){return m.default.useContext(P)}function p(e,t,r){let o=H(),n=B(r);m.default.useEffect(()=>o.on(e.current,t,a=>n(a)),[o,t,e,n])}function y(e,t){let r=m.default.useRef(e);return m.default.useImperativeHandle(t,()=>r.current),r}function B(e){let t=m.default.useRef(e);return t.current=e,m.default.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[t])}var k=d(require("react"),1);function U({hooks:e,params:t,children:r}){let o=e(...t);return k.default.createElement(k.default.Fragment,null,r(o))}function K(e,{onActivate:t,afterResizing:r}){p(e,"column:activate",t),p(e,"column:after-resizing",r)}var $=R.forwardRef((A,C)=>{var l=A,{vertical:e=!1,onActivate:t,beforeApplyResizer:r,afterResizing:o,columnResizerRef:n,style:a}=l,v=f(l,["vertical","onActivate","beforeApplyResizer","afterResizing","columnResizerRef","style"]);let u=y(null,C),i=S({vertical:e,beforeApplyResizer:r});return O(()=>(i.init(u.current),()=>i.dispose()),[i]),R.useImperativeHandle(n,()=>i,[i]),R.createElement(P.Provider,{value:i},R.createElement(U,{hooks:K,params:[u,{onActivate:t,afterResizing:o}]},()=>R.createElement("div",c(s({ref:u},v),{style:i.styles.container(a)}))))});var w=d(require("react"),1);var ee=w.forwardRef((l,A)=>{var u=l,{defaultSize:e,size:t,disableResponsive:r,minSize:o,maxSize:n,onSizeChanged:a,style:v}=u,C=f(u,["defaultSize","size","disableResponsive","minSize","maxSize","onSizeChanged","style"]);let i=y(null,A),z=H(),L={defaultSize:e,size:t,disableResponsive:r,minSize:o,maxSize:n};return p(i,"section:size-change",q=>a==null?void 0:a(q.detail.size)),w.createElement("div",s(c(s({ref:i},C),{style:z.styles.section(L,v)}),z.attributes.section(L)))});var M=d(require("react"),1);var b=d(require("react"),1);var N=b.forwardRef((A,C)=>{var l=A,{top:e=0,right:t=0,bottom:r=0,left:o=0,vertical:n,style:a}=l,v=f(l,["top","right","bottom","left","vertical","style"]);let u=b.useMemo(()=>s({position:"absolute",top:-e,left:-o,right:-t,bottom:-r,WebkitTapHighlightColor:"transparent",userSelect:"none"},a),[a,e,o,t,r,n]);return b.createElement("div",c(s({},v),{style:u,ref:C}))});var te=M.forwardRef((A,C)=>{var l=A,{children:e,onClick:t,expandInteractiveArea:r,onStatusChanged:o,style:n,size:a=10}=l,v=f(l,["children","onClick","expandInteractiveArea","onStatusChanged","style","size"]);let u=H(),i=y(null,C),z={size:a};return p(i,"bar:click",()=>t==null?void 0:t()),p(i,"bar:status-change",L=>o==null?void 0:o(L.detail.isActive)),M.createElement("div",s(c(s({ref:i},v),{style:u.styles.bar(z,c(s({},n),{position:"relative"}))}),u.attributes.bar(z)),e,M.createElement(N,c(s({},r),{vertical:u.config.vertical})))});0&&(module.exports={Bar,Container,Section,...require("@column-resizer/core")}); //# sourceMappingURL=index.cjs.map