text: webpackJsonp([0],{112:function(e,t,n){"use strict";t.__esModule=!0;var o=(t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)});t.stripBasename=function(e,t){return o(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}},t.createPath=function(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}},116:function(e,t,n){"use strict";function o(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=o},120:function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),r=function(e){return e&&e.__esModule?e:{default:e}}(o),i=function(){var e=null,t=function(t){return(0,r.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):((0,r.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},o=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return o.push(n),function(){t=!1,o=o.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.forEach(function(e){return e.apply(void 0,t)})}}};t.default=i},121:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(583);Object.defineProperty(t,"Jumbotron",{enumerable:!0,get:function(){return o(r).default}});var i=n(584);Object.defineProperty(t,"NavigationBar",{enumerable:!0,get:function(){return o(i).default}});var a=n(327);Object.defineProperty(t,"BackToTop",{enumerable:!0,get:function(){return o(a).default}})},189:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(110),a=o(i),s=n(111),u=o(s),l=n(112);t.createLocation=function(e,t,n,o){var i=void 0;"string"==typeof e?(i=(0,l.parsePath)(e),i.state=t):(i=r({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,u.default)(e.state,t.state)}},190:function(e,t,n){"use strict";t.__esModule=!0;var o=n(14),r=function(e){return e&&e.__esModule?e:{default:e}}(o),i=function(){var e=null,t=function(t){return(0,r.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,o,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,i):((0,r.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},o=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return o.push(n),function(){t=!1,o=o.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.forEach(function(e){return e.apply(void 0,t)})}}};t.default=i},191:function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},194:function(e,t,n){"use strict";function o(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),u=n.n(s),l=n(1),c=n.n(l),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},p=function(e){function t(){var n,o,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=o=i(this,e.call.apply(e,[this].concat(u))),o.handleClick=function(e){if(o.props.onClick&&o.props.onClick(e),!e.defaultPrevented&&0===e.button&&!o.props.target&&!d(e)){e.preventDefault();var t=o.context.router.history,n=o.props,r=n.replace,i=n.to;r?t.replace(i):t.push(i)}},a=n,i(o,a)}return a(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=o(e,["replace","to"]),r=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return u.a.createElement("a",f({},n,{onClick:this.handleClick,href:r}))},t}(u.a.Component);p.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},p.defaultProps={replace:!1},p.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=p},195:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var o=n(1),r=n.n(o),i=r.a.shape({trySubscribe:r.a.func.isRequired,tryUnsubscribe:r.a.func.isRequired,notifyNestedSubs:r.a.func.isRequired,isSubscribed:r.a.func.isRequired}),a=r.a.shape({subscribe:r.a.func.isRequired,dispatch:r.a.func.isRequired,getState:r.a.func.isRequired})},196:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function s(){}function u(e,t){var n={run:function(o){try{var r=e(t.getState(),o);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function l(e){var t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.getDisplayName,d=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,w=l.methodName,_=void 0===w?"connectAdvanced":w,O=l.renderCountProp,P=void 0===O?void 0:O,S=l.shouldHandleStateChanges,k=void 0===S||S,C=l.storeKey,E=void 0===C?"store":C,j=l.withRef,T=void 0!==j&&j,x=a(l,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),M=E+"Subscription",N=b++,L=(t={},t[E]=m.a,t[M]=m.b,t),A=(n={},n[M]=m.b,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",a=d(n),l=y({},x,{getDisplayName:d,methodName:_,renderCountProp:P,shouldHandleStateChanges:k,storeKey:E,withRef:T,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){o(this,c);var i=r(this,n.call(this,e,t));return i.version=N,i.state={},i.renderCount=0,i.store=e[E]||t[E],i.propsMode=Boolean(e[E]),i.setWrappedInstance=i.setWrappedInstance.bind(i),p()(i.store,'Could not find "'+E+'" in either the context or props of "'+a+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+a+'".'),i.initSelector(),i.initSubscription(),i}return i(c,n),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[M]=t||this.context[M],e},c.prototype.componentDidMount=function(){k&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return p()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,l);this.selector=u(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(k){var e=(this.propsMode?this.props:this.context)[M];this.subscription=new v.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(T||P||this.propsMode&&this.subscription))return e;var t=y({},e);return T&&(t.ref=this.setWrappedInstance),P&&(t[P]=this.renderCount++),this.propsMode&&this.subscription&&(t[M]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(h.createElement)(t,this.addExtraProps(e.props))},c}(h.Component);return c.WrappedComponent=t,c.displayName=a,c.childContextTypes=A,c.contextTypes=L,c.propTypes=L,f()(c,t)}}t.a=l;var c=n(193),f=n.n(c),d=n(28),p=n.n(d),h=n(0),v=(n.n(h),n(519)),m=n(195),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b=0,g={}},202:function(e,t,n){"use strict";function o(e){return function(t,n){function o(){return r}var r=e(t,n);return o.dependsOnOwnProps=!1,o}}function r(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,n){var o=(n.displayName,function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)});return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=r(e);var i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=r(i),i=o(t,n)),i},o}}t.a=o,t.b=i;n(203)},203:function(e,t,n){"use strict";n(117),n(116)},27:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(492);n.d(t,"BrowserRouter",function(){return o.a});var r=n(506);n.d(t,"HashRouter",function(){return r.a});var i=n(194);n.d(t,"Link",function(){return i.a});var a=n(508);n.d(t,"MemoryRouter",function(){return a.a});var s=n(509);n.d(t,"NavLink",function(){return s.a});var u=n(510);n.d(t,"Prompt",function(){return u.a});var l=n(511);n.d(t,"Redirect",function(){return l.a});var c=n(512);n.d(t,"Route",function(){return c.a});var f=n(513);n.d(t,"Router",function(){return f.a});var d=n(514);n.d(t,"StaticRouter",function(){return d.a});var p=n(515);n.d(t,"Switch",function(){return p.a});var h=n(516);n.d(t,"matchPath",function(){return h.a});var v=n(517);n.d(t,"withRouter",function(){return v.a})},316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.appConfig={DEV_MODE:!0,api:{fakeEndPoint:"api/somewhere"}}},319:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function o(r,i){try{var a=t[r](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){o("next",e)},function(e){o("throw",e)});e(s)}return o("next")})}}function i(){return O.default.clearAllAppStorage(),{type:x}}function a(){var e=O.default.getToken(),t=O.default.getUserInfo(),n=!(!e||!function(e){return e&&e._id}(t));return p({type:T,token:e},t,{isAuthenticated:n})}function s(e,t){var n=this;return function(){var o=r(regeneratorRuntime.mark(function o(r){var i,a,s,u,l,c,f;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=m.appConfig.DEV_MODE?"FETCH_MOCK":"FETCH",a="login",s=b.default,u=(0,w.default)()+"/"+a,l="post",c={},f={credentials:"same-origin",data:{login:e,password:t}},n.abrupt("return",r({type:"FETCH_MIDDLEWARE",fetch:{type:i,actionTypes:{request:C,success:E,fail:j},mockResult:s,url:u,method:l,headers:c,options:f}}));case 8:case"end":return n.stop()}},o,n)}));return function(e){return o.apply(this,arguments)}}()}function u(e,t){return function(n,o){return l(o())?n(s(e,t)):Promise.resolve()}}function l(e){return!e.userAuth.isLogging}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){var n=O.default.getToken(),o=m.appConfig.DEV_MODE?"FETCH_MOCK":"FETCH",r=b.default,i=(0,w.default)()+"/"+m.appConfig.API.users+"/"+e;return t({type:"FETCH_MIDDLEWARE",fetch:{type:o,actionTypes:{request:P,success:S,fail:k},mockResult:r,url:i,method:"get",headers:{authorization:"Bearer "+n},options:{credentials:"same-origin"}}})}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,n){return d(n())?t(c(e)):Promise.resolve()}}function d(e){return!e.userAuth.isFetching}Object.defineProperty(t,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=arguments[1],n=(0,v.default)().format();switch(t.type){case T:return p({},e,{actionTime:n,isAuthenticated:t.isAuthenticated,token:t.token||M.token,id:t.user&&t.user.id?t.user.id:M.id,login:t.user&&t.user.login?t.user.login:M.login,firstname:t.user&&t.user.firstname?t.user.firstname:M.firstname,lastname:t.user&&t.user.lastname?t.user.lastname:M.firstname});case x:return p({},e,{actionTime:n,isAuthenticated:!1,token:M.token,id:M.id,login:M.login,firstname:M.firstname,lastname:M.lastname});case C:return p({},e,{actionTime:n,isLogging:!0});case E:var o=t.payload.data;return p({},e,{actionTime:n,isAuthenticated:!0,token:o.token,id:o.id,login:o.login,firstname:o.firstname,lastname:o.lastname,isLogging:!1});case j:return p({},e,{actionTime:n,isAuthenticated:!1,isLogging:!1});case P:return p({},e,{actionTime:n,isFetching:!0});case S:var r=t.payload.data;return p({},e,{actionTime:n,isFetching:!1,id:r.id,login:r.login,firstname:r.firstname,lastname:r.lastname});case k:return p({},e,{actionTime:n,isFetching:!1});default:return e}},t.disconnectUser=i,t.checkUserIsConnected=a,t.logUserIfNeeded=u,t.fetchUserInfoDataIfNeeded=f;var h=n(2),v=o(h),m=n(316),y=n(553),b=o(y),g=n(554),w=o(g),_=n(81),O=o(_),P="REQUEST_USER_INFOS_DATA",S="RECEIVED_USER_INFOS_DATA",k="ERROR_USER_INFOS_DATA",C="REQUEST_LOG_USER",E="RECEIVED_LOG_USER",j="ERROR_LOG_USER",T="CHECK_IF_USER_IS_AUTHENTICATED",x="DISCONNECT_USER",M={isFetching:!1,isLogging:!1,time:"",id:"",login:"",firstname:"",lastname:"",token:null,isAuthenticated:!1}},326:function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},327:function(e,t,n){"use strict";(function(e){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(590)),d=n(591),p=o(d),h=n(328),v=function(t){function n(){var t,o,a,s;r(this,n);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return o=a=i(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(l))),a.state={windowScrollY:0,showBackButton:!1},a.handleWindowScroll=function(){if(!e)throw"BackToTop component requires jQuery";var t=a.state.windowScrollY,n=a.props.minScrollY,o=e(window).scrollTop();if(t!==o){var r=o>=n;a.setState({windowScrollY:o,showBackButton:r})}},a.scrollDone=function(){var e=a.props.onScrollDone;e&&e()},a.handlesOnBackButtonClick=function(e){e.preventDefault();var t=a.props,n=t.scrollTo,o=t.minScrollY,r=a.state.windowScrollY;r&&r>o&&f.smoothScroll.scrollTo(n,a.scrollDone)},s=o,i(a,s)}return a(n,t),u(n,[{key:"componentWillMount",value:function(){window.addEventListener("scroll",this.handleWindowScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleWindowScroll)}},{key:"render",value:function(){var e=this,t=this.state.showBackButton;return s(h.Motion,{style:{x:(0,h.spring)(t?0:120,h.presets.stiff)}},void 0,function(t){var n=t.x;return s(p.default,{position:"bottom-right",onClick:e.handlesOnBackButtonClick,motionStyle:{WebkitTransform:"translate3d("+n+"px, 0, 0)",transform:"translate3d("+n+"px, 0, 0)"}})})}}]),n}(l.Component);v.defaultProps={minScrollY:120},t.default=v}).call(t,n(24))},334:function(e,t,n){"use strict";(function(e,o){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),l=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(0),f=(r(c),n(1)),d=(r(f),n(36)),p=(r(d),n(27)),h=n(611),v=r(h),m=u("div",{},void 0,u("li",{}),u("li",{}),u("li",{}),u("li",{}),u("li",{}),u("li",{}),u("li",{})),y=function(t){function n(e){i(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={data:[]},t}return s(n,t),l(n,[{key:"componentDidMount",value:function(){this.getFolders()}},{key:"componentWillUnmount",value:function(){}},{key:"getFolders",value:function(){var t=this;e.ajax({url:args.FBC_URL+"/includes/lib/tree.php?subdomain="+args.subdomain+"&app_api="+args.app_api+"&token="+args.token}).done(function(e){t.setState({data:e})})}},{key:"handleClick",value:function(e,t){var n=o("#parent_"+e.id).find("div").children("ul");n.is(":visible")?(o("#parent_"+e.id+">i").removeClass("icon-icn_flight_folder_open3"),o("#parent_"+e.id+">i").addClass("icon-icn_flight_folder_01"),n.css("display","none"),n.hide("fast")):(o("#parent_"+e.id+">i").removeClass("icon-icn_flight_folder_01"),o("#parent_"+e.id+">i").addClass("icon-icn_flight_folder_open3"),n.css("display","block"),n.show("fast"))}},{key:"showFolders",value:function(e){var t=this,n=[];return e.map(function(e,o){var r="parent_"+e.id;if(e.children)var i=u("li",{className:"parent_li",id:r},o,u("i",{className:"icon-icn_flight_folder_01",onClick:t.handleClick.bind(t,e)}),u("a",{href:"javascript:;",onClick:t.handleClick.bind(t,e)},void 0,e.name),u(v.default,{item:e.children}));else var a=0==e.size?{color:"#999999"}:{},i=u("li",{id:r},o,u(p.Link,{to:{pathname:"/images/"+e.id,state:{albumName:""+e.name}},style:a},void 0,u("i",{className:"icon-icn_album_01",style:a}),e.name));n.push(i)}),n}},{key:"render",value:function(){var e=this.state.data.length?this.showFolders(this.state.data):m,t=args.FBC_URL+"/assets/canto-icon.png";return u("div",{id:"fbc-tree",className:"collapse"},void 0,u("div",{className:"tree well"},void 0,u("ul",{},void 0,u("li",{},void 0,u(p.Link,{to:{pathname:"/images",state:{albumName:"Main Library"}}},void 0,u("img",{id:"fbc-icon",src:t}),"Main Library")),e)))}}]),n}(c.PureComponent);t.default=(0,p.withRouter)(y)}).call(t,n(24),n(24))},36:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(8)),d=o(f),p=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.animated,n=e.children;return s("section",{className:(0,d.default)({content:!0,"view-enter":t})},void 0,n)}}]),t}(l.Component);p.defaultProps={animated:!0},t.default=p},384:function(e,t,n){e.exports=n(385)},385:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(20)),s=n(186),u=o(s),l=n(187);n(487),n(24),n(488),n(489),n(188),n(490);var c=n(491),f=o(c),d=document.getElementById("root");(0,u.default)();var p=function(e){(0,a.render)(r(l.AppContainer,{},void 0,r(e,{})),d)};p(f.default)},487:function(e,t){},488:function(e,t){},489:function(e,t){},490:function(e,t){},491:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(27)),f=n(52),d=n(118),p=n(543),h=o(p),v=n(577),m=n(581),y=o(m),b=n(618),g=o(b),w=n(619),_=o(w),O=n(758),P=o(O),S=n(759),k=o(S),C=(0,v.createBrowserHistory)(),E=(0,h.default)(),j=(0,d.syncHistoryWithStore)(C,E),T=s(c.Route,{exact:!0,path:"/login",component:_.default}),x=s(y.default,{}),M=s(k.default,{path:"/logout"}),N=s(c.Route,{component:P.default}),L=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){return s(f.Provider,{store:E},void 0,s("div",{},void 0,s(c.HashRouter,{history:j},void 0,s(g.default,{},void 0,s(c.Switch,{},void 0,T,x,M,N)))))}}]),t}(l.Component);t.default=L},492:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),u=n(1),l=n.n(u),c=n(494),f=n.n(c),d=n(18),p=function(e){function t(){var n,i,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=r(this,e.call.apply(e,[this].concat(u))),i.history=f()(i.props),a=n,r(i,a)}return i(t,e),t.prototype.render=function(){return s.a.createElement(d.Router,{history:this.history,children:this.props.children})},t}(s.a.Component);p.propTypes={basename:l.a.string,forceRefresh:l.a.bool,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node},t.a=p},494:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=n(14),s=o(a),u=n(28),l=o(u),c=n(189),f=n(112),d=n(190),p=o(d),h=n(191),v=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),o=!(0,h.supportsPopStateOnHashChange)(),a=e.forceRefresh,u=void 0!==a&&a,d=e.getUserConfirmation,m=void 0===d?h.getConfirmation:d,y=e.keyLength,b=void 0===y?6:y,g=e.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,o=t.state,r=window.location,i=r.pathname,a=r.search,u=r.hash,l=i+a+u;return(0,s.default)(!g||(0,f.hasBasename)(l,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+l+'" to begin with "'+g+'".'),g&&(l=(0,f.stripBasename)(l,g)),(0,c.createLocation)(l,o,n)},_=function(){return Math.random().toString(36).substr(2,b)},O=(0,p.default)(),P=function(e){i(V,e),V.length=t.length,O.notifyListeners(V.location,V.action)},S=function(e){(0,h.isExtraneousPopstateEvent)(e)||E(w(e.state))},k=function(){E(w(v()))},C=!1,E=function(e){if(C)C=!1,P();else{O.confirmTransitionTo(e,"POP",m,function(t){t?P({action:"POP",location:e}):j(e)})}},j=function(e){var t=V.location,n=x.indexOf(t.key);-1===n&&(n=0);var o=x.indexOf(e.key);-1===o&&(o=0);var r=n-o;r&&(C=!0,A(r))},T=w(v()),x=[T.key],M=function(e){return g+(0,f.createPath)(e)},N=function(e,o){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,o,_(),V.location);O.confirmTransitionTo(i,"PUSH",m,function(e){if(e){var o=M(i),r=i.key,a=i.state;if(n)if(t.pushState({key:r,state:a},null,o),u)window.location.href=o;else{var l=x.indexOf(V.location.key),c=x.slice(0,-1===l?0:l+1);c.push(i.key),x=c,P({action:"PUSH",location:i})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}})},L=function(e,o){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,o,_(),V.location);O.confirmTransitionTo(i,"REPLACE",m,function(e){if(e){var o=M(i),r=i.key,a=i.state;if(n)if(t.replaceState({key:r,state:a},null,o),u)window.location.replace(o);else{var l=x.indexOf(V.location.key);-1!==l&&(x[l]=i.key),P({action:"REPLACE",location:i})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}})},A=function(e){t.go(e)},R=function(){return A(-1)},I=function(){return A(1)},H=0,U=function(e){H+=e,1===H?((0,h.addEventListener)(window,"popstate",S),o&&(0,h.addEventListener)(window,"hashchange",k)):0===H&&((0,h.removeEventListener)(window,"popstate",S),o&&(0,h.removeEventListener)(window,"hashchange",k))},D=!1,F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return D||(U(1),D=!0),function(){return D&&(D=!1,U(-1)),t()}},B=function(e){var t=O.appendListener(e);return U(1),function(){U(-1),t()}},V={length:t.length,action:"POP",location:T,createHref:M,push:N,replace:L,go:A,goBack:R,goForward:I,block:F,listen:B};return V};t.default=m},506:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),u=n(1),l=n.n(u),c=n(507),f=n.n(c),d=n(18),p=function(e){function t(){var n,i,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=r(this,e.call.apply(e,[this].concat(u))),i.history=f()(i.props),a=n,r(i,a)}return i(t,e),t.prototype.render=function(){return s.a.createElement(d.Router,{history:this.history,children:this.props.children})},t}(s.a.Component);p.propTypes={basename:l.a.string,getUserConfirmation:l.a.func,hashType:l.a.oneOf(["hashbang","noslash","slash"]),children:l.a.node},t.a=p},507:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(14),a=o(i),s=n(28),u=o(s),l=n(189),c=n(112),f=n(190),d=o(f),p=n(191),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},v=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},m=function(e){return window.location.hash=e},y=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(p.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,p.supportsGoWithoutReloadUsingHash)(),o=e.getUserConfirmation,i=void 0===o?p.getConfirmation:o,s=e.hashType,f=void 0===s?"slash":s,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",g=h[f],w=g.encodePath,_=g.decodePath,O=function(){var e=_(v());return(0,a.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,l.createLocation)(e)},P=(0,d.default)(),S=function(e){r(q,e),q.length=t.length,P.notifyListeners(q.location,q.action)},k=!1,C=null,E=function(){var e=v(),t=w(e);if(e!==t)y(t);else{var n=O(),o=q.location;if(!k&&(0,l.locationsAreEqual)(o,n))return;if(C===(0,c.createPath)(n))return;C=null,j(n)}},j=function(e){if(k)k=!1,S();else{P.confirmTransitionTo(e,"POP",i,function(t){t?S({action:"POP",location:e}):T(e)})}},T=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var o=L.lastIndexOf((0,c.createPath)(e));-1===o&&(o=0);var r=n-o;r&&(k=!0,H(r))},x=v(),M=w(x);x!==M&&y(M);var N=O(),L=[(0,c.createPath)(N)],A=function(e){return"#"+w(b+(0,c.createPath)(e))},R=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,l.createLocation)(e,void 0,void 0,q.location);P.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,c.createPath)(n),o=w(b+t);if(v()!==o){C=t,m(o);var r=L.lastIndexOf((0,c.createPath)(q.location)),i=L.slice(0,-1===r?0:r+1);i.push(t),L=i,S({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},I=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,l.createLocation)(e,void 0,void 0,q.location);P.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,c.createPath)(n),o=w(b+t);v()!==o&&(C=t,y(o));var r=L.indexOf((0,c.createPath)(q.location));-1!==r&&(L[r]=t),S({action:"REPLACE",location:n})}})},H=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return H(-1)},D=function(){return H(1)},F=0,B=function(e){F+=e,1===F?(0,p.addEventListener)(window,"hashchange",E):0===F&&(0,p.removeEventListener)(window,"hashchange",E)},V=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=P.setPrompt(e);return V||(B(1),V=!0),function(){return V&&(V=!1,B(-1)),t()}},$=function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:A,push:R,replace:I,go:H,goBack:U,goForward:D,block:W,listen:$};return q};t.default=b},508:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.MemoryRouter})},509:function(e,t,n){"use strict";function o(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var r=n(0),i=n.n(r),a=n(1),s=n.n(a),u=n(18),l=n(194),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},f="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},d=function(e){var t=e.to,n=e.exact,r=e.strict,a=e.location,s=e.activeClassName,d=e.className,p=e.activeStyle,h=e.style,v=e.isActive,m=o(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive"]);return i.a.createElement(u.Route,{path:"object"===(void 0===t?"undefined":f(t))?t.pathname:t,exact:n,strict:r,location:a,children:function(e){var n=e.location,o=e.match,r=!!(v?v(o,n):o);return i.a.createElement(l.a,c({to:t,className:r?[s,d].filter(function(e){return e}).join(" "):d,style:r?c({},h,p):h},m))}})};d.propTypes={to:l.a.propTypes.to,exact:s.a.bool,strict:s.a.bool,location:s.a.object,activeClassName:s.a.string,className:s.a.string,activeStyle:s.a.object,style:s.a.object,isActive:s.a.func},d.defaultProps={activeClassName:"active"},t.a=d},510:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.Prompt})},511:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.Redirect})},512:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.Route})},513:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.Router})},514:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.StaticRouter})},515:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.Switch})},516:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.matchPath})},517:function(e,t,n){"use strict";var o=n(18);n.d(t,"a",function(){return o.withRouter})},518:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],a=n||t+"Subscription",u=function(e){function n(i,a){o(this,n);var s=r(this,e.call(this,i,a));return s[t]=i.store,s}return i(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[a]=null,e},n.prototype.render=function(){return s.Children.only(this.props.children)},n}(s.Component);return u.propTypes={store:c.a.isRequired,children:l.a.element.isRequired},u.childContextTypes=(e={},e[t]=c.a.isRequired,e[a]=c.b,e),u.displayName="Provider",u}t.a=a;var s=n(0),u=(n.n(s),n(1)),l=n.n(u),c=n(195);n(116);t.b=a()},519:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){var e=[],t=[];return{clear:function(){t=i,e=i},notify:function(){for(var n=e=t,o=0;o<n.length;o++)n[o]()},subscribe:function(n){var o=!0;return t===e&&(t=e.slice()),t.push(n),function(){o&&e!==i&&(o=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return s});var i=null,a={notify:function(){}},s=function(){function e(t,n,r){o(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=a}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=r())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},e}()},52:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(518),r=n(196),i=n(520);n.d(t,"Provider",function(){return o.b}),n.d(t,"createProvider",function(){return o.a}),n.d(t,"connectAdvanced",function(){return r.a}),n.d(t,"connect",function(){return i.a})},520:function(e,t,n){"use strict";function o(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){for(var o=t.length-1;o>=0;o--){var r=t[o](e);if(r)return r}return function(t,o){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function i(e,t){return e===t}var a=n(196),s=n(521),u=n(522),l=n(537),c=n(538),f=n(539),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?a.a:t,p=e.mapStateToPropsFactories,h=void 0===p?l.a:p,v=e.mapDispatchToPropsFactories,m=void 0===v?u.a:v,y=e.mergePropsFactories,b=void 0===y?c.a:y,g=e.selectorFactory,w=void 0===g?f.a:g;return function(e,t,a){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=u.pure,c=void 0===l||l,f=u.areStatesEqual,p=void 0===f?i:f,v=u.areOwnPropsEqual,y=void 0===v?s.a:v,g=u.areStatePropsEqual,_=void 0===g?s.a:g,O=u.areMergedPropsEqual,P=void 0===O?s.a:O,S=o(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=r(e,h,"mapStateToProps"),C=r(t,m,"mapDispatchToProps"),E=r(a,b,"mergeProps");return n(w,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:C,initMergeProps:E,pure:c,areStatesEqual:p,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:P},S))}}()},521:function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!o(e[n[a]],t[n[a]]))return!1;return!0}t.a=r;var i=Object.prototype.hasOwnProperty},522:function(e,t,n){"use strict";function o(e){return"function"==typeof e?Object(s.b)(e,"mapDispatchToProps"):void 0}function r(e){return e?void 0:Object(s.a)(function(e){return{dispatch:e}})}function i(e){return e&&"object"==typeof e?Object(s.a)(function(t){return Object(a.bindActionCreators)(e,t)}):void 0}var a=n(30),s=n(202);t.a=[o,r,i]},53:function(e,t,n){"use strict";function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:g,currentView:"home",enterTime:e,leaveTime:null}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:w,currentView:"home",enterTime:null,leaveTime:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:_,currentView:"components",enterTime:e,leaveTime:null}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:O,currentView:"components",enterTime:null,leaveTime:e}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:P,currentView:"about",enterTime:e,leaveTime:null}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format(m);return{type:S,currentView:"about",enterTime:null,leaveTime:e}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format();return{type:y,currentView:"Login",enterTime:e,leaveTime:null}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format();return{type:b,currentView:"Login",enterTime:null,leaveTime:e}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format();return{type:k,currentView:"Protected",enterTime:e,leaveTime:null}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.default)().format();return{type:C,currentView:"Protected",enterTime:null,leaveTime:e}}Object.defineProperty(t,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments[1];switch(t.type){case g:case _:case P:case y:case k:return e.currentView!==t.currentView?p({},e,{currentView:t.currentView,enterTime:t.enterTime,leaveTime:t.leaveTime}):e;case w:case O:case S:case b:case C:return e.currentView===t.currentView?p({},e,{currentView:t.currentView,enterTime:t.enterTime,leaveTime:t.leaveTime}):e;default:return e}},t.enterHome=o,t.leaveHome=r,t.enterComponents=i,t.leaveComponents=a,t.enterAbout=s,t.leaveAbout=u,t.enterLogin=l,t.leaveLogin=c,t.enterProtected=f,t.leaveProtected=d;var h=n(2),v=function(e){return e&&e.__esModule?e:{default:e}}(h),m="DD/MM/YYYY HH:mm",y="ENTER_LOGIN_VIEW",b="LEAVE_LOGIN_VIEW",g="ENTER_HOME_VIEW",w="LEAVE_HOME_VIEW",_="ENTER_COMPONENTS_VIEW",O="LEAVE_COMPONENTS_VIEW",P="ENTER_ABOUT_VIEW",S="LEAVE_ABOUT_VIEW",k="ENTER_PROTECTED_VIEW",C="LEAVE_PROTECTED_VIEW",E={currentView:"not set",enterTime:null,leaveTime:null}},537:function(e,t,n){"use strict";function o(e){return"function"==typeof e?Object(i.b)(e,"mapStateToProps"):void 0}function r(e){return e?void 0:Object(i.a)(function(){return{}})}var i=n(202);t.a=[o,r]},538:function(e,t,n){"use strict";function o(e,t,n){return s({},n,e,t)}function r(e){return function(t,n){var o=(n.displayName,n.pure),r=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,s){var u=e(t,n,s);return i?o&&r(u,a)||(a=u):(i=!0,a=u),a}}}function i(e){return"function"==typeof e?r(e):void 0}function a(e){return e?void 0:function(){return o}}var s=(n(203),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e});t.a=[i,a]},539:function(e,t,n){"use strict";function o(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n,o){return function(r,i){return n(e(r,i),t(o,i),i)}}function i(e,t,n,o,r){function i(r,i){return h=r,v=i,m=e(h,v),y=t(o,v),b=n(m,y,v),p=!0,b}function a(){return m=e(h,v),t.dependsOnOwnProps&&(y=t(o,v)),b=n(m,y,v)}function s(){return e.dependsOnOwnProps&&(m=e(h,v)),t.dependsOnOwnProps&&(y=t(o,v)),b=n(m,y,v)}function u(){var t=e(h,v),o=!d(t,m);return m=t,o&&(b=n(m,y,v)),b}function l(e,t){var n=!f(t,v),o=!c(e,h);return h=e,v=t,n&&o?a():n?s():o?u():b}var c=r.areStatesEqual,f=r.areOwnPropsEqual,d=r.areStatePropsEqual,p=!1,h=void 0,v=void 0,m=void 0,y=void 0,b=void 0;return function(e,t){return p?l(e,t):i(e,t)}}function a(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,s=t.initMergeProps,u=o(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,u),c=a(e,u),f=s(e,u);return(u.pure?i:r)(l,c,f,e,u)}t.a=a;n(540)},540:function(e,t,n){"use strict";n(116)},543:function(e,t,n){"use strict";e.exports=n(544)},544:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,i.createStore)(l.default,e,p)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(30),a=n(206),s=o(a),u=n(545),l=o(u),c=n(558),f=o(c),d=n(576),p=(0,d.composeWithDevTools)((0,i.applyMiddleware)(s.default,f.default))},545:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.reducers=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(118),a=n(30),s=n(53),u=o(s),l=n(547),c=o(l),f=n(319),d=o(f),p=t.reducers={views:u.default,fakeModuleWithFetch:c.default,userAuth:d.default};t.default=(0,a.combineReducers)(r({},p,{routing:i.routerReducer}))},547:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){return function(e){var t=p.appConfig.DEV_MODE,n=t?"FETCH_MOCK":"FETCH",o=d.default,r=(0,h.getLocationOrigin)()+"/"+p.appConfig.api.fakeEndPoint,i={};return Promise.resolve(e({type:"FETCH_MIDDLEWARE",fetch:{type:n,actionTypes:{request:v,success:m,fail:y},mockResult:o,url:r,method:"get",options:i}}))}}function a(){return function(e,t){return s(t())?e(i()):Promise.resolve()}}function s(e){return!e.fakeModuleWithFetch.isFetching}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments[1],n=(0,c.default)().format();switch(t.type){case v:return u({},e,{actionTime:n,isFetching:!0});case m:return u({},e,{actionTime:n,isFetching:!1,data:[].concat(r(t.payload))});case y:return u({},e,{actionTime:n,isFetching:!1,error:t.error?u({},t.error):{}});default:return e}},t.fakeFetchIfNeeded=a;var l=n(2),c=o(l),f=n(548),d=o(f),p=n(316),h=n(549),v="REQUEST_FAKE_FETCH",m="RECEIVED_FAKE_FETCH",y="ERROR_FAKE_FETCH",b={isFetching:!1,actionTime:"",data:[],error:{}}},548:function(e,t){e.exports=[{id:1,label:"item 1"},{id:2,label:"item 2"}]},549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.jsonHeader=t.defaultOptions=t.postMethod=t.getMethod=t.getLocationOrigin=void 0;var o=n(317);t.getLocationOrigin=function(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin},t.getMethod={method:"get"},t.postMethod={method:"post"},t.defaultOptions={credentials:"same-origin"},t.jsonHeader={headers:{Accept:"application/json","Content-Type":"application/json"}},t.encodeBase64=function(e){return o.Base64.encode(e)}},553:function(e,t){e.exports={token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkZW1vIiwiaWF0IjoxNTAyMzA3MzU0LCJleHAiOjE3MjMyMzIxNTQsImF1ZCI6ImRlbW8tZGVtbyIsInN1YiI6ImRlbW8iLCJHaXZlbk5hbWUiOiJKb2huIiwiU3VybmFtZSI6IkRvZSIsIkVtYWlsIjoiam9obi5kb2VAZXhhbXBsZS5jb20iLCJSb2xlIjpbIlN1cGVyIGNvb2wgZGV2IiwibWFnaWMgbWFrZXIiXX0.6FjgLCypaqmRp4tDjg_idVKIzQw16e-z_rjA3R94IqQ",user:{id:111,login:"john.doe@fake.mail",firstname:"John",lastname:"Doe",isAdmin:!0}}},554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.getLocationOrigin=function(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin};t.default=o},555:function(e,t,n){"use strict";function o(e){this.message=e}var r=n(556);o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");t=t||{};var n=!0===t.header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},556:function(e,t,n){function o(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}var r=n(557);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return o(t)}catch(e){return r(t)}}},557:function(e,t){function n(e){this.message=e}function o(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,s=0,u="";i=t.charAt(s++);~i&&(o=a%4?64*o+i:i,a++%4)?u+=String.fromCharCode(255&o>>(-2*a&6)):0)i=r.indexOf(i);return u}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||o},558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FETCH=t.FETCH_MOCK=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(320),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=t.FETCH_MOCK="FETCH_MOCK",s=t.FETCH="FETCH",u=function(e){return function(t){return function(n){if(!n.fetch)return t(n);if(!n.fetch.type||!n.fetch.type===a||!n.fetch.type===s)return t(n);if(!n.fetch.actionTypes)return t(n);if(n.fetch.type===a){if(!n.fetch.mockResult)throw new Error('Fetch middleware require a mockResult payload when type is "FETCH_MOCK"');var r=n.fetch,u=r.actionTypes,l=u.request,c=u.success,f=r.mockResult;return e.dispatch({type:l}),Promise.resolve(e.dispatch({type:c,payload:{status:200,data:f}}))}if(n.fetch.type===s){var d=n.fetch,p=d.actionTypes,h=p.request,v=p.success,m=p.fail,y=d.url,b=d.method,g=d.headers,w=d.options;return e.dispatch({type:h}),i.default.request(o({method:b,url:y,withCredentials:!0,headers:o({Accept:"application/json","Content-Type":"application/json","Acces-Control-Allow-Origin":"*"},g)},w)).then(function(t){return e.dispatch({type:v,payload:t})}).catch(function(t){return e.dispatch({type:m,error:t}),Promise.reject(t)})}return t(n)}}};t.default=u},576:function(e,t,n){"use strict";var o=n(30).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?o:o.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},577:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.createPath=t.parsePath=t.locationsAreEqual=t.createLocation=t.createMemoryHistory=t.createHashHistory=t.createBrowserHistory=void 0;var r=n(82);Object.defineProperty(t,"createLocation",{enumerable:!0,get:function(){return r.createLocation}}),Object.defineProperty(t,"locationsAreEqual",{enumerable:!0,get:function(){return r.locationsAreEqual}});var i=n(65);Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return i.parsePath}}),Object.defineProperty(t,"createPath",{enumerable:!0,get:function(){return i.createPath}});var a=n(578),s=o(a),u=n(579),l=o(u),c=n(580),f=o(c);t.createBrowserHistory=s.default,t.createHashHistory=l.default,t.createMemoryHistory=f.default},578:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=n(14),s=o(a),u=n(28),l=o(u),c=n(82),f=n(65),d=n(120),p=o(d),h=n(326),v=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),o=!(0,h.supportsPopStateOnHashChange)(),a=e.forceRefresh,u=void 0!==a&&a,d=e.getUserConfirmation,m=void 0===d?h.getConfirmation:d,y=e.keyLength,b=void 0===y?6:y,g=e.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,o=t.state,r=window.location,a=r.pathname,s=r.search,u=r.hash,l=a+s+u;return g&&(l=(0,f.stripPrefix)(l,g)),i({},(0,f.parsePath)(l),{state:o,key:n})},_=function(){return Math.random().toString(36).substr(2,b)},O=(0,p.default)(),P=function(e){i(V,e),V.length=t.length,O.notifyListeners(V.location,V.action)},S=function(e){(0,h.isExtraneousPopstateEvent)(e)||E(w(e.state))},k=function(){E(w(v()))},C=!1,E=function(e){if(C)C=!1,P();else{O.confirmTransitionTo(e,"POP",m,function(t){t?P({action:"POP",location:e}):j(e)})}},j=function(e){var t=V.location,n=x.indexOf(t.key);-1===n&&(n=0);var o=x.indexOf(e.key);-1===o&&(o=0);var r=n-o;r&&(C=!0,A(r))},T=w(v()),x=[T.key],M=function(e){return g+(0,f.createPath)(e)},N=function(e,o){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,o,_(),V.location);O.confirmTransitionTo(i,"PUSH",m,function(e){if(e){var o=M(i),r=i.key,a=i.state;if(n)if(t.pushState({key:r,state:a},null,o),u)window.location.href=o;else{var l=x.indexOf(V.location.key),c=x.slice(0,-1===l?0:l+1);c.push(i.key),x=c,P({action:"PUSH",location:i})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}})},L=function(e,o){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,o,_(),V.location);O.confirmTransitionTo(i,"REPLACE",m,function(e){if(e){var o=M(i),r=i.key,a=i.state;if(n)if(t.replaceState({key:r,state:a},null,o),u)window.location.replace(o);else{var l=x.indexOf(V.location.key);-1!==l&&(x[l]=i.key),P({action:"REPLACE",location:i})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}})},A=function(e){t.go(e)},R=function(){return A(-1)},I=function(){return A(1)},H=0,U=function(e){H+=e,1===H?((0,h.addEventListener)(window,"popstate",S),o&&(0,h.addEventListener)(window,"hashchange",k)):0===H&&((0,h.removeEventListener)(window,"popstate",S),o&&(0,h.removeEventListener)(window,"hashchange",k))},D=!1,F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return D||(U(1),D=!0),function(){return D&&(D=!1,U(-1)),t()}},B=function(e){var t=O.appendListener(e);return U(1),function(){U(-1),t()}},V={length:t.length,action:"POP",location:T,createHref:M,push:N,replace:L,go:A,goBack:R,goForward:I,block:F,listen:B};return V};t.default=m},579:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(14),a=o(i),s=n(28),u=o(s),l=n(82),c=n(65),f=n(120),d=o(f),p=n(326),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},v=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},m=function(e){return window.location.hash=e},y=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(p.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,p.supportsGoWithoutReloadUsingHash)(),o=e.getUserConfirmation,i=void 0===o?p.getConfirmation:o,s=e.hashType,f=void 0===s?"slash":s,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",g=h[f],w=g.encodePath,_=g.decodePath,O=function(){var e=_(v());return b&&(e=(0,c.stripPrefix)(e,b)),(0,c.parsePath)(e)},P=(0,d.default)(),S=function(e){r(q,e),q.length=t.length,P.notifyListeners(q.location,q.action)},k=!1,C=null,E=function(){var e=v(),t=w(e);if(e!==t)y(t);else{var n=O(),o=q.location;if(!k&&(0,l.locationsAreEqual)(o,n))return;if(C===(0,c.createPath)(n))return;C=null,j(n)}},j=function(e){if(k)k=!1,S();else{P.confirmTransitionTo(e,"POP",i,function(t){t?S({action:"POP",location:e}):T(e)})}},T=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var o=L.lastIndexOf((0,c.createPath)(e));-1===o&&(o=0);var r=n-o;r&&(k=!0,H(r))},x=v(),M=w(x);x!==M&&y(M);var N=O(),L=[(0,c.createPath)(N)],A=function(e){return"#"+w(b+(0,c.createPath)(e))},R=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,l.createLocation)(e,void 0,void 0,q.location);P.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,c.createPath)(n),o=w(b+t);if(v()!==o){C=t,m(o);var r=L.lastIndexOf((0,c.createPath)(q.location)),i=L.slice(0,-1===r?0:r+1);i.push(t),L=i,S({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},I=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,l.createLocation)(e,void 0,void 0,q.location);P.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,c.createPath)(n),o=w(b+t);v()!==o&&(C=t,y(o));var r=L.indexOf((0,c.createPath)(q.location));-1!==r&&(L[r]=t),S({action:"REPLACE",location:n})}})},H=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return H(-1)},D=function(){return H(1)},F=0,B=function(e){F+=e,1===F?(0,p.addEventListener)(window,"hashchange",E):0===F&&(0,p.removeEventListener)(window,"hashchange",E)},V=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=P.setPrompt(e);return V||(B(1),V=!0),function(){return V&&(V=!1,B(-1)),t()}},$=function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:A,push:R,replace:I,go:H,goBack:U,goForward:D,block:W,listen:$};return q};t.default=b},580:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=n(14),s=o(a),u=n(65),l=n(82),c=n(120),f=o(c),d=function(e,t,n){return Math.min(Math.max(e,t),n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,o=void 0===n?["/"]:n,a=e.initialIndex,c=void 0===a?0:a,p=e.keyLength,h=void 0===p?6:p,v=(0,f.default)(),m=function(e){i(T,e),T.length=T.entries.length,v.notifyListeners(T.location,T.action)},y=function(){return Math.random().toString(36).substr(2,h)},b=d(c,0,o.length-1),g=o.map(function(e){return"string"==typeof e?(0,l.createLocation)(e,void 0,y()):(0,l.createLocation)(e,void 0,e.key||y())}),w=u.createPath,_=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,l.createLocation)(e,n,y(),T.location);v.confirmTransitionTo(o,"PUSH",t,function(e){if(e){var t=T.index,n=t+1,r=T.entries.slice(0);r.length>n?r.splice(n,r.length-n,o):r.push(o),m({action:"PUSH",location:o,index:n,entries:r})}})},O=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,l.createLocation)(e,n,y(),T.location);v.confirmTransitionTo(o,"REPLACE",t,function(e){e&&(T.entries[T.index]=o,m({action:"REPLACE",location:o}))})},P=function(e){var n=d(T.index+e,0,T.entries.length-1),o=T.entries[n];v.confirmTransitionTo(o,"POP",t,function(e){e?m({action:"POP",location:o,index:n}):m()})},S=function(){return P(-1)},k=function(){return P(1)},C=function(e){var t=T.index+e;return t>=0&&t<T.entries.length},E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v.setPrompt(e)},j=function(e){return v.appendListener(e)},T={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:w,push:_,replace:O,go:P,goBack:S,goForward:k,canGo:C,block:E,listen:j};return T};t.default=p},581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(52),i=n(30),a=n(53),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),u=n(582),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=n(18),f=function(e){return{currentView:e.views.currentView}},d=function(e){return(0,i.bindActionCreators)(o({},s),e)};t.default=(0,c.withRouter)((0,r.connect)(f,d)(l.default))},582:function(e,t,n){"use strict";(function(e){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(121),n(600)),d=o(f),p=n(601),h=o(p),v=n(334),m=o(v),y=n(617),b=o(y),g=s(m.default,{load:!0}),w=s("i",{className:"fa fa-bars"}),_=s("p",{id:"fbc-results"},void 0,s("strong",{id:"fbc-res"},void 0,"Album:")," ",s("span",{id:"fbc-album"},void 0,"Main Library"),"    ",s("strong",{},void 0,"Files:")," ",s("span",{id:"fbc-currentCnt"})," / ",s("span",{id:"fbc-found"})),O=s(b.default,{load:!0}),P=s("div",{id:"fbc-loop"}),S=s(h.default,{}),k=function(t){function n(){var e,t,o,a;r(this,n);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return t=o=i(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(u))),o.state={navModel:d.default},o.handleLeftNavItemClick=function(e,t){},o.handleRightNavItemClick=function(e,t){},a=t,i(o,a)}return a(n,t),u(n,[{key:"toggle",value:function(t){var n=e("#fbc-tree");n.is(":visible")?(n.animate({left:"-250px"},"slow").hide(),e("#hideShow>i").addClass("fa-bars"),e("#hideShow>i").removeClass("fa-close"),e("#__attachments-view-fbc").css({"padding-left":"0px"})):(n.animate({left:"0px"},"slow").show(),e("#hideShow>i").removeClass("fa-bars"),e("#hideShow>i").addClass("fa-close"),e("#__attachments-view-fbc").css({"padding-left":"250px"}))}},{key:"handleSearch",value:function(e){this.setState({search:e,filter:"",album:{name:"Recent Images"},type:"search"})}},{key:"handleFilter",value:function(e){this.setState({filter:e,type:"filter"})}},{key:"render",value:function(){this.state.navModel;return s("div",{id:"fbc-react"},void 0,g,s("div",{className:"searchRow"},void 0,s("a",{className:"btn",id:"hideShow",onClick:this.toggle},void 0,w),_,O),P,S)}}]),n}(l.Component);t.default=k}).call(t,n(24))},583:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(1)),s=(o(a),function(e){return r("div",{className:"jumbotron"},void 0,e.children)});t.default=s},584:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(1)),s=(o(a),n(585)),u=o(s),l=n(586),c=o(l),f=n(588),d=o(f),p=r(u.default,{}),h=function(e){var t=e.brand,n=e.navModel,o=e.handleLeftNavItemClick,i=e.handleRightNavItemClick;return r("nav",{className:"navbar navbar-default"},void 0,r("div",{className:"containersCustom"},void 0,r("div",{className:"navbar-header"},void 0,p,r("a",{className:"navbar-brand"},void 0,t)),r("div",{className:"collapse navbar-collapse",id:"bs-example-navbar-collapse-1"},void 0,r("ul",{className:"nav navbar-nav"},void 0,r(c.default,{leftLinks:n.leftLinks,onLeftNavButtonClick:o})),r("ul",{className:"nav navbar-nav navbar-right"},void 0,r(d.default,{rightLinks:n.rightLinks,onRightNavButtonClick:i})))))};h.defaultProps={brand:"brand"},t.default=h},585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),r=n(0),i=(function(e){e&&e.__esModule}(r),o("button",{className:"navbar-toggle collapsed",type:"button","data-toggle":"collapse","data-target":"#bs-example-navbar-collapse-1"},void 0,o("span",{className:"sr-only"},void 0,"Toggle navigation"),o("span",{className:"icon-bar"}),o("span",{className:"icon-bar"}),o("span",{className:"icon-bar"}))),a=function(){return i};t.default=a},586:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(1)),s=(o(a),n(587)),u=o(s),l=function(e){var t=e.leftLinks,n=e.onLeftNavButtonClick;return r("ul",{className:"nav navbar-nav"},void 0,t.map(function(e,t){return r(u.default,{link:e.link,label:e.label,viewName:e.view,onClick:n},t)}))};t.default=l},587:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(27)),d=function(e){function t(){var e,n,o,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=o=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.handleLeftNavItemClick=function(e){var t=o.props;(0,t.onClick)(e,t.viewName)},a=n,i(o,a)}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.link,n=e.label;return s("li",{},void 0,s(f.Link,{to:t,onClick:this.handleLeftNavItemClick},void 0,n))}}]),t}(l.PureComponent);t.default=d},588:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(1)),s=(o(a),n(589)),u=o(s),l=function(e){var t=e.rightLinks,n=e.onRightNavButtonClick;return r("ul",{className:"nav navbar-nav navbar-right"},void 0,t.map(function(e,t){return r(u.default,{link:e.link,label:e.label,viewName:e.view,onClick:n},t)}))};t.default=l},589:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(27)),d=function(e){function t(){var e,n,o,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=o=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.handleRightNavItemClick=function(e){var t=o.props;(0,t.onClick)(e,t.viewName)},a=n,i(o,a)}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.link,n=e.label;return s("li",{},void 0,s(f.Link,{to:t,onClick:this.handleRightNavItemClick},void 0,n))}}]),t}(l.PureComponent);t.default=d},590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.smoothScroll={timer:null,stop:function(){clearTimeout(this.timer)},scrollTo:function(e,t){function n(){var e=void 0,i=Date.now()-m;i>o.duration&&clearTimeout(this.timer),r=i/o.duration,r>1?(clearTimeout(this.timer),t&&t()):(e=o.easing.outQuint(0,i,d,v,o.duration),window.scrollTo(0,e),this.timer=setTimeout(n,10))}var o={duration:1e3,easing:{outQuint:function(e,t,n,o,r){return o*((t=t/r-1)*t*t*t*t+1)+n}}},r=void 0,i=document.getElementById(e),a=i.offsetTop,s=i.offsetHeight,u=document.body,l=document.documentElement,c=Math.max(u.scrollHeight,u.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),f=window.innerHeight,d=window.pageYOffset,p=a-d,h=c-f,v=h<p?h-(c-a-s+d):p,m=Date.now();r=0,this.timer&&clearInterval(this.timer),this.timer=setTimeout(n,10)}}},591:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bottom-right",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=a({},t);switch(e){case"bottom-right":return n.right=p,n.left="",n;case"bottom-left":return n.right="",n.left=p,n;default:return t}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s=n(0),u=(o(s),n(1)),l=(o(u),n(8)),c=o(l),f=n(592),d=o(f),p="-10px",h={position:"fixed",right:p,left:"",bottom:"40px",width:"100px",zIndex:10,opacity:.5,backgroundColor:"#4A4A4A"},v=i(d.default,{color:"#F1F1F1"}),m=function(e){var t=e.onClick,n=e.position,o=e.children,s=e.motionStyle,u=r(n,a({},s,h));return i("button",{style:u,className:(0,c.default)({btn:!0}),onClick:t},void 0,!o&&i("div",{style:{marginRight:"10px"}},void 0,v),!!o&&o)};m.defaultProps={position:"bottom-right"},t.default=m},592:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(1)),s=(o(a),r("path",{d:"M256,213.7L256,213.7L256,213.7l174.2,167.2c4.3,4.2,11.4,4.1,15.8-0.2l30.6-29.9c4.4-4.3,4.5-11.3,0.2-15.5L264.1,131.1\r\n      c-2.2-2.2-5.2-3.2-8.1-3c-3-0.1-5.9,0.9-8.1,3L35.2,335.3c-4.3,4.2-4.2,11.2,0.2,15.5L66,380.7c4.4,4.3,11.5,4.4,15.8,0.2L256,213.7z"})),u=function(e){var t=e.color;return r("svg",{width:"24px",height:"24px",viewBox:"0 0 512 512",fill:""+t},void 0,s)};u.defaultProps={color:"#F1F1F1"},t.default=u},600:function(e,t){e.exports={brand:"Flight by Canto Wordpress Plugin",leftLinks:[],rightLinks:[{label:"Home",link:"/home",view:"home",isRouteBtn:!0},{label:"Protected",link:"/protected",view:"protected",isRouteBtn:!0},{label:"Foo",link:"/foo",view:"foo",isRouteBtn:!0},{label:"Images",link:"/images",view:"images",isRouteBtn:!0},{label:"Disconnect",link:"/login",view:"login",isRouteBtn:!0}]}},601:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),i=n(0),a=(o(i),n(18)),s=n(602),u=o(s),l=n(612),c=o(l),f=n(614),d=(o(f),n(615)),p=(o(d),r(a.Redirect,{to:"/images"})),h=r(a.Route,{path:"/home",component:c.default}),v=r(a.Route,{exact:!0,path:"/images",component:u.default},"/images"),m=r(a.Route,{path:"/images/:album",component:u.default},"/images/:album"),y=r(a.Route,{path:"/search/:keyword",component:u.default},"/search/:keyword"),b=function(){return r(a.Switch,{},void 0,r(a.Route,{exact:!0,path:"/",render:function(){return p}}),h,v,m,y)};t.default=b},602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(52),r=n(30),i=n(53),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=n(603),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){return{currentView:e.views.currentView}},c=function(e){return(0,r.bindActionCreators)({enterAbout:a.enterAbout,leaveAbout:a.leaveAbout},e)};t.default=(0,o.connect)(l,c)(u.default)},603:function(e,t,n){"use strict";(function(e,o){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),l=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(0),f=(r(c),n(1)),d=(r(f),n(36)),p=r(d),h=n(327),v=r(h),m=(n(27),n(127)),y=(r(m),n(610)),b=r(y),g=n(334),w=(r(g),u("div",{id:"scroll-to-load"},void 0,u("i",{className:"fa fa-chevron-down"})," Scroll down to load more")),_=u(v.default,{minScrollY:40,scrollTo:"fbc-react"}),O=function(t){function n(t){i(this,n);var o=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t)),r=t.match.params.keyword?t.match.params.keyword:null;if(e("#fbc-found").text("-"),e("#fbc-currentCnt").text("-"),o.state={item:[],images:[],xhrPool:[],start:0,processingCount:0,modalIsOpen:!1,album:t.match.params.album?t.match.params.album:null,keyword:r},o.getItem=o.getItem.bind(o),o.handleScroll=o.handleScroll.bind(o),t.location.state){var s=t.location.state.albumName?t.location.state.albumName:"Main Library";e("#fbc-res").text("Album:"),e("#fbc-album").text(s)}return r&&(e("#fbc-res").text("Search:"),e("#fbc-album").text(r)),o}return s(n,t),l(n,[{key:"componentWillReceiveProps",value:function(t){var n=this,r=this;e("#fbc-found").text("-"),e("#fbc-currentCnt").text("-"),o.each(r.state.xhrPool,function(e,t){t.abort()});var i=t.match.params.album,a=t.match.params.keyword,s="Main Library";if(t.location.state)var s=t.location.state.albumName?t.location.state.albumName:"Main Library";e("#fbc-res").text("Album:"),e("#fbc-album").text(s),a&&(e("#fbc-res").text("Search:"),e("#fbc-album").text(a)),this.setState({item:[],images:[],xhrPool:[],album:i,keyword:a,start:0,modalIsOpen:!1,processingCount:0},function(){n.getList()})}},{key:"componentDidMount",value:function(){(0,this.props.enterAbout)(),this.getList(),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){(0,this.props.leaveAbout)(),window.removeEventListener("scroll",this.handleScroll)}},{key:"setResults",value:function(t,n){e("#fbc-album").text(t),e("#fbc-found").text(n)}},{key:"getList",value:function(){e("#loader").show(),e("#scroll-to-load").hide();var t=this,n=this.state.start>0?this.state.start:0,r=null!=this.state.album?"&album="+this.state.album:"",i=null!=this.state.keyword?"&keyword="+this.state.keyword:"",a=args.FBC_URL+"/includes/lib/get.php?subdomain="+args.subdomain+"&app_api="+args.app_api+"&token="+args.token+r+i+"&limit=24&start="+n;o.ajax({url:a,beforeSend:function(e,n){t.state.xhrPool.push(e)}}).done(function(n){e("#fbc-found").text(n.found);t.setState({items:n.results,found:n.found}),n.found>0?o.each(n.results,function(e,o){t.getImages(o,n.results.length,n.found)}):(e("#loader").hide(),e("#fbc-found").text(0),e("#fbc-currentCnt").text(0))})}},{key:"getImages",value:function(t,n,r){var i=this;o.ajax({url:args.FBC_URL+"/includes/lib/download.php?id="+t.id+"&app_api="+args.app_api+"&subdomain="+args.subdomain+"&token="+args.token,beforeSend:function(e,t){i.state.xhrPool.push(e)}}).done(function(o){var a=o.toLowerCase().search("location: .*[\r\n]"),s=o.substring(a),u=s.search("[\r\n]"),l=args.FBC_URL+"/assets/document-icon.png",c="image"==t.scheme?s.substring(10,u):l,f={id:t.id,scheme:t.scheme,name:t.name,owner:t.owner,ownerName:t.ownerName,size:t.size,time:t.time,img:c,description:t.description},d=i.state.images.slice();d.push(f),i.setState({images:d});var p=i.state.processingCount+1;e("#fbc-currentCnt").text(p),i.setState({processingCount:p}),p!=i.state.start+n&&p!=r-1||(e("#loader").hide(),p!=r&&p!=r-1&&e("#scroll-to-load").show(),i.setState({start:p}))})}},{key:"getItem",value:function(e){this.setState({item:e,modalIsOpen:!0})}},{key:"handleModal",value:function(e){this.setState({modalIsOpen:e})}},{key:"handleScroll",value:function(){var t=this,n="innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight,o=document.body,r=document.documentElement,i=Math.max(o.scrollHeight,o.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);n+window.pageYOffset>=i&&this.state.images.length>1&&this.state.processingCount==this.state.start&&this.state.processingCount!=this.state.found-1&&(this.setState({start:this.state.start+1}),e("#loader").show(),e("#scroll-to-load").hide(),this.getList(),setTimeout(function(){t.setState({start:t.state.start-1})},500))}},{key:"handleChange",value:function(e){}},{key:"render",value:function(){var e=this,t=this.state.modalIsOpen?u(b.default,{item:this.state.item,modalIsOpen:!0,handleModal:this.handleModal.bind(this)}):"";return u(p.default,{},void 0,t,u("div",{className:"attachments row",id:"__attachments-view-fbc"},void 0,this.state.images.map(function(t,n){return u("div",{className:"col-lg-2 col-md-3 col-sm-4 col-xs-6",style:{opacity:"1",height:"190px",paddingLeft:"0px"},onClick:e.getItem.bind(e,t)},n,u("div",{className:"attachment-preview",style:{opacity:"0.9",backgroundImage:"url("+t.img+")",position:"absolute",width:"100%"}},void 0,u("div",{className:"filename"},void 0,t.name)))})),w,_)}}]),n}(c.PureComponent);t.default=O}).call(t,n(24),n(24))},610:function(e,t,n){"use strict";(function(e,o){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},f=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),d=n(0),p=(r(d),n(1)),h=(r(p),n(36)),v=(r(h),n(27),n(127)),m=r(v),y={overlay:{backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:99},content:{top:"60px",maxWidth:"1140px",margin:"0 auto"}},b=l("h5",{},void 0,"Attachment Details"),g=l("span",{className:"name"},void 0,"Title"),w=l("label",{"data-setting":"caption",className:"setting"},void 0,l("span",{className:"name"},void 0,"Caption"),l("textarea",{id:"caption",name:"caption"})),_=l("span",{className:"name"},void 0,"Alt Text"),O=l("span",{className:"name"},void 0,"Description"),P=l("span",{className:"name"},void 0,"Copyright"),S=l("span",{className:"name"},void 0,"Terms Conditions"),k=l("h5",{},void 0,"Attachment Display Settings"),C=l("label",{className:"setting"},void 0,l("span",{},void 0,"Alignment"),l("select",{"data-user-setting":"align",name:"align","data-setting":"align",className:"alignment"},void 0,l("option",{value:"left"},void 0,"Left"),l("option",{value:"center"},void 0,"Center"),l("option",{value:"right"},void 0,"Right"),l("option",{value:"none"},void 0,"None"))),E=l("label",{className:"setting"},void 0,l("span",{},void 0,"Link To"),l("select",{name:"link",className:"link-to","data-setting":"link","data-user-setting":"urlbutton"},void 0,l("option",{value:"none"},void 0,"None"),l("option",{value:"file"},void 0,"Media File"),l("option",{value:"post"},void 0,"Attachment Page")),l("input",{type:"text",className:"link-to-custom hidden","data-setting":"linkUrl"})),j=l("span",{},void 0,"Size"),T=l("p",{className:"ml-submit"}),x=l("br",{}),M=l("strong",{},void 0,"Error"),N=l("div",{id:"media-items"},void 0,l("div",{tabIndex:"0","data-id":"0",className:"fbc attachment-details save-ready"},void 0,l("h5",{},void 0,"Attachment Details"),l("div",{className:"attachment-info"},void 0,l("div",{className:"details"},void 0,l("div",{className:"filename"}),l("div",{className:"uploaded"}),l("div",{className:"filesize"}),l("div",{className:"dimensions"}),l("div",{className:"owner"}))))),L=l("p",{className:"ml-submit"}),A=l("br",{}),R=l("div",{className:"col-sm-8 text-left"},void 0,l("button",{},void 0,"Loading ...")),I=function(t){function n(t){a(this,n);var o=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return o.state={modalIsOpen:!!t.modalIsOpen&&t.modalIsOpen,item:t.item,img:null,imgClass:"blur",details:null,sizes:null,error:!1},o.closeModal=o.closeModal.bind(o),o.getSizes=o.getSizes.bind(o),o.handleChange=o.handleChange.bind(o),e("#fbc-react").css("overflow-y","hidden"),e("#fbc-react").css("height","100vh"),o}return u(n,t),f(n,[{key:"closeModal",value:function(){e("#loader").hide(),this.props.handleModal(!1),e("#fbc-react").css("overflow-y","scroll"),e("#fbc-react").css("height","auto")}},{key:"fbc_media_send_to_editor",value:function(t){(window.dialogArguments||opener||parent||top).send_to_editor(t.attachment),e("#loader").hide(),this.closeModal()}},{key:"uploadImage",value:function(t){var n=this,r=window||opener||parent||top;e("#loader").show(),t.preventDefault();var i=e(t.target),a=e("#library-form"),s=args.FBC_URL+"/includes/lib/copy-media.php?type=file&tab=library";o.ajax({url:s,type:a.attr("method"),dataType:"json",data:a.serialize()+"&"+encodeURIComponent(i.attr("id"))+"=true&chromeless=1"}).done(function(t){if(t.error)console.log(t),n.setState({error:t.error}),e("#loader").hide();else if(n.setState({error:null}),"gutenberg"===args.wp_editor){var o=r.top.wp,i=o.blocks,a=o.data.dispatch("core/editor");switch(a.updateBlockAttributes(wpBlockClientId,{mediaID:t.attachment_id,mediaURL:t.attachment_url}),t.attachment_mime){case"image":var s=i.createBlock("core/image",{id:t.attachment_id,url:t.attachment_url});break;case"video":var s=i.createBlock("core/video",{id:t.attachment_id,src:t.attachment_url});break;case"audio":var s=i.createBlock("core/audio",{id:t.attachment_id,src:t.attachment_url});break;default:var s=i.createBlock("core/file",{id:t.attachment_id,href:t.attachment_url,fileName:t.attachment_url,textLinkHref:t.attachment_url})}a.insertBlocks(s),a.updateBlockAttributes(wpBlockClientId,{isOpen:!1}),e("#loader").hide()}else n.fbc_media_send_to_editor(t),e("#loader").hide()})}},{key:"readableFileSize",value:function(e){var t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0;if(e>=1024){for(;e>=1024;)e/=1024,++n;return e.toFixed(1)+" "+t[n]}return e+" "+t[0]}},{key:"componentDidMount",value:function(){e("#loader").show(),this.getImage(),this.getDetails(),this.getSizes()}},{key:"componentWillUnmount",value:function(){}},{key:"getDetails",value:function(){var e=this;o.ajax({url:args.FBC_URL+"/includes/lib/detail.php?id="+this.state.item.id+"&app_api="+args.app_api+"&scheme="+this.state.item.scheme+"&subdomain="+args.subdomain+"&token="+args.token,dataType:"json"}).done(function(t){var n={id:t.id,scheme:t.scheme,title:t.name,alt:t.name,name:t.name,owner:t.owner,ownerName:t.ownerName,dimensions:t.default.Dimensions,size:e.readableFileSize(t.size),time:t.time.substring(0,4)+"-"+t.time.substring(4,6)+"-"+t.time.substring(6,8),updated:t.default["Date modified"].substring(0,4)+"-"+t.default["Date modified"].substring(4,6)+"-"+t.default["Date modified"].substring(6,8),description:t.description,copyright:t.copyright,terms:t.termsAndConditions,termsAndConditions:t.termsAndConditions};e.setState({details:n})})}},{key:"getImage",value:function(){var t=this;o.ajax({url:args.FBC_URL+"/includes/lib/download.php?id="+this.state.item.id+"&app_api="+args.app_api+"&subdomain="+args.subdomain+"&token="+args.token+"&quality=LowJPG"}).done(function(n){var o=n.toLowerCase().search("location: .*[\r\n]"),r=n.substring(o),i=r.search("[\r\n]"),a=r.substring(10,i);t.setState({img:a,imgClass:"blur lazyloaded"}),e("#loader").hide()})}},{key:"getSizes",value:function(){var e=this;o.ajax({url:args.FBC_URL+"/includes/lib/sizes.php?abspath="+args.abspath}).done(function(t){e.setState({sizes:t})})}},{key:"handleChange",value:function(e){var t=this;this.setState({details:c({},t.state.details,i({},e.target.name,e.target.value))})}},{key:"render",value:function(){var e="gutenberg"===args.wp_editor?"none":"block",t=this.state.details?l("div",{},void 0,b,l("div",{className:"attachment-info"},void 0,l("div",{className:"details",style:{lineHeight:"20px"}},void 0,l("div",{className:"filename"},void 0,this.state.details.name),l("div",{className:"uploaded"},void 0,this.state.details.updated),l("div",{className:"filesize"},void 0,this.state.details.size),l("div",{className:"dimensions"},void 0,null!=this.state.details.dimensions?this.state.details.dimensions.replace("*"," x "):""),l("div",{className:"owner"},void 0,this.state.details.owner))),l("form",{encType:"multipart/form-data",method:"post",action:args.action,className:"",id:"library-form",style:{display:"block",margin:"0 0 0 20px",position:"relative"}},void 0,l("input",{id:"post_id",name:"post_id",type:"hidden",value:args.postID}),l("input",{id:"fbc_id",name:"fbc_id",type:"hidden",value:this.state.item.id}),l("input",{id:"fbc_scheme",name:"fbc_scheme",type:"hidden",value:this.state.item.scheme}),l("input",{id:"abspath",name:"abspath",type:"hidden",value:args.abspath}),l("input",{id:"fbc_flight_domain",name:"fbc_flight_domain",type:"hidden",value:args.subdomain}),l("input",{id:"fbc_app_token",name:"fbc_app_token",type:"hidden",value:args.token}),l("input",{id:"fbc_app_api",name:"fbc_app_api",type:"hidden",value:args.app_api}),l("div",{id:"media-items",style:{display:""+e}},void 0,l("div",{tabIndex:"0","data-id":"0",className:"fbc attachment-details save-ready"},void 0,l("label",{"data-setting":"title",className:"setting"},void 0,g,l("input",{type:"text",id:"title",name:"title",value:this.state.details.title.replace(/\.[^.$]+$/,""),onChange:this.handleChange})),w,l("label",{"data-setting":"alt",className:"setting"},void 0,_,l("input",{type:"text",id:"alt-text",name:"alt",value:this.state.details.alt.replace(/\.[^.$]+$/,""),onChange:this.handleChange})),l("label",{"data-setting":"description",className:"setting"},void 0,O,l("textarea",{id:"description",name:"description",value:this.state.details.description,onChange:this.handleChange})),l("label",{"data-setting":"copyright",className:"setting"},void 0,P,l("input",{type:"text",id:"copyright",name:"copyright",value:this.state.details.copyright,onChange:this.handleChange})),l("label",{"data-setting":"terms",className:"setting"},void 0,S,l("textarea",{id:"terms",name:"terms",value:this.state.details.terms,onChange:this.handleChange}))),l("div",{className:"attachment-display-settings",style:{display:""+e}},void 0,k,C,E,l("label",{className:"setting"},void 0,j,l("div",{dangerouslySetInnerHTML:{__html:this.state.sizes}})))),T,x,this.state.error&&l("div",{className:"alert alert-danger"},void 0,M," ",this.state.error),l("div",{className:"row"},void 0,l("div",{className:"col-sm-3 text-left"},void 0,l("button",{className:"button-secondary",onClick:this.closeModal.bind(this)},void 0,"Cancel")),l("div",{className:"col-sm-8 text-left"},void 0,l("button",{className:"button-primary",id:"insertAttachment",onClick:this.uploadImage.bind(this)},void 0,"Insert into Post"))))):l("div",{},void 0,l("form",{style:{display:"block",margin:"0 0 0 20px",position:"relative"}},void 0,N,L,A,l("div",{className:"row"},void 0,l("div",{className:"col-sm-3 text-left"},void 0,l("button",{onClick:this.closeModal.bind(this)},void 0,"Cancel")),R)));return l(m.default,{isOpen:this.state.modalIsOpen,contentLabel:"Attachment",style:y},void 0,l("div",{className:"col-sm-8"},void 0,l("img",{src:this.state.img,className:"img-responsive center-block "+this.state.imgClass})),l("div",{className:"col-sm-4"},void 0,t))}}]),n}(d.PureComponent);t.default=I}).call(t,n(24),n(24))},611:function(e,t,n){"use strict";(function(e){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(36)),d=(o(f),n(27)),p=s("i",{className:"icon-icn_flight_folder_open3"}),h=s("i",{className:"icon-icn_flight_folder_open3"}),v=function(t){function n(e){r(this,n);var t=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={data:[]},t}return a(n,t),u(n,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"handleClick",value:function(t,n){var o=e("#parent_"+t.id).children("ul");o.is(":visible")?(e("#parent_"+t.id+">i").removeClass("icon-icn_flight_folder_open3"),e("#parent_"+t.id+">i").addClass("icon-icn_flight_folder_01"),o.css("display","none"),o.hide("fast")):(e("#parent_"+t.id+">i").removeClass("icon-icn_flight_folder_01"),e("#parent_"+t.id+">i").addClass("icon-icn_flight_folder_open3"),o.css("display","block"),o.show("fast"))}},{key:"getChildren",value:function(e){var t=this,n=this,o=[];return e.map(function(e,r){var i="parent_"+e.id;if("album"==e.scheme)var a=0==e.size?{color:"#999999"}:{},u=s("li",{id:i},r,s(d.Link,{to:{pathname:"/images/"+e.id,state:{albumName:""+e.name}},style:a},void 0,s("i",{className:"icon-icn_album_01",style:a}),e.name));else if(e.children)var l=e.children?n.getChildren(e.children):null,u=s("li",{className:"parent_li",id:i},r,s("i",{className:"icon-icn_flight_folder_01",onClick:t.handleClick.bind(t,e)}),s("a",{href:"javascript:;",onClick:t.handleClick.bind(t,e)},void 0,e.name),s("ul",{},void 0,l));else var u=s("li",{id:i},r,p,e.name);o.push(u)}),o}},{key:"render",value:function(){var e=this,t=this;return s("div",{},void 0,this.props.item.map(function(n,o){var r="parent_"+n.id,i=[];if("album"==n.scheme)var a=0==n.size?{color:"#999999"}:{},u=s("li",{},o,s(d.Link,{to:{pathname:"/images/"+n.id,state:{albumName:""+n.name}},style:a},void 0,s("i",{className:"icon-icn_album_01",style:a}),n.name));else if(n.children){for(var l=0;l<n.children.length;l++){var r="parent_"+n.children[l].id;if("album"==n.children[l].scheme)var a=0==n.size?{color:"#999999"}:{},u=s("li",{id:r},l,s(d.Link,{to:{pathname:"/images/"+n.children[l].id,state:{albumName:""+n.children[l].name}},style:a},void 0,s("i",{className:"icon-icn_album_01",style:a}),n.children[l].name));else var c=n.children[l].children?t.getChildren(n.children[l].children):null,u=s("li",{id:r},l,s("i",{className:"icon-icn_flight_folder_01",onClick:e.handleClick.bind(e,n.children[l])}),s("a",{href:"javascript:;",onClick:e.handleClick.bind(e,n.children[l])},void 0,n.children[l].name),s("ul",{},void 0,c));i.push(u)}var r="parent_"+n.id,u=s("li",{id:r},o,s("i",{className:"icon-icn_flight_folder_01",onClick:t.handleClick.bind(e,n)}),s("a",{href:"javascript:;",onClick:t.handleClick.bind(e,n)},void 0,n.name),s("ul",{},o,i))}else var u=s("li",{},o,h,n.name);return s("ul",{},o,u)}))}}]),n}(l.PureComponent);t.default=v}).call(t,n(24))},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(52),r=n(30),i=n(53),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=n(613),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){return{currentView:e.views.currentView}},c=function(e){return(0,r.bindActionCreators)({enterHome:a.enterHome,leaveHome:a.leaveHome},e)};t.default=(0,o.connect)(l,c)(u.default)},613:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(121),n(36)),d=o(f),p=n(27),h=s(p.Link,{to:"/images"},void 0,"Go to About"),v=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidMount",value:function(){(0,this.props.enterHome)()}},{key:"componentWillUnmount",value:function(){(0,this.props.leaveHome)()}},{key:"render",value:function(){return s(d.default,{},void 0,s("div",{style:{marginTop:"150px"}},void 0,h))}}]),t}(l.PureComponent);t.default=v},614:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),c=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),f=n(0),d=o(f),p=n(1),h=(o(p),n(27)),v=n(81),m=o(v),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=r(e,["component"]),o=this.props.location,i=this.isAuthenticated(),a=this.isExpired();return d.default.createElement(h.Route,u({},n,{render:function(e){return!a&&i?d.default.createElement(t,e):l(h.Redirect,{to:{pathname:"/login",state:{from:o}}})}}))}},{key:"isAuthenticated",value:function(){var e=m.default.getUserInfo()?m.default.getUserInfo():null;return!(!m.default.getToken()||!function(e){return e&&e.id}(e))}},{key:"isExpired",value:function(){return console.log("token expires: ",m.default.getTokenExpirationDate(m.default.getToken())),m.default.isExpiredToken(m.default.getToken())}}]),t}(f.Component);t.default=(0,h.withRouter)(y)},615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(52),r=n(30),i=n(53),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=n(616),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){return{currentView:e.views.currentView}},c=function(e){return(0,r.bindActionCreators)({enterProtected:a.enterProtected,leaveProtected:a.leaveProtected},e)};t.default=(0,o.connect)(l,c)(u.default)},616:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(1)),f=(o(c),n(36)),d=o(f),p=s(d.default,{},void 0,s("h1",{},void 0,"Protected view"),s("h3",{},void 0,"If you can read, it means you are authenticated")),h=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidMount",value:function(){(0,this.props.enterProtected)()}},{key:"componentWillUnmount",value:function(){(0,this.props.leaveProtected)()}},{key:"render",value:function(){return p}}]),t}(l.PureComponent);t.default=h},617:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=o(l),f=n(1),d=(o(f),n(36)),p=(o(d),n(27)),h=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={keyword:""},n}return a(t,e),u(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"submit",value:function(e){e.preventDefault(),this.props.history.push({pathname:"/search/"+this.state.keyword}),this.refs.search.value=""}},{key:"onChange",value:function(e){this.setState({keyword:e.target.value})}},{key:"render",value:function(){return s("form",{id:"searchForm",onSubmit:this.submit.bind(this)},void 0,s("div",{},void 0,c.default.createElement("input",{type:"text",id:"search",ref:"search",className:"form-control",onChange:this.onChange.bind(this),placeholder:"Global Search",autoComplete:"off"}),s("i",{className:"fa fa-search",onClick:this.submit.bind(this)})))}}]),t}(l.PureComponent);t.default=(0,p.withRouter)(h)},618:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=(o(u),n(1)),c=(o(l),n(18)),f=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidUpdate",value:function(e){if(window){e.location!==this.props.location&&window.scrollTo(0,0)}}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component);t.default=(0,c.withRouter)(f)},619:function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(30),a=n(52),s=n(53),u=o(s),l=n(319),c=o(l),f=n(620),d=function(e){return e&&e.__esModule?e:{default:e}}(f),p=function(e){return{currentView:e.views.currentView,isAuthenticated:e.userAuth.isAuthenticated,isFetching:e.userAuth.isFetching,isLogging:e.userAuth.isLogging}},h=function(e){return(0,i.bindActionCreators)(r({},u,c),e)};t.default=(0,a.connect)(p,h)(d.default)},620:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function o(r,i){try{var a=t[r](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){o("next",e)},function(e){o("throw",e)});e(s)}return o("next")})}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),l=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(0),f=(o(c),n(1)),d=(o(f),n(335)),p=n(81),h=o(p),v=u("legend",{},void 0,"Login"),m=u("label",{htmlFor:"inputEmail",className:"col-lg-2 control-label"},void 0,"Email"),y=u("label",{htmlFor:"inputPassword",className:"col-lg-2 control-label"},void 0,"Password"),b=u("span",{},void 0,"login in...  ",u("i",{className:"fa fa-spinner fa-pulse fa-fw"})),g=u("span",{},void 0,"Login"),w=function(e){function t(){var e,n,o,s,u=this;i(this,t);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.state={email:"",password:""},o.handlesOnEmailChange=function(e){e.preventDefault(),o.setState({email:e.target.value.trim()})},o.handlesOnPasswordChange=function(e){e.preventDefault(),o.setState({password:e.target.value.trim()})},o.handlesOnLogin=function(){var e=r(regeneratorRuntime.mark(function e(t){var n,r,i,a,s,l,c,f,d,p,v;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t&&t.preventDefault(),n=o.props,r=n.history,i=n.logUserIfNeeded,a=o.state,s=a.email,l=a.password,c={login:s,password:l},e.prev=4,e.next=7,i(c);case 7:f=e.sent,d=f.payload.data,p=d.token,v=d.user,h.default.setToken(p),h.default.setUserInfo(v),r.push({pathname:"/"}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),console.log("login went wrong..., error: ",e.t0);case 17:case"end":return e.stop()}},e,u,[[4,14]])}));return function(t){return e.apply(this,arguments)}}(),o.goHome=function(e){e&&e.preventDefault(),o.props.history.push({pathname:"/"})},s=n,a(o,s)}return s(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.enterLogin;(0,e.disconnectUser)(),t()}},{key:"componentWillUnmount",value:function(){(0,this.props.leaveLogin)()}},{key:"render",value:function(){var e=this.state,t=e.email,n=e.password,o=this.props.isLogging;return u("div",{className:"content"},void 0,u(d.Row,{},void 0,u(d.Col,{md:4,mdOffset:4,xs:10,xsOffset:1},void 0,u("form",{className:"form-horizontal",noValidate:!0},void 0,u("fieldset",{},void 0,v,u("div",{className:"form-group"},void 0,m,u("div",{className:"col-lg-10"},void 0,u("input",{type:"text",className:"form-control",id:"inputEmail",placeholder:"Email",value:t,onChange:this.handlesOnEmailChange}))),u("div",{className:"form-group"},void 0,y,u("div",{className:"col-lg-10"},void 0,u("input",{type:"password",className:"form-control",id:"inputPassword",placeholder:"Password",value:n,onChange:this.handlesOnPasswordChange}))),u("div",{className:"form-group"},void 0,u(d.Col,{lg:10,lgOffset:2},void 0,u(d.Button,{className:"login-button btn-block",bsStyle:"primary",disabled:o,onClick:this.handlesOnLogin},void 0,o?b:g))))))),u(d.Row,{},void 0,u(d.Col,{md:4,mdOffset:4,xs:10,xsOffset:1},void 0,u(d.Button,{bsStyle:"primary",onClick:this.goHome},void 0,"back to home"))))}}]),t}(c.PureComponent);w.defaultProps={isFetching:!1,isLogging:!1},t.default=w},65:function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.stripPrefix=function(e,t){return 0===e.indexOf(t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),t=decodeURI(t),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}},t.createPath=function(e){var t=e.pathname,n=e.search,o=e.hash,r=encodeURI(t||"/");return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}},758:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=(o(l),n(121)),f=n(36),d=o(f),p=s(d.default,{},void 0,s(c.Jumbotron,{},void 0,s("h1",{},void 0,"Sorry this page does not exists..."))),h=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){return p}}]),t}(l.PureComponent);t.default=h},759:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,o,r){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=r;else if(a>1){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+3];n.children=u}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),u=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=o(l),f=n(1),d=(o(f),n(27)),p=n(81),h=o(p),v=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidMount",value:function(){h.default.clearAllAppStorage()}},{key:"render",value:function(){return c.default.createElement(d.Route,this.props,s(d.Redirect,{to:{pathname:"/login"}}))}}]),t}(l.PureComponent);t.default=(0,d.withRouter)(v)},81:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.auth=void 0;var r=n(555),i=o(r),a=n(2),s=o(a),u=["localStorage","sessionStorage"],l=JSON.parse,c=JSON.stringify,f=t.auth={getToken:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"token";return e===u[0]?localStorage&&localStorage.getItem(t)||null:e===u[1]?sessionStorage&&sessionStorage.getItem(t)||null:null},setToken:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u[0],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"token";!e||e.length<=0||(t===u[0]&&localStorage&&localStorage.setItem(n,e),t===u[1]&&sessionStorage&&sessionStorage.setItem(n,e))},isAuthenticated:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"token";return e===u[0]?!(!localStorage||!localStorage.getItem(t)):e===u[1]&&!(!sessionStorage||!sessionStorage.getItem(t))},clearToken:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"token");return localStorage&&localStorage[e]?(localStorage.removeItem(e),!0):!(!sessionStorage||!sessionStorage[e])&&(sessionStorage.removeItem(e),!0)},getTokenExpirationDate:function(e){if(!e)return new Date(0);var t=(0,i.default)(e);return t.exp?new Date(1e3*t.exp):new Date(0)},isExpiredToken:function(e){var t=this.getTokenExpirationDate(e),n=(0,s.default)();return(0,s.default)(n).isAfter((0,s.default)(t))},getUserInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"userInfo";return e===u[0]?localStorage&&l(localStorage.getItem(t))||null:e===u[1]?sessionStorage&&l(sessionStorage.getItem(t))||null:null},setUserInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u[0],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"userInfo";!e||e.length<=0||(t===u[0]&&localStorage&&localStorage.setItem(n,c(e)),t===u[1]&&sessionStorage&&sessionStorage.setItem(n,c(e)))},clearUserInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"userInfo";localStorage&&localStorage[e]&&localStorage.removeItem(e),sessionStorage&&sessionStorage[e]&&sessionStorage.removeItem(e)},clearAllAppStorage:function(){localStorage&&localStorage.clear(),sessionStorage&&sessionStorage.clear()}};t.default=f},82:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(110),a=o(i),s=n(111),u=o(s),l=n(65);t.createLocation=function(e,t,n,o){var i=void 0;return"string"==typeof e?(i=(0,l.parsePath)(e),i.state=t):(i=r({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t)),i.key=n,o&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname),i},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,u.default)(e.state,t.state)}}},[384]);