/*! For license information please see dll.DraggableGrid.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[42],{841:function(e,t,r){"use strict";r.r(t);var n=r(14),s=r.n(n),i=r(12),a=r.n(i),l=r(15),o=r.n(l),c=r(16),u=r.n(c),p=r(8),f=r.n(p),h=r(0),d=r.n(h),g=r(1),m=r.n(g),x=r(977),y=r(1419),b=r(39),w=r.n(b),v=r(2596),R=r.n(v),D=r(135),k=r.n(D);function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f()(e);if(t){var s=f()(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return u()(this,r)}}var H=Object(y.WidthProvider)(y.Responsive),P=function(e){if(!w()(e.children))return null;var t=e.children.map((function(e,t){return{lg:{i:"cell-".concat(t),x:6*t%18,y:4*k()(t/3),w:6,h:4},md:{i:"cell-".concat(t),x:6*t%12,y:4*k()(t/2),w:6,h:4},sm:{i:"cell-".concat(t),x:6*t%12,y:4*k()(t/2),w:6,h:4},xs:{i:"cell-".concat(t),x:6*t%12,y:4*k()(t/2),w:6,h:4},xxs:{i:"cell-".concat(t),x:4*t%6,y:4*k()(t/1),w:6,h:4}}}));return t={lg:R()(t,"lg"),md:R()(t,"md"),sm:R()(t,"sm"),xs:R()(t,"xs"),xxs:R()(t,"xxs")}},_=function(e){o()(r,e);var t=z(r);function r(e){var n;return s()(this,r),(n=t.call(this,e)).state={layouts:P(e)},n}return a()(r,[{key:"render",value:function(){return w()(this.props.children)?d.a.createElement(H,{layouts:this.state.layouts,breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:18,md:12,sm:12,xs:12,xxs:6},isResizable:this.props.isResizable,isDraggable:this.props.isDraggable,rowHeight:this.props.rowHeight},this.props.children.map((function(e,t){return d.a.createElement("div",{key:"cell-".concat(t)},e)}))):d.a.createElement(x.default,{variant:"danger"},"The draggable grid requires at least two child elements for it to be rendered.")}}],[{key:"getDerivedStateFromProps",value:function(e){return{layouts:P(e)}}}]),r}(h.Component);_.defaultProps={isDraggable:!1,isResizable:!1,rowHeight:60},_.propTypes={isDraggable:m.a.bool,isResizable:m.a.bool,rowHeight:m.a.number},t.default=_}}]);