/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{t as e,p as t,H as i,h as s,e as r}from"./p-DmsAWRoU.js";import{c as n}from"./p-C6gMOKYg.js";const o=()=>`:host{pointer-events:auto;display:flex;align-items:center;box-sizing:border-box;cursor:col-resize}.divider{width:1px;height:100%;background-color:var(--neutral-300);cursor:col-resize}.divider.highlighted{background-color:var(--blue-600)}`;const a=t(class e extends i{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.hovering=false;this.dragging=false;this.handlePointerDown=()=>{this.dragging=true;window.addEventListener("pointerup",this.handlePointerUp)};this.handlePointerUp=()=>{this.dragging=false;window.removeEventListener("pointerup",this.handlePointerUp)};this.handleCellPointerEnter=()=>{this.hovering=true};this.handleCellPointerLeave=()=>{this.hovering=false}}render(){const e=!!this.hovering||!!this.dragging;return s(r,{key:"1837908001e56d951a7cccb54a50a70b22b2179a",onPointerDown:this.handlePointerDown,onPointerEnter:this.handleCellPointerEnter,onPointerLeave:this.handleCellPointerLeave,style:{height:e?"100%":"var(--header-height)",padding:e?"0 calc(var(--scene-tree-table-column-gap) / 2)":"calc(var(--header-height) / 8) calc(var(--scene-tree-table-column-gap) / 2)"}},s("slot",{key:"7204fb61738c9bbecc35254d4e7cda78b6c76167",name:"divider"},s("div",{key:"453bb87ad579eb7fecf1d62e028573854b4d2a43",class:n("divider",{highlighted:e})})))}static get style(){return o()}},[257,"vertex-scene-tree-table-resize-divider",{hovering:[32],dragging:[32]}]);function c(){if(typeof customElements==="undefined"){return}const t=["vertex-scene-tree-table-resize-divider"];t.forEach((t=>{switch(t){case"vertex-scene-tree-table-resize-divider":if(!customElements.get(e(t))){customElements.define(e(t),a)}break}}))}c();const d=a;const h=c;export{d as VertexSceneTreeTableResizeDivider,h as defineCustomElement};
//# sourceMappingURL=vertex-scene-tree-table-resize-divider.js.map