System.register([],function(_export,_context){"use strict";function e(e,n,o,t){n.preventDefault(),n.stopPropagation();var i=Number(e.dataset.cStart);if(!i)return null;var s=Number(e.getAttribute("colspan"))||1,c=Math.max(0,i+s-1-1);o.value=n.clientX,t.value=e.getBoundingClientRect().width;var u=n.currentTarget;return u.setPointerCapture(n.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:c,widthPx:t.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:c};}function n(e,n,o,t,i,s){var c=Math.max(s.minColumnWidth,Math.round(o+(i.clientX-t)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:n,widthPx:c},bubbles:!0,composed:!0}));}function o(e,n,o,t,i){t.releasePointerCapture(o.pointerId),t.removeEventListener("pointermove",i),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0,detail:{col:n}}));}function t(e,n,o){e.addEventListener("pointermove",n),e.addEventListener("pointerup",o),e.addEventListener("pointercancel",o),window.addEventListener("pointerup",o,{once:!0});}function i(e,n,o){e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",o),e.removeEventListener("pointercancel",o),window.removeEventListener("pointerup",o);}_export({a:t,b:o,h:n,i:e,r:i});return{setters:[],execute:function execute(){}};});
//# sourceMappingURL=nile-grid-head-item.utils.cjs.js.map
