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