Liferay.Loader.define("asset-list-web@3.0.74/js/components/VariationsNav/utils/index",["module","exports","require"],(function(t,e,r){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.getDndStyles=e.dragIsOutOfBounds=e.buildItemsPriorityURL=void 0;const t="variationsPriority",buildItemsPriorityURL=({items:e,namespace:r,url:o})=>"".concat(o,"&").concat(r).concat(t,"=").concat(e.map((t=>t.assetListEntrySegmentsEntryRelId)).join(","));e.buildItemsPriorityURL=buildItemsPriorityURL;const dragIsOutOfBounds=({dragIndex:t,hoverIndex:e,monitor:r,ref:o})=>{const n=o.current.getBoundingClientRect(),i=(n.bottom-n.top)/2,s=r.getClientOffset().y-n.top;return t<e&&s<i/2||t>e&&s>1.5*i};e.dragIsOutOfBounds=dragIsOutOfBounds;const getDndStyles=({isDragging:t,isItemBeingDragged:e})=>({backgroundColor:e?"var(--gray-200)":"",borderColor:e?"#80ACFF":"transparent",color:e?"var(--gray-500)":"",cursor:"grab",opacity:t?.6:1});e.getDndStyles=getDndStyles}}));
//# sourceMappingURL=index.js.map