Liferay.Loader.define("segments-web@3.0.68/js/components/criteria_builder/EmptyDropZone.es",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dnd","../../ThemeContext.es","../../utils/drag-types.es","./EmptyPlaceholder.es"],(function(e,r,t){var n,o,a;window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var d=u(t("liferay!frontend-js-react-web$classnames")),p=(u(t("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f();if(r&&r.has(e))return r.get(e);var t={},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(t,o,a):t[o]=e[o]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react"))),c=t("liferay!frontend-js-react-web$react-dnd"),l=u(t("../../ThemeContext.es")),s=t("../../utils/drag-types.es"),i=u(t("./EmptyPlaceholder.es"));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}class e extends p.Component{render(){const{canDrop:e,connectDropTarget:r,emptyContributors:t,hover:n}=this.props,o=e||!t,a=(0,d.default)("empty-drop-zone-root",{"empty-drop-zone-dashed border-primary rounded":o&&(!e||!n)}),c=(0,d.default)(t?"empty-drop-zone-target":"drop-zone-target p-5",{"empty-drop-zone-target-solid dnd-hover border-primary rounded":e&&n});return p.default.createElement("div",{className:a},r(o?p.default.createElement("div",{className:c},p.default.createElement("div",{className:"empty-drop-zone-indicator"})):p.default.createElement("div",null,p.default.createElement(i.default,null))))}}n=e,o="contextType",a=l.default,o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a;var y=(0,c.DropTarget)(s.DragTypes.PROPERTY,{canDrop:function(e,r){const{propertyKey:t}=e,{propertyKey:n}=r.getItem();return t===n},drop:function(e,r){const{criterion:t}=r.getItem();e.onCriterionAdd(0,t)}},((e,r)=>({canDrop:r.canDrop(),connectDropTarget:e.dropTarget(),hover:r.isOver()})))(e);r.default=y}}));
//# sourceMappingURL=EmptyDropZone.es.js.map