Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/utils/drag_and_drop/getDropData",["module","exports","require","./constants/targetPositions"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getDropData({isElevation:e,layoutDataRef:t,sourceItemId:n,targetItemId:r,targetPosition:o}){const d=t.current.items[r],a=t.current.items[d.parentId];let l,c;e?(c=Math.min(a.children.includes(n)?a.children.length-1:a.children.length,function getSiblingPosition(e,t,n,r){const o=n.children.indexOf(e),d=n.children.indexOf(t.itemId);if(r===i.TARGET_POSITIONS.BOTTOM||r===i.TARGET_POSITIONS.RIGHT)return d+1;if(-1!==o&&o<d&&d>0)return d-1;return d}(n,d,a,o)),l=a.itemId):(c=d.children.includes(n)?d.children.length-1:d.children.length,l=d.itemId);return{dropItemId:l,position:c}};var i=n("./constants/targetPositions")}));
//# sourceMappingURL=getDropData.js.map