Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/core/components/Placeholder.es",["module","exports","require","@frontend-taglib-clay$clayui/layout","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../hooks/useDrop.es","./Field/ParentFieldContext.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Placeholder=function({columnIndex:e,isRow:t,pageIndex:r,rowIndex:i,size:u}){var c,f;const s=(0,a.useContext)(l.ParentFieldContext),{canDrop:p,drop:m,overTarget:y}=(0,d.useDrop)({columnIndex:null!=e?e:0,origin:d.DND_ORIGIN_TYPE.EMPTY,pageIndex:r,parentField:s,rowIndex:i}),v=a.default.createElement(n.default.Col,{className:"col col-ddm col-empty","data-ddm-field-column":e,"data-ddm-field-page":r,"data-ddm-field-row":i,md:u},a.default.createElement("div",{className:(0,o.default)("ddm-target",{"target-over targetOver":y&&p&&!(null===(c=s.root)||void 0===c?void 0:c.ddmStructureId)}),ref:(null===(f=s.root)||void 0===f?void 0:f.ddmStructureId)?void 0:m}));if(t)return a.default.createElement("div",{className:"placeholder row"},v);return v};var n=u(r("@frontend-taglib-clay$clayui/layout")),o=u(r("liferay!frontend-js-react-web$classnames")),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),d=r("../hooks/useDrop.es"),l=r("./Field/ParentFieldContext.es");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=Placeholder.es.js.map