UNPKG

es6-react-admin-lte

Version:

An AdminLTE Template made to use as React components.

1 lines 723 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("$"),require("React"),require("ReactDOM"));else if("function"==typeof define&&define.amd)define(["$","React","ReactDOM"],t);else{var n,r="object"==typeof exports?t(require("$"),require("React"),require("ReactDOM")):t(e.$,e.React,e.ReactDOM);for(n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(n,r,o)=>{var d,m,f,_,y,b,g,i,h,p,L,w,Y,a,M,l,v,D,T,x,s,c,S,O,P={9751:(r,o,e)=>{"use strict";var t=e(2319),u=e.n(t);function y(e,t){for(var n=new RegExp("(^|\\s)".concat(t,"(\\s|$)"),"gi");!n.test(e.className);)if(!(e=e.parentNode))return null;return e}function b(e,t,n){-1!==e.className.indexOf("collapsed-box")?(n.className=n.className.replace(/fa-plus/g,"fa-minus"),u()(t).slideDown(500,"swing",function(){e.classList.remove("collapsed-box")})):(n.className=n.className.replace(/fa-minus/g,"fa-plus"),u()(t).slideUp(500,"swing",function(){e.classList.add("collapsed-box")}))}function g(e){u()(e).slideUp(500,"swing")}function M(e,t){e.classList.toggle(t)}var t=e(1024),h=e.n(t),t=e(5697),t=e.n(t);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=L(n),t=(e=r?(e=L(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"darkenColor",value:function(e){e=e.indexOf("rgb")<0?e.replace("#",""):e.replace("rgba(","").replace("rgb(","").replace(")","").replace(" ","").split(",");return"string"==typeof e?"#".concat(e.split("").map(function(e,t,n){var r=Number(e);switch(e.toLowerCase()){case"a":return"9";case"b":return"a";case"c":return"b";case"d":return"c";case"e":return"d";case"f":return"e";default:return 0<r?r-1:r}}).join("")):e.length<4?"rgb(".concat(e.map(function(e){return 10<=Number(e)?Number(e)-10:0}).join(", "),")"):"rgba(".concat(e.map(function(e,t){return 3<=t?e:5<=Number(e)?Number(e)-5:0}).join(", "),")")}},{key:"componentDidMount",value:function(){var e=document.createElement("STYLE");e.innerHTML="\n .skin-".concat(this.props.name," .main-header .navbar {\n background-color: ").concat(this.props.primary,";\n }\n .skin-").concat(this.props.name," .main-header .navbar .nav > li > a {\n color: ").concat(this.props.hasDarkText?"#333":"#fff",";\n }\n .skin-").concat(this.props.name," .main-header .navbar .nav > li > a:hover,\n .skin-").concat(this.props.name," .main-header .navbar .nav > li > a:active,\n .skin-").concat(this.props.name," .main-header .navbar .nav > li > a:focus,\n .skin-").concat(this.props.name," .main-header .navbar .nav .open > a,\n .skin-").concat(this.props.name," .main-header .navbar .nav .open > a:hover,\n .skin-").concat(this.props.name," .main-header .navbar .nav .open > a:focus,\n .skin-").concat(this.props.name," .main-header .navbar .nav > .active > a {\n background: rgba(0, 0, 0, 0.1);\n color: ").concat(this.props.hasDarkText?"#999":"#f6f6f6",";\n }\n .skin-").concat(this.props.name," .main-header .navbar .sidebar-toggle {\n color: ").concat(this.props.hasDarkText?"#333":"#fff",";\n }\n .skin-").concat(this.props.name," .main-header .navbar .sidebar-toggle:hover {\n color: ").concat(this.props.hasDarkText?"#999":"#f6f6f6",";\n background: rgba(0, 0, 0, 0.1);\n }\n .skin-").concat(this.props.name," .main-header .navbar .sidebar-toggle {\n color: ").concat(this.props.hasDarkText?"#333":"#fff",";\n }\n .skin-").concat(this.props.name," .main-header .navbar .sidebar-toggle:hover {\n background-color: ").concat(this.props.secondary,";\n }\n @media (max-width: 767px) {\n .skin-").concat(this.props.name," .main-header .navbar .dropdown-menu li.divider {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .skin-").concat(this.props.name," .main-header .navbar .dropdown-menu li a {\n color: #333;\n }\n }\n .skin-").concat(this.props.name," .main-header .logo {\n background-color: ").concat(this.props.secondary,";\n color: ").concat(this.props.hasDarkText?"#333":"#fff",";\n border-bottom: 0 solid transparent;\n }\n .skin-").concat(this.props.name," .main-header .logo:hover {\n background-color: ").concat(this.darkenColor(this.props.secondary),";\n }\n .skin-").concat(this.props.name," .main-header li.user-header {\n background-color: ").concat(this.props.primary,";\n }\n .skin-").concat(this.props.name," .content-header {\n background: transparent;\n }\n .skin-").concat(this.props.name," .wrapper,\n .skin-").concat(this.props.name," .main-sidebar,\n .skin-").concat(this.props.name," .left-side {\n background-color: #222d32;\n }\n .skin-").concat(this.props.name," .user-panel > .info,\n .skin-").concat(this.props.name," .user-panel > .info > a {\n color: ").concat(this.props.hasDarkText?"#333":"#fff",";\n }\n .skin-").concat(this.props.name," .sidebar-menu > li.header {\n color: #4b646f;\n background: #1a2226;\n }\n .skin-").concat(this.props.name," .sidebar-menu > li > a {\n border-left: 3px solid transparent;\n }\n .skin-").concat(this.props.name," .sidebar-menu > li:hover > a,\n .skin-").concat(this.props.name," .sidebar-menu > li.active > a {\n color: #fff;\n background: #1e282c;\n border-left-color: ").concat(this.props.primary,";\n }\n .skin-").concat(this.props.name," .main-sidebar-light { background-color: #f9f9f9; }\n .skin-").concat(this.props.name," .main-sidebar-light > .sidebar .sidebar-menu > li a:hover,\n .skin-").concat(this.props.name," .main-sidebar-light > .sidebar .sidebar-menu > li.treeview.active a {\n border-left-color: ").concat(this.props.primary,";\n }\n .skin-").concat(this.props.name," .sidebar-menu > li > .treeview-menu {\n margin: 0 1px;\n background: #2c3b41;\n }\n .skin-").concat(this.props.name," .sidebar a {\n color: #b8c7ce;\n }\n .skin-").concat(this.props.name," .sidebar a:hover {\n text-decoration: none;\n }\n .skin-").concat(this.props.name," .treeview-menu > li > a {\n color: #8aa4af;\n }\n .skin-").concat(this.props.name," .treeview-menu > li.active > a,\n .skin-").concat(this.props.name," .treeview-menu > li > a:hover {\n color: #fff;\n }\n .skin-").concat(this.props.name," .sidebar-form {\n border-radius: 3px;\n border: 1px solid #374850;\n margin: 10px 10px;\n }\n .skin-").concat(this.props.name,' .sidebar-form input[type="text"],\n .skin-').concat(this.props.name," .sidebar-form .btn {\n box-shadow: none;\n background-color: #374850;\n border: 1px solid transparent;\n height: 35px;\n }\n .skin-").concat(this.props.name,' .sidebar-form input[type="text"] {\n color: #666;\n border-top-left-radius: 2px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 2px;\n }\n .skin-').concat(this.props.name,' .sidebar-form input[type="text"]:focus,\n .skin-').concat(this.props.name,' .sidebar-form input[type="text"]:focus + .input-group-btn .btn {\n background-color: #fff;\n color: #666;\n }\n .skin-').concat(this.props.name,' .sidebar-form input[type="text"]:focus + .input-group-btn .btn {\n border-left-color: #fff;\n }\n .skin-').concat(this.props.name," .sidebar-form .btn {\n color: #999;\n border-top-left-radius: 0;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n border-bottom-left-radius: 0;\n }\n ").concat(this.props.specialStyles,"\n "),document.head.appendChild(e)}},{key:"render",value:function(){return null}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.propTypes={name:t().string.isRequired,primary:t().string,secondary:t().string,hasDarkText:t().bool,specialStyles:t().string},n.defaultProps={hasDarkText:!1,primary:"#3c8dbc",secondary:"#357ca5",specialStyles:""},h().Component;const x=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Y(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=T(n),t=(e=r?(e=T(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return D(t)};function a(e){var t=this;if(!(t instanceof a))throw new TypeError("Cannot call a class as a function");return(t=o.call(this,e)).toggleCollapse=t.toggleCollapse.bind(D(t)),t.removeBox=t.removeBox.bind(D(t)),t}for(var i=(t=a).prototype,s=[{key:"toggleCollapse",value:function(e){var t=y(e.currentTarget,this.props.containerClass);b(t,t.children[1],e.currentTarget.children[0])}},{key:"removeBox",value:function(e){g(y(e.currentTarget,this.props.containerClass))}},{key:"render",value:function(){switch(this.props.toolType){case"expand":return h().createElement("button",{className:"btn btn-box-tool","data-widget":"expand",onClick:this.toggleCollapse},h().createElement("i",{className:"fa fa-plus"}));case"collapse":return h().createElement("button",{className:"btn btn-box-tool","data-widget":"collapse",onClick:this.toggleCollapse},h().createElement("i",{className:"fa fa-minus"}));case"remove":return h().createElement("button",{className:"btn btn-box-tool","data-widget":"remove",onClick:this.removeBox},h().createElement("i",{className:"fa fa-times"}))}}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=P(n),t=(e=r?(e=P(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"render",value:function(){var e,t,n,r=this.props.collapsed?" collapsed-box":"",o=this.props.solid?" box-solid":"",u=this.props.border?" with-border":"",a=[],i=this.props.widthXS||this.props.width,s=this.props.widthSM||i,l=this.props.widthMD||s,c=this.props.widthLG||l,d=this.props.widthXL||c;return this.props.boxTools&&(this.props.boxTools.map(function(e,t){a.push(h().createElement(x,{key:t,toolType:e,containerClass:"box"}))}),e=h().createElement("div",{className:"box-tools pull-right"},a)),this.props.loading&&(t=h().createElement("div",{className:"overlay"},h().createElement("i",{className:"fa fa-refresh fa-spin"}))),this.props.footer&&(n=h().createElement("div",{className:"box-footer"},this.props.footer)),h().createElement("div",{className:"col-xs-".concat(i," col-sm-").concat(s," col-md-").concat(l," col-lg-").concat(c," col-xl-").concat(d)},h().createElement("div",{className:"box color-palette-box ".concat(this.props.theme).concat(r).concat(o)},this.props.boxTools||this.props.title?h().createElement("div",{className:"box-header".concat(u)},h().createElement("h3",{className:"box-title"},this.props.title),e):"",h().createElement("div",{className:"box-body".concat(this.props.noPadding?" no-padding":"")},this.props.content,this.props.children),n,t))}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component),n=(n.propTypes={width:t().oneOfType([t().number,t().string]),widthXS:t().oneOfType([t().number,t().string]),widthSM:t().oneOfType([t().number,t().string]),widthMD:t().oneOfType([t().number,t().string]),widthLG:t().oneOfType([t().number,t().string]),widthXL:t().oneOfType([t().number,t().string]),boxTools:t().array,theme:t().string,title:t().oneOfType([t().string,t().element]),content:t().string,footer:t().string,collapsed:t().bool,loading:t().bool,solid:t().bool,border:t().bool,noPadding:t().bool},n.defaultProps={width:12,theme:"",title:"",content:"",collapsed:!1,loading:!1,solid:!1,border:!1,noPadding:!1},e(7757)),d=e.n(n);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=H(n),t=(e=r?(e=H(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.datasets||[{label:this.props.datasetLabel,data:this.props.data,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,borderWidth:this.props.borderWidth,xAxisID:this.props.xAxisId,yAxisID:this.props.yAxisId,borderSkipped:this.props.bordersSkipped,hoverBackgroundColor:this.props.hoverBackgroundColor,hoverBorderColor:this.props.hoverBorderColor,hoverBorderWidth:this.props.hoverBorderWidth}],e={labels:this.props.labels,datasets:e},t=this.props.options,n=document.getElementById(this.props.id).getContext("2d");new(d())(n,{type:this.props.horizontal?"horizontalBar":"bar",data:e,options:t})}},{key:"render",value:function(){return h().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component),n=(n.propTypes={id:t().string,width:t().string,height:t().string,datasets:t().array,labels:t().array,datasetLabel:t().string,data:t().array,horizontal:t().bool,backgroundColor:t().oneOfType([t().string,t().array]),borderColor:t().oneOfType([t().string,t().array]),borderWidth:t().oneOfType([t().array,t().number]),xAxisID:t().string,YAxisID:t().string,borderSkipped:t().oneOfType([t().string,t().array]),hoverBackgroundColor:t().oneOfType([t().string,t().array]),hoverBorderColor:t().oneOfType([t().string,t().array]),hoverBorderWidth:t().oneOfType([t().string,t().array]),options:t().object},n.defaultProps={id:"bar-chart-0",width:"300",height:"200",horizontal:!1,options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]},legend:{display:!1,labels:{display:!1}}}},e(314)),p=e.n(n);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=R(n),t=(e=r?(e=R(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.datasets||[{label:this.props.datasetLabel,data:this.props.data,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,borderWidth:this.props.borderWidth,hoverBackgroundColor:this.props.hoverBackgroundColor,hoverBorderColor:this.props.hoverBorderColor,hoverBorderWidth:this.props.hoverBorderWidth}],e={labels:this.props.axisLabels,datasets:e},t=this.props.options,n=document.getElementById(this.props.id).getContext("2d");new(d())(n,{type:"doughnut",data:e,options:t})}},{key:"render",value:function(){return h().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={id:t().string,width:t().string,height:t().string,datasets:t().array,axisLabels:t().array,datasetLabel:t().string,data:t().array,backgroundColor:t().array,borderColor:t().array,borderWidth:t().array,hoverBackgroundColor:t().array,hoverBorderColor:t().array,hoverBorderWidth:t().array,options:t().object},e.defaultProps={id:"doughnut-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=W(n),t=(e=r?(e=W(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.datasets||[{label:this.props.datasetLabel,fill:this.props.fill,lineTension:this.props.lineTension,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,borderCapStyle:this.props.borderCapStyle,borderWidth:this.props.borderWidth,pointBorderColor:this.props.pointBorderColor,pointBackgroundColor:this.props.pointBackgroundColor,pointBorderWidth:this.props.pointBorderWidth,pointHoverRadius:this.props.pointHoverRadius,pointHoverBackgroundColor:this.props.pointHoverBackgroundColor,pointHoverBorderColor:this.props.pointHoverBorderColor,pointHoverBorderWidth:this.props.pointHoverBorderWidth,pointRadius:this.props.pointRadius,pointStyle:this.props.pointStyle,showLine:this.props.showLine,data:this.props.data,xAxisID:this.props.xAxisID,yAxisID:this.props.yAxisID}],e={labels:this.props.axisLabels,datasets:e},t=document.getElementById(this.props.id).getContext("2d");new(d())(t,{type:"line",options:this.props.options,data:e})}},{key:"render",value:function(){return h().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.propTypes={id:t().string,width:t().string,height:t().string,datasets:t().array,datasetLabel:t().string,axisLabels:t().array,lineTension:t().number,data:t().array,backgroundColor:t().string,borderColor:t().string,borderCapStyle:t().string,borderWidth:t().number,fill:t().bool,pointBackgroundColor:t().oneOfType([t().array,t().string]),pointBorderColor:t().oneOfType([t().array,t().string]),pointBorderWidth:t().oneOfType([t().array,t().number]),pointRadius:t().oneOfType([t().array,t().number]),pointHoverRadius:t().oneOfType([t().array,t().number]),pointHoverBackgroundColor:t().oneOfType([t().array,t().string]),pointHoverBorderColor:t().oneOfType([t().array,t().string]),pointHoverBorderWidth:t().oneOfType([t().array,t().number]),pointStyle:t().oneOfType([t().array,t().string]),showLine:t().bool,xAxisID:t().string,yAxisID:t().string,options:t().object},n.defaultProps={id:"line-chart-0",width:"300",height:"200",lineTension:0,fill:!1,showLine:!1,pointStyle:"circle",options:{legend:{display:!1,labels:{display:!1}}}};e=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=B(n),t=(e=r?(e=B(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.mapParams||{map:this.props.map,backgroundColor:this.props.backgroundColor,zoomOnScroll:this.props.zoomOnScroll,zoomOnScrollSpeed:this.props.zoomOnScrollSpeed,panOnDrag:this.props.panOnDrag,zoomMax:this.props.zoomMax,zoomMin:this.props.zoomMin,zoomStep:this.props.zoomStep,zoomAnimate:this.props.zoomAnimate,regionsSelectable:this.props.regionsSelectable,regionsSelectableOne:this.props.regionsSelectableOne,markersSelectable:this.props.markersSelectable,markersSelectableOne:this.props.markersSelectableOne,regionStyle:this.props.regionStyle,regionLabelStyle:this.props.regionLabelStyle,markerStyle:this.props.markerStyle,markerLabelStyle:this.props.markerLabelStyle,markers:this.props.markers,series:this.props.series,onRegionLabelShow:this.props.onRegionLabelShow,focusOn:this.props.focusOn,labels:this.props.labels,selectedRegions:this.props.selectedRegions,selectedMarkers:this.props.selectedMarkers,onRegionTipShow:this.props.onRegionTipShow,onRegionOver:this.props.onRegionOver,onRegionOut:this.props.onRegionOut,onRegionClick:this.props.onRegionClick,onRegionSelected:this.props.onRegionSelected,onMarkerTipShow:this.props.onMarkerTipShow,onMarkerOver:this.props.onMarkerOver,onMarkerOut:this.props.onMarkerOut,onMarkerClick:this.props.onMarkerClick,onMarkerSelected:this.props.onMarkerSelected,onViewportChange:this.props.onViewportChange};u()("#".concat(this.props.id)).vectorMap(e)}},{key:"render",value:function(){return h().createElement("div",{id:this.props.id,style:{width:this.props.width,height:this.props.height}})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={id:t().string,width:t().string,height:t().string,mapParams:t().object,map:t().string,backgroundColor:t().string,zoomOnScroll:t().bool,zoomOnScrollSpeed:t().number,panOnDrag:t().bool,zoomMax:t().number,zoomMin:t().number,zoomStep:t().number,zoomAnimate:t().bool,regionsSelectable:t().bool,regionsSelectableOne:t().bool,markersSelectable:t().bool,markersSelectableOne:t().bool,regionStyle:t().object,regionLabelStyle:t().object,markerStyle:t().object,markerLabelStyle:t().object,markers:t().oneOfType([t().object,t().array]),series:t().object,focusOn:t().oneOfType([t().object,t().string]),labels:t().object,selectedRegions:t().oneOfType([t().object,t().array,t().string]),selectedMarkers:t().oneOfType([t().object,t().array,t().string]),onRegionTipShow:t().func,onRegionOver:t().func,onRegionOut:t().func,onRegionClick:t().func,onRegionSelected:t().func,onMarkerTipShow:t().func,onMarkerOver:t().func,onMarkerOut:t().func,onMarkerClick:t().func,onMarkerSelected:t().func,onViewportChange:t().func},e.defaultProps={id:"world-map-0",width:"100%",height:"300px",map:"world_mill_en",backgroundColor:"#555555",zoomOnScroll:!0,zoomOnScrollSpeed:3,panOnDrag:!0,zoomMax:8,zoomMin:1,zoomStep:1.6,regionsSelectable:!1,regionsSelectableOne:!1,markersSelectable:!1,markersSelectableOne:!1,regionStyle:{initial:{fill:"#bbbbbb","fill-opacity":1,stroke:"none","stroke-width":0,"stroke-opacity":1},hover:{"fill-opacity":.8,cursor:"pointer"},selected:{fill:"yellow"},selectedHover:{}},regionLabelStyle:{initial:{"font-family":"Verdana","font-size":"12","font-weight":"bold",cursor:"default",fill:"black"},hover:{cursor:"pointer"}},markerStyle:{initial:{fill:"grey",stroke:"#505050","fill-opacity":1,"stroke-width":1,"stroke-opacity":1,r:5},hover:{stroke:"black","stroke-width":2,cursor:"pointer"},selected:{fill:"blue"},selectedHover:{}},markerLabelStyle:{initial:{"font-family":"Verdana","font-size":"12","font-weight":"bold",cursor:"default",fill:"black"},hover:{cursor:"pointer"}}};n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&J(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=U(n),t=(e=r?(e=U(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===V(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.datasets||[{label:this.props.datasetLabel,data:this.props.data,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,borderWidth:this.props.borderWidth,hoverBackgroundColor:this.props.hoverBackgroundColor,hoverBorderColor:this.props.hoverBorderColor,hoverBorderWidth:this.props.hoverBorderWidth}],e={labels:this.props.axisLabels,datasets:e},t=this.props.options,n=document.getElementById(this.props.id).getContext("2d");new(d())(n,{type:"pie",data:e,options:t})}},{key:"render",value:function(){return h().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.propTypes={id:t().string,width:t().string,height:t().string,datasets:t().array,axisLabels:t().array,datasetLabel:t().string,data:t().array,backgroundColor:t().array,borderColor:t().array,borderWidth:t().array,hoverBackgroundColor:t().array,hoverBorderColor:t().array,hoverBorderWidth:t().array,options:t().object},n.defaultProps={id:"pie-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};e=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=$(n),t=(e=r?(e=$(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"componentDidMount",value:function(){var e=this.props.datasets||[{label:this.props.datasetLabel,data:this.props.data,fill:this.props.fill,lineTension:this.props.lineTension,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,borderWidth:this.props.borderWidth,borderCapStyle:this.props.borderCapStyle,pointBackgroundColor:this.props.pointBackgroundColor,pointBorderColor:this.props.pointBorderColor,pointBorderWidth:this.props.pointBorderWidth,pointRadius:this.props.pointRadius,pointHoverRadius:this.props.pointHoverRadius,pointHoverBackgroundColor:this.props.pointHoverBackgroundColor,pointHoverBorderColor:this.props.pointHoverBorderColor,pointHoverBorderWidth:this.props.pointHoverBorderWidth,pointStyle:this.props.pointStyle}],e={labels:this.props.axisLabels,datasets:e},t=this.props.options,n=document.getElementById(this.props.id).getContext("2d");new(d())(n,{type:"radar",data:e,options:t})}},{key:"render",value:function(){return h().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={id:t().string,width:t().string,height:t().string,datasets:t().array,axisLabels:t().array,fill:t().bool,lineTension:t().number,borderCapStyle:t().string,datasetLabel:t().string,data:t().array,backgroundColor:t().string,borderColor:t().string,borderWidth:t().number,pointBackgroundColor:t().oneOfType([t().array,t().string]),pointBorderColor:t().oneOfType([t().array,t().string]),pointBorderWidth:t().oneOfType([t().array,t().number]),pointRadius:t().oneOfType([t().array,t().number]),pointHoverRadius:t().oneOfType([t().array,t().number]),pointHoverBackgroundColor:t().oneOfType([t().array,t().string]),pointHoverBorderColor:t().oneOfType([t().array,t().string]),pointHoverBorderWidth:t().oneOfType([t().array,t().number]),pointStyle:t().oneOfType([t().array,t().string]),options:t().object},e.defaultProps={id:"radar-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Z(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=X(n),t=(e=r?(e=X(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===K(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)};function a(e){var t=this;if(!(t instanceof a))throw new TypeError("Cannot call a class as a function");return(t=o.call(this,e)).state={message:""},t.toggleCollapse=t.toggleCollapse.bind(m(t)),t.removeBox=t.removeBox.bind(m(t)),t.toggleChat=t.toggleChat.bind(m(t)),t.onSendMessage=t.onSendMessage.bind(m(t)),t.isContacts=t.isContacts.bind(m(t)),t}for(var i=(t=a).prototype,s=[{key:"toggleCollapse",value:function(e){b(p().findDOMNode(this).children[0],p().findDOMNode(this).children[0].children[1],e.currentTarget.children[0])}},{key:"removeBox",value:function(){g(p().findDOMNode(this).children[0])}},{key:"toggleChat",value:function(){var e=p().findDOMNode(this).children[0],t=" direct-chat-contacts-open";0<=e.className.indexOf(t)?e.className=e.className.replace(t,""):e.className="".concat(e.className).concat(t)}},{key:"isContacts",value:function(){var t=!1;return h().Children.forEach(this.props.children,function(e){"".concat(e.type).includes("Contacts")&&(t=!0)}),this.props.children&&t}},{key:"onSendMessage",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSubmit(this.state.message)}},{key:"render",value:function(){var t=this,e=!0===this.props.border?"box-solid":"";return h().createElement("div",{className:"col-md-".concat(this.props.width)},h().createElement("div",{className:"box direct-chat ".concat(this.props.headerTheme," ").concat(this.props.chatTheme," ").concat(e)},h().createElement("div",{className:"box-header with-border"},h().createElement("h3",{className:"box-title"},this.props.title),h().createElement("div",{className:"box-tools pull-right"},0<this.props.notifications?h().createElement("span",{"data-toggle":"tooltip",title:"",className:"badge ".concat(this.props.notificationTheme),"data-original-title":"".concat(this.props.notifications," New Messages")},this.props.notifications):"",this.isContacts()?h().createElement("button",{className:"btn btn-box-tool","data-toggle":"tooltip",title:"","data-widget":"chat-pane-toggle","data-original-title":"Contacts",onClick:this.toggleChat},h().createElement("i",{className:"fa fa-comments"})):"",h().createElement("button",{className:"btn btn-box-tool","data-toggle":"collapse",onClick:this.toggleCollapse},h().createElement("i",{className:"fa fa-minus"})),h().createElement("button",{className:"btn btn-box-tool","data-toggle":"remove",onClick:this.removeBox},h().createElement("i",{className:"fa fa-times"})))),h().createElement("div",{className:"box-body"},this.props.children),h().createElement("div",{className:"box-footer"},h().createElement("form",{noValidate:!0,onSubmit:this.onSendMessage},h().createElement("input",{type:"text",name:"message",placeholder:"Type message...",className:"form-control",value:this.state.message,onChange:function(e){t.setState({message:e.currentTarget.value})}}),h().createElement("span",{className:"input-group-btn"},h().createElement("button",{type:"button",className:"btn btn-flat ".concat(this.props.buttonTheme),onClick:this.onSendMessage},"Send"))))))}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.propTypes={width:t().number,border:t().bool,headerTheme:t().string,notificationTheme:t().string,chatTheme:t().string,buttonTheme:t().string,title:t().oneOfType([t().string,t().number]),notifications:t().oneOfType([t().string,t().number]),onSubmit:t().func},n.defaultProps={width:3,border:!1,headerTheme:"box-primary",notificationTheme:"bg-light-blue",chatTheme:"direct-chat-primary",buttonTheme:"btn-primary",title:"Chat Box",notifications:0,onSubmit:function(){}},h().Component;e=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=te(n),t=(e=r?(e=te(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"render",value:function(){var e=this.props.conversations.map(function(e,t){return h().createElement("div",{className:"direct-chat-msg ".concat(e.align),key:"message".concat(t)},h().createElement("div",{className:"direct-chat-name clearfix"},h().createElement("span",{className:"direct-chat-name pull-right"},e.displayName),h().createElement("span",{className:"direct-chat-timestamp pull-left"},e.date)),h().createElement("img",{className:"direct-chat-img",src:e.img,alt:"message user image"}),h().createElement("div",{className:"direct-chat-text"},e.message))});return h().createElement("div",{className:"direct-chat-messages"},e)}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={conversations:t().array},e.defaultProps={conversations:[]};n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&re(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=ae(n),t=(e=r?(e=ae(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return oe(t)};function a(e){var t=this;if(!(t instanceof a))throw new TypeError("Cannot call a class as a function");return(t=o.call(this,e)).populateThatCrumb=t.populateThatCrumb.bind(oe(t)),t}for(var i=(t=a).prototype,s=[{key:"populateThatCrumb",value:function(){var r=location.pathname.split("/"),o=(r.shift(),"/");return r.map(function(e,t){var n="breadcrumb-item";return t+1===r.length&&(n+=" active"),o+="".concat(e,"/"),"index.html"===e&&(o=e="#"),h().createElement("li",{key:t,className:n},h().createElement("a",{href:location.hostname+o},e))})}},{key:"render",value:function(){var e=this.populateThatCrumb();return h().createElement("ol",{className:"breadcrumb"},e)}}],l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}return Object.defineProperty(t,"prototype",{writable:!1}),a}(h().Component);n.propTypes={},n.defaultProps={};const ie=n;function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&le(t,e);n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();var n,r,o=function(){var e,t=ce(n),t=(e=r?(e=ce(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===se(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");return o.apply(this,arguments)}for(var i=(t=a).prototype,s=[{key:"render",value:function(){return h().createEleme