forked from react-grid-layout/react-grid-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-grid-layout.min.js
8 lines (8 loc) · 59.5 KB
/
react-grid-layout.min.js
1
2
3
4
5
6
7
8
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactGridLayout=e(require("react"),require("react-dom")):t.ReactGridLayout=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(4)["default"],t.exports.utils=r(2),t.exports.Responsive=r(10)["default"],t.exports.Responsive.utils=r(5),t.exports.WidthProvider=r(11)["default"]},function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){for(var e=0,r=void 0,n=0,o=t.length;o>n;n++)r=t[n].y+t[n].h,r>e&&(e=r);return e}function a(t){for(var e=Array(t.length),r=0,n=t.length;n>r;r++)e[r]=i(t[r]);return e}function i(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),"static":Boolean(t["static"]),isDraggable:t.isDraggable,isResizable:t.isResizable}}function s(t,e){return(0,R["default"])(C["default"].Children.map(t,function(t){return t.key}),C["default"].Children.map(e,function(t){return t.key}))}function u(t,e){return t===e?!1:t.x+t.w<=e.x?!1:t.x>=e.x+e.w?!1:t.y+t.h<=e.y?!1:!(t.y>=e.y+e.h)}function l(t,e){for(var r=y(t),n=S(t),o=Array(t.length),a=0,i=n.length;i>a;a++){var s=n[a];s["static"]||(s=c(r,s,e),r.push(s)),o[t.indexOf(s)]=s,s.moved=!1}return o}function c(t,e,r){if(r)for(;e.y>0&&!h(t,e);)e.y--;for(var n=void 0;n=h(t,e);)e.y=n.y+n.h;return e}function p(t,e){for(var r=y(t),n=0,o=t.length;o>n;n++){var a=t[n];if(a.x+a.w>e.cols&&(a.x=e.cols-a.w),a.x<0&&(a.x=0,a.w=e.cols),a["static"])for(;h(r,a);)a.y++;else r.push(a)}return t}function f(t,e){for(var r=0,n=t.length;n>r;r++)if(t[r].i===e)return t[r]}function h(t,e){for(var r=0,n=t.length;n>r;r++)if(u(t[r],e))return t[r]}function d(t,e){return t.filter(function(t){return u(t,e)})}function y(t){return t.filter(function(t){return t["static"]})}function g(t,e,r,n,o){if(e["static"])return t;if(e.y===n&&e.x===r)return t;var a=n&&e.y>n;"number"==typeof r&&(e.x=r),"number"==typeof n&&(e.y=n),e.moved=!0;var i=S(t);a&&(i=i.reverse());for(var s=d(i,e),u=0,l=s.length;l>u;u++){var c=s[u];c.moved||e.y>c.y&&e.y-c.y>c.h/4||(t=c["static"]?m(t,c,e,o):m(t,e,c,o))}return t}function m(t,e,r,n){if(n){var o={x:r.x,y:r.y,w:r.w,h:r.h,i:"-1"};if(o.y=Math.max(e.y-r.h,0),!h(t,o))return g(t,r,void 0,o.y)}return g(t,r,void 0,r.y+1)}function v(t){return 100*t+"%"}function b(t){var e=t.top,r=t.left,n=t.width,o=t.height,a="translate("+r+"px,"+e+"px)";return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:n+"px",height:o+"px",position:"absolute"}}function w(t){var e=t.top,r=t.left,n=t.width,o=t.height;return{top:e+"px",left:r+"px",width:n+"px",height:o+"px",position:"absolute"}}function S(t){return[].concat(t).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:-1})}function x(t,e,r,n){Array.isArray(e)||(e=[e]),t=t||[];for(var a=[],s=0,u=e.length;u>s;s++){var c=void 0,h=e[s],d=f(t,h.key||"1");if(d)c=i(d);else{var y=h.props["data-grid"]||h.props._grid;y?(j||P([y],"ReactGridLayout.children"),c=i(n?T({},y,{y:Math.min(o(a),y.y),i:h.key}):T({},y,{y:y.y,i:h.key}))):c=i({w:1,h:1,x:0,y:o(a),i:h.key||"1"})}a[s]=c}return a=p(a,{cols:r}),a=l(a,n)}function P(t,e){e=e||"Layout";var r=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var n=0,o=t.length;o>n;n++){for(var a=t[n],i=0;i<r.length;i++)if("number"!=typeof a[r[i]])throw new Error("ReactGridLayout: "+e+"["+n+"]."+r[i]+" must be a number!");if(a.i&&"string"!=typeof a.i)throw new Error("ReactGridLayout: "+e+"["+n+"].i must be a string!");if(void 0!==a["static"]&&"boolean"!=typeof a["static"])throw new Error("ReactGridLayout: "+e+"["+n+"].static must be a boolean!")}}function _(t,e){e.forEach(function(e){return t[e]=t[e].bind(t)})}e.__esModule=!0;var T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.bottom=o,e.cloneLayout=a,e.cloneLayoutItem=i,e.childrenEqual=s,e.collides=u,e.compact=l,e.compactItem=c,e.correctBounds=p,e.getLayoutItem=f,e.getFirstCollision=h,e.getAllCollisions=d,e.getStatics=y,e.moveElement=g,e.moveElementAwayFromCollision=m,e.perc=v,e.setTransform=b,e.setTopLeft=w,e.sortLayoutItemsByRowCol=S,e.synchronizeLayoutWithChildren=x,e.validateLayout=P,e.autoBindHandlers=_;var D=r(3),R=n(D),O=r(1),C=n(O),j=!0},function(t,e,r){(function(t,r){function n(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function o(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function a(t){return function(e){return t(e)}}function i(t,e){return null==t?void 0:t[e]}function s(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function u(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function l(t,e){return function(r){return t(e(r))}}function c(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function f(){this.__data__=xe?xe(null):{}}function h(t){return this.has(t)&&delete this.__data__[t]}function d(t){var e=this.__data__;if(xe){var r=e[t];return r===ht?void 0:r}return le.call(e,t)?e[t]:void 0}function y(t){var e=this.__data__;return xe?void 0!==e[t]:le.call(e,t)}function g(t,e){var r=this.__data__;return r[t]=xe&&void 0===e?ht:e,this}function m(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function v(){this.__data__=[]}function b(t){var e=this.__data__,r=A(e,t);if(0>r)return!1;var n=e.length-1;return r==n?e.pop():ye.call(e,r,1),!0}function w(t){var e=this.__data__,r=A(e,t);return 0>r?void 0:e[r][1]}function S(t){return A(this.__data__,t)>-1}function x(t,e){var r=this.__data__,n=A(r,t);return 0>n?r.push([t,e]):r[n][1]=e,this}function P(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _(){this.__data__={hash:new p,map:new(ve||m),string:new p}}function T(t){return $(this,t)["delete"](t)}function D(t){return $(this,t).get(t)}function R(t){return $(this,t).has(t)}function O(t,e){return $(this,t).set(t,e),this}function C(t){var e=-1,r=t?t.length:0;for(this.__data__=new P;++e<r;)this.add(t[e])}function j(t){return this.__data__.set(t,ht),this}function z(t){return this.__data__.has(t)}function k(t){this.__data__=new m(t)}function E(){this.__data__=new m}function M(t){return this.__data__["delete"](t)}function W(t){return this.__data__.get(t)}function L(t){return this.__data__.has(t)}function H(t,e){var r=this.__data__;if(r instanceof m){var n=r.__data__;if(!ve||n.length<ft-1)return n.push([t,e]),this;r=this.__data__=new P(n)}return r.set(t,e),this}function N(t,e){var r=ze(t)||nt(t)?o(t.length,String):[],n=r.length,a=!!n;for(var i in t)!e&&!le.call(t,i)||a&&("length"==i||J(i,n))||r.push(i);return r}function A(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1}function I(t){return ce.call(t)}function B(t,e,r,n,o){return t===e?!0:null==t||null==e||!lt(t)&&!ct(e)?t!==t&&e!==e:X(t,e,B,r,n,o)}function X(t,e,r,n,o,a){var i=ze(t),u=ze(e),l=vt,c=vt;i||(l=je(t),l=l==mt?Dt:l),u||(c=je(e),c=c==mt?Dt:c);var p=l==Dt&&!s(t),f=c==Dt&&!s(e),h=l==c;if(h&&!p)return a||(a=new k),i||ke(t)?U(t,e,r,n,o,a):F(t,e,l,r,n,o,a);if(!(o&yt)){var d=p&&le.call(t,"__wrapped__"),y=f&&le.call(e,"__wrapped__");if(d||y){var g=d?t.value():t,m=y?e.value():e;return a||(a=new k),r(g,m,n,o,a)}}return h?(a||(a=new k),V(t,e,r,n,o,a)):!1}function Y(t){if(!lt(t)||Z(t))return!1;var e=st(t)||s(t)?pe:Gt;return e.test(et(t))}function q(t){return ct(t)&&ut(t.length)&&!!Ft[ce.call(t)]}function G(t){if(!tt(t))return ge(t);var e=[];for(var r in Object(t))le.call(t,r)&&"constructor"!=r&&e.push(r);return e}function U(t,e,r,o,a,i){var s=a&yt,u=t.length,l=e.length;if(u!=l&&!(s&&l>u))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var p=-1,f=!0,h=a&dt?new C:void 0;for(i.set(t,e),i.set(e,t);++p<u;){var d=t[p],y=e[p];if(o)var g=s?o(y,d,p,e,t,i):o(d,y,p,t,e,i);if(void 0!==g){if(g)continue;f=!1;break}if(h){if(!n(e,function(t,e){return h.has(e)||d!==t&&!r(d,t,o,a,i)?void 0:h.add(e)})){f=!1;break}}else if(d!==y&&!r(d,y,o,a,i)){f=!1;break}}return i["delete"](t),i["delete"](e),f}function F(t,e,r,n,o,a,i){switch(r){case Mt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Et:return!(t.byteLength!=e.byteLength||!n(new he(t),new he(e)));case bt:case wt:case Tt:return rt(+t,+e);case St:return t.name==e.name&&t.message==e.message;case Ot:case jt:return t==e+"";case _t:var s=u;case Ct:var l=a&yt;if(s||(s=c),t.size!=e.size&&!l)return!1;var p=i.get(t);if(p)return p==e;a|=dt,i.set(t,e);var f=U(s(t),s(e),n,o,a,i);return i["delete"](t),f;case zt:if(Ce)return Ce.call(t)==Ce.call(e)}return!1}function V(t,e,r,n,o,a){var i=o&yt,s=pt(t),u=s.length,l=pt(e),c=l.length;if(u!=c&&!i)return!1;for(var p=u;p--;){var f=s[p];if(!(i?f in e:le.call(e,f)))return!1}var h=a.get(t);if(h&&a.get(e))return h==e;var d=!0;a.set(t,e),a.set(e,t);for(var y=i;++p<u;){f=s[p];var g=t[f],m=e[f];if(n)var v=i?n(m,g,f,e,t,a):n(g,m,f,t,e,a);if(!(void 0===v?g===m||r(g,m,n,o,a):v)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(d=!1)}return a["delete"](t),a["delete"](e),d}function $(t,e){var r=t.__data__;return Q(e)?r["string"==typeof e?"string":"hash"]:r.map}function K(t,e){var r=i(t,e);return Y(r)?r:void 0}function J(t,e){return e=null==e?gt:e,!!e&&("number"==typeof t||Ut.test(t))&&t>-1&&t%1==0&&e>t}function Q(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Z(t){return!!se&&se in t}function tt(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||ae;return t===r}function et(t){if(null!=t){try{return ue.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function rt(t,e){return t===e||t!==t&&e!==e}function nt(t){return at(t)&&le.call(t,"callee")&&(!de.call(t,"callee")||ce.call(t)==mt)}function ot(t){return null!=t&&ut(t.length)&&!st(t)}function at(t){return ct(t)&&ot(t)}function it(t,e){return B(t,e)}function st(t){var e=lt(t)?ce.call(t):"";return e==xt||e==Pt}function ut(t){return"number"==typeof t&&t>-1&&t%1==0&>>=t}function lt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function pt(t){return ot(t)?N(t):G(t)}var ft=200,ht="__lodash_hash_undefined__",dt=1,yt=2,gt=9007199254740991,mt="[object Arguments]",vt="[object Array]",bt="[object Boolean]",wt="[object Date]",St="[object Error]",xt="[object Function]",Pt="[object GeneratorFunction]",_t="[object Map]",Tt="[object Number]",Dt="[object Object]",Rt="[object Promise]",Ot="[object RegExp]",Ct="[object Set]",jt="[object String]",zt="[object Symbol]",kt="[object WeakMap]",Et="[object ArrayBuffer]",Mt="[object DataView]",Wt="[object Float32Array]",Lt="[object Float64Array]",Ht="[object Int8Array]",Nt="[object Int16Array]",At="[object Int32Array]",It="[object Uint8Array]",Bt="[object Uint8ClampedArray]",Xt="[object Uint16Array]",Yt="[object Uint32Array]",qt=/[\\^$.*+?()[\]{}|]/g,Gt=/^\[object .+?Constructor\]$/,Ut=/^(?:0|[1-9]\d*)$/,Ft={};Ft[Wt]=Ft[Lt]=Ft[Ht]=Ft[Nt]=Ft[At]=Ft[It]=Ft[Bt]=Ft[Xt]=Ft[Yt]=!0,Ft[mt]=Ft[vt]=Ft[Et]=Ft[bt]=Ft[Mt]=Ft[wt]=Ft[St]=Ft[xt]=Ft[_t]=Ft[Tt]=Ft[Dt]=Ft[Ot]=Ft[Ct]=Ft[jt]=Ft[kt]=!1;var Vt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Kt=Vt||$t||Function("return this")(),Jt="object"==typeof e&&e&&!e.nodeType&&e,Qt=Jt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Qt&&Qt.exports===Jt,te=Zt&&Vt.process,ee=function(){try{return te&&te.binding("util")}catch(t){}}(),re=ee&&ee.isTypedArray,ne=Array.prototype,oe=Function.prototype,ae=Object.prototype,ie=Kt["__core-js_shared__"],se=function(){var t=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ue=oe.toString,le=ae.hasOwnProperty,ce=ae.toString,pe=RegExp("^"+ue.call(le).replace(qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=Kt.Symbol,he=Kt.Uint8Array,de=ae.propertyIsEnumerable,ye=ne.splice,ge=l(Object.keys,Object),me=K(Kt,"DataView"),ve=K(Kt,"Map"),be=K(Kt,"Promise"),we=K(Kt,"Set"),Se=K(Kt,"WeakMap"),xe=K(Object,"create"),Pe=et(me),_e=et(ve),Te=et(be),De=et(we),Re=et(Se),Oe=fe?fe.prototype:void 0,Ce=Oe?Oe.valueOf:void 0;p.prototype.clear=f,p.prototype["delete"]=h,p.prototype.get=d,p.prototype.has=y,p.prototype.set=g,m.prototype.clear=v,m.prototype["delete"]=b,m.prototype.get=w,m.prototype.has=S,m.prototype.set=x,P.prototype.clear=_,P.prototype["delete"]=T,P.prototype.get=D,P.prototype.has=R,P.prototype.set=O,C.prototype.add=C.prototype.push=j,C.prototype.has=z,k.prototype.clear=E,k.prototype["delete"]=M,k.prototype.get=W,k.prototype.has=L,k.prototype.set=H;var je=I;(me&&je(new me(new ArrayBuffer(1)))!=Mt||ve&&je(new ve)!=_t||be&&je(be.resolve())!=Rt||we&&je(new we)!=Ct||Se&&je(new Se)!=kt)&&(je=function(t){var e=ce.call(t),r=e==Dt?t.constructor:void 0,n=r?et(r):void 0;if(n)switch(n){case Pe:return Mt;case _e:return _t;case Te:return Rt;case De:return Ct;case Re:return kt}return e});var ze=Array.isArray,ke=re?a(re):q;r.exports=it}).call(e,function(){return this}(),r(15)(t))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),l=n(u),c=r(3),p=n(c),f=r(2),h=r(9),d=n(h),y=function(){},g=function(t){function e(r,n){o(this,e);var i=a(this,t.call(this,r,n));return m.call(i),(0,f.autoBindHandlers)(i,["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),i}return i(e,t),e.prototype.componentDidMount=function(){this.setState({mounted:!0}),this.props.onLayoutChange(this.state.layout)},e.prototype.componentWillReceiveProps=function(t){var e=void 0;if((0,p["default"])(t.layout,this.props.layout)?(0,f.childrenEqual)(this.props.children,t.children)||(e=this.state.layout):e=t.layout,e){var r=(0,f.synchronizeLayoutWithChildren)(e,t.children,t.cols,t.verticalCompact);this.setState({layout:r}),this.props.onLayoutChange(r)}},e.prototype.containerHeight=function(){if(this.props.autoSize){var t=(0,f.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}},e.prototype.onDragStart=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.layout,s=(0,f.getLayoutItem)(i,t);s&&(this.setState({oldDragItem:(0,f.cloneLayoutItem)(s)}),this.props.onDragStart(i,s,s,null,o,a))},e.prototype.onDrag=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.oldDragItem,s=this.state.layout,u=(0,f.getLayoutItem)(s,t);if(u){var l={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:t};s=(0,f.moveElement)(s,u,e,r,!0),this.props.onDrag(s,i,u,l,o,a),this.setState({layout:(0,f.compact)(s,this.props.verticalCompact),activeDrag:l})}},e.prototype.onDragStop=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.oldDragItem,s=this.state.layout,u=(0,f.getLayoutItem)(s,t);u&&(s=(0,f.moveElement)(s,u,e,r,!0),this.props.onDragStop(s,i,u,null,o,a),this.setState({activeDrag:null,layout:(0,f.compact)(s,this.props.verticalCompact),oldDragItem:null}),this.props.onLayoutChange(this.state.layout))},e.prototype.onResizeStart=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.layout,s=(0,f.getLayoutItem)(i,t);s&&(this.setState({oldResizeItem:(0,f.cloneLayoutItem)(s)}),this.props.onResizeStart(i,s,s,null,o,a))},e.prototype.onResize=function(t,e,r,n){var o=n.e,a=n.node,i=this.state,s=i.layout,u=i.oldResizeItem,l=(0,f.getLayoutItem)(s,t);if(l){l.w=e,l.h=r;var c={w:e,h:r,x:l.x,y:l.y,"static":!0,i:t};this.props.onResize(s,u,l,c,o,a),this.setState({layout:(0,f.compact)(s,this.props.verticalCompact),activeDrag:c})}},e.prototype.onResizeStop=function(t,e,r,n){var o=n.e,a=n.node,i=this.state,s=i.layout,u=i.oldResizeItem,l=(0,f.getLayoutItem)(s,t);this.props.onResizeStop(s,u,l,null,o,a),this.setState({activeDrag:null,layout:(0,f.compact)(s,this.props.verticalCompact),oldResizeItem:null}),this.props.onLayoutChange(this.state.layout)},e.prototype.placeholder=function(){var t=this.state.activeDrag;if(!t)return null;var e=this.props,r=e.width,n=e.cols,o=e.margin,a=e.containerPadding,i=e.rowHeight,s=e.maxRows,u=e.useCSSTransforms;return l["default"].createElement(d["default"],{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:"react-grid-placeholder",containerWidth:r,cols:n,margin:o,containerPadding:a||o,maxRows:s,rowHeight:i,isDraggable:!1,isResizable:!1,useCSSTransforms:u},l["default"].createElement("div",null))},e.prototype.processGridItem=function(t){if(t.key){var e=(0,f.getLayoutItem)(this.state.layout,t.key);if(!e)return null;var r=this.props,n=r.width,o=r.cols,a=r.margin,i=r.containerPadding,s=r.rowHeight,u=r.maxRows,c=r.isDraggable,p=r.isResizable,h=r.useCSSTransforms,y=r.draggableCancel,g=r.draggableHandle,m=this.state.mounted,v=Boolean(!e["static"]&&c&&(e.isDraggable||null==e.isDraggable)),b=Boolean(!e["static"]&&p&&(e.isResizable||null==e.isResizable));return l["default"].createElement(d["default"],{containerWidth:n,cols:o,margin:a,containerPadding:i||a,maxRows:u,rowHeight:s,cancel:y,handle:g,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:v,isResizable:b,useCSSTransforms:h&&m,usePercentages:!m,w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minH:e.minH,minW:e.minW,maxH:e.maxH,maxW:e.maxW,"static":e["static"]},t)}},e.prototype.render=function(){var t=this,e=this.props,r=e.className,n=e.style,o="react-grid-layout "+r,a=s({height:this.containerHeight()},n);return l["default"].createElement("div",{className:o,style:a},l["default"].Children.map(this.props.children,function(e){return t.processGridItem(e)}),this.placeholder())},e}(l["default"].Component);g.displayName="ReactGridLayout",g.propTypes={className:u.PropTypes.string,style:u.PropTypes.object,width:u.PropTypes.number,autoSize:u.PropTypes.bool,cols:u.PropTypes.number,draggableCancel:u.PropTypes.string,draggableHandle:u.PropTypes.string,verticalCompact:u.PropTypes.bool,layout:function v(t){var v=t.layout;void 0!==v&&(0,f.validateLayout)(v,"layout")},margin:u.PropTypes.arrayOf(u.PropTypes.number),containerPadding:u.PropTypes.arrayOf(u.PropTypes.number),rowHeight:u.PropTypes.number,maxRows:u.PropTypes.number,isDraggable:u.PropTypes.bool,isResizable:u.PropTypes.bool,useCSSTransforms:u.PropTypes.bool,onLayoutChange:u.PropTypes.func,onDragStart:u.PropTypes.func,onDrag:u.PropTypes.func,onDragStop:u.PropTypes.func,onResizeStart:u.PropTypes.func,onResize:u.PropTypes.func,onResizeStop:u.PropTypes.func,children:function b(t,e,r){var b=t[e],n={};l["default"].Children.forEach(b,function(t){if(n[t.key])throw new Error("Duplicate child key found! This will cause problems in ReactGridLayout.");n[t.key]=!0})}},g.defaultProps={autoSize:!0,cols:12,className:"",rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,onLayoutChange:y,onDragStart:y,onDrag:y,onDragStop:y,onResizeStart:y,onResize:y,onResizeStop:y};var m=function(){this.state={activeDrag:null,layout:(0,f.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.props.verticalCompact),mounted:!1,oldDragItem:null,oldResizeItem:null}};e["default"]=g},function(t,e,r){"use strict";function n(t,e){for(var r=i(t),n=r[0],o=1,a=r.length;a>o;o++){var s=r[o];e>t[s]&&(n=s)}return n}function o(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,r,n,o,a){if(t[r])return(0,s.cloneLayout)(t[r]);for(var u=t[n],l=i(e),c=l.slice(l.indexOf(r)),p=0,f=c.length;f>p;p++){var h=c[p];if(t[h]){u=t[h];break}}return u=(0,s.cloneLayout)(u||[]),(0,s.compact)((0,s.correctBounds)(u,{cols:o}),a)}function i(t){var e=Object.keys(t);return e.sort(function(e,r){return t[e]-t[r]})}e.__esModule=!0,e.getBreakpointFromWidth=n,e.getColsFromBreakpoint=o,e.findOrGenerateResponsiveLayout=a,e.sortBreakpoints=i;var s=r(2)},function(t,e,r){!function(e,n){t.exports=n(r(1),r(8))}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(1)["default"],t.exports.DraggableCore=r(9)["default"]},function(t,e,r){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=function(){function t(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(u){o=!0,a=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),p=r(2),f=n(p),h=r(3),d=n(h),y=r(4),g=n(y),m=r(5),v=r(8),b=r(6),w=r(9),S=n(w),x=r(11),P=n(x),_=function(e){function r(t){a(this,r);var e=i(this,Object.getPrototypeOf(r).call(this,t));return e.onDragStart=function(t,r){(0,P["default"])("Draggable: onDragStart: %j",r);var n=e.props.onStart(t,(0,v.createDraggableData)(e,r));return n===!1?!1:void e.setState({dragging:!0,dragged:!0})},e.onDrag=function(t,r){if(!e.state.dragging)return!1;(0,P["default"])("Draggable: onDrag: %j",r);var n=(0,v.createDraggableData)(e,r),o={x:n.x,y:n.y};if(e.props.bounds){var a=o.x,i=o.y;o.x+=e.state.slackX,o.y+=e.state.slackY;var s=(0,v.getBoundPosition)(e,o.x,o.y),u=l(s,2);o.x=u[0],o.y=u[1],o.slackX=e.state.slackX+(a-o.x),o.slackY=e.state.slackY+(i-o.y),n.x=a,n.y=i,n.deltaX=o.x-e.state.x,n.deltaY=o.y-e.state.y}var c=e.props.onDrag(t,n);return c===!1?!1:void e.setState(o)},e.onDragStop=function(t,r){if(!e.state.dragging)return!1;var n=e.props.onStop(t,(0,v.createDraggableData)(e,r));if(n===!1)return!1;(0,P["default"])("Draggable: onDragStop: %j",r);var o={dragging:!1,slackX:0,slackY:0},a=Boolean(e.props.position);if(a){var i=e.props.position,s=i.x,u=i.y;o.x=s,o.y=u}e.setState(o)},e.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},e}return s(r,e),c(r,[{key:"componentWillMount",value:function(){!this.props.position||this.props.onDrag||this.props.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){"undefined"!=typeof t.SVGElement&&d["default"].findDOMNode(this)instanceof t.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(t){!t.position||this.props.position&&t.position.x===this.props.position.x&&t.position.y===this.props.position.y||this.setState({x:t.position.x,y:t.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var t,e={},r=null,n=Boolean(this.props.position),a=!n||this.state.dragging,i=this.props.position||this.props.defaultPosition,s={x:(0,v.canDragX)(this)&&a?this.state.x:i.x,y:(0,v.canDragY)(this)&&a?this.state.y:i.y};this.state.isElementSVG?r=(0,m.createSVGTransform)(s):e=(0,m.createCSSTransform)(s);var l=this.props,c=l.defaultClassName,p=l.defaultClassNameDragging,h=l.defaultClassNameDragged,d=(0,g["default"])(this.props.children.props.className||"",c,(t={},o(t,p,this.state.dragging),o(t,h,this.state.dragged),t));return f["default"].createElement(S["default"],u({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),f["default"].cloneElement(f["default"].Children.only(this.props.children),{className:d,style:u({},this.props.children.props.style,e),transform:r}))}}]),r}(f["default"].Component);_.displayName="Draggable",_.propTypes=u({},S["default"].propTypes,{axis:p.PropTypes.oneOf(["both","x","y","none"]),bounds:p.PropTypes.oneOfType([p.PropTypes.shape({left:p.PropTypes.number,right:p.PropTypes.number,top:p.PropTypes.number,bottom:p.PropTypes.number}),p.PropTypes.string,p.PropTypes.oneOf([!1])]),defaultClassName:p.PropTypes.string,defaultClassNameDragging:p.PropTypes.string,defaultClassNameDragged:p.PropTypes.string,defaultPosition:p.PropTypes.shape({x:p.PropTypes.number,y:p.PropTypes.number}),position:p.PropTypes.shape({x:p.PropTypes.number,y:p.PropTypes.number}),className:b.dontSetMe,style:b.dontSetMe,transform:b.dontSetMe}),_.defaultProps=u({},S["default"].defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null}),e["default"]=_}).call(e,function(){return this}())},function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){var n,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n))t.push(r.apply(null,n));else if("object"===o)for(var i in n)a.call(n,i)&&n[i]&&t.push(i)}}return t.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=r:(n=[],o=function(){return r}.apply(e,n),!(void 0!==o&&(t.exports=o)))}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){return T||(T=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,x.isFunction)(t[e])})),t[T].call(t,e)}function i(t,e,r){var n=t;do{if(a(n,e))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1}function s(t,e,r){t&&(t.attachEvent?t.attachEvent("on"+e,r):t.addEventListener?t.addEventListener(e,r,!0):t["on"+e]=r)}function u(t,e,r){t&&(t.detachEvent?t.detachEvent("on"+e,r):t.removeEventListener?t.removeEventListener(e,r,!0):t["on"+e]=null)}function l(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,x["int"])(r.borderTopWidth),e+=(0,x["int"])(r.borderBottomWidth)}function c(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,x["int"])(r.borderLeftWidth),e+=(0,x["int"])(r.borderRightWidth)}function p(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,x["int"])(r.paddingTop),e-=(0,x["int"])(r.paddingBottom)}function f(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,x["int"])(r.paddingLeft),e-=(0,x["int"])(r.paddingRight)}function h(t,e){var r=e===e.ownerDocument.body,n=r?{left:0,top:0}:e.getBoundingClientRect(),o=t.clientX+e.scrollLeft-n.left,a=t.clientY+e.scrollTop-n.top;return{x:o,y:a}}function d(t){var e=t.x,r=t.y;return o({},(0,P.browserPrefixToKey)("transform",_["default"]),"translate("+e+"px,"+r+"px)")}function y(t){var e=t.x,r=t.y;return"translate("+e+","+r+")"}function g(t,e){return t.targetTouches&&(0,x.findInArray)(t.targetTouches,function(t){return e===t.identifier})||t.changedTouches&&(0,x.findInArray)(t.changedTouches,function(t){return e===t.identifier})}function m(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0}function v(t){var e=t.getAttribute("style")||"";t.setAttribute("style",e+O)}function b(t){var e=t.getAttribute("style")||"";t.setAttribute("style",e.replace(O,""))}function w(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return S({touchAction:"none"},t)}Object.defineProperty(e,"__esModule",{value:!0});var S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.matchesSelector=a,e.matchesSelectorAndParentsTo=i,e.addEvent=s,e.removeEvent=u,e.outerHeight=l,e.outerWidth=c,e.innerHeight=p,e.innerWidth=f,e.offsetXYFromParent=h,e.createCSSTransform=d,e.createSVGTransform=y,e.getTouch=g,e.getTouchIdentifier=m,e.addUserSelectStyles=v,e.removeUserSelectStyles=b,e.styleHacks=w;var x=r(6),P=r(7),_=n(P),T="",D=(0,P.getPrefix)("user-select"),R=(0,P.browserPrefixToStyle)("user-select",D),O=";"+R+": none;"},function(t,e){"use strict";function r(t,e){for(var r=0,n=t.length;n>r;r++)if(e.apply(e,[t[r],r,t]))return t[r]}function n(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)}function o(t){return"number"==typeof t&&!isNaN(t)}function a(t){return parseInt(t,10)}function i(t,e,r){return t[e]?new Error("Invalid prop "+e+" passed to "+r+" - do not set this, set it on the child."):void 0}Object.defineProperty(e,"__esModule",{value:!0}),e.findInArray=r,e.isFunction=n,e.isNum=o,e["int"]=a,e.dontSetMe=i},function(t,e){"use strict";function r(){var t=arguments.length<=0||void 0===arguments[0]?"transform":arguments[0];if("undefined"==typeof window||"undefined"==typeof window.document)return"";var e=window.document.documentElement.style;if(t in e)return"";for(var r=0;r<i.length;r++)if(n(t,i[r])in e)return i[r];return""}function n(t,e){return e?""+e+a(t):t}function o(t,e){return e?"-"+e.toLowerCase()+"-"+t:t}function a(t){for(var e="",r=!0,n=0;n<t.length;n++)r?(e+=t[n].toUpperCase(),r=!1):"-"===t[n]?r=!0:e+=t[n];return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getPrefix=r,e.browserPrefixToKey=n,e.browserPrefixToStyle=o;var i=["Moz","Webkit","O","ms"];e["default"]=r()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){if(!t.props.bounds)return[e,r];var n=t.props.bounds;n="string"==typeof n?n:p(n);var o=d["default"].findDOMNode(t);if("string"==typeof n){var a=o.ownerDocument,i=a.defaultView,s=void 0;if("parent"===n)s=o.parentNode;else if(s=a.querySelector(n),!s)throw new Error('Bounds selector "'+n+'" could not find an element.');var u=i.getComputedStyle(o),l=i.getComputedStyle(s);n={left:-o.offsetLeft+(0,f["int"])(l.paddingLeft)+(0,f["int"])(u.borderLeftWidth)+(0,f["int"])(u.marginLeft),top:-o.offsetTop+(0,f["int"])(l.paddingTop)+(0,f["int"])(u.borderTopWidth)+(0,f["int"])(u.marginTop),right:(0,y.innerWidth)(s)-(0,y.outerWidth)(o)-o.offsetLeft,bottom:(0,y.innerHeight)(s)-(0,y.outerHeight)(o)-o.offsetTop}}return(0,f.isNum)(n.right)&&(e=Math.min(e,n.right)),(0,f.isNum)(n.bottom)&&(r=Math.min(r,n.bottom)),(0,f.isNum)(n.left)&&(e=Math.max(e,n.left)),(0,f.isNum)(n.top)&&(r=Math.max(r,n.top)),[e,r]}function a(t,e,r){var n=Math.round(e/t[0])*t[0],o=Math.round(r/t[1])*t[1];return[n,o]}function i(t){return"both"===t.props.axis||"x"===t.props.axis}function s(t){return"both"===t.props.axis||"y"===t.props.axis}function u(t,e,r){var n="number"==typeof e?(0,y.getTouch)(t,e):null;if("number"==typeof e&&!n)return null;var o=d["default"].findDOMNode(r),a=r.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,y.offsetXYFromParent)(n||t,a)}function l(t,e,r){var n=t._pendingState||t.state,o=!(0,f.isNum)(n.lastX);return o?{node:d["default"].findDOMNode(t),deltaX:0,deltaY:0,lastX:e,lastY:r,x:e,y:r}:{node:d["default"].findDOMNode(t),deltaX:e-n.lastX,deltaY:r-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:r}}function c(t,e){return{node:e.node,x:t.state.x+e.deltaX,y:t.state.y+e.deltaY,deltaX:e.deltaX,deltaY:e.deltaY,lastX:t.state.x,lastY:t.state.y}}function p(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundPosition=o,e.snapToGrid=a,e.canDragX=i,e.canDragY=s,e.getControlPosition=u,e.createCoreData=l,e.createDraggableData=c;var f=r(6),h=r(3),d=n(h),y=r(5)},function(t,e,r){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(u){o=!0,a=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),l=r(2),c=n(l),p=r(3),f=n(p),h=r(5),d=r(8),y=r(6),g=r(11),m=n(g),v={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},b=v.mouse,w=function(t){function e(){var t,r,n,i;o(this,e);for(var u=arguments.length,l=Array(u),c=0;u>c;c++)l[c]=arguments[c];return r=n=a(this,(t=Object.getPrototypeOf(e)).call.apply(t,[this].concat(l))),n.state={dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null},n.handleDragStart=function(t){if(n.props.onMouseDown(t),!n.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var e=f["default"].findDOMNode(n),r=e.ownerDocument;if(!(n.props.disabled||!(t.target instanceof r.defaultView.Node)||n.props.handle&&!(0,h.matchesSelectorAndParentsTo)(t.target,n.props.handle,e)||n.props.cancel&&(0,h.matchesSelectorAndParentsTo)(t.target,n.props.cancel,e))){var o=(0,h.getTouchIdentifier)(t);n.setState({touchIdentifier:o});var a=(0,d.getControlPosition)(t,o,n);if(null!=a){var i=a.x,s=a.y,u=(0,d.createCoreData)(n,i,s);(0,m["default"])("DraggableCore: handleDragStart: %j",u),(0,m["default"])("calling",n.props.onStart);var l=n.props.onStart(t,u);l!==!1&&(n.props.enableUserSelectHack&&(0,h.addUserSelectStyles)(r.body),n.setState({dragging:!0,lastX:i,lastY:s}),(0,h.addEvent)(r,b.move,n.handleDrag),(0,h.addEvent)(r,b.stop,n.handleDragStop))}}},n.handleDrag=function(t){var e=(0,d.getControlPosition)(t,n.state.touchIdentifier,n);if(null!=e){var r=e.x,o=e.y;if(Array.isArray(n.props.grid)){var a=r-n.state.lastX,i=o-n.state.lastY,u=(0,d.snapToGrid)(n.props.grid,a,i),l=s(u,2);if(a=l[0],i=l[1],!a&&!i)return;r=n.state.lastX+a,o=n.state.lastY+i}var c=(0,d.createCoreData)(n,r,o);(0,m["default"])("DraggableCore: handleDrag: %j",c);var p=n.props.onDrag(t,c);if(p!==!1)n.setState({lastX:r,lastY:o});else try{n.handleDragStop(new MouseEvent("mouseup"))}catch(f){var h=document.createEvent("MouseEvents");h.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(h)}}},n.handleDragStop=function(t){if(n.state.dragging){var e=(0,d.getControlPosition)(t,n.state.touchIdentifier,n);if(null!=e){var r=e.x,o=e.y,a=(0,d.createCoreData)(n,r,o);n.props.enableUserSelectHack&&(0,h.removeUserSelectStyles)(f["default"].findDOMNode(n).ownerDocument.body),(0,m["default"])("DraggableCore: handleDragStop: %j",a),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),n.props.onStop(t,a);var i=f["default"].findDOMNode(n),s=i.ownerDocument;(0,m["default"])("DraggableCore: Removing handlers"),(0,h.removeEvent)(s,b.move,n.handleDrag),(0,h.removeEvent)(s,b.stop,n.handleDragStop)}}},n.onMouseDown=function(t){return b=v.mouse,n.handleDragStart(t)},n.onMouseUp=function(t){return b=v.mouse,n.handleDragStop(t)},n.onTouchStart=function(t){return b=v.touch,n.handleDragStart(t)},n.onTouchEnd=function(t){return b=v.touch,n.handleDragStop(t)},i=r,a(n,i)}return i(e,t),u(e,[{key:"componentWillUnmount",value:function(){var t=f["default"].findDOMNode(this),e=t.ownerDocument;(0,h.removeEvent)(e,v.mouse.move,this.handleDrag),(0,h.removeEvent)(e,v.touch.move,this.handleDrag),(0,h.removeEvent)(e,v.mouse.stop,this.handleDragStop),(0,h.removeEvent)(e,v.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&(0,h.removeUserSelectStyles)(e.body)}},{key:"render",value:function(){return c["default"].cloneElement(c["default"].Children.only(this.props.children),{style:(0,h.styleHacks)(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),e}(c["default"].Component);w.displayName="DraggableCore",w.propTypes={allowAnyClick:l.PropTypes.bool,disabled:l.PropTypes.bool,enableUserSelectHack:l.PropTypes.bool,offsetParent:function(e,r){if(t.browser&&e[r]&&1!==e[r].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.PropTypes.arrayOf(l.PropTypes.number),handle:l.PropTypes.string,cancel:l.PropTypes.string,onStart:l.PropTypes.func,onDrag:l.PropTypes.func,onStop:l.PropTypes.func,onMouseDown:l.PropTypes.func,className:y.dontSetMe,style:y.dontSetMe,transform:y.dontSetMe},w.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}},e["default"]=w}).call(e,r(10))},function(t,e){function r(){p&&l&&(p=!1,l.length?c=l.concat(c):f=-1,c.length&&n())}function n(){if(!p){var t=i(r);p=!0;for(var e=c.length;e;){for(l=c,c=[];++f<e;)l&&l[f].run();f=-1,e=c.length}l=null,p=!1,s(t)}}function o(t,e){this.fun=t,this.array=e}function a(){}var i,s,u=t.exports={};!function(){try{i=setTimeout}catch(t){i=function(){throw new Error("setTimeout is not defined")}}try{s=clearTimeout}catch(t){s=function(){throw new Error("clearTimeout is not defined")}}}();var l,c=[],p=!1,f=-1;u.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new o(t,e)),1!==c.length||p||i(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(t,e,r){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n}])})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(1),c=n(l),p=r(6),f=r(13),h=n(f),d=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return r=n=i(this,t.call.apply(t,[this].concat(u))),n.state={resizing:!1,width:n.props.width,height:n.props.height,slackW:0,slackH:0},o=r,i(n,o)}return s(e,t),e.prototype.componentWillReceiveProps=function(t){this.state.resizing||t.width===this.props.width&&t.height===this.props.height||this.setState({width:t.width,height:t.height})},e.prototype.lockAspectRatio=function(t,e,r){return e=t/r,t=e*r,[t,e]},e.prototype.runConstraints=function(t,e){var r=this.props.minConstraints,n=this.props.maxConstraints;if(this.props.lockAspectRatio){var o=this.state.width/this.state.height;e=t/o,t=e*o}if(!r&&!n)return[t,e];var a=t,i=e,s=this.state,u=s.slackW,l=s.slackH;return t+=u,e+=l,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),n&&(t=Math.min(n[0],t),e=Math.min(n[1],e)),u+=a-t,l+=i-e,u===this.state.slackW&&l===this.state.slackH||this.setState({slackW:u,slackH:l}),[t,e]},e.prototype.resizeHandler=function(t){var e=this;return function(r,n){var o=n.node,a=n.deltaX,i=n.deltaY,s=e.state.width+a,u=e.state.height+i,l=s!==e.state.width,c=u!==e.state.height;if("onResize"!==t||l||c){var p=e.runConstraints(s,u);s=p[0],u=p[1];var f={};if("onResizeStart"===t)f.resizing=!0;else if("onResizeStop"===t)f.resizing=!1,f.slackW=f.slackH=0;else{if(s===e.state.width&&u===e.state.height)return;f.width=s,f.height=u}e.setState(f,function(){e.props[t]&&e.props[t](r,{node:o,size:{width:s,height:u}})})}}},e.prototype.render=function(){var t=this.props,e=t.children,r=t.draggableOpts,n=(t.width,t.height,t.handleSize,t.lockAspectRatio,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,o(t,["children","draggableOpts","width","height","handleSize","lockAspectRatio","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart"])),a=n.className?n.className+" react-resizable":"react-resizable";return(0,h["default"])(e,u({},n,{className:a,children:[e.props.children,c["default"].createElement(p.DraggableCore,u({},r,{key:"resizableHandle",ref:"draggable",onStop:this.resizeHandler("onResizeStop"),onStart:this.resizeHandler("onResizeStart"),onDrag:this.resizeHandler("onResize")}),c["default"].createElement("span",{className:"react-resizable-handle"}))]}))},e}(c["default"].Component);d.propTypes={children:l.PropTypes.element.isRequired,width:l.PropTypes.number.isRequired,height:l.PropTypes.number.isRequired,handleSize:l.PropTypes.array,lockAspectRatio:l.PropTypes.bool,minConstraints:l.PropTypes.arrayOf(l.PropTypes.number),maxConstraints:l.PropTypes.arrayOf(l.PropTypes.number),onResizeStop:l.PropTypes.func,onResizeStart:l.PropTypes.func,onResize:l.PropTypes.func,draggableOpts:l.PropTypes.object},d.defaultProps={handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0]},e["default"]=d},function(t,r){t.exports=e},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),l=n(u),c=r(6),p=r(14),f=r(2),h=function(t){function e(){var r,n,i;o(this,e);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return r=n=a(this,t.call.apply(t,[this].concat(u))),n.state={resizing:null,dragging:null,className:""},i=r,a(n,i)}return i(e,t),e.prototype.calcColWidth=function(){var t=this.props,e=t.margin,r=t.containerPadding,n=t.containerWidth,o=t.cols;return(n-e[0]*(o-1)-2*r[0])/o},e.prototype.calcPosition=function(t,e,r,n,o){var a=this.props,i=a.margin,s=a.containerPadding,u=a.rowHeight,l=this.calcColWidth(),c={left:Math.round((l+i[0])*t+s[0]),top:Math.round((u+i[1])*e+s[1]),width:r===1/0?r:Math.round(l*r+Math.max(0,r-1)*i[0]),height:n===1/0?n:Math.round(u*n+Math.max(0,n-1)*i[1])};return o&&o.resizing&&(c.width=Math.round(o.resizing.width),c.height=Math.round(o.resizing.height)),o&&o.dragging&&(c.top=Math.round(o.dragging.top),c.left=Math.round(o.dragging.left)),c},e.prototype.calcXY=function(t,e){var r=this.props,n=r.margin,o=r.cols,a=r.rowHeight,i=r.w,s=r.h,u=r.maxRows,l=this.calcColWidth(),c=Math.round((e-n[0])/(l+n[0])),p=Math.round((t-n[1])/(a+n[1]));return c=Math.max(Math.min(c,o-i),0),p=Math.max(Math.min(p,u-s),0),{x:c,y:p}},e.prototype.calcWH=function(t){var e=t.height,r=t.width,n=this.props,o=n.margin,a=n.maxRows,i=n.cols,s=n.rowHeight,u=n.x,l=n.y,c=this.calcColWidth(),p=Math.round((r+o[0])/(c+o[0])),f=Math.round((e+o[1])/(s+o[1]));return p=Math.max(Math.min(p,i-u),0),f=Math.max(Math.min(f,a-l),0),{w:p,h:f}},e.prototype.createStyle=function(t){var e=this.props,r=e.usePercentages,n=e.containerWidth,o=e.useCSSTransforms,a=void 0;return o?a=(0,f.setTransform)(t):(a=(0,f.setTopLeft)(t),r&&(a.left=(0,f.perc)(t.left/n),a.width=(0,f.perc)(t.width/n))),a},e.prototype.mixinDraggable=function(t){return l["default"].createElement(c.DraggableCore,{onStart:this.onDragHandler("onDragStart"),onDrag:this.onDragHandler("onDrag"),onStop:this.onDragHandler("onDragStop"),handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:"")},t)},e.prototype.mixinResizable=function(t,e){var r=this.props,n=r.cols,o=r.x,a=r.minW,i=r.minH,s=r.maxW,u=r.maxH,c=this.calcPosition(0,0,n-o,0).width,f=this.calcPosition(0,0,a,i),h=this.calcPosition(0,0,s,u),d=[f.width,f.height],y=[Math.min(h.width,c),Math.min(h.height,1/0)];return l["default"].createElement(p.Resizable,{width:e.width,height:e.height,minConstraints:d,maxConstraints:y,onResizeStop:this.onResizeHandler("onResizeStop"),onResizeStart:this.onResizeHandler("onResizeStart"),onResize:this.onResizeHandler("onResize")},t)},e.prototype.onDragHandler=function(t){var e=this;return function(r,n){var o=n.node,a=n.deltaX,i=n.deltaY;if(e.props[t]){var s={top:0,left:0};switch(t){case"onDragStart":var u=o.offsetParent.getBoundingClientRect(),l=o.getBoundingClientRect();s.left=l.left-u.left,s.top=l.top-u.top,e.setState({dragging:s});break;case"onDrag":if(!e.state.dragging)throw new Error("onDrag called before onDragStart.");s.left=e.state.dragging.left+a,s.top=e.state.dragging.top+i,e.setState({dragging:s});break;case"onDragStop":if(!e.state.dragging)throw new Error("onDragEnd called before onDragStart.");s.left=e.state.dragging.left,s.top=e.state.dragging.top,e.setState({dragging:null});break;default:throw new Error("onDragHandler called with unrecognized handlerName: "+t)}var c=e.calcXY(s.top,s.left),p=c.x,f=c.y;e.props[t](e.props.i,p,f,{e:r,node:o,newPosition:s})}}},e.prototype.onResizeHandler=function(t){var e=this;return function(r,n){var o=n.element,a=n.size;if(e.props[t]){var i=e.props,s=i.cols,u=i.x,l=i.i,c=i.maxW,p=i.minW,f=i.maxH,h=i.minH,d=e.calcWH(a),y=d.w,g=d.h;y=Math.min(y,s-u),y=Math.max(y,1),y=Math.max(Math.min(y,c),p),g=Math.max(Math.min(g,f),h),e.setState({resizing:"onResizeStop"===t?null:a}),e.props[t](l,y,g,{e:r,element:o,size:a})}}},e.prototype.render=function(){var t=this.props,e=t.x,r=t.y,n=t.w,o=t.h,a=t.isDraggable,i=t.isResizable,u=t.useCSSTransforms,c=this.calcPosition(e,r,n,o,this.state),p=l["default"].Children.only(this.props.children),f=l["default"].cloneElement(p,{className:["react-grid-item",p.props.className||"",this.props.className,this.props["static"]?"static":"",this.state.resizing?"resizing":"",this.state.dragging?"react-draggable-dragging":"",u?"cssTransforms":""].join(" "),style:s({},this.props.style,p.props.style,this.createStyle(c))});return i&&(f=this.mixinResizable(f,c)),a&&(f=this.mixinDraggable(f)),f},e}(l["default"].Component);h.propTypes={children:u.PropTypes.element,cols:u.PropTypes.number.isRequired,containerWidth:u.PropTypes.number.isRequired,rowHeight:u.PropTypes.number.isRequired,margin:u.PropTypes.array.isRequired,maxRows:u.PropTypes.number.isRequired,containerPadding:u.PropTypes.array.isRequired,x:u.PropTypes.number.isRequired,y:u.PropTypes.number.isRequired,w:u.PropTypes.number.isRequired,h:u.PropTypes.number.isRequired,minW:function(t,e,r){var n=t[e];return"number"!=typeof n?new Error("minWidth not Number"):n>t.w||n>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e,r){var n=t[e];return"number"!=typeof n?new Error("maxWidth not Number"):n<t.w||n<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e,r){var n=t[e];return"number"!=typeof n?new Error("minHeight not Number"):n>t.h||n>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e,r){var n=t[e];return"number"!=typeof n?new Error("maxHeight not Number"):n<t.h||n<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:u.PropTypes.string.isRequired,onDragStop:u.PropTypes.func,onDragStart:u.PropTypes.func,onDrag:u.PropTypes.func,onResizeStop:u.PropTypes.func,onResizeStart:u.PropTypes.func,onResize:u.PropTypes.func,isDraggable:u.PropTypes.bool.isRequired,isResizable:u.PropTypes.bool.isRequired,"static":u.PropTypes.bool,useCSSTransforms:u.PropTypes.bool.isRequired,className:u.PropTypes.string,handle:u.PropTypes.string,cancel:u.PropTypes.string},h.defaultProps={className:"",cancel:"",minH:1,minW:1,maxH:1/0,maxW:1/0},e["default"]=h},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(1),c=n(l),p=r(3),f=n(p),h=r(2),d=r(5),y=r(4),g=n(y),m=function(){},v=function(t){return Object.prototype.toString.call(t)},b=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,l=Array(s),c=0;s>c;c++)l[c]=arguments[c];return r=n=i(this,t.call.apply(t,[this].concat(l))),n.state=n.generateInitialState(),n.onLayoutChange=function(t){var e;n.props.onLayoutChange(t,u({},n.props.layouts,(e={},e[n.state.breakpoint]=t,e)))},o=r,i(n,o)}return s(e,t),e.prototype.generateInitialState=function(){var t=this.props,e=t.width,r=t.breakpoints,n=t.layouts,o=t.verticalCompact,a=t.cols,i=(0,d.getBreakpointFromWidth)(r,e),s=(0,d.getColsFromBreakpoint)(i,a),u=(0,d.findOrGenerateResponsiveLayout)(n,r,i,i,s,o);return{layout:u,breakpoint:i,cols:s}},e.prototype.componentWillReceiveProps=function(t){if(t.width==this.props.width&&t.breakpoint===this.props.breakpoint&&(0,f["default"])(t.breakpoints,this.props.breakpoints)&&(0,f["default"])(t.cols,this.props.cols)){if(!(0,f["default"])(t.layouts,this.props.layouts)){var e=this.state,r=e.breakpoint,n=e.cols,o=(0,d.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,n,t.verticalCompact);this.setState({layout:o})}}else this.onWidthChange(t)},e.prototype.onWidthChange=function(t){var e=t.breakpoints,r=t.cols,n=t.verticalCompact,o=t.breakpoint||(0,d.getBreakpointFromWidth)(t.breakpoints,t.width),a=this.state.breakpoint;if(a!==o||this.props.breakpoints!==e||this.props.cols!==r){var i=t.layouts;a in i||(i[a]=(0,h.cloneLayout)(this.state.layout));var s=(0,d.getColsFromBreakpoint)(o,r),u=(0,d.findOrGenerateResponsiveLayout)(i,e,o,a,s,n);u=(0,h.synchronizeLayoutWithChildren)(u,t.children,s,n),i[o]=u,this.props.onLayoutChange(u,i),this.props.onBreakpointChange(o,s),this.props.onWidthChange(t.width,t.margin,s,t.containerPadding),this.setState({breakpoint:o,layout:u,cols:s})}},e.prototype.render=function(){var t=this.props,e=(t.breakpoint,t.breakpoints,t.cols,t.layouts,t.onBreakpointChange,t.onLayoutChange,t.onWidthChange,o(t,["breakpoint","breakpoints","cols","layouts","onBreakpointChange","onLayoutChange","onWidthChange"]));return c["default"].createElement(g["default"],u({},e,{onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))},e}(c["default"].Component);b.propTypes={breakpoint:c["default"].PropTypes.string,breakpoints:c["default"].PropTypes.object,cols:c["default"].PropTypes.object,layouts:function(t,e){if("[object Object]"!==v(t[e]))throw new Error("Layout property must be an object. Received: "+v(t[e]));Object.keys(t[e]).forEach(function(e){if(!(e in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,h.validateLayout)(t.layouts[e],"layouts."+e)})},width:c["default"].PropTypes.number.isRequired,onBreakpointChange:c["default"].PropTypes.func,onLayoutChange:c["default"].PropTypes.func,onWidthChange:c["default"].PropTypes.func},b.defaultProps={breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},onBreakpointChange:m,onLayoutChange:m,onWidthChange:m},e["default"]=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),l=n(u),c=r(8),p=n(c);e["default"]=function(t){var e,r;return r=e=function(e){function r(){var t,n,i;o(this,r);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return t=n=a(this,e.call.apply(e,[this].concat(u))),n.state={mounted:!1,width:1280},n.onWindowResize=function(t,e){var r=p["default"].findDOMNode(n);n.setState({width:r.offsetWidth},e)},i=t,a(n,i)}return i(r,e),r.prototype.componentDidMount=function(){this.setState({mounted:!0}),window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},r.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize)},r.prototype.render=function(){return this.props.measureBeforeMount&&!this.state.mounted?l["default"].createElement("div",{className:this.props.className,style:this.props.style}):l["default"].createElement(t,s({},this.props,this.state))},r}(l["default"].Component),e.defaultProps={measureBeforeMount:!1},e.propTypes={measureBeforeMount:l["default"].PropTypes.bool},r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(1),c=n(l),p=r(7),f=n(p),h=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return r=n=i(this,t.call.apply(t,[this].concat(u))),n.state={width:n.props.width,height:n.props.height},n.onResize=function(t,e){var r=e.element,o=e.size;o.width,o.height;n.setState(o,function(){n.props.onResize&&n.props.onResize(t,{element:r,size:o})})},o=r,i(n,o)}return s(e,t),e.prototype.render=function(){var t=this.props,e=t.handleSize,r=t.onResizeStart,n=t.onResizeStop,a=t.draggableOpts,i=t.minConstraints,s=t.maxConstraints,l=t.lockAspectRatio,p=(t.width,
t.height,o(t,["handleSize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","width","height"]));return c["default"].createElement(f["default"],{handleSize:e,width:this.state.width,height:this.state.height,onResizeStart:r,onResize:this.onResize,onResizeStop:n,draggableOpts:a,minConstraints:i,maxConstraints:s,lockAspectRatio:l},c["default"].createElement("div",u({style:{width:this.state.width+"px",height:this.state.height+"px"}},p)))},e}(c["default"].Component);h.propTypes={height:l.PropTypes.number,width:l.PropTypes.number},h.defaultProps={handleSize:[20,20]},e["default"]=h},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a=r(1),i=n(a);t.exports=function(t,e){return e.style&&t.props.style&&(e.style=o({},t.props.style,e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),i["default"].cloneElement(t,e)}},function(t,e,r){"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=r(7)["default"],t.exports.ResizableBox=r(12)["default"]},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}])});
//# sourceMappingURL=react-grid-layout.min.js.map