es6-react-admin-lte
Version:
An AdminLTE Template made to use as React components.
2 lines • 736 kB
JavaScript
/*! For license information please see es6-react-admin-lte.js.LICENSE.txt */
!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="object"==typeof exports?t(require("$"),require("React"),require("ReactDOM")):t(e.$,e.React,e.ReactDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r,o,a,i,s,l,c,u={9751:(e,t,n)=>{"use strict";var r=n(2319),o=n.n(r);function a(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 i(e,t,n){-1!==e.className.indexOf("collapsed-box")?(n.className=n.className.replace(/fa-plus/g,"fa-minus"),o()(t).slideDown(500,"swing",(function(){e.classList.remove("collapsed-box")}))):(n.className=n.className.replace(/fa-minus/g,"fa-plus"),o()(t).slideUp(500,"swing",(function(){e.classList.add("collapsed-box")})))}function s(e){o()(e).slideUp(500,"swing")}function l(e,t){e.classList.toggle(t)}var c=n(1024),u=n.n(c),d=n(5697),f=n.n(d);function p(e){return p="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},p(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function y(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=b(r);if(o){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function i(){return m(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"darkenColor",value:function(e){var t=e.indexOf("rgb")<0?e.replace("#",""):e.replace("rgba(","").replace("rgb(","").replace(")","").replace(" ","").split(",");return"string"==typeof t?"#".concat(t.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 r>0?r-1:r}})).join("")):t.length<4?"rgb(".concat(t.map((function(e){return Number(e)>=10?Number(e)-10:0})).join(", "),")"):"rgba(".concat(t.map((function(e,t){return t>=3?e:Number(e)>=5?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}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().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},v(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function L(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}g.propTypes={name:f().string.isRequired,primary:f().string,secondary:f().string,hasDarkText:f().bool,specialStyles:f().string},g.defaultProps={hasDarkText:!1,primary:"#3c8dbc",secondary:"#357ca5",specialStyles:""},u().Component;const D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(c,e);var t,n,r,o,l=(r=c,o=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}}(),function(){var e,t=Y(r);if(o){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return L(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).toggleCollapse=t.toggleCollapse.bind(w(t)),t.removeBox=t.removeBox.bind(w(t)),t}return t=c,(n=[{key:"toggleCollapse",value:function(e){var t=a(e.currentTarget,this.props.containerClass);i(t,t.children[1],e.currentTarget.children[0])}},{key:"removeBox",value:function(e){s(a(e.currentTarget,this.props.containerClass))}},{key:"render",value:function(){var e=this;switch(this.props.toolType){case"expand":return u().createElement("button",{className:"btn btn-box-tool","data-widget":"expand",onClick:e.toggleCollapse},u().createElement("i",{className:"fa fa-plus"}));case"collapse":return u().createElement("button",{className:"btn btn-box-tool","data-widget":"collapse",onClick:e.toggleCollapse},u().createElement("i",{className:"fa fa-minus"}));case"remove":return u().createElement("button",{className:"btn btn-box-tool","data-widget":"remove",onClick:e.removeBox},u().createElement("i",{className:"fa fa-times"}))}}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(u().Component);function T(e){return T="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},T(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function P(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=j(r);if(o){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function i(){return x(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r=this.props.collapsed?" collapsed-box":"",o=this.props.solid?" box-solid":"",a=this.props.border?" with-border":"",i=[],s=this.props.widthXS||this.props.width,l=this.props.widthSM||s,c=this.props.widthMD||l,d=this.props.widthLG||c,f=this.props.widthXL||d;return this.props.boxTools&&(this.props.boxTools.map((function(e,t){i.push(u().createElement(D,{key:t,toolType:e,containerClass:"box"}))})),e=u().createElement("div",{className:"box-tools pull-right"},i)),this.props.loading&&(t=u().createElement("div",{className:"overlay"},u().createElement("i",{className:"fa fa-refresh fa-spin"}))),this.props.footer&&(n=u().createElement("div",{className:"box-footer"},this.props.footer)),u().createElement("div",{className:"col-xs-".concat(s," col-sm-").concat(l," col-md-").concat(c," col-lg-").concat(d," col-xl-").concat(f)},u().createElement("div",{className:"box color-palette-box ".concat(this.props.theme).concat(r).concat(o)},this.props.boxTools||this.props.title?u().createElement("div",{className:"box-header".concat(a)},u().createElement("h3",{className:"box-title"},this.props.title),e):"",u().createElement("div",{className:"box-body".concat(this.props.noPadding?" no-padding":"")},this.props.content,this.props.children),n,t))}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);E.propTypes={width:f().oneOfType([f().number,f().string]),widthXS:f().oneOfType([f().number,f().string]),widthSM:f().oneOfType([f().number,f().string]),widthMD:f().oneOfType([f().number,f().string]),widthLG:f().oneOfType([f().number,f().string]),widthXL:f().oneOfType([f().number,f().string]),boxTools:f().array,theme:f().string,title:f().oneOfType([f().string,f().element]),content:f().string,footer:f().string,collapsed:f().bool,loading:f().bool,solid:f().bool,border:f().bool,noPadding:f().bool},E.defaultProps={width:12,theme:"",title:"",content:"",collapsed:!1,loading:!1,solid:!1,border:!1,noPadding:!1};var H=n(7757),C=n.n(H);function N(e){return N="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},N(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function W(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=z(r);if(o){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return W(this,e)});function i(){return R(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){var e;e=this.props.datasets?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}];var t={labels:this.props.labels,datasets:e},n=this.props.options,r=document.getElementById(this.props.id).getContext("2d");new(C())(r,{type:this.props.horizontal?"horizontalBar":"bar",data:t,options:n})}},{key:"render",value:function(){return u().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);I.propTypes={id:f().string,width:f().string,height:f().string,datasets:f().array,labels:f().array,datasetLabel:f().string,data:f().array,horizontal:f().bool,backgroundColor:f().oneOfType([f().string,f().array]),borderColor:f().oneOfType([f().string,f().array]),borderWidth:f().oneOfType([f().array,f().number]),xAxisID:f().string,YAxisID:f().string,borderSkipped:f().oneOfType([f().string,f().array]),hoverBackgroundColor:f().oneOfType([f().string,f().array]),hoverBorderColor:f().oneOfType([f().string,f().array]),hoverBorderWidth:f().oneOfType([f().string,f().array]),options:f().object},I.defaultProps={id:"bar-chart-0",width:"300",height:"200",horizontal:!1,options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]},legend:{display:!1,labels:{display:!1}}}};var B=n(314),V=n.n(B);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},J(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(e,t)}function $(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=K(r);if(o){var n=K(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function i(){return U(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){var e;e=this.props.datasets?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}];var t={labels:this.props.axisLabels,datasets:e},n=this.props.options,r=document.getElementById(this.props.id).getContext("2d");new(C())(r,{type:"doughnut",data:t,options:n})}},{key:"render",value:function(){return u().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}])&&q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);function X(e){return X="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},X(e)}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}Z.propTypes={id:f().string,width:f().string,height:f().string,datasets:f().array,axisLabels:f().array,datasetLabel:f().string,data:f().array,backgroundColor:f().array,borderColor:f().array,borderWidth:f().array,hoverBackgroundColor:f().array,hoverBorderColor:f().array,hoverBorderWidth:f().array,options:f().object},Z.defaultProps={id:"doughnut-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=re(r);if(o){var n=re(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ne(this,e)});function i(){return Q(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){var e;e=this.props.datasets?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}];var t={labels:this.props.axisLabels,datasets:e},n=document.getElementById(this.props.id).getContext("2d");new(C())(n,{type:"line",options:this.props.options,data:t})}},{key:"render",value:function(){return u().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}])&&ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);function ae(e){return ae="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},ae(e)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t){return le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},le(e,t)}function ce(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}oe.propTypes={id:f().string,width:f().string,height:f().string,datasets:f().array,datasetLabel:f().string,axisLabels:f().array,lineTension:f().number,data:f().array,backgroundColor:f().string,borderColor:f().string,borderCapStyle:f().string,borderWidth:f().number,fill:f().bool,pointBackgroundColor:f().oneOfType([f().array,f().string]),pointBorderColor:f().oneOfType([f().array,f().string]),pointBorderWidth:f().oneOfType([f().array,f().number]),pointRadius:f().oneOfType([f().array,f().number]),pointHoverRadius:f().oneOfType([f().array,f().number]),pointHoverBackgroundColor:f().oneOfType([f().array,f().string]),pointHoverBorderColor:f().oneOfType([f().array,f().string]),pointHoverBorderWidth:f().oneOfType([f().array,f().number]),pointStyle:f().oneOfType([f().array,f().string]),showLine:f().bool,xAxisID:f().string,yAxisID:f().string,options:f().object},oe.defaultProps={id:"line-chart-0",width:"300",height:"200",lineTension:0,fill:!1,showLine:!1,pointStyle:"circle",options:{legend:{display:!1,labels:{display:!1}}}};var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&le(e,t)}(s,e);var t,n,r,a,i=(r=s,a=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}}(),function(){var e,t=ue(r);if(a){var n=ue(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ce(this,e)});function s(){return ie(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"componentDidMount",value:function(){var e=this.props.mapParams?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};o()("#".concat(this.props.id)).vectorMap(e)}},{key:"render",value:function(){return u().createElement("div",{id:this.props.id,style:{width:this.props.width,height:this.props.height}})}}])&&se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(u().Component);function fe(e){return fe="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},fe(e)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},he(e,t)}function _e(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}de.propTypes={id:f().string,width:f().string,height:f().string,mapParams:f().object,map:f().string,backgroundColor:f().string,zoomOnScroll:f().bool,zoomOnScrollSpeed:f().number,panOnDrag:f().bool,zoomMax:f().number,zoomMin:f().number,zoomStep:f().number,zoomAnimate:f().bool,regionsSelectable:f().bool,regionsSelectableOne:f().bool,markersSelectable:f().bool,markersSelectableOne:f().bool,regionStyle:f().object,regionLabelStyle:f().object,markerStyle:f().object,markerLabelStyle:f().object,markers:f().oneOfType([f().object,f().array]),series:f().object,focusOn:f().oneOfType([f().object,f().string]),labels:f().object,selectedRegions:f().oneOfType([f().object,f().array,f().string]),selectedMarkers:f().oneOfType([f().object,f().array,f().string]),onRegionTipShow:f().func,onRegionOver:f().func,onRegionOut:f().func,onRegionClick:f().func,onRegionSelected:f().func,onMarkerTipShow:f().func,onMarkerOver:f().func,onMarkerOut:f().func,onMarkerClick:f().func,onMarkerSelected:f().func,onViewportChange:f().func},de.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"}}};var be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=ye(r);if(o){var n=ye(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _e(this,e)});function i(){return pe(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){var e;e=this.props.datasets?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}];var t={labels:this.props.axisLabels,datasets:e},n=this.props.options,r=document.getElementById(this.props.id).getContext("2d");new(C())(r,{type:"pie",data:t,options:n})}},{key:"render",value:function(){return u().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}])&&me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);function ge(e){return ge="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},ge(e)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ke(e,t)}function Le(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}be.propTypes={id:f().string,width:f().string,height:f().string,datasets:f().array,axisLabels:f().array,datasetLabel:f().string,data:f().array,backgroundColor:f().array,borderColor:f().array,borderWidth:f().array,hoverBackgroundColor:f().array,hoverBorderColor:f().array,hoverBorderWidth:f().array,options:f().object},be.defaultProps={id:"pie-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};var Ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=we(r);if(o){var n=we(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Le(this,e)});function i(){return ve(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){var e;e=this.props.datasets?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}];var t={labels:this.props.axisLabels,datasets:e},n=this.props.options,r=document.getElementById(this.props.id).getContext("2d");new(C())(r,{type:"radar",data:t,options:n})}},{key:"render",value:function(){return u().createElement("canvas",{id:this.props.id,width:this.props.width,height:this.props.height})}}])&&Me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);function De(e){return De="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},De(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t){return xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xe(e,t)}function Se(e,t){if(t&&("object"===De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}Ye.propTypes={id:f().string,width:f().string,height:f().string,datasets:f().array,axisLabels:f().array,fill:f().bool,lineTension:f().number,borderCapStyle:f().string,datasetLabel:f().string,data:f().array,backgroundColor:f().string,borderColor:f().string,borderWidth:f().number,pointBackgroundColor:f().oneOfType([f().array,f().string]),pointBorderColor:f().oneOfType([f().array,f().string]),pointBorderWidth:f().oneOfType([f().array,f().number]),pointRadius:f().oneOfType([f().array,f().number]),pointHoverRadius:f().oneOfType([f().array,f().number]),pointHoverBackgroundColor:f().oneOfType([f().array,f().string]),pointHoverBorderColor:f().oneOfType([f().array,f().string]),pointHoverBorderWidth:f().oneOfType([f().array,f().number]),pointStyle:f().oneOfType([f().array,f().string]),options:f().object},Ye.defaultProps={id:"radar-chart-0",width:"300",height:"300",options:{legend:{display:!1,labels:{display:!1}}}};var je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(l,e);var t,n,r,o,a=(r=l,o=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}}(),function(){var e,t=Pe(r);if(o){var n=Pe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Se(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={message:""},t.toggleCollapse=t.toggleCollapse.bind(Oe(t)),t.removeBox=t.removeBox.bind(Oe(t)),t.toggleChat=t.toggleChat.bind(Oe(t)),t.onSendMessage=t.onSendMessage.bind(Oe(t)),t.isContacts=t.isContacts.bind(Oe(t)),t}return t=l,(n=[{key:"toggleCollapse",value:function(e){i(V().findDOMNode(this).children[0],V().findDOMNode(this).children[0].children[1],e.currentTarget.children[0])}},{key:"removeBox",value:function(){s(V().findDOMNode(this).children[0])}},{key:"toggleChat",value:function(){var e=V().findDOMNode(this).children[0],t=" direct-chat-contacts-open";e.className.indexOf(t)>=0?e.className=e.className.replace(t,""):e.className="".concat(e.className).concat(t)}},{key:"isContacts",value:function(){var e=!1;return u().Children.forEach(this.props.children,(function(t){"".concat(t.type).includes("Contacts")&&(e=!0)})),this.props.children&&e}},{key:"onSendMessage",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSubmit(this.state.message)}},{key:"render",value:function(){var e=this,t=!0===this.props.border?"box-solid":"";return u().createElement("div",{className:"col-md-".concat(this.props.width)},u().createElement("div",{className:"box direct-chat ".concat(this.props.headerTheme," ").concat(this.props.chatTheme," ").concat(t)},u().createElement("div",{className:"box-header with-border"},u().createElement("h3",{className:"box-title"},this.props.title),u().createElement("div",{className:"box-tools pull-right"},this.props.notifications>0?u().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()?u().createElement("button",{className:"btn btn-box-tool","data-toggle":"tooltip",title:"","data-widget":"chat-pane-toggle","data-original-title":"Contacts",onClick:this.toggleChat},u().createElement("i",{className:"fa fa-comments"})):"",u().createElement("button",{className:"btn btn-box-tool","data-toggle":"collapse",onClick:this.toggleCollapse},u().createElement("i",{className:"fa fa-minus"})),u().createElement("button",{className:"btn btn-box-tool","data-toggle":"remove",onClick:this.removeBox},u().createElement("i",{className:"fa fa-times"})))),u().createElement("div",{className:"box-body"},this.props.children),u().createElement("div",{className:"box-footer"},u().createElement("form",{noValidate:!0,onSubmit:this.onSendMessage},u().createElement("input",{type:"text",name:"message",placeholder:"Type message...",className:"form-control",value:this.state.message,onChange:function(t){e.setState({message:t.currentTarget.value})}}),u().createElement("span",{className:"input-group-btn"},u().createElement("button",{type:"button",className:"btn btn-flat ".concat(this.props.buttonTheme),onClick:this.onSendMessage},"Send"))))))}}])&&Te(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(u().Component);function Ee(e){return Ee="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},Ee(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t){return Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ne(e,t)}function Re(e,t){if(t&&("object"===Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}je.propTypes={width:f().number,border:f().bool,headerTheme:f().string,notificationTheme:f().string,chatTheme:f().string,buttonTheme:f().string,title:f().oneOfType([f().string,f().number]),notifications:f().oneOfType([f().string,f().number]),onSubmit:f().func},je.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(){}},u().Component;var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=Ae(r);if(o){var n=Ae(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Re(this,e)});function i(){return He(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props.conversations.map((function(e,t){return u().createElement("div",{className:"direct-chat-msg ".concat(e.align),key:"message".concat(t)},u().createElement("div",{className:"direct-chat-name clearfix"},u().createElement("span",{className:"direct-chat-name pull-right"},e.displayName),u().createElement("span",{className:"direct-chat-timestamp pull-left"},e.date)),u().createElement("img",{className:"direct-chat-img",src:e.img,alt:"message user image"}),u().createElement("div",{className:"direct-chat-text"},e.message))}));return u().createElement("div",{className:"direct-chat-messages"},e)}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u().Component);function We(e){return We="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},We(e)}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return Ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ie(e,t)}function Be(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ve(e)}function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}Fe.propTypes={conversations:f().array},Fe.defaultProps={conversations:[]};var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(i,e);var t,n,r,o,a=(r=i,o=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}}(),function(){var e,t=Je(r);if(o){var n=Je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Be(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).populateThatCrumb=t.populateThatCrumb.bind(Ve(t)),t}return t=i,(n=[{key:"populateThatCrumb",value:function(){var e=location.pathname.split("/");e.shift();var t="/";return e.map((function(n,r){var o="breadcrumb-item";return r+1===e.length&&(o+=" active"),t+="".concat(n,"/"),"index.html"===n&&(n="#",t="#"),u().createElement("li",{key:r,className:o},u().createElement("a",{href:location.hostname+t},n))}))}},{key:"render",value:function(){var e=this.populateThatCrumb();return u().createElement("ol",{className:"breadcrumb"},e)}}])&&ze(t.prototype,n)