@anterostecnologia/anteros-react-admin
Version:
Anteros components for React - Admin menu
1 lines • 55.6 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("anteros-react-admin",[],t):"object"==typeof exports?exports["anteros-react-admin"]=t():e["anteros-react-admin"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("anteros-react-buttons")},function(e,t){e.exports=require("anteros-react-containers")},function(e,t){e.exports=require("anteros-react-core")},function(e,t){e.exports=require("react-router-dom")},function(e,t){e.exports=require("matchmediaquery")},function(e,t){e.exports=require("hyphenate-style-name")},function(e,t){e.exports=require("anteros-react-image")},function(e,t){e.exports=require("anteros-react-loaders")},function(e,t){e.exports=require("anteros-react-label")},function(e,t){e.exports=require("anteros-react-querybuilder")},function(e,t){e.exports=require("anteros-react-menu")},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i=n(1),a=n.n(i);function u(e){return(u="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 c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}var n,i,a;return 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}}),t&&p(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosFooter"}}],(i=[{key:"render",value:function(){var e="footer ";return this.context.horizontal&&(e+=" horizontal"),r.a.createElement("footer",{className:e},r.a.createElement("div",{className:"footer-block buttons"}),r.a.createElement("div",{className:"footer-block author"},r.a.createElement("ul",null,r.a.createElement("li",null," ",this.props.children," "))))}}])&&c(n.prototype,i),a&&c(n,a),t}();function d(e){return(d="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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}f.contextTypes={horizontal:a.a.bool};var v=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=m(t).call(this,e))||"object"!==d(r)&&"function"!=typeof r?b(o):r).handleToggle=n.handleToggle.bind(b(n)),n}var n,i,a;return 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}}),t&&y(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosFullScreen"}}],(i=[{key:"handleToggle",value:function(){var e;-1==(document.body.className+" ").indexOf("full-screen")?((e=document.getElementsByTagName("body")[0]).className+="full-screen",document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen?document.documentElement.webkitRequestFullscreen():document.documentElement.msRequestFullscreen&&document.documentElement.msRequestFullscreen()):((e=document.getElementsByTagName("body")[0]).className=e.className.replace(/\bfull-screen\b/,""),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{key:"render",value:function(){return r.a.createElement("li",null,r.a.createElement("a",{"data-toggle":"dropdown",onClick:this.handleToggle,className:this.props.className}," ",r.a.createElement("i",{className:"fa fa-arrows-alt"})," ",r.a.createElement("sup",null)))}}])&&h(n.prototype,i),a&&h(n,a),t}();n(12);function g(e){return(g="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 w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=S(t).call(this,e))||"object"!==g(r)&&"function"!=typeof r?O(o):r).onSidebarCollapseButtonClick=n.onSidebarCollapseButtonClick.bind(O(n)),n}var n,i,a;return 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}}),t&&E(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosHeader"}}],(i=[{key:"onSidebarCollapseButtonClick",value:function(){event.preventDefault(),$("#app").toggleClass("sidebar-open")}},{key:"render",value:function(){var e,t=[];if(this.props.children){r.a.Children.toArray(this.props.children).forEach(function(n){n.type&&"AnterosNavigatorLink"===n.type.componentName?t.push(n):n.type&&"AnterosNavigatorLinkDropdown"===n.type.componentName?t.push(n):n.type&&"AnterosFullScreen"===n.type.componentName?t.push(n):n.type&&"AnterosMenu"===n.type.componentName&&(e=n)})}return r.a.createElement("header",{className:"header"},r.a.createElement("div",{className:"header-sidebar"},r.a.createElement("div",{className:"brand hidden-sm-down"},r.a.createElement("img",{src:this.props.logo}))),r.a.createElement("div",{className:"header-block header-block-collapse hidden-lg-up"},r.a.createElement("button",{className:"collapse-btn",id:"sidebar-collapse-btn",style:{color:"#969696"},onClick:this.onSidebarCollapseButtonClick},r.a.createElement("i",{className:"fa fa-bars"}))),e,r.a.createElement("div",{className:"header-block header-block-search hidden-sm-down"},r.a.createElement("form",{role:"search"},r.a.createElement("div",{className:"input-container"}," ",r.a.createElement("i",{className:"fa fa-search"})," ",r.a.createElement("input",{type:"search",placeholder:"Localizar"}),r.a.createElement("div",{className:"underline"})))),r.a.createElement("div",{className:"header-block header-block-buttons"}),r.a.createElement("div",{className:"header-block header-block-nav"},r.a.createElement("ul",{className:"nav-profile "},t)))}}])&&w(n.prototype,i),a&&w(n,a),t}(),j=n(3),P=n(4);function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){C(e,t,n[t])})}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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})(e)}function T(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},q={zIndex:10,position:"absolute",top:0,bottom:0,transition:"transform .3s ease-out",WebkitTransition:"-webkit-transform .3s ease-out",willChange:"transform",overflowY:"hidden"},R={position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"scroll",WebkitOverflowScrolling:"touch",transition:"left .3s ease-out, right .3s ease-out"},W={zIndex:9,position:"fixed",top:0,left:0,right:0,bottom:0,opacity:0,visibility:"hidden",transition:"opacity .3s ease-out, visibility .3s ease-out",backgroundColor:"rgba(0,0,0,.3)"},F={zIndex:1,position:"fixed",top:0,bottom:0},H=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=M(t).call(this,e))||"object"!==N(r)&&"function"!=typeof r?x(o):r).state={sidebarWidth:e.menuOpened?350:60,touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null,dragSupported:!1},n.overlayClicked=n.overlayClicked.bind(x(n)),n.onTouchStart=n.onTouchStart.bind(x(n)),n.onTouchMove=n.onTouchMove.bind(x(n)),n.onTouchEnd=n.onTouchEnd.bind(x(n)),n.onScroll=n.onScroll.bind(x(n)),n.saveSidebarRef=n.saveSidebarRef.bind(x(n)),n}var n,i,a;return 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}}),t&&A(e,t)}(t,o["Component"]),n=t,(i=[{key:"componentDidMount",value:function(){this.setState({dragSupported:"object"===("undefined"==typeof window?"undefined":N(window))&&"ontouchstart"in window})}},{key:"componentWillReceiveProps",value:function(e){e.menuOpened!==this.props.menuOpened&&this.setState(_({},this.state,{sidebarWidth:e.menuOpened?350:60}))}},{key:"onTouchStart",value:function(e){if(!this.isTouching()){var t=e.targetTouches[0];this.setState({touchIdentifier:t.identifier,touchStartX:t.clientX,touchStartY:t.clientY,touchCurrentX:t.clientX,touchCurrentY:t.clientY})}}},{key:"onTouchMove",value:function(e){if(this.isTouching())for(var t=0;t<e.targetTouches.length;t++)if(e.targetTouches[t].identifier===this.state.touchIdentifier){this.setState({touchCurrentX:e.targetTouches[t].clientX,touchCurrentY:e.targetTouches[t].clientY});break}}},{key:"onTouchEnd",value:function(){if(this.isTouching()){var e=this.touchSidebarWidth();(this.props.open&&e<this.state.sidebarWidth-this.props.dragToggleDistance||!this.props.open&&e>this.props.dragToggleDistance)&&this.props.onSetOpen(!this.props.open),this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}}},{key:"onScroll",value:function(){this.isTouching()&&this.inCancelDistanceOnScroll()&&this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}},{key:"inCancelDistanceOnScroll",value:function(){return this.props.pullRight?Math.abs(this.state.touchCurrentX-this.state.touchStartX)<20:Math.abs(this.state.touchStartX-this.state.touchCurrentX)<20}},{key:"isTouching",value:function(){return null!==this.state.touchIdentifier}},{key:"overlayClicked",value:function(){this.props.open&&this.props.onSetOpen(!1)}},{key:"saveSidebarWidth",value:function(){var e=this.sidebar.offsetWidth;e!==this.state.sidebarWidth&&this.setState({sidebarWidth:e})}},{key:"saveSidebarRef",value:function(e){this.sidebar=e}},{key:"touchSidebarWidth",value:function(){return this.props.pullRight?this.props.open&&window.innerWidth-this.state.touchStartX<this.state.sidebarWidth?this.state.touchCurrentX>this.state.touchStartX?this.state.sidebarWidth+this.state.touchStartX-this.state.touchCurrentX:this.state.sidebarWidth:Math.min(window.innerWidth-this.state.touchCurrentX,this.state.sidebarWidth):this.props.open&&this.state.touchStartX<this.state.sidebarWidth?this.state.touchCurrentX>this.state.touchStartX?this.state.sidebarWidth:this.state.sidebarWidth-this.state.touchStartX+this.state.touchCurrentX:Math.min(this.state.touchCurrentX,this.state.sidebarWidth)}},{key:"render",value:function(){var e,t=_({},q,this.props.styles.sidebar),n=_({},R,this.props.styles.content),o=_({},W,this.props.styles.overlay),i=this.state.dragSupported&&this.props.touch,a=this.isTouching(),u={className:this.props.rootClassName,style:_({},D,this.props.styles.root),role:"navigation"};if(this.props.pullRight?(t.right=0,t.transform="translateX(100%)",t.WebkitTransform="translateX(100%)",this.props.shadow&&(t.boxShadow="-2px 2px 4px rgba(0, 0, 0, 0.15)")):(t.left=0,t.transform="translateX(-100%)",t.WebkitTransform="translateX(-100%)",this.props.shadow&&(t.boxShadow="2px 2px 4px rgba(0, 0, 0, 0.15)")),a){var c=this.touchSidebarWidth()/this.state.sidebarWidth;this.props.pullRight?(t.transform="translateX(".concat(100*(1-c),"%)"),t.WebkitTransform="translateX(".concat(100*(1-c),"%)")):(t.transform="translateX(-".concat(100*(1-c),"%)"),t.WebkitTransform="translateX(-".concat(100*(1-c),"%)")),o.opacity=c,o.visibility="visible"}else this.props.docked?(0!==this.state.sidebarWidth&&(t.transform="translateX(0%)",t.WebkitTransform="translateX(0%)"),this.props.pullRight?n.right=this.props.visible?"".concat(this.state.sidebarWidth,"px"):"0px":n.left=this.props.visible?"".concat(this.state.sidebarWidth,"px"):"0px"):this.props.open&&(t.transform="translateX(0%)",t.WebkitTransform="translateX(0%)",o.opacity=1,o.visibility="visible");if(!a&&this.props.transitions||(t.transition="none",t.WebkitTransition="none",n.transition="none",o.transition="none"),i)if(this.props.open)u.onTouchStart=this.onTouchStart,u.onTouchMove=this.onTouchMove,u.onTouchEnd=this.onTouchEnd,u.onTouchCancel=this.onTouchEnd,u.onScroll=this.onScroll;else{var s=_({},F,this.props.styles.dragHandle);s.width=this.props.touchHandleWidth,this.props.pullRight?s.right=0:s.left=0,e=r.a.createElement("div",{style:s,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchEnd})}return r.a.createElement("div",u,r.a.createElement("div",{className:this.props.sidebarClassName,style:t,ref:this.saveSidebarRef},this.props.sidebar),r.a.createElement("div",{className:this.props.overlayClassName,style:o,role:"presentation",tabIndex:"0",onClick:this.overlayClicked}),r.a.createElement("div",{className:this.props.contentClassName,style:n},e,this.props.children))}}])&&T(n.prototype,i),a&&T(n,a),t}();H.propTypes={children:a.a.node.isRequired,styles:a.a.shape({root:a.a.object,sidebar:a.a.object,content:a.a.object,overlay:a.a.object,dragHandle:a.a.object}),rootClassName:a.a.string,sidebarClassName:a.a.string,contentClassName:a.a.string,overlayClassName:a.a.string,sidebar:a.a.node.isRequired,docked:a.a.bool,open:a.a.bool,transitions:a.a.bool,touch:a.a.bool,touchHandleWidth:a.a.number,pullRight:a.a.bool,shadow:a.a.bool,dragToggleDistance:a.a.number,onSetOpen:a.a.func,defaultSidebarWidth:a.a.number},H.defaultProps={docked:!1,open:!1,transitions:!0,touch:!0,touchHandleWidth:20,pullRight:!1,shadow:!1,dragToggleDistance:30,onSetOpen:function(){},styles:{},defaultSidebarWidth:0};var X=n(9);function I(e){return(I="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){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Y=window.$,Q=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=L(t).call(this,e))||"object"!==I(r)&&"function"!=typeof r?U(o):r).updateDimensions=n.updateDimensions.bind(U(n)),n.renderPage=n.renderPage.bind(U(n)),n.renderHeader=n.renderHeader.bind(U(n)),n.renderSidebar=n.renderSidebar.bind(U(n)),n.renderHorizontalMenu=n.renderHorizontalMenu.bind(U(n)),n.getScrollBarStyle=n.getScrollBarStyle.bind(U(n)),n.getSidebarContent=n.getSidebarContent.bind(U(n)),n.getPageContent=n.getPageContent.bind(U(n)),n.getPageFooter=n.getPageFooter.bind(U(n)),n.getPageHeader=n.getPageHeader.bind(U(n)),n.getMainMenu=n.getMainMenu.bind(U(n)),n.state={loadingHeader:!0,loadingSidebar:!0},n}var n,i,a;return 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}}),t&&B(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosMainLayout"}}],(i=[{key:"componentWillMount",value:function(){this.updateDimensions()}},{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",this.updateDimensions),setTimeout(function(){e.setState({loadingHeader:!1,loadingSidebar:!1})},114)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.windowWidth;e.location!==this.props.location&&t<=1199&&this.props.collapsedSidebarAction(!1)}},{key:"updateDimensions",value:function(){this.setState({windowWidth:Y(window).width(),windowHeight:Y(window).height()})}},{key:"componentDidUpdate",value:function(e){}},{key:"renderPage",value:function(){return this.props.withoutScroll?r.a.createElement("div",{id:"_divRenderPageMainLayout",style:{position:"relative",overflow:"hidden",width:"100%",height:"calc(100vh + -60px)"}},r.a.createElement("div",{className:"app-page-content"},this.getPageContent(),this.getPageFooter())):r.a.createElement(j.AnterosScrollbars,{className:"app-scroll",autoHide:!0,autoHideDuration:200,style:this.getScrollBarStyle()},r.a.createElement("div",{className:"app-page-content"},this.getPageContent(),this.getPageFooter()))}},{key:"renderHeader",value:function(){return this.state.loadingHeader?r.a.createElement(X.AnterosHeaderLoader,null):this.getPageHeader()}},{key:"renderSidebar",value:function(){return this.state.loadingSidebar?r.a.createElement(X.AnterosSidebarLoader,null):this.getSidebarContent()}},{key:"renderHorizontalMenu",value:function(){return this.getMainMenu()}},{key:"getMainMenu",value:function(){var e=null;return r.a.Children.toArray(this.props.children).forEach(function(t){t.type&&"AnterosMainMenu"===t.type.componentName&&(e=t)}),e}},{key:"getPageContent",value:function(){var e=[];return r.a.Children.toArray(this.props.children).forEach(function(t){t.type&&"AnterosSidebarContent"!==t.type.componentName&&t.type&&"AnterosMainHeader"!==t.type.componentName&&t.type&&"AnterosMainMenu"!==t.type.componentName&&t.type&&"AnterosMainFooter"!==t.type.componentName&&e.push(t)}),e}},{key:"getPageFooter",value:function(){var e=null;return r.a.Children.toArray(this.props.children).forEach(function(t){t.type&&"AnterosMainFooter"===t.type.componentName&&(e=t)}),e}},{key:"getPageHeader",value:function(){var e=null;return r.a.Children.toArray(this.props.children).forEach(function(t){t.type&&"AnterosMainHeader"===t.type.componentName&&(e=t)}),e}},{key:"getSidebarContent",value:function(){var e=null;return r.a.Children.toArray(this.props.children).forEach(function(t){t.type&&"AnterosSidebarContent"===t.type.componentName&&(e=t)}),e}},{key:"getScrollBarStyle",value:function(){return{height:"calc(100vh - 50px)"}}},{key:"render",value:function(){var e=this.props,t=e.sidebarOpen,n=e.onSetOpenSidebar,o=e.rtlLayout,i=e.miniSidebar,a=e.horizontalMenu,u=this.state.windowWidth,c=!t;return a&&(t=!1,c=!1),r.a.createElement("div",{className:"app"},r.a.createElement("div",{className:"app-main-container"},r.a.createElement(H,{sidebar:this.renderSidebar(),open:u<=1199&&t,docked:u>1199&&c,pullRight:o,menuOpened:this.props.menuOpened,visible:this.props.sidebarVisible,onSetOpen:n,styles:{content:{overflowY:""}},contentClassName:P.AnterosUtils.buildClassNames({"app-container-wrapper":i})},r.a.createElement("div",{className:"app-container"},r.a.createElement("div",{className:"app-app-content"},r.a.createElement("div",{className:"app-header"},this.renderHeader()),this.props.horizontalMenu?this.renderHorizontalMenu():null,r.a.createElement("div",{className:"app-page"},this.renderPage()))))))}}])&&z(n.prototype,i),a&&z(n,a),t}(),G=n(6),V=n.n(G),J=n(7),K=n.n(J);function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){ee(e,t,n[t])})}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=a.a.oneOfType([a.a.string,a.a.number]),ne={orientation:a.a.oneOf(["portrait","landscape"]),scan:a.a.oneOf(["progressive","interlace"]),aspectRatio:a.a.string,deviceAspectRatio:a.a.string,height:te,deviceHeight:te,width:te,deviceWidth:te,color:a.a.bool,colorIndex:a.a.bool,monochrome:a.a.bool,resolution:te},oe=Z({minAspectRatio:a.a.string,maxAspectRatio:a.a.string,minDeviceAspectRatio:a.a.string,maxDeviceAspectRatio:a.a.string,minHeight:te,maxHeight:te,minDeviceHeight:te,maxDeviceHeight:te,minWidth:te,maxWidth:te,minDeviceWidth:te,maxDeviceWidth:te,minColor:a.a.number,maxColor:a.a.number,minColorIndex:a.a.number,maxColorIndex:a.a.number,minMonochrome:a.a.number,maxMonochrome:a.a.number,minResolution:te,maxResolution:te},ne),re={all:a.a.bool,grid:a.a.bool,aural:a.a.bool,braille:a.a.bool,handheld:a.a.bool,print:a.a.bool,projection:a.a.bool,screen:a.a.bool,tty:a.a.bool,tv:a.a.bool,embossed:a.a.bool},ie=Z({},re,oe);ne.type=Object.keys(re);var ae={all:ie,types:re,matchers:ne,features:oe},ue=function(e){return"not ".concat(e)};var ce=function(e){var t=[];return Object.keys(ae.all).forEach(function(n){var o=e[n];null!=o&&t.push(function(e,t){var n=K()(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?e:!1===t?ue(e):"(".concat(n,": ").concat(t,")")}(n,o))}),t.join(" and ")};function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(o=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function le(e){return(le="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 pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function de(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),e}function he(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?be(e):t}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(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}}),t&&ve(e,t)}function ve(e,t){return(ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we={component:a.a.node,query:a.a.string,values:a.a.shape(ae.matchers),children:a.a.oneOfType([a.a.node,a.a.func]),onChange:a.a.func},Se=Object.keys(we),Oe=function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){ge(e,t,n[t])})}return e}({},e);return t.forEach(function(e){return delete n[e]}),n},Ee=function(e){function t(){var e,n;pe(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return ge(be(n=he(this,(e=me(t)).call.apply(e,[this].concat(r)))),"state",{matches:!1,mq:null,query:"",values:null}),ge(be(n),"componentDidMount",function(){n.state.mq.addListener(n.updateMatches),n.updateMatches()}),ge(be(n),"componentDidUpdate",function(e,t){n.state.mq!==t.mq&&(n.cleanupMediaQuery(t.mq),n.state.mq.addListener(n.updateMatches)),n.props.onChange&&t.matches!==n.state.matches&&n.props.onChange(n.state.matches)}),ge(be(n),"componentWillUnmount",function(){n._unmounted=!0,n.cleanupMediaQuery(n.state.mq)}),ge(be(n),"cleanupMediaQuery",function(e){e&&(e.removeListener(n.updateMatches),e.dispose())}),ge(be(n),"updateMatches",function(){n._unmounted||n.state.mq.matches!==n.state.matches&&n.setState({matches:n.state.mq.matches})}),ge(be(n),"render",function(){return"function"==typeof n.props.children?n.props.children(n.state.matches):n.state.matches?n.props.children:null}),n}return ye(t,r.a.Component),de(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=function(e){return e.query||ce(Oe(e,Se))}(e);if(!n)throw new Error("Invalid or missing MediaQuery!");var o=function(e){var t=e.values;if(!t)return null;var n=Object.keys(t);return 0===n.length?null:n.reduce(function(e,n){return e[K()(n)]=t[n],e},{})}(e);if(n===t.query&&o===t.values)return null;var r=V()(n,o||{},!!o);return{matches:r.matches,mq:r,query:n,values:o}}}]),t}();ge(Ee,"displayName","MediaQuery"),ge(Ee,"defaultProps",{values:null});r.a.createContext();var ke=function(e,t){return function(n){function i(e){var t;return pe(this,i),(t=he(this,me(i).call(this,e))).state={show:!1},t.mql=null,t.onMatch=function(e){return t._onMatch(e)},t}return ye(i,o["Component"]),de(i,[{key:"componentDidMount",value:function(){window.matchMedia&&(this.mql=window.matchMedia(t),this.mql.addListener(this.onMatch),this.onMatch(this.mql))}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.onMatch)}},{key:"_onMatch",value:function(e){var t=!!e.matches;this.setState({show:t})}},{key:"render",value:function(){return!!this.state.show&&r.a.createElement(e,this.props)}}]),i}()};ke.propTypes={mediaQuery:a.a.string.isRequired};var je=Object(o.createContext)({}),Pe=je.Provider,_e=(je.Consumer,Pe),Ce="undefined"!=typeof window&&"function"==typeof window.matchMedia,Ne=function(e){function t(e){var n;pe(this,t),ge(be(n=he(this,me(t).call(this,e))),"queryMedia",function(e,t){return Object.keys(e).reduce(function(n,o){var r=V()(e[o],t).matches;return n[o]=r,n},{})}),ge(be(n),"clientMatch",function(){var e=n.queryMedia(n.props.queries,{});shallowequal(e,n.state.media)||n.setState({media:e})});var o=Object.keys(n.props.queries).reduce(function(e,t){var o=n.props.queries[t];return n.props.values?e[t]=cssMediaQuery.match(o,n.props.values):e[t]=!!Ce&&V()(o,n.props.values).matches,e},{});return n.state={media:o},n}return ye(t,r.a.Component),de(t,[{key:"componentDidMount",value:function(){var e=this;this.clientMatch(),Object.entries(this.props.queries).forEach(function(t){var n=se(t,2),o=(n[0],n[1]);V()(o,e.props.values).addListener(e.clientMatch)})}},{key:"componentWillUnmount",value:function(){var e=this;Object.entries(this.props.queries).forEach(function(t){var n=se(t,2),o=(n[0],n[1]);V()(o,e.props.values).removeListener(e.clientMatch)})}},{key:"render",value:function(){var e=this.props.children,t=this.state.media;return r.a.createElement(_e,{value:t},e)}}]),t}();function Te(e){return(Te="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 Me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xe(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Ne.defaultProps={queries:{isMobile:"screen and (max-width: 767px)",isTablet:"screen and (min-width: 768px) and (max-width: 1023px)",isDekstopS:"screen and (min-width: 1024px) and (max-width: 1365px)",isDekstop:"screen and (min-width: 1366px) and (max-width: 1440px)",isDekstopL:"screen and (min-width: 1441px)"}};var qe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=xe(this,Ae(t).call(this,e))).state={loading:!1},n}var n,i,a;return 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}}),t&&De(e,t)}(t,o["Component"]),n=t,(i=[{key:"render",value:function(){return r.a.createElement("footer",null,this.props.children)}}])&&Me(n.prototype,i),a&&Me(n,a),t}();function Re(e){return(Re="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 We(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Fe(e,t){return!t||"object"!==Re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ie=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Fe(this,He(t).call(this,e))).state={loading:!1},n}var n,i,a;return 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}}),t&&Xe(e,t)}(t,o["Component"]),n=t,(i=[{key:"render",value:function(){return r.a.createElement("header",null,this.props.children)}}])&&We(n.prototype,i),a&&We(n,a),t}();function ze(e){return(ze="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){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ue(e,t){return!t||"object"!==ze(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ue(this,Be(t).call(this,e))).state={loading:!1},n}var n,i,a;return 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}}),t&&Ye(e,t)}(t,o["Component"]),n=t,(i=[{key:"render",value:function(){return r.a.createElement("div",{style:{transform:"translate3d(0%, 10%, 0)",paddingBottom:"1.875rem"}},this.props.children)}}])&&Le(n.prototype,i),a&&Le(n,a),t}(),Ge=n(5);function $e(e){return($e="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 Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ke(e){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tt=window.$,nt=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=Ke(t).call(this,e))||"object"!==$e(r)&&"function"!=typeof r?Ze(o):r).updateDimensions=n.updateDimensions.bind(Ze(n)),n}var n,i,a;return 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}}),t&&et(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosSidebarContent"}}],(i=[{key:"componentWillMount",value:function(){this.updateDimensions()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.enableSidebarBackgroundImage,o=t.selectedSidebarImage,r=t.isDarkSidenav,i=t.style;return n!==e.enableSidebarBackgroundImage||o!==e.selectedSidebarImage||r!==e.isDarkSidenav||i!==e.style}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.windowWidth;e.location!==this.props.location&&t<=1199&&this.props.collapsedSidebarAction(!1)}},{key:"updateDimensions",value:function(){this.setState({windowWidth:tt(window).width(),windowHeight:tt(window).height()})}},{key:"render",value:function(){var e=this.props,t=e.enableSidebarBackgroundImage,n=e.selectedSidebarImage,i=e.isDarkSidenav,a=e.logoNormal,u=e.children,c=e.visible,s=this.props.style?this.props.style:{};return t&&(s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){Ve(e,t,n[t])})}return e}({},s,{background:"url(".concat(n,")")})),c?r.a.createElement(o.Fragment,null,r.a.createElement("div",{className:P.AnterosUtils.buildClassNames("app-sidebar",{"background-none":!t}),style:s},r.a.createElement("div",{className:"site-logo"},r.a.createElement(Ge.Link,{to:"/",className:"logo-normal"},r.a.createElement("img",{src:a,alt:"site-logo"}))),r.a.createElement("div",{className:P.AnterosUtils.buildClassNames("app-sidebar-wrap",{"sidebar-overlay-dark":i,"sidebar-overlay-light":!i})},r.a.createElement("div",{className:"app-scroll",style:{height:"100vh",overflow:"hidden"}},u)))):null}}])&&Je(n.prototype,i),a&&Je(n,a),t}();function ot(e){return(ot="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 rt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function it(e,t){return!t||"object"!==ot(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}nt.propTypes={enableSidebarBackgroundImage:a.a.bool.isRequired,selectedSidebarImage:a.a.string,isDarkSidenav:a.a.bool.isRequired,collapsedSidebar:a.a.bool.isRequired,location:a.a.string,logoNormal:a.a.string,logoMini:a.a.string,visible:a.a.bool.isRequired},nt.defaultProps={enableSidebarBackgroundImage:!1,isDarkSidenav:!1,collapsedSidebar:!1,visible:!0};var ct=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),it(this,at(t).apply(this,arguments))}var n,i,a;return 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}}),t&&ut(e,t)}(t,o["Component"]),n=t,(i=[{key:"render",value:function(){return r.a.createElement(o.Fragment,null,this.props.children)}}])&&rt(n.prototype,i),a&&rt(n,a),t}();function st(e){return(st="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 lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),e}function dt(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(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}}),t&&bt(e,t)}function bt(e,t){return(bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yt=function(e){function t(){return lt(this,t),dt(this,ht(t).apply(this,arguments))}return mt(t,o["Component"]),ft(t,[{key:"render",value:function(){return r.a.createElement("ul",{className:"list-unstyled mb-0",id:this.props.id},r.a.createElement("li",{className:"border-bottom user-menu-header"},r.a.createElement("p",{className:"text-white mb-0 fs-14"},this.props.userName),r.a.createElement("span",{className:"text-white fs-14"},this.props.email)),this.props.children)}}]),t}();yt.propTypes={userName:a.a.string,email:a.a.string},yt.defaultProps={};var vt=function(e){function t(){return lt(this,t),dt(this,ht(t).apply(this,arguments))}return mt(t,o["Component"]),ft(t,[{key:"render",value:function(){return r.a.createElement("li",{id:this.props.id},r.a.createElement(Ge.Link,{to:{pathname:this.props.userActionPath}},this.props.children))}}]),t}();function gt(e){return(gt="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 wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function St(e,t){return!t||"object"!==gt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ot(e){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Et(e,t){return(Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}vt.propTypes={userActionPath:a.a.string};var kt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),St(this,Ot(t).apply(this,arguments))}var n,i,a;return 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}}),t&&Et(e,t)}(t,o["Component"]),n=t,(i=[{key:"render",value:function(){return this.props.visible?r.a.createElement(o.Fragment,null,this.props.children):null}},{key:"componentName",get:function(){return"AnterosMainMenu"}}])&&wt(n.prototype,i),a&&wt(n,a),t}();kt.propTypes={visible:a.a.bool.isRequired},kt.defaultProps={visible:!0};var jt=n(2),Pt=n(8);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})(e)}function Ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xt=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,(n=!(r=Nt(t).call(this,e))||"object"!==_t(r)&&"function"!=typeof r?Tt(o):r).toggleUserDropdownMenu=n.toggleUserDropdownMenu.bind(Tt(n)),n.state={userDropdownMenu:!1,isSupportModal:!1},n}var n,i,a;return 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}}),t&&Mt(e,t)}(t,o["Component"]),n=t,(i=[{key:"toggleUserDropdownMenu",value:function(){this.setState({userDropdownMenu:!this.state.userDropdownMenu})}},{key:"render",value:function(){var e=this,t=this.props.avatar,n=function(e){try{return btoa(atob(e))==e}catch(e){return!1}}(t);return r.a.createElement("div",{className:"top-sidebar"},r.a.createElement("div",{className:"sidebar-user-block media"},r.a.createElement("div",{className:"user-profile"},r.a.createElement(Pt.AnterosImage,{width:"60px",height:"60px",circle:!0,src:t&&n?"data:image;base64,"+t:t})),r.a.createElement(jt.AnterosAdvancedDropdown,{isOpen:this.state.userDropdownMenu,toggle:function(){return e.toggleUserDropdownMenu()},className:"app-dropdown media-body pt-10 user-menu"},r.a.createElement(jt.AnterosAdvancedDropdownToggle,{nav:!0,className:"d-flex align-items-center justify-content-between"},this.props.userName,r.a.createElement("i",{className:"ti-angle-down pull-right"})),r.a.createElement(jt.AnterosAdvancedDropdownMenu,null,r.a.createElement(yt,{userName:this.props.userName,email:this.props.email},this.props.children)))))}}])&&Ct(n.prototype,i),a&&Ct(n,a),t}();function At(e){return(At="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 Dt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function qt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}xt.propTypes={userName:a.a.string.isRequired,email:a.a.string,avatar:a.a.string};var Ft=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qt(this,Rt(t).call(this,e))}var n,i,a;return 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}}),t&&Wt(e,t)}(t,o["Component"]),n=t,a=[{key:"componentName",get:function(){return"AnterosMainFooter"}}],(i=[{key:"render",value:function(){var e="footer ";return this.context.horizontal&&(e+=" horizontal"),r.a.createElement("footer",{className:e},r.a.createElement("div",{className:"footer-block buttons"}),r.a.createElement("div",{className:"footer-block author"},r.a.createElement("ul",null,r.a.createElement("li",null," ",this.props.children," "))))}}])&&Dt(n.prototype,i),a&&Dt(n,a),t}(),Ht=n(10),Xt=n(11);function It(e){return(It="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 zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bt(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),e}function Yt(e,t){return!t||"object"!==It(t)&&"function"!=typeof t?Gt(e):t}function Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $t(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}}),t&&Vt(e,t)}function Vt(e,t){return(Vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jt=function(e){function t(e){var n;return Lt(this,t),(n=Yt(this,Qt(t).call(this,e))).toggleScreenFull=n.toggleScreenFull.bind(Gt(n)),n.toggleSidebar=n.toggleSidebar.bind(Gt(n)),n.toggleUserDropdownMenu=n.toggleUserDropdownMenu.b